
:root{
  --bg:#050706; --panel:#0b0e0c; --panel2:#0f1410; --text:#f2f4f1;
  --muted:#b8bfb8; --green:#93bf3d; --green2:#b2d957; --blue:#3f7fd8;
  --line:#263423; --max:1900px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.site-header{position:sticky;top:0;z-index:20;background:rgba(5,7,6,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{max-width:var(--max);margin:auto;height:78px;padding:0 24px;display:flex;align-items:center;gap:26px}
.brand{display:flex;align-items:center;margin-right:auto}
.brand img{width:150px;height:45px;object-fit:cover;object-position:center}
.nav-links{display:flex;gap:18px;align-items:center;font-size:13px;font-weight:650;letter-spacing:.02em;white-space:nowrap}
.nav-links a{padding:28px 0 25px;border-bottom:2px solid transparent;color:#dfe3df}
.nav-links a:hover,.nav-links a.active{color:var(--green2);border-color:var(--green)}
.menu-toggle{display:none;background:none;border:1px solid var(--line);color:white;padding:9px 12px;border-radius:8px}
main{overflow:hidden}
.wrap{width:min(var(--max),calc(100% - 48px));margin:auto}
.hero{min-height:610px;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding:82px 0 72px;position:relative}
.hero::after,.botanical-bg::after{content:"";position:absolute;right:-120px;top:10px;width:600px;height:600px;background:url("/assets/botanical.svg") center/contain no-repeat;pointer-events:none}
.eyebrow{color:var(--blue);font-size:14px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(48px,6.8vw,84px);line-height:.98;letter-spacing:-.045em;margin-bottom:24px}
h1 .accent,h2 .accent{color:var(--green2)}
h2{font-size:clamp(34px,4vw,54px);line-height:1.02;letter-spacing:-.035em;margin-bottom:22px}
h3{font-size:20px;letter-spacing:-.015em}
.lead{font-size:20px;color:#dde2dd;max-width:720px}
.muted{color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border:1px solid #5c7e39;border-radius:8px;background:#426225;color:white;font-weight:750;transition:.2s}
.button:hover{transform:translateY(-1px);background:#527a2d}
.button.ghost{background:transparent;border-color:var(--line)}
.spec-strip{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.spec{border:1px solid var(--line);padding:10px 14px;border-radius:999px;color:#dce5d6;background:rgba(17,26,16,.6)}
.spec strong{color:var(--green2)}
.product-composition{position:relative;z-index:2;filter:drop-shadow(0 22px 45px rgba(0,0,0,.55))}
.section{padding:78px 0;border-top:1px solid rgba(38,52,35,.55);position:relative}
.section.alt{background:linear-gradient(180deg,#080b09,#050706)}
.kicker{font-size:13px;color:var(--green2);font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:14px}
.grid{display:grid;gap:20px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:16px;padding:24px}
.card h3{color:var(--green2);margin-bottom:8px}
.card p:last-child{margin-bottom:0}
.plant-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.plant-list span{border:1px solid var(--line);background:#0a0e0b;padding:10px 14px;border-radius:9px;color:#dce5d8}
.step{display:grid;grid-template-columns:54px 1fr;gap:18px;align-items:start;padding:25px 0;border-bottom:1px solid var(--line)}
.step-num{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--green);color:var(--green2);font-weight:800}
.story{max-width:780px}
.story p{font-size:18px;color:#d6dbd6}
.pull{font-size:28px!important;color:var(--green2)!important;font-weight:750;border-left:3px solid var(--green);padding-left:20px;margin:34px 0}
.vendor-card{display:flex;flex-direction:column;min-height:250px}
.vendor-logo-placeholder{height:84px;border:1px dashed #566452;border-radius:10px;display:grid;place-items:center;color:#aab2aa;margin-bottom:20px;text-align:center;padding:12px}
.contact-row{display:flex;gap:12px;flex-wrap:wrap}
.notice{border:1px solid var(--line);border-left:3px solid var(--green);padding:18px 20px;background:#0a0e0b;border-radius:9px;color:#cbd1cb}
.site-footer{border-top:1px solid var(--line);padding:44px 0 60px;background:#030403}
.footer-grid{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:end}
.footer-logo{width:160px;height:45px;object-fit:cover}
.footer-small{font-size:13px;color:#828a82}
.logo-lockup{max-width:410px;margin-bottom:24px}
table{width:100%;border-collapse:collapse;background:#090c0a;border:1px solid var(--line);border-radius:12px;overflow:hidden}
th,td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--line)}
th{color:var(--green2);font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.mobile-note{display:none}
@media(max-width:1050px){
  .nav-links{gap:12px;font-size:12px}
  .brand img{width:130px}
}
@media(max-width:900px){
  .menu-toggle{display:block}
  .nav-links{display:none;position:absolute;left:0;right:0;top:78px;background:#050706;border-bottom:1px solid var(--line);padding:15px 24px 25px;flex-direction:column;align-items:flex-start}
  .nav-links.open{display:flex}
  .nav-links a{padding:9px 0;border-bottom:none}
  .hero{grid-template-columns:1fr;padding-top:58px;min-height:auto}
  .hero::after{opacity:.45}
  .hero-media{max-width:560px}
  .grid.three,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .wrap{width:min(100% - 30px,var(--max))}
  .section{padding:58px 0}
  h1{font-size:49px}
  h2{font-size:36px}
  .lead{font-size:18px}
  .grid.two,.grid.three,.grid.four{grid-template-columns:1fr}
  .hero{gap:25px;padding:48px 0}
  .footer-grid{grid-template-columns:1fr}
  .product-composition{max-width:460px}
}

.vendor-logo-wrap{
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
  padding:8px 12px;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
}
.vendor-logo-wrap img{
  max-width:100%;
  max-height:92px;
  width:auto;
  height:auto;
  object-fit:contain;
}


/* --- Mobile centering / overflow fixes --- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body { position: relative; }
.site-header, main, .site-footer {
  width: 100%;
  max-width: 100%;
}
.nav {
  width: min(var(--max), 100%);
  margin-inline: auto;
}
.wrap { margin-inline: auto; }
.grid, .grid > *, .hero, .hero > *, .card, .story, .vendor-card {
  min-width: 0;
}
.hero, .section { width: 100%; }
.hero-media {
  width: 100%;
  max-width: 100%;
  justify-self: center;
}
.product-composition { margin-inline: auto; }
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 900px) {
  .nav { padding-inline: 18px; }
  .hero {
    width: min(var(--max), calc(100% - 30px));
    margin-inline: auto;
  }
  .hero::after,
  .botanical-bg::after {
    right: -260px;
    max-width: 85vw;
    opacity: .28;
    pointer-events: none;
  }
}
@media (max-width: 640px) {
  .wrap,
  .hero {
    width: calc(100% - 30px);
    max-width: 100%;
    margin-inline: auto;
  }
  .nav { padding-inline: 15px; }
  .brand img { max-width: 138px; }
  h1, h2, h3, p, .lead { max-width: 100%; }
  h1 { overflow-wrap: anywhere; }
  .spec-strip, .plant-list, .contact-row { max-width: 100%; }
  .spec, .plant-list span, .button { max-width: 100%; }
  .hero::after,
  .botanical-bg::after {
    right: -300px;
    width: 520px;
    height: 520px;
    opacity: .2;
  }
}


/* --- Mobile asset containment fixes --- */
.brand,
.footer-logo {
  overflow: visible;
}
.brand img,
.footer-logo {
  object-fit: contain !important;
  object-position: left center !important;
  width: auto !important;
  height: auto !important;
  max-height: 46px;
  max-width: 170px;
}
.logo-lockup {
  width: auto;
  height: auto;
  max-width: min(410px, 100%);
  object-fit: contain;
}
.hero-media,
.product-composition {
  overflow: visible !important;
}
.product-composition {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.vendor-logo-wrap img {
  object-fit: contain !important;
  object-position: center !important;
}
@media (max-width: 900px) {
  .hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
  }
  .product-composition {
    max-width: min(560px, 92vw);
  }
}
@media (max-width: 640px) {
  .brand img {
    max-width: 145px;
    max-height: 40px;
  }
  .logo-lockup {
    max-width: 92vw;
    margin-left: 0;
    margin-right: auto;
  }
  .hero-media {
    width: 100%;
    max-width: 100%;
    padding-inline: 4px;
  }
  .product-composition {
    max-width: 94vw;
    width: auto;
    margin-inline: auto;
  }
  .footer-logo {
    max-width: 150px;
    max-height: 42px;
  }
}

/* --- Vivaria header logo size update --- */
.brand img {
  max-width: 205px !important;
  width: 205px !important;
  max-height: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 640px) {
  .brand img {
    width: 175px !important;
    max-width: 175px !important;
    height: 50px !important;
    max-height: 50px !important;
  }
}


/* Requested logo sizing update */
.brand img {
  max-width: 205px !important;
  max-height: 58px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.logo-lockup {
  max-width: 330px !important;
  width: 100% !important;
  height: auto !important;
}
@media (max-width: 640px) {
  .brand img {
    max-width: 180px !important;
    max-height: 52px !important;
  }
  .logo-lockup {
    max-width: 265px !important;
    width: 78% !important;
  }
}

/* Vivaria header logo — slightly larger */
.brand img {
  max-width: 225px !important;
  max-height: 64px !important;
}
@media (max-width: 640px) {
  .brand img {
    max-width: 198px !important;
    max-height: 57px !important;
  }
}

/* --- Desktop spacing refinement v10.8: broad desktop canvas --- */
@media (min-width: 1101px) {
  .nav,
  .wrap {
    width: min(var(--max), 98%);
    margin-inline: auto;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav,
  .wrap {
    width: calc(100% - 64px);
    margin-inline: auto;
  }
}

/* v10.4: larger Vivaria header logo */
.brand img {
  width: 220px;
  height: 64px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 1050px) {
  .brand img { width: 190px; height: 58px; }
}
@media (max-width: 900px) {
  .brand img { width: 180px; height: 54px; }
}
