/* BiNova — shared stylesheet (Bloom Route direction) */

:root {
  --green-deep: #1f4a3d;
  --green-mid: #3e7a5c;
  --gold: #c9932e;
  --gold-light: #f0c36b;
  --cream: #f6f1e4;
  --cream-2: #ede5d2;
  --ink: #1c231d;
  --ink-soft: #45503f;
  --border: #dcd2b8;

  --bg: var(--cream);
  --surface: #fffdf7;
  --text: var(--ink);
  --text-soft: var(--ink-soft);

  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#products {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--green-deep);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-deep);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* --- Header / nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}

.main-nav a[aria-current="page"] {
  color: var(--green-deep);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a {
  display: flex;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.55;
  filter: grayscale(60%);
  transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.lang-switch a[aria-current="true"] {
  opacity: 1;
  filter: none;
  background: var(--cream-2);
}

.flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: block;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--surface);
}

.btn-primary:hover {
  background: #163a30;
}

.btn-ghost {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: var(--green-deep);
  color: var(--surface);
}

/* --- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 21, 0.15) 0%,
    rgba(15, 26, 21, 0.55) 75%,
    rgba(15, 26, 21, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.hero .lede {
  max-width: 56ch;
  font-size: 1.1rem;
  color: #f2ede0;
}

.feature-callout {
  max-width: 62ch;
  margin: 28px auto 0;
  text-align: center;
}

.feature-callout .icon {
  width: 36px;
  height: 36px;
  color: var(--green-deep);
  margin: 0 auto 10px;
}

.feature-callout h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-callout p {
  color: var(--text-soft);
  margin: 0;
}

.feature-photo {
  margin-top: clamp(24px, 4vw, 40px);
}

.feature-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(20, 30, 20, 0.18);
}

@media (max-width: 640px) {
  .feature-photo img {
    border-radius: 14px;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  border-color: #fff;
  color: #fff;
}

.hero .btn-ghost:hover {
  background: #fff;
  color: var(--green-deep);
}

/* --- Page hero (non-home, no photo) --- */

.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #2c5c4b 100%);
  color: #fff;
  padding: 96px 0 56px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero .lede {
  color: #ddeade;
  max-width: 60ch;
  font-size: 1.05rem;
}

/* --- Sections --- */

section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--cream-2);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  color: var(--gold);
}

/* --- Card grid --- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .icon {
  width: 44px;
  height: 44px;
  color: var(--green-deep);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Certifications --- */

.cert-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--green-deep);
}

.cert-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* --- CTA band --- */

.cta-band {
  background: var(--green-deep);
  color: #fff;
  text-align: left;
  border-radius: 20px;
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 30ch;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--gold-light);
}

/* --- Forms --- */

.form-grid {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.contact-info dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 18px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 4px 0 0;
  font-size: 1rem;
}

.placeholder-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gold);
  font-style: italic;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
}

/* --- Footer --- */

.site-footer {
  background: var(--green-deep);
  color: #cfe0d4;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid .logo {
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #9fbaa8;
}

/* --- Responsive --- */

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px clamp(20px, 4vw, 40px);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .lang-switch {
    order: -1;
  }
}
