/* ============================================================
   La Boca — Rovinj
   styles.css
   Mediterranean, warm, elegant
   ============================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #2c2420;
  background-color: #faf7f2;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   COLOUR PALETTE (referenced as comments throughout)
   --terracotta:   #c1694f
   --terracotta-light: #d4856d
   --sand:         #e8d9c4
   --sand-light:   #faf7f2
   --teal:         #1e5f6b
   --teal-dark:    #154550
   --teal-light:   #2c8093
   --gold:         #b8912a
   --gold-light:   #d4a843
   --warm-white:   #fdf9f4
   --text-dark:    #2c2420
   --text-mid:     #5a4a3f
   ============================================================ */

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: #2c2420;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: #5a4a3f;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: #f3ede3;
}

.section--dark {
  background-color: #154550;
  color: #fdf9f4;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fdf9f4;
}

.section--dark p {
  color: #c8d8db;
}

.section-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8912a;
  margin-bottom: 0.6rem;
}

.section--dark .section-label {
  color: #d4a843;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.divider {
  width: 50px;
  height: 2px;
  background: #c1694f;
  margin: 1.2rem auto 0;
}

.divider--left {
  margin-left: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(21, 69, 80, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fdf9f4;
  letter-spacing: 0.02em;
}

.nav__brand span {
  color: #d4a843;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,249,244,0.85);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #d4a843;
}

.nav__cta {
  background: #c1694f;
  color: #fdf9f4 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: #d4856d;
  color: #fdf9f4 !important;
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fdf9f4;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(21, 69, 80, 0.98);
    padding: 1rem 0 1.5rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    text-align: center;
  }

  .nav__links a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav__cta {
    margin: 0.5rem auto 0;
    display: inline-block;
    border-radius: 3px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
  background: linear-gradient(
    160deg,
    #154550 0%,
    #1e5f6b 40%,
    #2c8093 70%,
    #1e5f6b 85%,
    #154550 100%
  );
}

/* Decorative wave overlay */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: #faf7f2;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Subtle texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(184,145,42,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 70%, rgba(193,105,79,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fdf9f4;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-style: italic;
  color: rgba(253,249,244,0.7);
  margin-bottom: 1.4rem;
  letter-spacing: 0.06em;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(253,249,244,0.88);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero__location {
  font-size: 0.85rem;
  color: rgba(253,249,244,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 2.8rem;
}

.hero__location i {
  margin-right: 0.3em;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn--primary {
  background: #c1694f;
  color: #fdf9f4;
  border-color: #c1694f;
}

.btn--primary:hover {
  background: #d4856d;
  border-color: #d4856d;
}

.btn--outline {
  background: transparent;
  color: #fdf9f4;
  border-color: rgba(253,249,244,0.5);
}

.btn--outline:hover {
  border-color: #d4a843;
  color: #d4a843;
}

.btn--teal {
  background: #1e5f6b;
  color: #fdf9f4;
  border-color: #1e5f6b;
}

.btn--teal:hover {
  background: #154550;
  border-color: #154550;
}

/* ============================================================
   ABOUT (O restoranu)
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__visual {
  position: relative;
}

.photo-placeholder {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.photo-placeholder__inner {
  background: linear-gradient(135deg, #1e5f6b 0%, #2c8093 50%, #154550 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(253,249,244,0.7);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
}

.photo-placeholder__inner--terracotta {
  background: linear-gradient(135deg, #c1694f 0%, #d4856d 50%, #a85540 100%);
}

.photo-placeholder__inner--sand {
  background: linear-gradient(135deg, #c8a882 0%, #e8d9c4 50%, #b89870 100%);
  color: #5a4a3f;
}

.photo-placeholder__inner--gold {
  background: linear-gradient(135deg, #8c6a1a 0%, #b8912a 50%, #d4a843 100%);
}

.photo-placeholder__label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

.photo-placeholder--tall .photo-placeholder__inner {
  height: 420px;
}

.photo-placeholder--medium .photo-placeholder__inner {
  height: 280px;
}

.photo-placeholder--short .photo-placeholder__inner {
  height: 200px;
}

.photo-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  opacity: 0.5;
}

.about__card {
  background: #fdf9f4;
  border-left: 3px solid #b8912a;
  padding: 1.4rem 1.6rem;
  margin-top: 2rem;
  border-radius: 0 4px 4px 0;
}

.about__card p {
  font-size: 0.95rem;
  font-style: italic;
  color: #5a4a3f;
  margin-bottom: 0.5rem;
}

.about__card cite {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8912a;
  font-style: normal;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f3ede3;
  border: 1px solid #e8d9c4;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a4a3f;
}

/* ============================================================
   MENU
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  background: #fdf9f4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(44,36,32,0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.menu-card__body {
  padding: 1.4rem 1.3rem 1.5rem;
}

.menu-card__body h3 {
  margin-bottom: 0.7rem;
}

.menu-card__body p {
  font-size: 0.93rem;
}

.menu-highlights {
  margin-top: 3rem;
  background: #fdf9f4;
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(193,105,79,0.12);
}

.menu-highlights h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.dishes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.dishes-list li {
  background: #faf7f2;
  border: 1px solid #eee2d7;
  padding: 0.7rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  text-align: center;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery__note {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #88766b;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info,
.map-area {
  min-width: 0;
}

.contact-block + .contact-block {
  margin-top: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.6rem;
}

.contact-block a {
  display: block;
  color: #fdf9f4;
  opacity: 0.92;
  margin-bottom: 0.45rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(253,249,244,0.08);
  color: #d9e5e8;
}

.hours-table td:last-child {
  text-align: right;
  color: #fdf9f4;
}

.map-placeholder {
  background: linear-gradient(145deg, rgba(253,249,244,0.06), rgba(253,249,244,0.02));
  border: 1px solid rgba(253,249,244,0.08);
  border-radius: 4px;
}

.map-placeholder__inner {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: rgba(253,249,244,0.7);
}

.map-placeholder__icon {
  margin-bottom: 1rem;
  color: #d4a843;
}

.map-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #c1694f;
  color: #fff;
  padding: 0.72rem 1.2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #a85540, #c1694f 55%, #d4856d);
  color: #fdf9f4;
  padding: 4.5rem 1.5rem;
}

.cta-section__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.cta-section h2,
.cta-section p,
.cta-section .section-label {
  color: #fdf9f4;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.85rem 1rem;
  border-radius: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #2a160f;
  color: rgba(253,249,244,0.75);
  padding: 2.8rem 0 3rem;
  text-align: center;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fdf9f4;
}

.footer__brand span {
  color: #d4a843;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.footer__links a {
  color: rgba(253,249,244,0.55);
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item--tall .photo-placeholder__inner {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .cta-contacts {
    flex-direction: column;
    align-items: center;
  }

  .about__badges {
    gap: 0.4rem;
  }
}

/* ============================================================
   DEMO POLISH OVERRIDES
   ============================================================ */
:root {
  --terracotta: #bf6a4f;
  --terracotta-dark: #7f3d2f;
  --terracotta-light: #d8876a;
  --sand: #f5eee6;
  --wine: #4b241b;
  --gold: #c79a3d;
  --text: #2f221d;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #fcf6f0 0%, #f8f0e8 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav.scrolled,
.nav__links {
  background: rgba(75, 36, 27, 0.94);
}

.nav__cta,
.btn--primary,
.map-btn {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.nav__cta:hover,
.btn--primary:hover,
.map-btn:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
}

.hero {
  background:
    linear-gradient(rgba(58, 23, 16, 0.48), rgba(58, 23, 16, 0.52)),
    linear-gradient(135deg, rgba(191,106,79,0.68), rgba(127,61,47,0.72)),
    url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 35%),
    linear-gradient(to top, rgba(44,16,10,0.15), rgba(44,16,10,0.05));
}

.hero__content {
  background: rgba(44, 17, 12, 0.24);
  backdrop-filter: blur(4px);
  padding: 2rem 2rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(30, 12, 8, 0.28);
}

.section-label,
.about__card cite,
.nav__brand span,
.footer__brand span {
  color: var(--gold);
}

.section--alt {
  background: linear-gradient(180deg, #f4e7dd 0%, #f8f1ea 100%);
}

.section--dark {
  background: linear-gradient(135deg, #5c2d22 0%, #7f3d2f 55%, #4b241b 100%);
}

.about__card,
.menu-card,
.menu-highlights {
  box-shadow: 0 18px 38px rgba(74, 39, 27, 0.08);
}

.menu-card,
.menu-highlights,
.about__card {
  border-radius: 18px;
}

.dishes-list li {
  border-radius: 999px;
  background: #fff7f2;
  border-color: rgba(191,106,79,0.2);
}

.photo-real {
  background: #e7d8cb;
  box-shadow: 0 18px 35px rgba(58, 29, 20, 0.12);
}

.photo-real .photo-placeholder__inner {
  color: transparent;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.photo-real .photo-placeholder__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 18, 12, 0.3), rgba(37, 18, 12, 0.08));
}

.photo-about .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&w=1200&q=80');
}
.photo-seafood .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1559847844-5315695dadae?auto=format&fit=crop&w=1200&q=80');
}
.photo-pizza .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1200&q=80');
}
.photo-pasta .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1621996346565-e3dbc646d9a9?auto=format&fit=crop&w=1200&q=80');
}
.photo-grill .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1529193591184-b1d58069ecdd?auto=format&fit=crop&w=1200&q=80');
}
.photo-salad .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1546793665-c74683f339c1?auto=format&fit=crop&w=1200&q=80');
}
.photo-dessert .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1563805042-7684c019e1cb?auto=format&fit=crop&w=1200&q=80');
}
.photo-gallery-1 .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
}
.photo-gallery-2 .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1200&q=80');
}
.photo-gallery-3 .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1200&q=80');
}
.photo-gallery-4 .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1514326640560-7d063ef2aed5?auto=format&fit=crop&w=1200&q=80');
}
.photo-gallery-5 .photo-placeholder__inner {
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&q=80');
}

.gallery__note {
  font-style: italic;
}

.cta-section {
  background:
    linear-gradient(rgba(74, 30, 22, 0.74), rgba(74, 30, 22, 0.74)),
    url('https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.footer {
  background: linear-gradient(180deg, #3a1b13 0%, #2a140e 100%);
}

@media (max-width: 700px) {
  .hero__content {
    padding: 1.5rem 1.2rem 1.7rem;
    border-radius: 14px;
  }

  .dishes-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .dishes-list {
    grid-template-columns: 1fr;
  }
}
