/* ===== Empanadas Plus / The Chilean Corner — mobile-first ===== */
:root {
  --cream: #FBF6EC;
  --cream-2: #F4EAD8;
  --ink: #2A2320;
  --ink-soft: #5B514B;
  --red: #D22630;      /* Chilean flag red */
  --blue: #0A3D91;     /* Chilean flag blue */
  --green: #2F8F5B;    /* signature accent — the differentiator */
  --green-dk: #226E45;
  --gold: #E0A43B;     /* empanada crust */
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(42,35,32,.12);
  --shadow-sm: 0 4px 14px rgba(42,35,32,.10);
  --radius: 16px;
  --maxw: 1120px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; font-weight: 600; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--green-dk); margin: 0 0 .6em;
}
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .2s ease, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-dk); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-red:hover { background: #B01E27; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(42,35,32,.25); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.7em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42,35,32,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.brand-sub { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dk); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; text-decoration: none; font-weight: 700; color: var(--ink); }
.flag-chip { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 56vh; min-height: 340px; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.15) 0%, rgba(20,14,10,.55) 70%, rgba(20,14,10,.72) 100%);
}
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; }
.hero-content .container { padding-bottom: 26px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 8vw, 3.4rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 .accent { color: #FFD9A0; }
.hero p { color: #F4ECE0; font-size: 1.05rem; max-width: 40ch; margin: 0 0 1.1em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Trust bar ===== */
.trust { background: var(--ink); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; padding: 18px 20px; max-width: var(--maxw); margin: 0 auto; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* ===== Sections ===== */
section { padding: 56px 0; }
section[id], span[id] { scroll-margin-top: 88px; }
.section-head { max-width: 620px; margin: 0 auto 34px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* Story */
.story { background: var(--cream-2); }
.story-grid { display: grid; gap: 26px; }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-photos img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.story-photos img:first-child { aspect-ratio: 1/1; grid-column: 1 / -1; }
.story-text h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
.story-text p { color: var(--ink-soft); }
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--red); margin-top: 8px; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 12px 14px 16px; }
.card-body h3 { font-size: 1.12rem; margin-bottom: .15em; }
.card-body p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-top: 8px; }
.tag-veg { background: #E7F3EA; color: var(--green-dk); }
.tag-sweet { background: #FBEEDD; color: #A9762A; }
.tag-spicy { background: #FBE3E1; color: var(--red); }
.menu-note { text-align: center; margin-top: 26px; color: var(--ink-soft); }
.menu-note strong { color: var(--ink); }

/* Catering */
.catering { background: var(--blue); color: #fff; }
.catering .section-head p { color: #D6E0F5; }
.catering .eyebrow { color: #9FC0FF; }
.steps { display: grid; gap: 16px; margin: 0 0 40px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
}
.step h3 { margin: 0 0 .2em; font-size: 1.15rem; color: #fff; }
.step p { margin: 0; color: #D6E0F5; font-size: .95rem; }

/* Quote form */
.quote-card { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); }
.quote-card h3 { font-size: 1.5rem; }
.quote-card .sub { color: var(--ink-soft); margin-top: -.3em; }
.form-row { display: grid; gap: 14px; margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(42,35,32,.18);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,143,91,.15); }
.field textarea { resize: vertical; min-height: 80px; }
.form-success { display: none; background: #E7F3EA; border: 1.5px solid var(--green); border-radius: 12px; padding: 16px; margin-top: 16px; color: var(--green-dk); font-weight: 600; }
.form-success.show { display: block; }
.form-fineprint { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }
.form-error { display: none; background: #FBE3E1; border: 1.5px solid var(--red); border-radius: 12px; padding: 12px 14px; margin-top: 14px; color: #9F1B22; font-weight: 600; font-size: .92rem; }

/* Location */
.location { background: var(--cream-2); }
.loc-grid { display: grid; gap: 24px; }
.loc-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.loc-card h3 { font-size: 1.3rem; }
.loc-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.loc-line .ico { flex: none; width: 22px; text-align: center; }
.loc-line a { color: var(--green-dk); font-weight: 700; text-decoration: none; }
.hours-note { font-size: .82rem; color: var(--red); font-weight: 600; }
.loc-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 40px 0 30px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-col h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--gold); margin: 0 0 10px; }
.footer-col a, .footer-col p { color: var(--cream); text-decoration: none; display: block; margin-bottom: 6px; font-size: .95rem; opacity: .9; }
.footer-col a:hover { opacity: 1; color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 12px; padding-top: 18px; font-size: .82rem; opacity: .7; }

/* Mobile menu button (hidden on desktop) */
.menu-toggle { display: none; }

/* ===== Tablet+ ===== */
@media (min-width: 720px) {
  .header-phone { display: inline-flex; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
  .trust-item { justify-content: center; }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .story-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .story-photos img:first-child { aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .loc-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .catering-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-media img { height: 68vh; }
}
@media (min-width: 1000px) {
  .hero h1 { font-size: 3.6rem; }
}
