/* ------------------------------------------------------------------
   LA LOCANDA — Cala Millor
   Italian trattoria · light, warm, casual-elegant
------------------------------------------------------------------- */

:root {
  --bg:           #fdfaf3;        /* warm ivory */
  --bg-deep:      #f5ede0;
  --paper:        #ffffff;
  --ink:          #221915;
  --ink-soft:     #4a3a30;
  --muted:        #87766a;
  --accent:       #c8412c;        /* tomato red */
  --accent-dark:  #9b2e1d;
  --olive:        #5c6f3a;
  --gold:         #d4a64a;
  --line:         rgba(34,25,21,0.10);
  --shadow-sm:    0 4px 14px rgba(50,30,15,0.06);
  --shadow-md:    0 18px 46px rgba(50,30,15,0.13);
  --radius:       18px;
  --radius-sm:    10px;
  --container:    1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 .55em;
  line-height: 1.08;
  color: var(--ink);
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9em;
}

.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; }
.section-head h2 { margin-bottom: 0; }

.muted { color: var(--muted); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-reserve { padding: 11px 20px; font-size: .88rem; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,250,243,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
}
.brand-name em { color: var(--accent); font-style: italic; }
.brand-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to right, #008c45 0 33.3%, #f4f5f0 33.3% 66.6%, #cd212a 66.6% 100%);
}

.nav-main { display: flex; gap: 30px; }
.nav-main a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-main a:hover { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 11px;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all .2s;
}
.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display:block;
  width: 22px;
  height: 1.7px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 60px 0 90px;
  background:
    radial-gradient(1100px 600px at -10% 110%, rgba(200,65,44,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(212,166,74,0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { padding: 40px 0; }
.hero .eyebrow {
  display:inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  background: rgba(200,65,44,0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 22px;
}
.hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  margin-bottom: 22px;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 36ch;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-badges li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-badges strong {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.hero-badges span {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
  aspect-ratio: 4 / 5;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-stamp {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  text-align: center;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
}
.hero-stamp span { font-size: .85rem; opacity: .9; }
.hero-stamp strong { font-size: 1.4rem; margin-top: 6px; font-weight: 400; }

/* ---------------- STORY ---------------- */
.story { padding: 100px 0; background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: center;
}
.story-text h2 { max-width: 15ch; }
.story-text p { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; }

.story-quote {
  margin: 0;
  padding: 36px 32px;
  background: var(--bg-deep);
  border-left: 4px solid var(--accent);
  border-radius: 6px 18px 18px 6px;
  position: relative;
}
.story-quote blockquote {
  margin: 0 0 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
}
.story-quote figcaption {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- MENU ---------------- */
.menu { padding: 100px 0; background: var(--bg); }

.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.tab {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.menu-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 50px;
}
.menu-item {
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.menu-item-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--ink);
}
.menu-item-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item-desc { font-size: .93rem; color: var(--muted); margin: 0; }

.menu-note {
  margin-top: 50px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------------- GALLERY ---------------- */
.gallery { padding: 100px 0; background: var(--bg-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}
.g-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.g-item:hover img { transform: scale(1.06); }
.g-item:nth-child(1) { grid-row: span 2; }
.g-item:nth-child(5) { grid-column: span 2; }

/* ---------------- VISIT ---------------- */
.visit { padding: 100px 0; background: var(--paper); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.visit-info h2 { max-width: 14ch; }
.info-block { margin-bottom: 26px; }
.info-block p { margin: 0 0 4px; }
.info-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px !important;
}
.info-block a { border-bottom: 1px solid var(--line); }
.info-block a:hover { color: var(--accent); border-color: var(--accent); }

.visit-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 70px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 50px;
}
.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 8px;
}
.footer-name em { color: var(--gold); font-style: italic; }
.footer-tag { color: rgba(255,255,255,.55); margin: 0; font-style: italic; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}
.footer-cols p { margin: 0 0 4px; font-size: .95rem; }
.footer-cols .muted { color: rgba(255,255,255,.4); }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .nav-main { display: none; }
  .btn-reserve { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-text { padding: 20px 0 0; }
  .hero-image { aspect-ratio: 4/3; }
  .hero-stamp { width: 100px; height: 100px; bottom: -16px; right: -16px; }
  .hero-stamp strong { font-size: 1.1rem; }
  .hero-stamp span { font-size: .75rem; }

  .story-grid,
  .visit-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .visit-map { aspect-ratio: 4/3; }

  .menu-panels { grid-template-columns: 1fr; gap: 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .g-item:nth-child(5) { grid-column: span 1; }

  .hero { padding: 30px 0 70px; }
  .story, .menu, .gallery, .visit { padding: 70px 0; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 8px; font-size: .72rem; }
  .brand { font-size: 1.2rem; }
  .header-inner { gap: 12px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .g-item:nth-child(1) { grid-row: span 1; }

  .footer-cols { grid-template-columns: 1fr; }
  .hero-badges { gap: 20px; }
  .hero-badges strong { font-size: 1.2rem; }
}

/* ---------------- MOBILE NAV ---------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 110px 32px 40px;
  gap: 6px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; }

.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.7px) rotate(-45deg); }
