/* Restaurante Puerto Pesquero Marbella */
:root {
  --navy: #0a334d;
  --navy-deep: #06243a;
  --sea: #237798;
  --sea-soft: #eaf3f7;
  --ink: #0e2131;
  --muted: #536676;
  --line: #d9e4ea;
  --bg: #ffffff;
  --header-h: 72px;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(ar), [dir="rtl"] {
  --serif: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--navy); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ico-dir { transform: scaleX(-1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sea-soft); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--sea); }
.btn-outline { color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: background .25s, border-color .25s, color .25s;
}
.site-header.on-hero { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-hero.scrolled, .site-header.on-hero.open { background: rgba(255,255,255,.97); border-color: var(--line); color: var(--ink); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 48px; height: auto; }
.on-hero:not(.scrolled):not(.open) .brand img { filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: "Fraunces", Georgia, serif; }
.brand-text strong { font-size: 1.2rem; font-weight: 600; }
.brand-text span { font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.main-nav ul a:hover { background: rgba(10,51,77,.07); }
.on-hero:not(.scrolled):not(.open) .main-nav ul a:hover { background: rgba(255,255,255,.14); }
.main-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.langs { display: flex; gap: 2px; font-size: .82rem; font-weight: 700; }
.langs a { padding: 6px 7px; border-radius: 6px; text-decoration: none; opacity: .7; }
.langs a:hover, .langs a[aria-current="true"] { opacity: 1; }
.langs a[aria-current="true"] { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.btn-call { background: var(--navy); color: #fff; min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-call:hover { background: var(--sea); }
.on-hero:not(.scrolled):not(.open) .btn-call { background: #fff; color: var(--navy); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico-close, .open .nav-toggle .ico-open { display: none; }
.open .nav-toggle .ico-close { display: block; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 50% 45%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6,36,58,.6) 0%, rgba(6,36,58,0) 22%, rgba(6,36,58,0) 40%, rgba(6,36,58,.9) 100%),
  linear-gradient(90deg, rgba(6,36,58,.78) 0%, rgba(6,36,58,.45) 55%, rgba(6,36,58,.1) 100%); }
[dir="rtl"] .hero-shade { background:
  linear-gradient(180deg, rgba(6,36,58,.6) 0%, rgba(6,36,58,0) 22%, rgba(6,36,58,0) 40%, rgba(6,36,58,.9) 100%),
  linear-gradient(270deg, rgba(6,36,58,.78) 0%, rgba(6,36,58,.45) 55%, rgba(6,36,58,.1) 100%); }
@media (max-width: 860px) { .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(6,36,58,.55) 0%, rgba(6,36,58,.35) 30%, rgba(6,36,58,.75) 60%, rgba(6,36,58,.95) 100%); } }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; color: var(--sea); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .95rem; }
.hero .kicker { color: #cfe6f0; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 14ch; margin-bottom: 20px; }
[dir="rtl"] .hero h1 { max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.92); margin-bottom: 28px; }
.hero-info { position: relative; background: rgba(6,36,58,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12); }
.info-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--sea); }
.hero .info-list .ico { color: #8fc6dc; }
.info-list div { display: flex; flex-direction: column; }
.info-list .k { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
[dir="rtl"] .info-list .k { letter-spacing: 0; font-size: .85rem; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.prose p { font-size: 1.15rem; color: #29404f; }
.prose p:first-child { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.45; color: var(--navy); }

.featured { background: var(--sea-soft); }
.dishes { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dish a { display: flex; flex-direction: column; height: 100%; padding: 24px; background: #fff; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.dish a:hover { border-color: var(--sea); transform: translateY(-2px); }
.dish-cat { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin-bottom: 10px; }
[dir="rtl"] .dish-cat { letter-spacing: 0; font-size: .85rem; }
.dish-name { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--navy); }
.dish-sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.dish .prices { margin-top: auto; padding-top: 18px; }

.prices { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.price { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price .size { font-size: .78rem; font-weight: 600; color: var(--muted); }
.dish .prices { justify-content: flex-start; }

.house-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.house-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.house-photo img { width: 100%; height: 100%; object-fit: cover; }
.services { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.services li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.services .ico { color: var(--sea); margin-top: 4px; }

.band { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,36,58,.92) 0%, rgba(6,36,58,.7) 50%, rgba(6,36,58,.35) 100%); }
[dir="rtl"] .band-shade { background: linear-gradient(270deg, rgba(6,36,58,.92) 0%, rgba(6,36,58,.7) 50%, rgba(6,36,58,.35) 100%); }
.band-inner { position: relative; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
.band h2 { color: #fff; }
.band p { max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }

.faq h2 { margin-bottom: 28px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--sea); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 12px; max-width: 68ch; }

/* Inner pages */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); background: var(--sea-soft); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }

.cat-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.cat-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cat-nav a:hover { border-color: var(--navy); }
.cat-nav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.menu-body { max-width: 900px; padding-top: 24px; padding-bottom: 72px; }
.cat { padding-top: 48px; }
.cat h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
.cat-note { color: var(--sea); font-weight: 600; margin: 10px 0 0; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-name { display: flex; flex-direction: column; font-weight: 600; font-size: 1.06rem; }
.item-sub { font-weight: 400; font-size: .92rem; color: var(--muted); }
.leader { flex: 1; min-width: 24px; border-bottom: 1px dotted #a9bcc8; transform: translateY(-5px); }
.item .prices { flex: none; max-width: 55%; }
.wine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.wine-group h3 { font-size: 1.2rem; margin: 28px 0 0; color: var(--sea); }
.allergens { margin-top: 48px; padding: 18px 22px; border-radius: var(--radius); background: var(--sea-soft); color: #29404f; }

.cta-strip { background: var(--navy); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta-strip h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-strip p { margin: 0; color: rgba(255,255,255,.85); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-list.stacked { grid-template-columns: 1fr; padding: 0; gap: 26px; }
.info-list.stacked a, .info-list.stacked span:not(.k) { font-size: 1.15rem; }
.reserve { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--sea-soft); }
.reserve h2 { font-size: 1.6rem; }
.reserve p { color: var(--muted); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--navy); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: #fff; }
.map-cover p { margin: 0; font-size: .85rem; max-width: 34ch; opacity: .9; }
.map.loaded .map-cover, .map.loaded > img { display: none; }
.nf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.nf-grid h2 { font-size: 1.5rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { filter: brightness(0) invert(1); width: 64px; margin-bottom: 14px; }
.footer-name { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; color: #fff; }
.footer-h { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8fc6dc; margin-bottom: 14px; }
[dir="rtl"] .footer-h { letter-spacing: 0; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; gap: 32px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-base { margin-top: 48px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-base p { margin: 0; }

.mobile-bar { display: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.consent {
  position: fixed; z-index: 70; inset-inline-start: 16px; bottom: 16px; max-width: 420px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(6,36,58,.18); padding: 20px; font-size: .95rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; color: #29404f; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; min-height: 44px; }

/* Responsive */
@media (max-width: 1020px) {
  .btn-call span { display: none; }
  .btn-call { width: 44px; padding: 0; }
  .dishes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .btn-call { display: none; }
  /* backdrop-filter would make the header the containing block of the fixed panel */
  .site-header, .site-header.on-hero.scrolled, .site-header.on-hero.open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header:not(.on-hero), .site-header.on-hero.scrolled, .site-header.on-hero.open { background: #fff; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 24px 16px;
    background: #fff; color: var(--ink); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 16px 4px; font-size: 1.3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .langs { font-size: 1rem; gap: 8px; }
  .langs a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; box-shadow: none !important; }
  .langs a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 8px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-inner { padding-bottom: 32px; }
  .info-list { grid-template-columns: 1fr; gap: 14px; }
  .hero-info .info-list li:nth-child(3) { display: none; }
  .intro-grid, .house-grid, .contact-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .wine-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
  .nf-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--navy); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: #fff; text-decoration: none; font-weight: 700; }
  .mobile-bar a + a { border-inline-start: 1px solid rgba(255,255,255,.18); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .consent { inset-inline: 12px; max-width: none; bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .dishes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .item { flex-wrap: wrap; }
  .leader { display: none; }
  .item-name { flex: 1 1 60%; }
  .item .prices { max-width: none; margin-inline-start: auto; }
  .map { aspect-ratio: 1 / 1.1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
