/* ===================== Design tokens ===================== */
:root {
  /* ---- Official brand palette (GUIDE BOOK AANA TERRA, Sept 2026) ----
     Primary — dark/light blue and green, these lead all brand communications. */
  --color-navy: #1c496d;         /* C=90 M=30 Y=0 K=60 */
  --color-sky: #83c0d8;          /* C=53 M=5  Y=10 K=0 */
  --color-green: #73a852;        /* C=67 M=11 Y=100 K=1 */

  /* Secondary — yellow and light green, warmth and energy, used sparingly. */
  --color-gold: #dccd52;         /* C=15 M=12 Y=95 K=0 */
  --color-green-light: #bbd470;  /* C=33 M=0  Y=80 K=0 */

  /* ---- Derived shades: tints and shades of the five brand colors above,
     for depth and text legibility. No new hues are introduced. ---- */
  --color-navy-dark: #123049;    /* navy, darkened — footer, overlays */
  --color-near-black: #0e2436;   /* navy, darkest — product card panel */
  --color-sky-tint: #eff6fa;     /* sky, ~90% white — light section backgrounds */
  --color-green-tint: #e4efdc;   /* green, ~78% white — alternating section bands */
  --color-gold-accent: #e7dd8f;  /* gold, lightened — accents on dark panels */
  --color-text-dark: #1f3245;    /* navy-derived body text */
  --color-text-muted: #55697a;   /* navy-derived secondary body text */
  --color-text-light: #fbfdff;

  /* Cards inside Our Projects: translucent white so the green band shows through. */
  --card-bg: rgba(255, 255, 255, 0.7);

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container-width: 1140px;
  --section-padding: 5rem 0;
  --header-height: 96px;
}

/* ===================== Reset ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  background: var(--color-sky-tint);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2; /* Lucide icons are drawn for a 2px stroke */
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  margin-right: 0.4em;
}
.icon-lg { width: 2.5rem; height: 2.5rem; margin: 0 0 0.75rem; }

/* Section icon: a bare line icon above each section heading, chosen to match
   what the section is about (a mountain for Our Story, a compass for Our Projects).
   All icons are Lucide (lucide.dev) — see the sprite at the top of index.html. */
.section-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== Buttons ===================== */
.btn-pill {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-pill:hover { transform: translateY(-2px); opacity: 0.92; }

/* Buttons use the primary green; secondary colors are reserved for text. */
.btn-pill--primary { background: var(--color-green); color: var(--color-navy-dark); }

/* ===================== Header / nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  height: var(--header-height);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 76px; width: auto; }
.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-gold-accent); }
.nav-cta {
  background: var(--color-green);
  color: var(--color-navy-dark) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
}
.nav-toggle {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle .icon { margin: 0; width: 1.6rem; height: 1.6rem; }

/* mobile nav panel */
.main-nav.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-navy);
  padding: 1.5rem;
}

/* section anchor offset for sticky header */
section[id] { scroll-margin-top: var(--header-height); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  overflow: hidden;
}
/* Carousel (shared by the hero background and the Trail card): a row of
   full-width slides that js/main.js shifts left on a timer. The moving track
   must sit inside a static clipping frame — the hero section itself, or a
   .carousel-frame wrapper. */
.carousel-frame { position: relative; overflow: hidden; }
.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.2s ease;
}
.carousel.no-transition { transition: none; }
.carousel > img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-carousel { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,73,109,0.25) 0%, rgba(18,48,73,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
/* The logo is the title, centred and large; a short tagline sits under it. */
.hero-brand { margin: 0 0 1.5rem; }
.hero-logo { height: 14rem; width: auto; margin: 0 auto; }
.hero-tagline {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}

/* ===================== Our Story ===================== */
.story { background: var(--color-sky-tint); padding: var(--section-padding); text-align: center; }
.story-inner { max-width: 720px; margin: 0 auto; }
.story h2 { font-size: 2.1rem; color: var(--color-navy-dark); }
.story p { color: var(--color-text-muted); }

/* ===================== Our Projects ===================== */
.projects { background: var(--color-green); padding: var(--section-padding); text-align: center; }
.projects h2 { font-size: 2.1rem; color: var(--color-navy-dark); margin-bottom: 2rem; }

/* Tab bar — one pill per project, all the same width. Active pill is primary light blue. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 auto;       /* on phones the tabs share one row… */
  min-width: 8.5rem;
  padding: 0.8rem 1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-navy-dark);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tab .icon { margin: 0; width: 1.3em; height: 1.3em; }
.tab:hover { background: rgba(255, 255, 255, 0.6); transform: translateY(-1px); }
.tab:focus-visible { outline: 3px solid var(--color-navy-dark); outline-offset: 2px; }
.tab.is-active {
  background: var(--color-sky);
  border-color: var(--color-navy-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tab-panel[hidden] { display: none; }

/* Project card: a dark text panel beside a photo (or a carousel of photos). */
.product-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.product-card:last-child { margin-bottom: 0; }
.product-card-media { width: 100%; height: 320px; object-fit: cover; }
.product-card-details {
  background: var(--color-near-black);
  color: var(--color-text-light);
  padding: 2rem;
}
.product-card-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-green-light); /* secondary, as text on the dark panel */
  margin-bottom: 0.5rem;
}
.product-card-details h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.product-card-details p { color: #c6d5e0; }
.product-card-details p:last-child { margin-bottom: 0; }

/* Facts inside the dark panel: a compact spec table, label left / value right. */
.product-facts {
  margin: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.product-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.product-facts dt {
  flex: 0 0 auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sky);
}
.product-facts dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* Links inside the dark panel: secondary yellow, used as text only. */
.panel-link {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panel-link:hover { color: var(--color-gold-accent); }

/* Difference cards (olive oil panel) */
.panel-subheading {
  font-size: 1.5rem;
  color: var(--color-navy-dark);
  margin: 3.5rem 0 1.75rem;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}
/* Compact card: icon sits on the same line as the title, description below. */
.diff-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
/* Light blue is too pale to read as a bare icon on white, so it becomes the
   circle and the navy carries the glyph. */
.diff-card .icon-lg {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  color: var(--color-navy);
  background: var(--color-sky);
  border-radius: 50%;
  padding: 0.45rem;
  width: 2.25rem;
  height: 2.25rem;
}
.diff-card h3 { grid-row: 1; grid-column: 2; margin: 0; font-size: 1rem; color: var(--color-navy-dark); }
.diff-card p { grid-row: 2; grid-column: 2; margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--color-text-dark); }

/* ===================== Awards ===================== */
.awards { background: var(--color-navy); color: var(--color-text-light); padding: var(--section-padding); text-align: center; }
.awards-inner { max-width: 560px; margin: 0 auto; }
.awards-badge { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 1.5rem; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.awards h2 { font-size: 2rem; }
.awards p { opacity: 0.9; }

/* ===================== Contact ===================== */
.contact { position: relative; color: var(--color-text-light); padding: var(--section-padding); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.contact-overlay { position: absolute; inset: 0; background: rgba(18,48,73,0.9); z-index: 0; }
.contact-inner { position: relative; z-index: 1; text-align: center; }
.contact-inner h2 { font-size: 2.1rem; }
.contact-inner > p { max-width: 520px; margin: 0 auto 2.5rem; opacity: 0.9; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info p { display: flex; align-items: center; margin-bottom: 1rem; font-size: 1rem; }
.contact-info a:hover { text-decoration: underline; }
.contact-sep { margin: 0 0.5rem; opacity: 0.5; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255,255,255,0.05);
  padding: 1.75rem;
  border-radius: 12px;
}
.contact-form label { font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.contact-form .optional { font-weight: 400; opacity: 0.7; }
.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form button { margin-top: 1rem; align-self: flex-start; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-kind="success"] { color: var(--color-green-light); }
.form-status[data-kind="error"] { color: var(--color-gold-accent); }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }

/* Off-screen but still in the DOM (used for the spam-trap field). */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}

/* ===================== Footer ===================== */
.site-footer { background: var(--color-navy-dark); color: var(--color-text-light); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.footer-logo { height: 52px; width: auto; }
.footer-inner p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* ===================== Image load state ===================== */
.carousel > img, .contact-bg,
.product-card-media,
.awards-badge {
  background: var(--color-green-tint);
}

/* ===================== Responsive ===================== */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }

  .hero-logo { height: 18rem; }
  .hero-tagline { font-size: 2.6rem; }

  /* Olive Oil: text panel left, photo right. Trail (--reverse): photo left, text right. */
  .product-card { grid-template-columns: 42% 1fr; }
  .product-card-details { order: 1; display: flex; flex-direction: column; justify-content: center; }
  .product-card-media { order: 2; height: 100%; min-height: 320px; } /* fill the panel's height */
  .product-card--reverse { grid-template-columns: 1fr 42%; }
  .product-card--reverse .product-card-media { order: 1; }
  .product-card--reverse .product-card-details { order: 2; }

  .tab { flex: 0 0 auto; min-width: 11rem; padding: 0.9rem 1.25rem; font-size: 1.2rem; } /* …and sit at a fixed size on wider screens */

  .diff-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

@media (min-width: 1024px) {
  .hero-logo { height: 21rem; }
  .hero-tagline { font-size: 3rem; }
}
