/* ==========================================================================
   Carolina Dingo — site stylesheet
   Palette: clay / sand / pine / cream / charcoal / ember (see REDESIGN_SPEC.md)
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/sourcesans3.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/sourcesans3-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --clay: #9C5B33;
  --clay-dark: #7C4626;
  --sand: #E8D5B5;
  --sand-light: #F2E7D3;
  --pine: #4F6134;
  --cream: #FAF6EE;
  --charcoal: #2B2B28;
  --ember: #C46A2B;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(43, 43, 40, 0.10);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--cream);
}

.container { width: min(92%, 1100px); margin: 0 auto; }
.container--narrow { width: min(92%, 760px); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--clay-dark); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p, ul, ol { margin-bottom: 1rem; }
article ul, article ol { padding-left: 1.4rem; }

a { color: var(--pine); }
a:hover { color: var(--clay); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--pine);
  color: var(--white);
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--clay); color: var(--white); }
.btn--ember { background: var(--ember); }
.btn--ember:hover { background: var(--clay-dark); }
.btn--ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.15); }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--clay);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.brand:hover { color: var(--sand); }
.brand img { width: 42px; height: 37px; }
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--white); border-radius: 6px;
  color: var(--white); font-size: 1.3rem; line-height: 1;
  padding: 0.3rem 0.55rem; cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: 1.3rem; list-style: none; }
.site-nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sand); }
.site-nav .nav-shop {
  background: var(--ember); padding: 0.4rem 1rem; border-radius: 8px;
}
.site-nav .nav-shop:hover { background: var(--clay-dark); color: var(--white); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .nav-row { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 0 1rem; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 0.7rem 0.2rem; }
  .site-nav .nav-shop { display: inline-block; margin-top: 0.5rem; }
}

/* --- Hero --- */
.hero { position: relative; min-height: 480px; display: grid; overflow: hidden; }
.hero picture, .hero > img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero picture img, .hero > img.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 0 3rem;
  background: linear-gradient(to top, rgba(30,25,18,0.72) 0%, rgba(30,25,18,0.25) 55%, rgba(30,25,18,0.05) 100%);
}
.hero h1 { color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,0.45); margin-bottom: 0.5rem; }
.hero p {
  color: var(--white); font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5); max-width: 620px;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero--page { min-height: 300px; }

/* --- Sections --- */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--white); }
.section--sand { background: var(--sand-light); }
.section-title { text-align: center; margin-bottom: 0.4rem; }
.section-lede { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 540px; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* --- Cards --- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem; margin-top: 2rem;
}
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body p { margin: 0; flex: 1; }
.card-body .btn { align-self: flex-start; }

/* --- Callout ("Panda's take") --- */
.callout {
  background: var(--sand-light); border-left: 5px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.callout strong:first-child { color: var(--clay-dark); }

/* --- Article layout --- */
.article { padding: 3rem 0 4rem; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.5rem; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem auto; }
.article .img-narrow { max-width: 480px; }
.breadcrumbs { font-size: 0.9rem; margin: 1.2rem 0 0; color: #6b6b64; }
.breadcrumbs a { color: #6b6b64; }
.article-meta { color: #6b6b64; font-size: 0.95rem; margin-bottom: 1.5rem; }

/* --- FAQ --- */
.faq details {
  background: var(--white); border-radius: 8px; box-shadow: var(--shadow);
  margin-bottom: 0.8rem; padding: 0.9rem 1.2rem;
}
.faq summary { font-weight: 600; cursor: pointer; color: var(--clay-dark); }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p:last-child { margin-bottom: 0; }

/* --- Comparison table --- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: 8px; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--sand); }
th { background: var(--sand-light); font-family: var(--font-head); color: var(--clay-dark); }

/* --- Gallery --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.gallery-grid button {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s;
}
.gallery-grid button:hover img { transform: scale(1.05); }
.lightbox { border: 0; border-radius: var(--radius); padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 16, 10, 0.85); }
.lightbox img { max-width: 92vw; max-height: 85vh; width: auto; height: auto; border-radius: var(--radius); margin: 0 auto; }
.lightbox figcaption { color: var(--white); text-align: center; padding: 0.6rem; font-size: 0.95rem; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1.4rem; font-size: 2rem; line-height: 1;
  background: none; border: 0; color: var(--white); cursor: pointer;
}

/* --- Signup band --- */
.signup {
  background: var(--pine); color: var(--white); text-align: center;
  padding: 3rem 0;
}
.signup h2 { color: var(--white); }
.signup p { max-width: 560px; margin: 0.5rem auto 1.4rem; }
.signup .btn { background: var(--ember); }
.signup .btn:hover { background: var(--sand); color: var(--charcoal); }

/* --- Footer --- */
.site-footer { background: var(--clay-dark); color: var(--sand-light); padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h3 { color: var(--sand); font-size: 1.1rem; margin-bottom: 0.8rem; }
.site-footer a { color: var(--sand-light); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.copyright {
  margin-top: 2.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(232, 213, 181, 0.3);
  text-align: center; font-size: 0.9rem;
}

/* --- Utility --- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.notice {
  background: var(--sand-light); border-radius: 8px; padding: 1rem 1.2rem;
  font-size: 0.95rem; margin: 1.5rem 0;
}
