/* ==========================================================================
   LactoFoods Consulting — site stylesheet
   Palette drawn from the brand logo: deep navy, warm cream, quiet gold.
   ========================================================================== */

:root {
  --navy: #1e3a5a;
  --navy-deep: #142940;
  --navy-soft: #2c4f77;
  --ink: #263341;
  --muted: #5f6b78;
  --cream: #f7f4ee;
  --cream-deep: #efeadf;
  --card: #ffffff;
  --gold: #b08a2e;
  --gold-soft: #d9c58f;
  --line: rgba(30, 58, 90, 0.14);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 41, 64, 0.05), 0 12px 32px -12px rgba(20, 41, 64, 0.18);
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 46em;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head p { margin-top: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-soft); }

.btn-ghost {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-light {
  background: var(--cream);
  color: var(--navy);
}
.btn-light:hover { background: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 620;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--navy-soft); }
.site-nav a.active { color: var(--navy); font-weight: 650; }
.site-nav .btn { padding: 0.6rem 1.4rem; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; background: var(--navy-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero .lede { margin-bottom: 2.2rem; }
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-figure {
  position: relative;
}
.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -0.9rem;
  border: 1.5px solid var(--gold-soft);
  border-radius: calc(var(--radius) + 6px);
}

/* ---------- Credibility strip ---------- */

.cred-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-deep);
}
.cred-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1.6rem 0;
}
.cred-item {
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.4;
}
.cred-item svg { flex-shrink: 0; color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-alt { background: #fdfcf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Intro statement */
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  color: var(--navy);
  max-width: 54rem;
}
.statement strong { color: var(--gold); font-weight: 600; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.3rem;
}
.service-card h3 { margin-bottom: 0.7rem; }
.service-card p { font-size: 1rem; color: var(--muted); }

/* ---------- Photo band ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.photo-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.photo-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.photo-grid figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Founder teaser / about ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.portrait-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.portrait-card img {
  width: 170px;
  margin: 0 auto 1rem;
  border-radius: 8px;
}
.portrait-card .name {
  font-family: var(--font-serif);
  font-weight: 620;
  color: var(--navy);
  font-size: 1.1rem;
}
.portrait-card .role {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.founder-copy h2 { margin-bottom: 1.2rem; }
.founder-copy p { margin-bottom: 1.2rem; }
.founder-copy .btn { margin-top: 0.5rem; }

blockquote.pull {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--navy);
}

/* Credentials list (about page) */
.cred-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.cred-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
}
.cred-list svg { flex-shrink: 0; margin-top: 4px; color: var(--gold); }

.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.aside-card h3 { margin-bottom: 0.4rem; }
.aside-card .sub { font-size: 1rem; color: var(--muted); }

/* ---------- Mission page ---------- */

.mission-hero {
  background: var(--navy);
  color: #e9eef5;
  padding: 5.5rem 0;
}
.mission-hero h1 { color: #fff; margin-bottom: 1.6rem; }
.mission-hero .statement { color: #f4f0e6; max-width: 56rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { font-size: 1rem; color: var(--muted); }

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

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 22em; }
.cta-band p { color: #c3d0e0; margin-top: 0.7rem; max-width: 38em; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

.contact-aside .aside-card + .aside-card { margin-top: 1.2rem; }
.contact-aside p { font-size: 1rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 4.5rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18em; }
.page-hero .lede { margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b7c4d4;
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand .brand-name { color: #f2eee5; }
.footer-brand .brand-sub { color: #8fa0b5; }
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  max-width: 26em;
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #d5deea;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  font-size: 0.9rem;
  color: #8fa0b5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 3.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero-figure { max-width: 460px; }
  .services-grid, .photo-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .portrait-card { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cred-inner { grid-template-columns: 1fr; gap: 0.9rem; }
}

@media (max-width: 640px) {
  .services-grid, .photo-grid, .pillars, .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.2rem;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 0; width: 100%; }
  .site-nav .btn { margin-top: 0.6rem; text-align: center; }
}
