/* ==========================================================================
   Restaurante Casa Carlos — redesign stylesheet (r1)
   Palette: Marina Rubicón seaside — cream, sand, deep slate, terracotta, gold
   ========================================================================== */

:root {
  --ink: #1d2a2e;
  --ink-soft: #41545a;
  --cream: #faf7f0;
  --sand: #f1e9da;
  --sand-deep: #e6dcc8;
  --terracotta: #c0532d;
  --terracotta-dark: #a34420;
  --gold: #b98a2f;
  --white: #ffffff;
  --line: rgba(29, 42, 46, 0.12);
  --shadow-sm: 0 2px 10px rgba(29, 42, 46, 0.08);
  --shadow-md: 0 12px 30px rgba(29, 42, 46, 0.14);
  --radius: 16px;
  --maxw: 1180px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; line-height: 1.1; }
.brand-tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 8px 13px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sand); color: var(--terracotta-dark); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.lang-switch a {
  font-size: 0.78rem; font-weight: 600; padding: 5px 8px; border-radius: 8px; color: var(--ink-soft); text-decoration: none;
}
.lang-switch a:hover { background: var(--sand); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--cream); }

.header-cta {
  margin-left: 10px;
  background: var(--terracotta); color: var(--white); text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.header-cta:hover { background: var(--terracotta-dark); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(420px, 62vh, 640px);
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--cream);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(18, 30, 34, 0.82) 0%, rgba(18, 30, 34, 0.45) 55%, rgba(18, 30, 34, 0.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero-kicker {
  display: inline-block; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.hero h1 { color: var(--cream); margin-bottom: 18px; max-width: 15ch; }
.hero p.hero-sub { font-size: 1.18rem; color: rgba(250, 247, 240, 0.92); max-width: 46ch; margin-bottom: 28px; }

.btn {
  display: inline-block; background: var(--terracotta); color: var(--white);
  padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #9d7626; }
.btn-outline { background: transparent; border: 2px solid rgba(250,247,240,0.85); color: var(--cream); }
.btn-outline:hover { background: rgba(250,247,240,0.14); color: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--white); }
.section-sand { background: var(--sand); }
.section-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 > *, .grid-3 > *, .grid-6 > *, .contact-grid > * { min-width: 0; }

.img-round { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.feature-icon { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }

/* ---------- Category cards ---------- */
.cat-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-card-body { padding: 22px 22px 26px; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; }
.cat-more { font-weight: 600; font-size: 0.9rem; color: var(--terracotta); }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.menu-cat { break-inside: avoid; }
.menu-cat-title {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 600;
  color: var(--terracotta-dark); border-bottom: 2px solid var(--sand-deep);
  padding-bottom: 10px; margin-bottom: 18px;
}
.menu-item { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.menu-item-name { font-weight: 600; }
.menu-item-dots { flex: 1; border-bottom: 2px dotted rgba(29,42,46,0.25); transform: translateY(-4px); }
.menu-item-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.menu-item-desc { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 0.9rem; }
.menu-note { margin-top: 40px; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hours-table th { background: var(--sand); font-family: var(--font-display); font-size: 1.02rem; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--terracotta); font-weight: 600; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 42px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.contact-card a { font-weight: 600; }
.contact-card .small { color: var(--ink-soft); font-size: 0.88rem; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--sand); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(250,247,240,0.85); max-width: 60ch; margin: 0 auto 26px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }

/* ---------- Legal ---------- */
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal-body h3 { font-size: 1.12rem; margin-top: 1.3em; }
.legal-body li { margin-bottom: 0.5em; }
.pdf-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,247,240,0.86); padding: 60px 0 30px; }
.site-footer a { color: var(--gold); }
.site-footer h2, .site-footer h3 { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 44px; }
.footer-brand img { width: 74px; margin-bottom: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.footer-legal li { margin: 0; }
.footer-pets { background: rgba(250,247,240,0.06); border-radius: 12px; padding: 16px 18px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(250,247,240,0.14); margin-top: 44px; padding-top: 22px; font-size: 0.86rem; color: rgba(250,247,240,0.62); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 22px; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-6, .menu-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-6, .menu-grid, .footer-grid, .contact-grid, .gallery { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 22px 20px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 10px; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; flex-wrap: wrap; margin-top: 10px; }
  .header-cta.mobile-cta { display: inline-block; text-align: center; margin: 12px 0 4px; }
  .cta-band { padding: 40px 24px; }
  .map-wrap iframe { height: 320px; }
  .hours-table { display: block; overflow-x: auto; white-space: nowrap; }
}
