/* ═════════════════════════════════════════════════════════════════
   HYDROWIND ENGINEERING — Centralized Stylesheet
   Single-point font size control via CSS custom properties
   ═════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #132038;
  --navy-deep: #0d1a2a;
  --navy-mid: #1c3150;
  --navy-light: #253e56;
  --green: #356E6F;
  --green-light: #6FA3A7;
  --green-pale: #6FA3A7;
  --green-bg: #eaf5f0;
  --page-bg: #f0f3f7;
  --white: #ffffff;
  --border: #cdd6e0;
  --text-dark: #132038;
  --text-mid: #4e6278;
  --text-muted: #7fa4bc;
  --text-light: #e8f2f8;
  --font: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* ═══ FONT SIZE SCALE — single source of truth for every page. Edit a value here to change it site-wide. ═══ */

  /* Display & section headings */
  --fs-hero-h1: 36px;        /* home hero H1 */
  --fs-page-title: 32px;     /* interior page hero H1 (About, Services, Portfolio, Insights, Contact) */
  --fs-sec-title: 28px;      /* section H2 titles */
  --fs-sec-title-sm: 22px;   /* smaller section headers: service titles, CTA card headers, list headers */
  --fs-cta-title: 24px;      /* CTA band title */
  --fs-lead: 20px;           /* lead paragraphs, signup band title */
  --fs-h3: 18px;             /* modest headings: founder name/avatar initials, form success confirmation */
  --fs-card-title: 18px;     /* card titles: value cards, insight cards, process steps */

  /* Body copy */
  --fs-body: 16px;           /* base body copy (about page) */
  --fs-sub: 18px;            /* hero/section subtext */
  --fs-svc-desc: 16px;       /* services page description text */
  --fs-quote: 18px;          /* testimonial quote */
  --fs-project-title: 18px;  /* portfolio project card title */
  --fs-project-desc: 16px;   /* portfolio project card description */
  --fs-body-sm: 14px;        /* secondary paragraph text: bios, sub-lines, form confirmations */
  --fs-card-desc: 16px;      /* card/description text: value, step, insight descriptions, secondary info text */

  /* Forms */
  --fs-form-input: 14px;     /* form fields & submit buttons */

  /* UI chrome */
  --fs-nav-logo: 14px;
  --fs-mobile-nav-link: 14px;
  --fs-ui: 13px;             /* nav links, buttons, footer logo, inline links, form labels */
  --fs-sm: 12px;             /* footer links/copy, filter & tag pills, card meta links, hints */
  --fs-label: 14px;          /* uppercase eyebrow labels, tiny meta text, badges */
  --fs-badge-sm: 10px;       /* smallest tag badges (project/insight tags) */
  --fs-icon: 16px;           /* small inline icon glyphs */
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--page-bg); color: var(--text-dark); font-size: var(--fs-body); line-height: 1.6; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Topbar ── */
.topbar { height: 3px; background: var(--green); position: sticky; top: 0; z-index: 101; }

/* ── Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 0 4rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: var(--fs-nav-logo); font-weight: 500; color: var(--navy); letter-spacing: 0.06em; }
.nav-logo em { color: var(--green); font-style: normal; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: var(--fs-ui); color: var(--text-mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 500; }
.nav-cta {
  font-size: var(--fs-ui); font-weight: 500; color: var(--green);
  border: 0.5px solid var(--green); border-radius: 5px;
  padding: 7px 18px; transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--green); color: var(--white); }

/* ── Mobile nav ── */
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; z-index: 102; position: relative; }
.hamburger span { width: 20px; height: 1.5px; background: var(--navy); border-radius: 1px; transition: 0.3s; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 0.5px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  position: fixed; top: 60px; left: 0; right: 0;
  z-index: 101; max-height: calc(100vh - 60px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: var(--fs-mobile-nav-link); color: var(--text-mid); padding: 0.6rem 0; border-bottom: 0.5px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; margin-top: 0.5rem; color: var(--green); font-weight: 500; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; font-size: var(--fs-ui); font-weight: 500;
  padding: 10px 24px; background: var(--green); color: var(--white);
  border-radius: 5px; border: none; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-block; font-size: var(--fs-ui);
  padding: 10px 24px; color: var(--green-light);
  border: 0.5px solid #2a5a48; border-radius: 5px; cursor: pointer; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); }
.btn-outline {
  display: inline-block; font-size: var(--fs-ui); font-weight: 500;
  padding: 9px 22px; color: var(--green);
  border: 0.5px solid var(--green); border-radius: 5px; cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── Sections ── */
.section { padding: 4rem; }
.section.white { background: var(--white); }
.section.grey { background: var(--page-bg); }
.section.dark { background: var(--navy); }
.section.deep { background: var(--navy-deep); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.sec-label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.5rem; }
.sec-title { font-size: var(--fs-sec-title); font-weight: 500; color: var(--text-dark); margin-bottom: 0.75rem; line-height: 1.25; }
.sec-title.lt { color: var(--text-light); }
.sec-title-sm { font-size: var(--fs-sec-title-sm); font-weight: 500; }
.sec-sub { font-size: var(--fs-sub); color: var(--text-mid); line-height: 1.65; max-width: 560px; margin-bottom: 2rem; }
.sec-sub.lt { color: var(--text-muted); }

/* ── Page hero (interior pages) ── */
.page-hero { background: var(--navy); padding: 4rem; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero .sec-title { font-size: var(--fs-page-title); }

/* ── Class strip ── */
.class-strip {
  background: var(--navy-deep);
  padding: 0.75rem 4rem;
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 0.5px solid var(--navy-light);
  flex-wrap: wrap;
}
.cs-label { font-size: var(--fs-label); color: #4e6a7a; white-space: nowrap; }
.cbadge { font-size: var(--fs-label); font-weight: 500; color: #085041; background: var(--green-pale); border-radius: 3px; padding: 2px 9px; }
.cs-div { width: 0.5px; height: 16px; background: var(--navy-light); }
.ind-txt { font-size: var(--fs-label); color: #4e6a7a; }
.ind-txt em { color: var(--green-light); font-style: normal; font-weight: 500; }

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); font-weight: 500; color: #4e6a7a; letter-spacing: 0.06em; }
.footer-logo em { color: var(--green); font-style: normal; }
.footer-logo img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.5; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: var(--fs-sm); color: #4e6a7a; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: var(--fs-sm); color: #344d5c; }

/* ── Photo placeholder ── */
.photo-slot {
  background: #eaf0f5; border: 1px dashed #9ab0c0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.photo-slot-label { font-size: var(--fs-label); color: #9ab0c0; letter-spacing: 0.04em; }

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--navy); border: 0.5px solid var(--navy-light);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 12px 32px rgba(13,26,42,0.35);
}
.cookie-banner-text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.cookie-banner-text a { color: var(--green-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 2.5rem 1.5rem; }
  .page-hero { padding: 2.5rem 1.5rem; }
  .class-strip { padding: 0.75rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem 1.25rem; }
  .cookie-banner-actions button { flex: 1; }
}
