/* Great Southern Lime — site styles */

:root {
  --green: #0b5e33;          /* logo green */
  --green-dark: #07401f;
  --ink: #1c1c1a;
  --ink-soft: #4a4a45;
  --lime: #f6f2e8;           /* limestone cream */
  --sand: #e7dcc3;
  --line: #d8cfbb;
  --white: #fff;
  --radius: 10px;
  --wrap: 1160px;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #e0a400; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: var(--green-dark); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.measure { max-width: 68ch; }
.small { font-size: .9rem; }
.muted { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--green);
  margin-bottom: .4em;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .03em;
  text-decoration: none;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  padding: .6em 1.3em;
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-small { font-size: 1rem; padding: .4em 1.1em; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .03em;
  color: var(--ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--lime); }
  .site-nav li .btn { margin-top: 14px; text-align: center; display: block; }
  .brand-text { font-size: 1.15rem; }
}
/* Without JS, keep the menu visible on small screens */
.no-js .site-nav { display: block; position: static; box-shadow: none; }

/* Notice */
.notice { background: #fff4d6; border-bottom: 1px solid #ecd9a0; }
.notice p { margin: 0; padding: 12px 0; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(86vh, 760px); display: grid; align-items: end; isolation: isolate; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(4,32,16,.82) 100%);
}
.hero-content { padding-block: 120px 64px; max-width: var(--wrap); }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero .eyebrow { color: #d7ecd9; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Facts strip */
.facts { background: var(--green-dark); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.15); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; line-height: 1; margin: 0 0 8px; }
.fact-value span { font-size: 1.4rem; margin-left: 2px; opacity: .85; }
.fact-label { margin: 0; line-height: 1.35; font-weight: 500; }
.fact-label small { font-weight: 400; opacity: .8; font-size: .85rem; }
@media (max-width: 899px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--lime); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }

.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .5em; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Table */
.table-scroll { overflow-x: auto; margin: 28px 0 12px; }
table.data { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table.data caption { text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--ink-soft); }
table.data th, table.data td { padding: 12px 18px; text-align: right; border-bottom: 1px solid var(--lime); }
table.data th:first-child { text-align: left; }
table.data thead th { background: var(--green); color: var(--white); font-weight: 600; font-size: .95rem; }
table.data tbody th { font-weight: 500; }
table.data tfoot th, table.data tfoot td { font-weight: 700; background: #eef4ef; }
table.data td { font-variant-numeric: tabular-nums; }

/* Downloads */
.downloads { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.download {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.download:hover { border-color: var(--green); box-shadow: 0 6px 18px -8px rgba(0,0,0,.25); color: var(--ink); }
.download small { color: var(--ink-soft); }
.download-type {
  flex: none; display: grid; place-items: center; width: 48px; height: 56px;
  background: var(--green); color: var(--white); border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .05em;
}
.section:not(.section-alt) .download { background: var(--lime); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-top: 12px; }
.card {
  background: var(--lime); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  border-top: 5px solid var(--green); display: flex; flex-direction: column; align-items: flex-start;
}
.card p { flex: 1; }

/* Community */
.subhead { margin-top: 1.6em; color: var(--ink); }
.partners { list-style: none; margin: 20px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.partners li {
  display: grid; place-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  width: 260px; height: 150px; padding: 18px;
}
.partners img { max-height: 110px; width: auto; object-fit: contain; }

/* Gallery */
.gallery-section { padding: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #e9e6dd; padding-top: 64px; }
.site-footer a { color: #b9e2c4; }
.site-footer a:hover { color: var(--white); }
.site-footer .muted { color: #a9a597; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { width: 150px; background: var(--white); border-radius: 12px; padding: 12px; }
.footer-head { font-size: 1.25rem; color: var(--white); text-transform: uppercase; letter-spacing: .08em; }
address { font-style: normal; margin-bottom: 1em; }
.footer-base { border-top: 1px solid #3a3a36; padding-block: 24px; font-size: .9rem; color: #a9a597; }
.footer-base p { margin: 0 0 .5em; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .hero-actions, .nav-toggle, .gallery-section { display: none; }
  .hero { min-height: 0; color: var(--ink); }
  .hero-bg, .hero::after { display: none; }
}
.no-js .nav-toggle { display: none; }

@media (max-width: 599px) {
  table.data { min-width: 0; font-size: .95rem; }
  table.data th, table.data td { padding: 10px 8px; }
  table.data thead th { font-size: .85rem; }
  .partners li { width: calc(50% - 10px); height: 120px; }
}

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 16px; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.product img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-body { padding: 20px 22px 8px; }
.product-body h3 { color: var(--green-dark); }
.product-tag {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--sand); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 899px) { .products { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; line-height: 1; color: var(--green);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--green); }
.faq details p { margin: 0 0 20px; max-width: 68ch; color: var(--ink-soft); }
@media (max-width: 599px) { .products { grid-template-columns: 1fr; } }
