/* GiantChess.com — shared styles (sample redesign) */
:root {
  --cream: #faf6ef;
  --paper: #ffffff;
  --sand: #efe6d8;
  --ink: #221912;
  --ink-soft: #5b4d42;
  --teak: #a3602a;
  --teak-dark: #7c4519;
  --gold: #c9973f;
  --line: #e3d8c8;
  --wa: #1fa855;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teak-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teak); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teak); color: #fff; }
.btn-primary:hover { background: var(--teak-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178944; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,239,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 60px; height: 60px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; padding: 0; color: #fff; min-height: min(86vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: #2a1f17; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,13,8,.1) 0%, rgba(20,13,8,.45) 38%, rgba(20,13,8,.88) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 clamp(40px, 6vw, 72px); }
.hero .eyebrow { color: #f0cf8e; }
.hero h1 { max-width: 16ch; }
.hero p { font-size: 1.2rem; max-width: 56ch; color: rgba(255,255,255,.9); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Trust bar */
.trust { background: var(--ink); color: #fff; padding: 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 30px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.trust li:first-child { border-left: 0; }
.trust b { display: block; font: 600 2rem/1.1 var(--serif); color: #f0cf8e; }
.trust span { font-size: .85rem; color: rgba(255,255,255,.75); }
@media (max-width: 700px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li { padding: 22px 10px; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* Size cards */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4 { gap: 14px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(60,35,10,.5); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .ph img { transform: scale(1.05); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.6rem; }
.card h3 small { font: 500 .85rem var(--sans); color: var(--ink-soft); margin-left: .35em; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .9rem; color: var(--teak-dark); }
@media (max-width: 620px) { .card .body { padding: 12px 14px 14px; } .card h3 { font-size: 1.3rem; } .card h3 small { display: block; margin: 2px 0 0; } }

/* Split + features */
.alt { background: var(--paper); }
.sand { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.features li { padding-left: 18px; border-left: 2px solid var(--gold); }
.features b { display: block; font: 600 1.25rem/1.2 var(--serif); margin-bottom: 2px; }
.features span { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.pick { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pick b { font: 600 2.1rem/1 var(--serif); color: var(--teak); display: block; margin-bottom: 6px; }
.pick h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pick p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* Quotes */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; display: flex; flex-direction: column; }
.quote p { font: 500 1.3rem/1.4 var(--serif); margin-bottom: 1.2em; }
.quote footer { margin-top: auto; font-size: .88rem; color: var(--ink-soft); }
.quote footer b { color: var(--ink); }
.clients { font: 600 clamp(1.3rem, 2.6vw, 1.9rem)/1.3 var(--serif); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0 0 40px; padding: 0; list-style: none; }

/* Dark band */
.band { background: var(--ink); color: #fff; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,.8); }
.band .eyebrow { color: #f0cf8e; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band-inner > div:first-child { max-width: 640px; }

/* Journal */
.post { text-decoration: none; color: inherit; padding: 24px 0; border-top: 1px solid var(--line); display: block; }
.post h3 { margin-bottom: 6px; }
.post p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 8px; }
.post span { font-weight: 600; font-size: .88rem; color: var(--teak-dark); }
a.post:hover h3 { color: var(--teak-dark); }

/* Footer */
.site-footer { background: #17110c; color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #f0cf8e; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #f0cf8e; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid img { width: 84px; height: 84px; margin-bottom: 12px; }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Product page ---------- */
.crumbs { padding: 18px 0 0; font-size: .85rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b7a892; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teak-dark); }
.product { padding: 28px 0 clamp(56px, 7vw, 88px); }
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4.5vw, 64px); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--sand); aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--teak); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: .3em; }
.product .tagline { font: 500 1.35rem/1.3 var(--serif); color: var(--teak-dark); margin-bottom: .8em; }
.specs { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 1px solid var(--line); }
.specs th { width: 42%; font-weight: 500; color: var(--ink-soft); }
.specs td { font-weight: 600; }
.note { font-size: .86rem; color: var(--ink-soft); margin-top: 14px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.3rem/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teak); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 68ch; }

/* Quote form */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .cta-row { margin-top: 4px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Listing, article and guide pages ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 0; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.page-head + section { padding-top: clamp(32px, 4vw, 48px); }
.article .wrap { max-width: 860px; }
.article-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 4vw, 44px); background: var(--sand); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.5em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul:not(.features) { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 1.8em 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.prose figure img { width: 100%; height: 100%; object-fit: cover; }
.prose .grid { margin: 1.2em 0 1.6em; }
.guide { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 0 0 1.4em; }
.guide table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 620px; }
.guide th, .guide td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); }
.guide thead th { border-top: 0; background: var(--sand); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.guide tbody th { font: 600 1.25rem var(--serif); white-space: nowrap; }
.guide tbody th a { text-decoration: none; }
a.pick { transition: transform .2s, box-shadow .2s; }
a.pick:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(60,35,10,.5); }
