/* ============================================================
   NYDROS — Brand stylesheet
   Palette drawn from brand assets:
   forest green, antique gold, sage (wordmark), warm cream
   Display type: Cinzel (echoes the wordmark's Roman serif)
   Body type: Public Sans
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --forest: #071F14;        /* deepest green — hero, CTA, footer */
  --forest-2: #0C2A1B;      /* raised panels on forest */
  --gold: #C9A45C;
  --gold-deep: #A9853F;
  --sage: #9BB193;          /* wordmark green */
  --cream: #F6F4ED;
  --card-bg: #FFFFFF;
  --ink: #22302A;
  --muted: #5E6E64;
  --line: #E4E0D4;
  --gold-hairline: rgba(201, 164, 92, 0.55);
  --radius: 4px;
  --transition: all .3s ease;
}

* { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Public Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}

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

::selection { background: var(--gold); color: var(--forest); }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: var(--forest);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--gold-hairline);
}

.navbar .logo img {
  height: 34px;
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.navbar ul li a {
  color: var(--cream);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: color .3s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.navbar ul li a:hover { color: var(--gold); }
.navbar ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.navbar .actions { display: flex; align-items: center; gap: 16px; }
.navbar .actions a.contact-btn {
  padding: 9px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.navbar .actions a.contact-btn:hover {
  background: var(--gold);
  color: var(--forest);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gold);
  cursor: pointer;
}

/* ---------- Hero (forest banner) ---------- */
.hero {
  position: relative;
  padding: 110px 5% 120px;
  background: var(--forest) url('assets/img/bg-forest.png') center / cover no-repeat;
  color: var(--cream);
  border-bottom: 1px solid var(--gold-hairline);
  overflow: hidden;
}
.hero .left { max-width: 720px; position: relative; z-index: 2; }
.hero .eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero .left h1 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 24px;
  color: #FDFCF8;
}
.hero .left h1 span { color: var(--gold); }
.hero .left p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(246, 244, 237, 0.82);
  margin-bottom: 36px;
  max-width: 620px;
}
.hero .buttons a {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-right: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.hero .buttons a.primary {
  background: var(--gold);
  color: var(--forest);
  border: 1px solid var(--gold);
}
.hero .buttons a.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.hero .buttons a.secondary {
  border: 1px solid rgba(246, 244, 237, 0.45);
  color: var(--cream);
}
.hero .buttons a.secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Process banner ---------- */
.process {
  background: #FFFFFF;
  padding: 64px 5%;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.process img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.process .steps-mobile { display: none; }

/* ---------- Section shared ---------- */
.section-eyebrow {
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

/* ---------- Capabilities ---------- */
.capabilities { background: var(--cream); padding: 90px 5%; }
.capabilities h2 {
  font-family: 'Cinzel', serif;
  color: var(--forest);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.capabilities .intro {
  max-width: 700px;
  margin: 0 0 48px;
  color: var(--muted);
  line-height: 1.7;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.capabilities-grid .card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(7, 31, 20, 0.05);
}
.capabilities-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(7, 31, 20, 0.10);
  border-color: var(--gold-hairline);
  border-top-color: var(--gold);
}
.capabilities-grid .card i {
  font-size: 1.6rem;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.capabilities-grid .card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--forest);
}
.capabilities-grid .card p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.capabilities-grid .card a {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .3s;
}
.capabilities-grid .card a:hover { color: var(--forest); }

/* ---------- Framework (forest band) ---------- */
.framework {
  background: var(--forest) url('assets/img/bg-forest.png') center / cover no-repeat;
  color: var(--cream);
  padding: 90px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
}
.framework .text { flex: 1; min-width: 280px; }
.framework .text h2 {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin: 0 0 18px;
}
.framework .text h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 22px;
  color: #FDFCF8;
}
.framework .text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(246, 244, 237, 0.82);
}
.framework .text a {
  display: inline-block;
  background: var(--gold);
  color: var(--forest);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.framework .text a:hover { background: var(--gold-deep); }
.framework .chart-container {
  flex: 1;
  min-width: 300px;
  max-width: 520px;
  background: rgba(12, 42, 27, 0.72);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  backdrop-filter: blur(2px);
}
.framework .chart-container canvas { width: 100% !important; height: auto !important; }
.framework .maturity-list { margin-top: 22px; }
.framework .maturity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: rgba(246, 244, 237, 0.9);
}
.framework .progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(246, 244, 237, 0.18);
  margin-left: 14px;
  border-radius: 2px;
  overflow: hidden;
  max-width: 60%;
}
.framework .progress-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- About split (photo) ---------- */
.about-split {
  background: #FFFFFF;
  padding: 90px 5%;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.about-split .photo {
  flex: 1;
  min-width: 300px;
  position: relative;
}
.about-split .photo img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-split .photo::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  z-index: -1;
}
.about-split .text { flex: 1.1; min-width: 300px; }
.about-split .text h2 {
  font-family: 'Cinzel', serif;
  color: var(--forest);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.about-split .text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ---------- Industries ---------- */
.industries {
  background: var(--cream);
  padding: 90px 5%;
  text-align: center;
}
.industries h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  color: var(--forest);
  margin: 0 0 18px;
  font-weight: 600;
}
.industries p {
  max-width: 700px;
  margin: 0 auto 46px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.industry {
  width: 180px;
  padding: 28px 18px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
}
.industry:hover {
  border-color: var(--gold-hairline);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(7, 31, 20, 0.08);
}
.industry i {
  font-size: 1.7rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.industry span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
}

/* ---------- CTA (forest, cedar visible right) ---------- */
.cta {
  background: var(--forest) url('assets/img/bg-forest.png') right center / cover no-repeat;
  color: var(--cream);
  padding: 90px 5%;
  text-align: center;
  border-top: 1px solid var(--gold-hairline);
}
.cta p {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.5;
  margin: 0 auto 30px;
  max-width: 760px;
  color: #FDFCF8;
}
.cta a {
  display: inline-block;
  background: var(--gold);
  color: var(--forest);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.cta a:hover { background: var(--gold-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--forest);
  border-top: 1px solid var(--gold-hairline);
  padding: 26px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--sage);
}
footer .left { display: flex; align-items: center; gap: 10px; }
footer .left img { height: 20px; opacity: 0.9; }
footer .right { display: flex; align-items: center; gap: 18px; }
footer a { color: var(--cream); font-weight: 500; transition: color .3s; }
footer a:hover { color: var(--gold); }

/* ---------- Generic pages ---------- */
.page-hero {
  background: var(--forest) url('assets/img/bg-forest.png') center / cover no-repeat;
  padding: 90px 5%;
  text-align: center;
  border-bottom: 1px solid var(--gold-hairline);
}
.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: #FDFCF8;
  font-weight: 600;
  margin: 0;
}
.page-content {
  padding: 70px 5%;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--muted);
}
.page-content strong { color: var(--forest); }
.page-content a { color: var(--gold-deep); font-weight: 600; }
.page-content a:hover { color: var(--forest); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 620px; margin: 0 auto; }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form button {
  background: var(--forest);
  color: var(--cream);
  padding: 13px 28px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.contact-form button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero { padding: 80px 5% 90px; }
  .framework { flex-direction: column; align-items: stretch; }
  .framework .chart-container { max-width: none; }
  .about-split { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 71px;
    left: 0;
    background: var(--forest);
    padding: 20px 5%;
    gap: 18px;
    border-top: 1px solid var(--gold-hairline);
    border-bottom: 1px solid var(--gold-hairline);
  }
  .navbar ul.open { display: flex; }
  .nav-toggle { display: block; }
  .navbar .actions { display: none; }

  /* process banner labels get too small — swap to stacked steps */
  .process img { display: none; }
  .process .steps-mobile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    background: var(--forest);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 26px 14px;
  }
  .process .steps-mobile .step { text-align: center; color: var(--cream); }
  .process .steps-mobile .step i {
    display: block;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
  }
  .process .steps-mobile .step span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}
