/*
Theme Name: Linnstone Florida
Theme URI: https://www.linnstoneflorida.com/
Author: Linnstone Florida
Description: Informational website theme for Linnstone Florida: quartz color library (editable from the dashboard), English and Spanish switcher, contact form with optional webhook (GoHighLevel, Zapier).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: linnstone-florida
*/

/* ---------- Tokens ---------- */
:root{
  --bg:#F0E8D9;          /* sand */
  --bg-alt:#F8F3EA;      /* shell */
  --surface:#FCFAF5;
  --ink:#2A1F18;         /* espresso */
  --muted:#6A594A;
  --line:rgba(42,31,24,.16);
  --accent:#44503E;      /* cypress */
  --accent-ink:#F7F1E5;
  --focus:#B88A3B;       /* ochre */
  --deep:#2A1F18;
  --deep-ink:#F0E8D9;
  --deep-muted:#BBAB94;
  --band2:#44503E;
  --band2-ink:#F3ECDD;
  --edge:rgba(255,255,255,.7);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#1C1510; --bg-alt:#231A14; --surface:#2B211A;
    --ink:#F0E6D6; --muted:#B9A995; --line:rgba(240,230,214,.17);
    --accent:#B9C59E; --accent-ink:#1C1510;
    --deep:#110C09; --deep-ink:#F0E6D6; --deep-muted:#B9A995;
    --band2:#263022; --band2-ink:#EFE6D6;
    --edge:rgba(240,230,214,.32);
  }
}
:root[data-theme="dark"]{
  --bg:#1C1510; --bg-alt:#231A14; --surface:#2B211A;
  --ink:#F0E6D6; --muted:#B9A995; --line:rgba(240,230,214,.17);
  --accent:#B9C59E; --accent-ink:#1C1510;
  --deep:#110C09; --deep-ink:#F0E6D6; --deep-muted:#B9A995;
  --band2:#263022; --band2-ink:#EFE6D6;
  --edge:rgba(240,230,214,.32);
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(72px + env(safe-area-inset-top,0px))}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:400 1.0625rem/1.62 'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Marcellus','Iowan Old Style','Palatino Linotype',Georgia,serif;
  font-weight:400;line-height:1.08;margin:0;letter-spacing:.005em;
}
p{margin:0}
img{max-width:100%;display:block}
a{color:inherit}
ul{margin:0;padding:0;list-style:none}
.wrap{width:min(1180px,100% - 2.5rem);margin-inline:auto}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:1rem;top:1rem;z-index:100;background:var(--ink);color:var(--bg);padding:.6rem 1rem}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.85rem 1.55rem;border-radius:2px;border:1.5px solid transparent;
  font-family:inherit;font-weight:600;font-size:.98rem;line-height:1.2;text-decoration:none;cursor:pointer;
  transition:background-color .2s,color .2s,border-color .2s;
}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{filter:brightness(1.12)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-ghost:hover{background:var(--ink);color:var(--bg)}
.deep .btn-primary{background:var(--deep-ink);color:var(--deep)}
.link{
  background:none;border:0;padding:0;font:inherit;font-weight:600;color:inherit;
  text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1.5px;cursor:pointer;
}

/* ---------- Header ---------- */
.top{
  position:sticky;top:0;z-index:50;
  background:var(--bg);
  background:color-mix(in srgb,var(--bg) 92%,transparent);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.top-in{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:68px}
.top-right{display:flex;align-items:center;gap:1.6rem}
.brand{
  font-family:'Marcellus',Georgia,serif;font-size:1.65rem;text-decoration:none;
  display:flex;align-items:baseline;gap:.55rem;line-height:1;white-space:nowrap;
}
.brand small{font:500 .85rem 'Hanken Grotesk',system-ui,sans-serif;color:var(--muted);letter-spacing:.02em}
.nav ul{display:flex;align-items:center;gap:1.7rem}
.nav-link{text-decoration:none;font-weight:500;font-size:.98rem;padding:.4rem 0;border-bottom:1.5px solid transparent}
.nav-link:hover{border-bottom-color:currentColor}
.nav .btn{padding:.6rem 1.15rem;white-space:nowrap}
.lang{display:flex;border:1.5px solid var(--line);border-radius:2px}
.lang button{
  background:none;border:0;padding:.38rem .7rem;font-family:inherit;font-weight:600;font-size:.85rem;
  color:var(--muted);cursor:pointer;
}
.lang button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.menu-btn{display:none;background:none;border:1.5px solid var(--line);border-radius:2px;padding:.5rem .9rem;font-family:inherit;font-weight:600;font-size:.95rem;color:inherit;cursor:pointer}
@media (max-width:1020px){
  .menu-btn{display:inline-block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);padding:1rem 1.25rem 1.6rem}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:stretch;gap:.4rem}
  .nav-link{padding:.8rem 0;font-size:1.1rem}
  .nav .btn{margin-top:.6rem}
  .top-right{gap:.8rem}
}
@media (max-width:420px){.brand small{display:none}}

/* ---------- Hero ---------- */
.hero{padding:clamp(2rem,5vw,4.5rem) 0 clamp(3.5rem,7vw,6rem)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr);gap:clamp(2.5rem,6vw,6rem);align-items:center}
.hero h1{font-size:clamp(2.8rem,6.4vw,5.5rem);max-width:11ch}
.lead{max-width:34rem;font-size:1.2rem;color:var(--muted);margin:1.5rem 0 2.1rem}
.hero-cta{display:flex;flex-wrap:wrap;gap:.8rem}
.chips-wrap{margin-top:1.6rem;width:min(100%,480px);margin-inline:auto 0}
.chips-note{font-size:.95rem;color:var(--muted);margin-bottom:.8rem}
.chips{display:flex;flex-wrap:wrap;gap:.8rem}
.chip{
  width:46px;height:46px;padding:0;border:0;background:none;cursor:pointer;
  outline:2px solid transparent;outline-offset:3px;border-radius:2px;
}
.chip img{width:100%;height:100%;object-fit:cover;border-radius:2px}
.chip[aria-pressed="true"]{outline-color:var(--ink)}
.chip:focus-visible{outline-color:var(--focus)}
.slab-wrap{position:relative;justify-self:end;width:min(100%,480px)}
.slab{
  position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:2px;background:var(--line);
  box-shadow:9px 9px 0 var(--edge),9px 9px 0 1px var(--line),0 50px 60px -30px rgba(20,14,10,.5);
}
.layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease}
.layer.in{opacity:1}
.sheen{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.34) 50%,transparent 62%);
  background-size:250% 100%;background-position:100% 0;
}
.slab.sweep .sheen{animation:sheen 2.4s cubic-bezier(.4,.1,.2,1) 1}
@keyframes sheen{from{background-position:100% 0}to{background-position:0% 0}}
.slab-tag{
  position:absolute;left:-1.7rem;bottom:2.2rem;z-index:2;min-width:11.5rem;
  background:var(--surface);color:var(--ink);padding:.9rem 1.2rem 1rem;
  box-shadow:0 14px 30px -14px rgba(20,14,10,.55);
}
.slab-tag strong{display:block;font:400 1.4rem/1.1 'Marcellus',Georgia,serif}
.slab-tag span{display:block;font-size:.88rem;color:var(--muted);margin-top:.3rem}
.slab-note{font-size:.85rem;color:var(--muted);text-align:right;margin-top:1.1rem}
@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr}
  .hero h1{max-width:none}
  .slab-wrap{justify-self:stretch;width:min(100%,460px);margin-inline:auto}
  .chips-wrap{margin-inline:auto}
  .slab-tag{left:.8rem;bottom:.8rem}
}

/* ---------- Sections ---------- */
.sec{padding:clamp(3.5rem,8vw,7rem) 0;scroll-margin-top:68px}
.bg-alt{background:var(--bg-alt)}
.deep{background:var(--deep);color:var(--deep-ink)}
.band2{background:var(--band2);color:var(--band2-ink)}
.sec-head{max-width:42rem;margin-bottom:2.6rem}
.sec-head h2{font-size:clamp(2.1rem,4.4vw,3.4rem)}
.sec-head p{color:var(--muted);margin-top:1rem;font-size:1.1rem}
.deep .sec-head p{color:var(--deep-muted)}

/* ---------- Color library ---------- */
.toolbar{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:flex-end;margin-bottom:1rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem}
.filter{
  font-family:inherit;font-weight:500;font-size:.95rem;line-height:1.2;padding:.5rem 1.05rem;cursor:pointer;
  border:1.5px solid var(--line);background:transparent;color:var(--ink);border-radius:2px;
}
.filter:hover{border-color:var(--ink)}
.filter[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.search{display:flex;flex-direction:column;gap:.35rem;width:min(100%,20rem)}
.search label{font-weight:600;font-size:.9rem}
.search input{
  font:inherit;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);
  border-radius:2px;padding:.6rem .8rem;width:100%;
}
.search input:focus{border-color:var(--ink);outline-offset:1px}
.count{font-size:.92rem;color:var(--muted);margin-bottom:1.8rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:1.9rem 1.2rem}
.grid li[hidden]{display:none}
.sw{display:block;width:100%;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.sw-img{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:var(--line)}
.sw-img img{width:100%;height:100%;object-fit:cover}
.badge{
  position:absolute;top:.5rem;left:.5rem;background:var(--surface);color:var(--ink);
  font-size:.78rem;font-weight:600;padding:.15rem .5rem;border-radius:2px;
}
.sw-name{display:block;font:400 1.18rem/1.2 'Marcellus',Georgia,serif;margin-top:.7rem}
.sw:hover .sw-name{text-decoration:underline;text-underline-offset:.2em}
.sw-code{display:block;color:var(--muted);font-size:.9rem}
.none{padding:2rem 0;color:var(--muted)}
.fine{font-size:.9rem;color:var(--muted)}
.grid-foot{margin-top:2.6rem;display:flex;flex-wrap:wrap;gap:.8rem 2rem;align-items:center;max-width:60rem}

/* ---------- Dialog ---------- */
dialog{
  border:0;padding:0;background:var(--bg-alt);color:var(--ink);
  width:min(900px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border-radius:3px;
}
dialog::backdrop{background:rgba(20,14,10,.62)}
dialog[open]{animation:pop .3s ease}
@keyframes pop{from{opacity:0;transform:translateY(12px)}}
.dlg-grid{display:grid;grid-template-columns:1fr 1fr}
.dlg-media{min-height:440px;position:relative}
.dlg-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dlg-body{padding:2.4rem 2.2rem 2.2rem;display:flex;flex-direction:column;gap:1rem;justify-content:center}
.dlg-body h3{font-size:2.3rem}
.dlg-meta{font-size:.95rem;color:var(--muted)}
.dlg-actions{display:flex;flex-wrap:wrap;gap:1rem 1.4rem;align-items:center;margin-top:.6rem}
.dlg-close{
  position:absolute;top:.7rem;right:.7rem;z-index:3;width:42px;height:42px;
  background:var(--surface);border:0;border-radius:2px;cursor:pointer;color:var(--ink);
  display:grid;place-items:center;
}
@media (max-width:720px){
  .dlg-grid{grid-template-columns:1fr}
  .dlg-media{min-height:0;aspect-ratio:16/10}
  .dlg-body{padding:1.6rem}
}

/* ---------- Ranges ---------- */
.ranges{display:grid;grid-template-columns:1.05fr .95fr;gap:1.4rem}
.rg-cal{grid-row:1 / span 2;display:flex;flex-direction:column;background:var(--bg-alt)}
.rg-media{position:relative;flex:1;min-height:340px}
.rg-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rg-copy{padding:1.7rem 1.8rem 2rem}
.rg h3{font-size:1.9rem;margin-bottom:.7rem}
.rg p{color:var(--muted)}
.rg-copy .link{display:inline-block;margin-top:1.1rem}
.rg-mega{padding:1.8rem;border:1.5px solid var(--line)}
.rg-mega svg{width:100%;height:auto;color:var(--ink);margin-bottom:1.2rem}
.rg-zul{background:var(--deep);color:var(--deep-ink);padding:2rem 1.8rem}
.rg-zul p{color:var(--deep-muted)}
.rg-zul ul{margin-top:1.3rem;display:grid;gap:.35rem;font-weight:500}
.ranges-note{margin-top:1.8rem;color:var(--muted)}
@media (max-width:860px){
  .ranges{grid-template-columns:1fr}
  .rg-cal{grid-row:auto}
}

/* ---------- Applications (slab yard) ---------- */
.yard{display:flex;gap:10px;height:min(560px,72vh)}
.ys{
  position:relative;flex:1 1 0;min-width:0;overflow:hidden;background-color:#8a7d6c;
  background-size:cover;background-position:center;
  transition:flex-grow .6s cubic-bezier(.3,.7,.2,1);
}
.ys.is-open{flex-grow:4.4}
.ys-tab{
  position:absolute;inset:0;width:100%;background:none;border:0;cursor:pointer;color:#F7F0E4;
  display:flex;align-items:flex-start;justify-content:center;padding:1.2rem 0 0;font:inherit;
}
.ys-tab span{
  writing-mode:vertical-rl;transform:rotate(180deg);
  font:400 1.3rem/1 'Marcellus',Georgia,serif;background:rgba(20,14,10,.64);padding:.9rem .5rem;white-space:nowrap;
  transition:opacity .25s;
}
.ys.is-open .ys-tab span{opacity:0}
.ys-body{position:absolute;inset:auto 0 0 0;padding:6rem 1.7rem 1.7rem;color:#F7F0E4;pointer-events:none;opacity:0;transition:opacity .3s}
.ys-body::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,14,10,.9),rgba(20,14,10,0))}
.ys-copy{position:relative;width:min(27rem,100%)}
.ys-copy h3{font-size:2rem;margin-bottom:.5rem}
.ys-copy p{color:#E8DECB}
.ys-copy a{display:inline-block;margin-top:1rem;font-weight:600;color:#F7F0E4}
.ys.is-open .ys-body{opacity:1;transition-delay:.3s}
.ys.is-open .ys-copy{pointer-events:auto}
@media (max-width:760px){
  .yard{flex-direction:column;height:auto}
  .ys{flex:none;height:74px;transition:height .55s cubic-bezier(.3,.7,.2,1)}
  .ys.is-open{height:380px}
  .ys-tab{align-items:center;justify-content:flex-start;padding:0 1rem}
  .ys-tab span{writing-mode:horizontal-tb;transform:none;padding:.55rem .9rem}
  .ys-body{padding:5rem 1.2rem 1.3rem}
}

/* ---------- Standard ---------- */
.std{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,6vw,6rem);align-items:start}
.std h2{font-size:clamp(2.1rem,4.4vw,3.4rem)}
.std .intro{color:var(--muted);margin:1.1rem 0 1.6rem;max-width:28rem}
.std dl{margin:0}
.std dt{font:400 1.5rem/1.2 'Marcellus',Georgia,serif;margin-top:1.7rem;padding-top:1.7rem;border-top:1px solid var(--line)}
.std dt:first-child{margin-top:0;padding-top:0;border-top:0}
.std dd{margin:.5rem 0 0;color:var(--muted);max-width:32rem}
.benefits-head{margin-top:clamp(3rem,6vw,5rem);font-size:clamp(1.6rem,3vw,2.2rem)}
.benefits{margin-top:1.8rem;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem 2.4rem}
.benefits h3{font-size:1.3rem;margin-bottom:.4rem}
.benefits p{color:var(--muted);font-size:1rem}
@media (max-width:860px){
  .std{grid-template-columns:1fr}
  .benefits{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){.benefits{grid-template-columns:1fr}}

/* ---------- Trade tabs ---------- */
.tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);margin-bottom:2.4rem}
.tab{
  background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;
  padding:1rem .8rem;font:400 clamp(1rem,2.1vw,1.45rem)/1.2 'Marcellus',Georgia,serif;
  color:var(--muted);cursor:pointer;text-align:left;
}
.tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.tab:hover{color:var(--ink)}
.panel{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(1.6rem,5vw,4.5rem);align-items:center}
.panel[hidden]{display:none}
.panel h3{font-size:clamp(1.8rem,3.4vw,2.6rem);margin-bottom:1.2rem}
.panel ul{display:grid;gap:.7rem;margin-bottom:1.9rem}
.panel li{padding-left:1.5rem;position:relative}
.panel li::before{content:"";position:absolute;left:0;top:.72em;width:.65rem;height:2px;background:var(--focus)}
.panel-actions{display:flex;flex-wrap:wrap;gap:1rem 1.6rem;align-items:center}
.panel-img{aspect-ratio:5/4;overflow:hidden}
.panel-img img{width:100%;height:100%;object-fit:cover}
@media (max-width:760px){
  .panel{grid-template-columns:1fr}
  .tab{padding:.8rem .3rem}
}

/* ---------- Contact ---------- */
.contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,6vw,5.5rem);align-items:start}
.contact h2{font-size:clamp(2.1rem,4.4vw,3.4rem)}
.contact .intro{margin:1.1rem 0 2rem;color:color-mix(in srgb,var(--band2-ink) 82%,transparent);max-width:28rem}
.details{display:grid;gap:1.1rem;margin:0}
.details dt{font-weight:600}
.details dd{margin:0;color:color-mix(in srgb,var(--band2-ink) 78%,transparent);font-style:italic}
.details a{color:var(--band2-ink)}
.form{background:var(--surface);color:var(--ink);padding:clamp(1.4rem,3vw,2.3rem);display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.1rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field.full{grid-column:1 / -1}
.field label{font-weight:600;font-size:.95rem}
.field input,.field select,.field textarea{
  font:inherit;color:var(--ink);background:var(--bg-alt);border:1.5px solid var(--line);
  border-radius:2px;padding:.75rem .85rem;width:100%;
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ink);outline-offset:1px}
.form-foot{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:1rem 1.4rem;align-items:center}
#formStatus{color:var(--ink);font-weight:500;flex:1 1 16rem}
@media (max-width:860px){.contact{grid-template-columns:1fr}}
@media (max-width:520px){.form{grid-template-columns:1fr}}

/* ---------- Footer ---------- */
.foot{background:var(--deep);color:var(--deep-ink);padding:3.2rem 0 2.4rem}
.foot-grid{display:flex;flex-wrap:wrap;gap:2rem 4rem;justify-content:space-between}
.foot .brand small{color:var(--deep-muted)}
.foot p{color:var(--deep-muted);max-width:26rem;margin-top:.9rem;font-size:.95rem}
.foot ul{display:grid;gap:.5rem}
.foot a{text-decoration:none}
.foot a:hover{text-decoration:underline}
.foot-links{display:flex;flex-wrap:wrap;gap:2rem 4rem}
.foot p.foot-base{max-width:none;margin-top:2.6rem;padding-top:1.4rem;border-top:1px solid rgba(240,232,217,.16);font-size:.88rem;color:var(--deep-muted)}

/* ---------- WordPress additions ---------- */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;overflow:hidden}
.details dd.set{font-style:normal}
.brand-logo{display:flex;align-items:center}
.brand-logo img{height:38px;width:auto;max-width:220px}
.foot .brand-logo img{height:42px;filter:brightness(0) invert(1)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .top .brand-logo img{filter:brightness(0) invert(1)}
}
:root[data-theme="dark"] .top .brand-logo img{filter:brightness(0) invert(1)}
.prose{max-width:46rem}
.prose h1{font-size:clamp(2rem,4vw,3rem);margin-bottom:1.2rem}
.prose .entry>*+*{margin-top:1em}
.prose .entry a{text-decoration:underline;text-underline-offset:.2em}
.prose article+article{margin-top:3rem}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
