/* Arbol Studio — forest green / limestone / warm neutrals.
   Green comes from the logo (#8EC440); "arbol" means tree.
   Square corners, 1px rules, generous space: editorial, not e-commerce.

   Contrast, measured against --limestone unless noted:
     forest 12.30:1 · moss 7.32:1 · muted 5.47:1 · brand 1.81:1
   --brand is the logo green: an ACCENT ONLY. At 1.81:1 on limestone it can
   never carry text on a light surface. On --forest it reaches 6.79:1, so it is
   safe for text and marks on dark bands. Use --moss where an accent must sit
   on a light background. */

:root {
  --forest: #1b3020;
  --pine: #2a4a2f;
  --moss: #31562f;
  --brand: #8ec440;
  --taupe: #a79b8d;
  --stone: #cfc5b8;
  --limestone: #f3efe8;
  --white: #fff;

  /* Accent tokens are split by surface so contrast cannot be got wrong. */
  --accent-on-dark: var(--brand);
  --accent-on-light: var(--moss);

  --bg: var(--limestone);
  --fg: var(--forest);
  --muted: #5a6355;
  --rule: var(--stone);

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  --wrap: 1280px;
  --narrow: 760px;
  --t: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.section { padding: var(--s8) 0; }
.section-sm { padding: var(--s7) 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--limestone); padding: var(--s3);
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-header {
  background: var(--forest); color: var(--limestone);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(207, 197, 184, .15);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s5);
  padding-top: var(--s3); padding-bottom: var(--s3);
}
.logo {
  font-family: "Outfit", sans-serif; font-weight: 700;
  letter-spacing: .18em; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.logo img { width: 34px; height: 34px; flex-shrink: 0; }
.logo-accent { color: var(--accent-on-dark); }
.main-nav { flex: 1; }
.main-nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: var(--s4); margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .07em;
  text-transform: uppercase; font-weight: 500;
  border-bottom: 2px solid transparent; padding-bottom: 3px;
  transition: color var(--t), border-color var(--t);
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent-on-dark); border-bottom-color: var(--accent-on-dark); }
.header-cta { display: flex; align-items: center; gap: var(--s3); }
.phone { color: var(--accent-on-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--limestone); }

/* Buttons — square, tracked, uppercase */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; /* touch target floor */
  border: 1px solid transparent; border-radius: 0;
  padding: 13px 26px; font-family: "Outfit", sans-serif; font-weight: 600;
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all var(--t);
}
.btn-solid { background: var(--limestone); color: var(--forest); }
.btn-solid:hover { background: var(--brand); color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--limestone); }
.btn-dark:hover { background: var(--pine); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--limestone); }
.btn-light { background: var(--limestone); color: var(--forest); }
.btn-light:hover { background: var(--brand); color: var(--forest); }
.btn-ghost-light { background: transparent; color: var(--limestone); border-color: var(--limestone); }
.btn-ghost-light:hover { background: var(--limestone); color: var(--forest); }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; }

/* Breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--rule); font-size: .82rem; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2);
  margin: 0; padding: var(--s3) 0; color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--stone); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-on-light); }

/* Hero */
.hero { background: var(--forest); color: var(--limestone); padding: var(--s8) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); align-items: center; }
.hero h1 { color: var(--limestone); }
.hero .lead { color: rgba(243, 239, 232, .82); }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid rgba(207, 197, 184, .2);
}
.hero-fact strong {
  display: block; font-family: "Outfit", sans-serif;
  font-size: 1.6rem; color: var(--accent-on-dark); line-height: 1;
}
.hero-fact span { font-size: .82rem; color: rgba(243, 239, 232, .7); }

/* Editorial columns */
.editorial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ed-col { padding: 0 var(--s5); border-right: 1px solid var(--rule); }
.ed-col:first-child { padding-left: 0; }
.ed-col:last-child { border-right: 0; padding-right: 0; }
.ed-num { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent-on-light); line-height: 1; margin-bottom: var(--s3); }
.ed-col p { color: var(--muted); font-size: .96rem; }

/* Product grid */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card-media { background: var(--white); border: 1px solid var(--rule); overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3/4; object-fit: contain; transition: transform 400ms ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-brand { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-light); margin-top: var(--s3); }
.card-name { font-family: "Outfit", sans-serif; font-weight: 500; font-size: .96rem; margin: var(--s1) 0 var(--s2); line-height: 1.35; }
.card-price { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--forest); }
.card-price .from { font-size: .74rem; color: var(--muted); font-weight: 400; }

/* Category cards */
.grid-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.cat-card {
  position: relative; min-height: 340px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--s6); color: var(--limestone);
  text-decoration: none; overflow: hidden; background: var(--pine);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,48,32,.15) 0%, rgba(27,48,32,.85) 100%); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card > * { position: relative; z-index: 2; }
.cat-card h3 { font-size: 1.5rem; margin-bottom: var(--s2); color: var(--limestone); }
.cat-card p { font-size: .92rem; color: rgba(243,239,232,.82); margin: 0; }
.cat-count { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--s2); }

/* Product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.product-media { background: var(--white); border: 1px solid var(--rule); }
.product-media img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.product-price { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 700; margin: var(--s3) 0; color: var(--forest); }
.product-meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-light); }
.stock { display: inline-block; font-size: .78rem; padding: 4px 12px; border: 1px solid var(--rule); color: var(--muted); }
.stock.in { border-color: var(--accent-on-light); color: var(--accent-on-light); }
.product-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0; }

/* Tables — LLM-friendly structured facts */
.spec-table { width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s5); font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; font-family: "Work Sans", sans-serif; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; padding: var(--s4) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-on-light); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 500; }
.faq-answer { padding-bottom: var(--s4); color: var(--muted); }
.faq-answer p { margin: 0; }

/* Dark bands */
.cta-band, .section-dark { background: var(--pine); color: var(--limestone); }
.cta-band h2, .section-dark h2, .section-dark h3 { color: var(--limestone); }
.cta-band p { color: rgba(243,239,232,.85); max-width: 52ch; margin-inline: auto; }

/* Prose (blog) */
.prose { max-width: var(--narrow); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose a { color: var(--accent-on-light); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-on-light); }
.meta-line { font-size: .84rem; color: var(--muted); margin-bottom: var(--s5); }
.callout { border-left: 2px solid var(--brand); padding: var(--s3) 0 var(--s3) var(--s4); margin: var(--s5) 0; background: rgba(142,196,64,.08); }
.callout p { margin: 0; }

/* Lists */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s4) 0; text-decoration: none; align-items: baseline; }
.link-list a:hover { color: var(--accent-on-dark); }
.link-list .ll-title { font-family: "Outfit", sans-serif; font-weight: 500; }
.link-list .ll-meta { font-size: .84rem; color: var(--muted); flex-shrink: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filters a {
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--rule); text-decoration: none; transition: all var(--t);
}
.filters a:hover, .filters a[aria-current] { background: var(--forest); color: var(--limestone); border-color: var(--forest); }

/* Form */
.form-grid { display: grid; gap: var(--s4); max-width: 560px; }
.field label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: var(--s2); color: var(--pine); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--stone); border-radius: 0;
  background: var(--white); font: inherit; font-size: .96rem; color: var(--forest);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-on-light); box-shadow: 0 0 0 3px rgba(142,196,64,.35); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: var(--s1); }

/* NAP + reviews */
.nap { font-size: .94rem; line-height: 1.7; }
.nap p { margin: 0 0 var(--s2); }
.nap-name { font-family: "Outfit", sans-serif; font-weight: 600; }
.nap a { color: var(--accent-on-dark); text-decoration: none; }
.nap-hours { color: var(--muted); font-size: .88rem; }
.review { border-top: 1px solid var(--rule); padding: var(--s5) 0; }
.review-stars { color: var(--accent-on-light); letter-spacing: .1em; }
.review-meta { font-size: .84rem; color: var(--muted); }

/* "Ask an AI about us" band */
.ai-ask {
  background: var(--pine);
  padding: var(--s7) 0;
  margin-bottom: var(--s8);
  border-bottom: 1px solid rgba(207, 197, 184, .15);
}
.ai-lead { color: rgba(243, 239, 232, .8); max-width: 60ch; margin-bottom: var(--s4); }
.ai-prompt {
  margin: 0 0 var(--s5); padding: var(--s4);
  border-left: 2px solid var(--brand);
  background: rgba(0, 0, 0, .18);
  color: var(--limestone);
  font-size: .96rem; line-height: 1.6; max-width: 78ch;
}
.ai-links { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: stretch; }
.ai-link {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 44px; /* touch target floor */
  padding: 12px 22px; border: 1px solid var(--brand); border-radius: 0;
  background: transparent; color: var(--brand);
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: .74rem;
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: all var(--t);
}
.ai-link:hover { background: var(--brand); color: var(--forest); }
.ai-note {
  display: block; font-size: .62rem; letter-spacing: .04em;
  text-transform: none; font-weight: 400; opacity: .75; margin-top: 2px;
}
.ai-copy { border-style: dashed; }

/* Footer */
.site-footer { background: var(--forest); color: var(--limestone); padding: 0 0 var(--s5); margin-top: var(--s8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s6); }
.footer-h { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--s4); font-family: "Outfit", sans-serif; }
.footer-about { font-size: .9rem; color: rgba(243,239,232,.68); margin-top: var(--s3); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--s2); }
.footer-links a { color: rgba(243,239,232,.72); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--accent-on-dark); }
.site-footer .nap { color: rgba(243,239,232,.72); }
.site-footer .nap-name { color: var(--limestone); }
.footer-cities { padding-top: var(--s5); margin-top: var(--s5); border-top: 1px solid rgba(207,197,184,.15); font-size: .86rem; color: rgba(243,239,232,.6); }
.footer-cities a { color: rgba(243,239,232,.75); text-decoration: none; }
.footer-cities a:hover { color: var(--accent-on-dark); }
.footer-bottom { padding-top: var(--s4); font-size: .82rem; color: rgba(243,239,232,.45); }
.footer-bottom p { margin: 0; }

/* Responsive */
/* The logo mark plus the phone/CTA pair leave too little room for an inline nav
   well before the tablet breakpoint, so the nav drops to its own row early and
   scrolls sideways rather than wrapping labels onto two lines. */
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: var(--s2) var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }
  .header-cta { margin-left: auto; gap: var(--s3); }
  .main-nav {
    order: 3; flex-basis: 100%; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { flex-wrap: nowrap; padding-bottom: var(--s2); gap: var(--s4); }
  .main-nav a { white-space: nowrap; }
}
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
}
@media (max-width: 860px) {
  .hero-grid, .product-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .editorial { grid-template-columns: 1fr; }
  .ed-col { padding: var(--s4) 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .ed-col:last-child { border-bottom: 0; }
  .grid-cats { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 10px 16px; }
  .section { padding: var(--s7) 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { display: flex; width: 100%; }
  .cta-row .btn { width: 100%; }
  .header-cta .btn { display: inline-block; width: auto; }
  .hero-facts { gap: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .breadcrumbs { display: none; }
}
