/* Theme – single source for colours and layout */
:root {
  --bg: #F6F6F1;          /* slightly warmer + a touch darker */
  --bg-soft: #ECEEEA;     /* noticeably different section background */
  --text: #101315;
  --text-muted: #4F5B5A;
  --text-footer: #55605F;

  --accent: #0F766E;
  --accent-hover: #0c5f59;
  --accent-focus: rgba(15, 118, 110, 0.35);
  --primary: #004ECE;
  --on-primary: #ffffff;

  --border: rgba(16, 19, 21, 0.14);      /* stronger separators */
  --border-soft: rgba(16, 19, 21, 0.09);

  --header-bg: rgba(246, 246, 241, 0.92); /* matches new bg */
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}
body.nav-open {
  overflow: hidden;
}

.section-title {
  color: var(--accent);
}

.site-logo {
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .site-logo {
    margin-left: -2.5rem;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #1E2423; /* warm charcoal */
  color: #FFFFFF;

  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 9999px;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background-color: #003aa0;
}

.btn-outline:hover {
  background-color: #2A3130;
  transform: translateY(-1px);
}

.btn-outline.btn-primary:hover {
  background-color: #003aa0;
}

.btn-outline.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);

  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 9999px;

  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background-color: var(--bg-soft);
  border-color: var(--border);
  transform: translateY(-1px);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

.projects-list {
  display: grid;
  gap: 1.5rem;
}

.project-hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.project-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .project-logo {
    margin-inline: 0;
  }
}

.project-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-features i {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.project-features span {
  flex: 1;
}

.how-steps {
  position: relative;
}

.how-step {
  position: relative;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bg);
  text-align: center;
}


.project-feature-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  display: block;
}

/* Container – responsive padding */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.about-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.about-icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.about-content {
  min-width: 0;
}
@media (max-width: 767px) {
  .about-feature {
    padding-left: 0;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
}

.nav-link {
  color: var(--text); /* charcoal */
  padding: 0.5rem 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  border-radius: 0.375rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
}

/* Mobile nav – hamburger focus */
.nav-menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--header-bg), 0 0 0 4px var(--accent);
}

/* Mobile nav overlay – visible only when nav-open, below md */
.nav-overlay {
  position: fixed;
  inset: 0;
  top: 3.5rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 640px) {
  .nav-overlay {
    top: 4rem;
  }
}
@media (min-width: 768px) {
  .nav-overlay {
    display: none !important;
  }
}
.nav-open .nav-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  visibility: hidden;
  transform: translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 640px) {
  .nav-drawer {
    top: 4rem;
  }
}
@media (min-width: 768px) {
  .nav-drawer {
    display: none !important;
  }
}
.nav-open .nav-drawer {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}

.nav-drawer-link {
  display: block;
  padding: 0.875rem 1rem;
  min-height: 44px;
  box-sizing: border-box;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-drawer-link:hover {
  background: var(--bg-soft);
  color: var(--accent);
}
.nav-drawer-link:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: -2px;
}

/* Touch-friendly buttons */
@media (max-width: 767px) {
  .btn-outline {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .btn-ghost {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
}
