/* Casa Kula — shared stylesheet (design system)
   Based on the current site: Gruppo headings, Montserrat body, gold-brown buttons.
   Spacing scale is 8px based. Edit the tokens below to restyle the whole site. */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Gruppo"; src: url("/assets/fonts/gruppo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Colors */
  --c-text: #241f1a;          /* charcoal — the one text color */
  --c-text-soft: #5a524a;     /* secondary text (same hue, lighter) */
  --c-accent: #7d5e12;        /* gold-brown brand accent (buttons, links) — 6.0:1 on white */
  --c-accent-hover: #5f470d;
  --c-bg: #ffffff;
  --c-bg-alt: #f3efe6;        /* "mist" — alternate section background */
  --c-deep: #1b3a4b;          /* "lake" — footer / dark sections */
  --c-line: rgba(36, 31, 26, 0.12);
  --c-focus: #1b6fa8;

  /* Type */
  --f-head: "Gruppo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-h3: 1.5rem;      /* 24px */
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3rem);       /* 32–48px */
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);  /* 40–68px */
  --lh-body: 1.65;
  --lh-head: 1.15;

  /* Spacing (8px scale) */
  --s-1: 0.5rem;  /* 8 */
  --s-2: 1rem;    /* 16 */
  --s-3: 1.5rem;  /* 24 */
  --s-4: 2rem;    /* 32 */
  --s-5: 3rem;    /* 48 */
  --s-6: 4rem;    /* 64 */
  --s-7: 6rem;    /* 96 */

  /* Layout */
  --max-w: 1160px;
  --max-w-text: 68ch;
  --gutter: clamp(1rem, 4vw, 2rem);       /* 16–32px side gutters */
  --section-y: clamp(3rem, 6vw, 6rem);    /* 48–96px top/bottom */
  --radius: 16px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 2px 12px rgba(36, 31, 26, 0.06);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; line-height: var(--lh-head); margin: 0 0 var(--s-2); letter-spacing: 0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
h4 { font-size: var(--fs-lg); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--s-2); }
.lead { font-size: var(--fs-lg); color: var(--c-text-soft); max-width: var(--max-w-text); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--s-1); }

/* Layout */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--deep { background: var(--c-deep); color: #fff; }
.section--deep a { color: #fff; }
.section-head { max-width: var(--max-w-text); margin-bottom: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > :first-child { order: 2; } }

/* Buttons — one style, plus an outline variant */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: 0 var(--s-3);
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--c-accent); border: 2px solid var(--c-accent); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--c-accent); }
.btn--outline:hover { background: var(--c-accent); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--c-text); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Images — consistent treatment */
.img { border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt); }
.img img { width: 100%; height: 100%; object-fit: cover; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

/* Header (sticky) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo:hover { color: var(--c-text); }
.nav { display: none; }
.nav ul { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }
.header-actions { display: flex; align-items: center; gap: var(--s-1); }
.header-actions .btn { min-height: 42px; padding: 0 var(--s-2); }
@media (max-width: 420px) { .logo img { height: 22px; } .header-actions .btn { padding: 0 14px; font-size: var(--fs-xs); } }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--c-line); border-radius: var(--radius-sm); cursor: pointer; color: var(--c-text); }
.mobile-nav { border-top: 1px solid var(--c-line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-1) var(--gutter) var(--s-3); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--c-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-line); }
@media (min-width: 960px) { .nav { display: block; } .menu-toggle, .mobile-nav { display: none !important; } }

/* Page banner — every page opens the same way */
.banner { position: relative; color: #fff; isolation: isolate; }
.banner__img { position: absolute; inset: 0; z-index: -2; }
.banner__img img { width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.25) 0%, rgba(20,16,12,.55) 100%); }
.banner .container { min-height: clamp(380px, 62vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s-6); }
.banner--short .container { min-height: clamp(280px, 40vh, 420px); }
.banner h1 { color: #fff; margin-bottom: var(--s-2); max-width: 18ch; }
.hero-logo { width: min(560px, 85%); height: auto; margin-bottom: var(--s-3); filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.banner h1.hero-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); max-width: 30ch; }
.banner p { font-size: var(--fs-lg); max-width: 56ch; margin-bottom: var(--s-3); }

/* Cards */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.card__body > :last-child { margin-top: auto; }
.card h3 { margin: 0; }
.card .meta { font-size: var(--fs-sm); color: var(--c-text-soft); }
.card a.card__link { color: inherit; text-decoration: none; }

/* Facts list */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.facts li { padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line); }
.facts strong { display: block; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }

/* Reviews */
.review { margin: 0; padding: var(--s-3); background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.review p { font-size: var(--fs-base); }
.review footer { font-size: var(--fs-sm); color: var(--c-text-soft); }
.stars { color: var(--c-accent); letter-spacing: 2px; }

/* Forms */
.form { display: grid; gap: var(--s-2); max-width: 640px; }
.form label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--c-text); background: #fff; border: 1px solid rgba(36,31,26,.35); border-radius: var(--radius-sm); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row-2 { display: grid; gap: var(--s-2); }
@media (min-width: 600px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
.form-status { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Newsletter + footer */
.newsletter { display: flex; flex-wrap: wrap; gap: var(--s-1); max-width: 520px; }
.newsletter input { flex: 1 1 240px; min-height: 48px; padding: 12px 14px; font: inherit; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.08); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.75); }
.site-footer { background: var(--c-deep); color: rgba(255,255,255,.9); padding-block: var(--s-6) var(--s-4); font-size: var(--fs-sm); }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 2rem; color: #fff; }
.site-footer h3 { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-2); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; }

/* Utility */
.center { text-align: center; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.prose { max-width: var(--max-w-text); }
.prose h2 { margin-top: var(--s-5); font-size: 2rem; }
.prose h3 { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
