/* ============================================================
   BUILD CFO — styles.css
   Brand Colors:
     Sage Green:  #8BA888
     Navy Blue:   #1B365D
     White:       #FFFFFF
     Light Gray:  #F8F9FA
     Dark Text:   #2D3748
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2D3748;
  background-color: #FFFFFF;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --sage:      #8BA888;
  --navy:      #1B365D;
  --white:     #FFFFFF;
  --gray-bg:   #F8F9FA;
  --dark-text: #2D3748;
  --border:    #E2E8F0;

  --nav-height: 72px;

  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  --radius: 8px;
  --radius-lg: 12px;

  --transition: 0.2s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ── Typography ────────────────────────────────────────────── */
.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: #718096;
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background-color: var(--sage);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #769E73;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,168,136,0.35);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Scroll Fade-in ────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav-wrapper.scrolled {
  background-color: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--sage);
  transition: width var(--transition);
}

.nav-links li a:hover {
  color: var(--sage);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
  background-color: var(--white);
}

.hero-content {
  max-width: 780px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #4A5568;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* ============================================================
   THE PROBLEM
   ============================================================ */
.problem {
  background-color: var(--gray-bg);
  padding: 6rem 0;
}

.problem-heading {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--sage);
  margin-bottom: 2rem;
}

.br-desktop {
  display: inline;
}

.problem-body {
  max-width: 680px;
}

.problem-body p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--dark-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.problem-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries {
  background-color: var(--white);
  padding: 7rem 0;
}

.industries .section-heading {
  text-align: center;
  margin-bottom: 0.75rem;
}

.industry-cards {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Base card */
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Primary card */
.industry-card--primary {
  position: relative;
  overflow: hidden;
  border-color: var(--sage);
}

.card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--sage);
}

.card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

.industry-card--primary .card-heading {
  margin-top: 0.75rem;
}

.card-body {
  font-size: 0.95rem;
  color: var(--dark-text);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.card-body:last-of-type {
  margin-bottom: 1.25rem;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-list li {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--sage);
  flex-shrink: 0;
}

.industries-note {
  font-size: 0.95rem;
  color: #718096;
  font-style: italic;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background-color: var(--gray-bg);
  padding: 7rem 0;
}

.services .section-heading {
  text-align: center;
  margin-bottom: 0.75rem;
}

.services-intro {
  font-size: 1rem;
  color: #4A5568;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--gray-bg);
}

.service-body {
  font-size: 0.95rem;
  color: var(--dark-text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-list li {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--sage);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background-color: var(--white);
  padding: 7rem 0;
}

.about-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-body p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--dark-text);
  line-height: 1.85;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background-color: var(--navy);
  padding: 7rem 0;
  text-align: center;
}

.contact-heading {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.btn-contact {
  background-color: var(--sage);
  font-size: 1rem;
  padding: 0.95rem 2.25rem;
  margin-bottom: 2.25rem;
}

.btn-contact:hover {
  background-color: #769E73;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.contact-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--white);
}

.contact-divider {
  color: rgba(255,255,255,0.3);
  font-size: 1.1rem;
}

.contact-location {
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #111827;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-contact {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-contact a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

  .industry-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .industry-card--primary {
    order: -1; /* keep construction first */
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

  html {
    font-size: 16px;
  }

  :root {
    --nav-height: 64px;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.99);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.35rem;
    font-weight: 700;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    min-height: 90vh;
  }

  .br-desktop {
    display: none;
  }

  /* Problem */
  .problem {
    padding: 4.5rem 0;
  }

  .problem-heading {
    padding-left: 1rem;
    border-left-width: 3px;
  }

  /* Industries */
  .industries {
    padding: 5rem 0;
  }

  /* Services */
  .services {
    padding: 5rem 0;
  }

  /* About */
  .about {
    padding: 5rem 0;
  }

  /* Contact */
  .contact {
    padding: 5rem 0;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.4rem;
  }

  .contact-divider {
    display: none;
  }

}
