/* Legacy Ranch Furniture — one warm light look (single theme by design): cream ground, saddle-brown accent, near-black header and footer.
   Layout: 1280px max container; collection pages = hero + piece grid; each piece opens in a dialog. */
:root{
  --cream:#F4EEE5; --paper:#FFFFFF; --ink:#231C17; --muted:#5E5146; --soft:#6B5D50;
  --line:#DDD0C0; --line-soft:#EEE6DA; --night:#1E1915; --night-2:#14100D; --night-3:#2A211B;
  --on-night:#F4EEE5; --on-night-muted:#CDBFAE; --gold:#F1C9A5; --tan:#E3C9A8;
  --accent:#8A4B26; --accent-dark:#6E3B1F; --link:#7A3F1D;
  --display:"DM Serif Display", Georgia, "Times New Roman", serif;
  --body:"Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.55}
img{max-width:100%;display:block}
a{color:var(--link)} a:hover{color:var(--accent-dark)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.08;text-wrap:balance;margin:0}
.wrap{max-width:1280px;margin:0 auto;padding-inline:24px}
.eyebrow{font-size:13px;letter-spacing:.28em;text-transform:uppercase;font-weight:600;color:var(--accent)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:3px;font-weight:600;font-size:15px;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:var(--body)}
.btn-primary{background:var(--accent);color:#fff} .btn-primary:hover{background:var(--accent-dark);color:#fff}
.btn-ghost{border-color:#A8968A;color:var(--on-night)} .btn-ghost:hover{border-color:var(--on-night);color:var(--on-night)}
.btn-line{border-color:#B9A994;color:var(--ink);background:transparent} .btn-line:hover{border-color:var(--ink);color:var(--ink)}
.placeholder{background:#FFF1C7;color:#5A4300;padding:0 4px;border-radius:2px}

/* Top strip + header */
.strip{background:var(--night-2);color:#E9DFD0;font-size:13px;letter-spacing:.03em}
.strip .wrap{display:flex;flex-wrap:wrap;gap:6px 24px;justify-content:space-between;padding-block:9px}
.site-header{background:var(--night);color:var(--on-night);position:sticky;top:env(safe-area-inset-top,0px);z-index:20}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;padding-block:14px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand .mark{height:30px;width:auto} .brand .word{height:44px;width:auto}
.nav{display:flex;flex-wrap:wrap;gap:2px 26px;font-size:15px;font-weight:500}
.nav a{color:var(--on-night);text-decoration:none;padding:10px 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current="page"]{border-bottom-color:var(--gold);color:var(--on-night)}
.nav a.visit{color:var(--gold)}
@media (max-width:720px){.site-header{position:static}.brand .word{height:34px}.brand .mark{height:24px}.nav{gap:2px 18px;font-size:14px}}

/* Home hero */
.hero{background:var(--night) url("../img/hero-mustang.webp") 72% center / cover no-repeat}
.hero-shade{background:linear-gradient(90deg,rgba(20,16,13,.88) 0%,rgba(20,16,13,.62) 34%,rgba(20,16,13,0) 58%);}
.hero .wrap{padding-block:96px 104px}
.hero-copy{max-width:540px;color:var(--on-night);display:flex;flex-direction:column;gap:22px}
.hero-copy .eyebrow{color:var(--tan)}
.hero-copy h1{font-size:clamp(40px,6vw,64px)}
.hero-copy p{margin:0;font-size:18px;color:#E6DACA}
.hero-copy .caption{font-size:13px;color:#C9B9A6}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
@media (max-width:720px){.hero{background-position:78% center}.hero-shade{background:rgba(20,16,13,.72)}.hero .wrap{padding-block:64px}}

/* Sections */
.section{padding-block:80px 24px}
.section-head{display:flex;flex-wrap:wrap;gap:12px 32px;justify-content:space-between;align-items:flex-end;margin-bottom:32px}
.section-head h2{font-size:clamp(32px,4vw,44px)}
.section-head p{margin:0;max-width:440px;color:var(--muted);font-size:15px}
.rule{border-top:1px solid var(--line);padding-top:56px}

/* Featured carousel */
.carousel{position:relative}
.slides{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:4px}
.slides::-webkit-scrollbar{display:none}
.slide{scroll-snap-align:start;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);background:var(--paper);min-height:440px}
.slide .pic{background:#EFE7DC center/cover no-repeat;min-height:320px}
.slide .pic.contain{background-size:contain;background-color:#fff;background-origin:content-box;padding:28px}
.slide .txt{padding:44px 40px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.slide h3{font-size:40px}
.slide p{margin:0;color:var(--muted)}
.slide .meta{font-size:14px;color:var(--soft)}
.car-ctrl{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.dots{display:flex;gap:6px;flex-wrap:wrap}
.dots button{width:44px;height:44px;border:0;background:transparent;cursor:pointer;padding:0;display:grid;place-items:center}
.dots button::after{content:"";width:10px;height:10px;border-radius:50%;background:#C9B9A6}
.dots button[aria-current="true"]::after{background:var(--accent);width:26px;border-radius:5px}
.arrows{display:flex;gap:8px}
.arrows button{width:48px;height:48px;border:1px solid #B9A994;background:var(--paper);border-radius:50%;cursor:pointer;font-size:20px;color:var(--ink)}
.arrows button:hover{border-color:var(--ink)}
@media (max-width:820px){.slide{grid-template-columns:minmax(0,1fr)}.slide .pic{min-height:240px}.slide .txt{padding:28px 22px}.slide h3{font-size:32px}}

/* Tiles: collections & piece types */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}
.tile{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--ink)}
.tile .ph{aspect-ratio:4/3;background:var(--paper);border-radius:4px;overflow:hidden;display:grid;place-items:center}
.tile .ph img{width:100%;height:100%;object-fit:contain;padding:14px;transition:transform .3s}
.tile .ph.room img{object-fit:cover;padding:0}
.tile:hover .ph img{transform:scale(1.03)}
.tile .name{font-family:var(--display);font-size:26px;line-height:1.1}
.tile .sub{font-size:14px;color:var(--muted);margin-top:-6px}
.types{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.type{background:var(--paper);border-radius:4px;padding:16px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:8px;border:1px solid transparent}
.type:hover{border-color:#B9A994;color:var(--ink)}
.type img{aspect-ratio:3/2;object-fit:contain;width:100%}
.type b{font-family:var(--display);font-weight:400;font-size:22px}
.type span{font-size:13px;color:var(--soft)}

/* Showroom band + sister strip + footer */
.band{background:var(--night-3);color:var(--on-night);margin-top:72px}
.band .wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;padding-inline:0}
.band .pic{min-height:380px;background:#4A3A2E center/cover no-repeat}
.band .txt{padding:64px 40px;display:flex;flex-direction:column;gap:18px}
.band .eyebrow{color:#CDB9A0}
.band h2{font-size:clamp(32px,4vw,44px)}
.band address{font-style:normal;color:#E2D6C6;display:flex;flex-direction:column;gap:4px}
@media (max-width:820px){.band .wrap{grid-template-columns:minmax(0,1fr)}.band .pic{min-height:240px}.band .txt{padding:40px 24px}}
.sister{display:flex;flex-wrap:wrap;gap:20px 48px;align-items:center;justify-content:space-between;padding-block:64px}
.sister h2{font-size:32px;margin-bottom:8px}
.sister p{margin:0;color:var(--muted);max-width:640px}
.site-footer{background:var(--night-2);color:var(--on-night-muted);font-size:14px}
.site-footer .cols{display:flex;flex-wrap:wrap;gap:36px 64px;justify-content:space-between;padding-block:56px 32px}
.site-footer .col{display:flex;flex-direction:column;gap:6px}
.site-footer b{color:var(--on-night);font-weight:600}
.site-footer a{color:var(--on-night-muted)} .site-footer a:hover{color:var(--on-night)}
.site-footer .fine{border-top:1px solid #3A2F27;padding-block:18px 28px;font-size:12px;color:#A8998A}
.site-footer .logo{width:220px;height:auto}

/* Page hero for brand/collection pages */
.crumbs{font-size:14px;color:var(--soft);padding-block:20px 0}
.crumbs a{color:var(--soft)}
.page-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:40px;align-items:center;padding-block:24px 48px}
.page-hero h1{font-size:clamp(40px,5vw,60px);margin-block:10px 14px}
.page-hero p{margin:0 0 12px;color:var(--muted);max-width:60ch}
.page-hero .facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{display:inline-block;font-size:13px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--paper)}
.page-hero .pic{border-radius:4px;overflow:hidden;background:var(--paper);aspect-ratio:3/2}
.page-hero .pic img{width:100%;height:100%;object-fit:cover}
.page-hero .pic.contain img{object-fit:contain;padding:20px}
@media (max-width:820px){.page-hero{grid-template-columns:minmax(0,1fr)}}

/* Piece cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px;padding-bottom:40px}
.card{background:var(--paper);border-radius:4px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;border:1px solid transparent}
.card:hover{border-color:#B9A994;color:var(--ink)}
.card .ph{aspect-ratio:4/3;display:grid;place-items:center;padding:16px;border-bottom:1px solid var(--line-soft)}
.card .ph img{max-height:100%;width:100%;object-fit:contain}
.card .body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px;flex-grow:1}
.card .t{font-weight:600}
.card .m{font-size:13px;color:var(--soft);font-variant-numeric:tabular-nums}
.card .c{font-size:13px;color:var(--accent);font-weight:600;margin-top:6px}
.card .more{margin-top:auto;padding-top:10px;font-size:14px;font-weight:600;color:var(--link)}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.filters button{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #B9A994;background:var(--paper);font:500 14px var(--body);color:var(--ink);cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.count{font-size:14px;color:var(--soft);margin:-8px 0 18px}

/* Piece dialog */
dialog.piece{border:0;padding:0;border-radius:6px;width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:var(--cream);color:var(--ink)}
dialog.piece::backdrop{background:rgba(20,16,13,.72)}
.piece-in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0}
.gallery{background:var(--paper);padding:20px;display:flex;flex-direction:column;gap:12px}
.gallery .main{aspect-ratio:4/3;display:grid;place-items:center}
.gallery .main img{max-height:100%;width:100%;object-fit:contain}
.thumbs{display:flex;gap:8px;flex-wrap:wrap}
.thumbs button{width:72px;height:56px;padding:4px;border:1px solid var(--line);background:#fff;border-radius:3px;cursor:pointer}
.thumbs button[aria-current="true"]{border:2px solid var(--accent)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.info{padding:28px 28px 32px;display:flex;flex-direction:column;gap:14px;min-width:0}
.info h2{font-size:34px}
.info .model{font-size:14px;color:var(--soft);font-variant-numeric:tabular-nums;letter-spacing:.03em}
.specs{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:4px 0;font-size:15px}
.specs dt{color:var(--soft)} .specs dd{margin:0}
.specs ul{margin:0;padding-left:18px}
.price-note{font-size:14px;color:var(--muted);background:#EFE6DA;border-radius:3px;padding:10px 12px}
.close{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:24px;cursor:pointer;color:var(--ink);z-index:2}
@media (max-width:820px){.piece-in{grid-template-columns:minmax(0,1fr)}.info{padding:20px}}

/* Forms */
.form{display:grid;gap:12px}
.form .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:560px){.form .row{grid-template-columns:minmax(0,1fr)}}
.form label{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:500}
.form input,.form textarea{font:16px var(--body);padding:11px 12px;border:1px solid #B9A994;border-radius:3px;background:#fff;color:var(--ink);width:100%}
.form textarea{min-height:96px;resize:vertical}
.form .hint{font-size:13px;color:var(--soft);font-weight:400}
.form-done{background:#E4EFDD;color:#24451A;border-radius:3px;padding:12px 14px;font-size:15px}
.hp{position:absolute;left:-9999px}

/* Visit page */
.visit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;padding-block:24px 72px}
.visit-grid .card-plain{background:var(--paper);border-radius:4px;padding:28px}
.visit-grid h2{font-size:32px;margin-bottom:12px}
.visit-grid dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px}
.visit-grid dt{color:var(--soft)} .visit-grid dd{margin:0}
@media (max-width:820px){.visit-grid{grid-template-columns:minmax(0,1fr)}}
.soon{padding-block:40px 80px;max-width:760px}
.soon h1{font-size:clamp(40px,5vw,56px);margin-block:10px 16px}
.soon p{color:var(--muted)}

/* Cowhides */
.hides-hero{background:var(--night) center/cover no-repeat}
.hides-hero .wrap{padding-block:110px 120px}
.hides-hero .hero-copy h1{font-size:clamp(38px,5.5vw,60px)}
.hpats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}
.hpat{display:flex;flex-direction:column;gap:8px}
.hpat img{aspect-ratio:1/1;width:100%;object-fit:cover;border-radius:4px}
.hpat b{font-family:var(--display);font-weight:400;font-size:24px}
.hpat span{font-size:14px;color:var(--muted)}
.hgal{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.hshot{margin:0;display:flex;flex-direction:column;gap:6px}
.hshot img{aspect-ratio:4/3;width:100%;object-fit:cover;border-radius:4px}
.hshot figcaption{font-size:14px;color:var(--soft)}
.band .txt a:not(.btn){color:var(--gold)}
.band address a{color:var(--gold)}
.site-footer span a{color:var(--on-night-muted)}
.price-note a{color:var(--link);font-weight:600}
