/* ———————————————————————————————————————————————————————————
   Resto-Go — Shared styles
   ——————————————————————————————————————————————————————————— */

:root {
  --bg:       #FAF5EB;
  --bg-2:     #F2E9D8;
  --ink:      #2B1810;
  --ink-2:    #6B4A3A;
  --accent:   #C2410C;
  --accent-2: #8B2C08;
  --olive:    #6B7F3A;
  --cream:    #FFFBF3;
  --line:     rgba(43,24,16,.12);
  --line-2:   rgba(43,24,16,.22);
  --shadow:   0 30px 80px -30px rgba(59,29,15,.35);

  --display: "Fraunces", Georgia, serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

[data-palette="olive"] {
  --bg:#F5F2E8; --bg-2:#E8E2CF; --ink:#1F2412; --ink-2:#4A5234;
  --accent:#6B7F3A; --accent-2:#4A5A22; --olive:#C2410C; --cream:#FAF8EF;
}
[data-palette="plum"] {
  --bg:#F6EFEB; --bg-2:#E8DAD0; --ink:#2A151A; --ink-2:#6B3F48;
  --accent:#8B2C4A; --accent-2:#5C1A30; --olive:#A87348; --cream:#FCF6F2;
}
[data-palette="mono"] {
  --bg:#F4F1EC; --bg-2:#E4DED3; --ink:#15110E; --ink-2:#5A4E40;
  --accent:#15110E; --accent-2:#000; --olive:#8A6F4E; --cream:#FAF7F2;
}

[data-theme="dark"] {
  --bg:#1A0F08; --bg-2:#241810; --ink:#F5EBD9; --ink-2:#B89A7A;
  --cream:#2A1D12; --line:rgba(245,235,217,.14); --line-2:rgba(245,235,217,.26);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  transition: background .4s ease, color .4s ease;
}

/* ——— Grain overlay ——— */
body::before {
  content:""; position: fixed; inset:0; pointer-events:none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.35; mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity:.18; }

/* ——— Typography ——— */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.display-xxl { font-size: clamp(56px, 10vw, 168px); line-height: 0.92; font-weight: 300; }
.display-xl  { font-size: clamp(44px, 6.5vw, 96px); line-height: 0.95; font-weight: 300; }
.display-l   { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; font-weight: 400; }
.italic { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tag { display:inline-flex; align-items:center; gap:8px; font-family: var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-2); }
.tag::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--accent); }

/* ——— Layout ——— */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ——— NAV ——— */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
nav.top.scrolled { border-bottom-color: var(--line); padding: 12px 40px; }
.logo { display:flex; align-items:center; gap:10px; font-family: var(--display); font-size: 22px; font-weight:500; letter-spacing:-.02em; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent);
  display:grid; place-items:center; color: var(--cream);
  font-family: var(--display); font-weight:600; font-size:18px; font-style: italic;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.15);
}
nav ul { list-style: none; display:flex; gap: 28px; padding: 0; margin: 0; }
nav ul a { color: var(--ink); text-decoration: none; font-size: 14px; position: relative; }
nav ul a::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
nav ul a:hover::after { transform: scaleX(1); }

.nav-right { display:flex; align-items:center; gap: 16px; }
.lang-toggle {
  display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; color: var(--ink-2); text-transform: uppercase;
  transition: all .25s;
}
.lang-toggle button.active { background: var(--ink); color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--cream);
  font-family: var(--body); font-size: 14px; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .3s;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--accent) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.arrow { display:inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ——— FOOTER ——— */
footer { padding: 60px 40px 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-brand { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 8px; }
.foot-brand .ital { font-style: italic; color: var(--accent); }
.foot-about { font-size: 13px; color: var(--ink-2); max-width: 340px; }
.foot-col h5 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 16px; font-weight: 400; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

/* ——— Page head ——— */
.page-head {
  padding: 180px 0 80px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  max-width: 900px;
  margin-bottom: 20px;
}
.page-head .lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.6;
}

/* ——— Section base ——— */
.section { padding: 140px 0; }
.section-head { margin-bottom: 70px; }
.section-head h2 { margin-top: 14px; }

/* ——— Content block ——— */
.content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}
.content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 60px 0 16px;
  line-height: 1.08;
}
.content h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin: 40px 0 12px;
}
.content p {
  margin: 16px 0;
  color: var(--ink);
}
.content ul, .content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.content li {
  margin: 10px 0;
  color: var(--ink-2);
}
.content a {
  color: var(--accent);
  text-decoration: underline;
}
.content a:hover {
  color: var(--accent-2);
}

/* ——— Cards grid ——— */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 60px 0;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

/* ——— Form ——— */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ——— FAQ accordions ——— */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.faq-q {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
  transition: transform .3s, background .3s;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--cream);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  color: var(--ink-2);
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 500px;
  margin-top: 16px;
}

/* ——— Blog ——— */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin: 60px 0;
}
.blog-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--display);
  font-size: 48px;
  font-style: italic;
}
.blog-thumb.th2 { background: linear-gradient(135deg, var(--olive) 0%, #4A5A22 100%); }
.blog-thumb.th3 { background: linear-gradient(135deg, #E8B542 0%, #B8871F 100%); }
.blog-thumb.th4 { background: linear-gradient(135deg, #2B1810 0%, #1A0F08 100%); }
.blog-thumb.th5 { background: linear-gradient(135deg, #8B2C4A 0%, #5C1A30 100%); }
.blog-thumb.th6 { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.blog-content {
  padding: 28px;
}
.blog-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.blog-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px;
}
.blog-excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ——— Guides ——— */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 60px 0;
}
.guide-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.guide-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.guide-card:nth-child(2) .guide-icon { background: var(--olive); }
.guide-card:nth-child(3) .guide-icon { background: #E8B542; }
.guide-card:nth-child(4) .guide-icon { background: var(--ink); }
.guide-card:nth-child(5) .guide-icon { background: #8B2C4A; }
.guide-card:nth-child(6) .guide-icon { background: #6B7F3A; }
.guide-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.2;
}
.guide-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 16px;
}
.guide-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  nav.top { padding: 14px 20px; }
  nav ul { display: none; }
  .page-head { padding: 140px 0 60px; }
  .section { padding: 80px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 40px 20px 30px; }
}
