/* Casa Frida — shared styles */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #FFFCF6;
}

body {
  background: #FFFCF6;
  color: #2A2320;
  font-family: 'Karla', Helvetica, sans-serif;
  overflow-x: clip;
}

a {
  color: #C4402A;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: #1E8F86; }

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }

/* No-FOUC page fade-in: html.js hides body until main.js marks it ready (see <noscript> fallback in <head>) */
html.js body { opacity: 0; }
html.js.is-ready body { opacity: 1; }
body { transition: opacity .5s ease; }

/* Fade-in for lazily-loaded images */
img.fade-img { opacity: 0; transition: opacity .6s ease; }
img.fade-img.is-loaded { opacity: 1; }

.serif {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 17px 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #E24A33; color: #FFFCF6; }
.btn-primary:hover { color: #FFFCF6; background: #C4402A; }
.btn-outline { border: 1px solid #2A2320; color: #2A2320; }
.btn-outline:hover { color: #1E8F86; border-color: #1E8F86; }
.btn-teal { background: #1E8F86; color: #FFFCF6; }
.btn-teal:hover { color: #FFFCF6; background: #17706A; }
.btn-teal-outline { border: 1px solid #1E8F86; color: #1E6F68; }

@keyframes cf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none !important; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(255, 252, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #F0E3CC;
}
.site-header .logo { height: 64px; width: auto; }
.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #2A2320;
}
.site-nav a { color: #2A2320; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { color: #FFFCF6; padding: 12px 22px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: #2A2320;
  transition: transform .3s ease, opacity .2s ease;
}
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  background: #2A2320;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .hero-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(249, 200, 70, .30);
  mix-blend-mode: soft-light;
}
.hero .hero-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(255,252,246,.34) 0%, rgba(255,252,246,0) 62%);
}

.hero-card-wrap {
  position: relative;
  z-index: 4;
  max-width: 1400px;
  margin: -120px auto 0;
  padding: 0 40px;
}
.hero-card {
  background: #FFFCF6;
  border: 1px solid #F0E3CC;
  border-top: 6px solid #E24A33;
  padding: 54px 56px 58px;
  max-width: 940px;
  box-shadow: 0 24px 60px rgba(42, 35, 32, .09);
  animation: cf-rise .8s ease both;
}
.hero-card .kicker { color: #C4402A; }
.hero-card h1 {
  margin: 0;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.hero-card h1 em { font-style: italic; color: #1E8F86; }
.hero-card p.lede {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: 19px;
  line-height: 1.68;
  color: #6B5B52;
  font-weight: 300;
  text-wrap: pretty;
}
.hero-card .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Quote / hours strip */
.quote-section {
  position: relative;
  background-color: #221512;
  background-image:
    linear-gradient(rgba(20, 13, 11, .72), rgba(20, 13, 11, .72)),
    url('../images/frida-bg.jpg');
  background-size: cover;
  background-position: center 28%;
}
.quote-strip {
  padding: 88px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}
.quote-strip blockquote {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.32;
  max-width: 24ch;
  text-wrap: pretty;
  color: #FFFCF6;
}
.quote-strip .rule { width: 1px; height: 80px; background: rgba(255, 252, 246, .3); }
.quote-strip .hours {
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.8;
  color: rgba(255, 252, 246, .82);
}
.quote-strip .hours .label {
  color: #FFFCF6;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Gallery */
.gallery-section {
  background: #FDF4E4;
  padding: 100px 40px 106px;
}
.gallery-inner { max-width: 1400px; margin: 0 auto; }
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.gallery-head .eyebrow { color: #C22D6B; }
.gallery-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  max-width: 20ch;
  text-wrap: pretty;
}
.gallery-head .desc {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.7;
  color: #6B5B52;
  font-weight: 300;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  grid-column: span 2;
  aspect-ratio: 4/5;
  border: 1px solid #EFE0C7;
  overflow: hidden;
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* Reservations */
.reservations {
  background: #E9F3F1;
  padding: 104px 40px;
}
.reservations .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: center;
}
.reservations .eyebrow { color: #1E8F86; }
.reservations h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
  text-wrap: pretty;
}
.reservations p.lede {
  margin: 0 0 34px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.7;
  color: #4F625E;
  font-weight: 300;
}
.reservations .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.reservations .photo {
  aspect-ratio: 5/4;
  overflow: hidden;
  border: 1px solid #C9E0DA;
}
.reservations .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Visit */
.visit {
  padding: 104px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}
.visit .eyebrow { color: #C4402A; }
.visit h2 { margin: 0 0 26px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.visit .directions {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid #F2A93B;
  padding-bottom: 4px;
}
.visit .hours-list { display: grid; gap: 20px; }
.visit .hours-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EFE0C7;
}
.visit .hours-row .day {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6B5B52;
}
.visit .hours-row .time { font-family: 'Bodoni Moda', Georgia, serif; font-size: 22px; }
.visit .note { margin: 0; font-size: 15px; line-height: 1.7; color: #6B5B52; font-weight: 300; }
.visit .map-card {
  background: repeating-linear-gradient(135deg, #F6EBD6 0 12px, #FBF3E4 12px 24px);
  border: 1px solid #EFE0C7;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.visit .map-card span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A98A63;
}

/* Instagram feed */
.instagram {
  background: #F9C846;
  padding: 96px 40px;
}
.instagram .inner { max-width: 1400px; margin: 0 auto; }
.instagram .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.instagram h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); color: #2A2320; }
.instagram .follow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #2A2320;
  border-bottom: 1px solid #2A2320;
  padding-bottom: 4px;
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feed-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #E8AF25;
  display: block;
}
.feed-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feed-grid a:hover img { transform: scale(1.05); }

/* Footer */
.site-footer {
  background: #FFFCF6;
  border-top: 1px solid #F0E3CC;
  padding: 66px 40px 46px;
}
.site-footer .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .logo { height: 96px; width: auto; }
.site-footer .contact {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #6B5B52;
}
.site-footer .links {
  display: grid;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-footer .links a { color: #2A2320; }
.site-footer .copyright {
  max-width: 1400px;
  margin: 48px auto 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A98A63;
}

/* Menu page */
.menu-hero {
  background: #F9C846;
  color: #2A2320;
  padding: 96px 40px 88px;
}
.menu-hero .inner { max-width: 1400px; margin: 0 auto; }
.menu-hero .eyebrow { color: #8A5A11; }
.menu-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 104px);
  line-height: .98;
  text-wrap: pretty;
}
.menu-hero h1 em { font-style: italic; color: #FFFCF6; }
.menu-hero p.lede {
  margin: 28px 0 0;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  color: #6B4A12;
}

.courses { padding: 96px 40px 20px; max-width: 1400px; margin: 0 auto; }
.course {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px;
  padding: 0 0 72px;
  border-bottom: 1px solid #EFE0C7;
  margin-bottom: 72px;
}
.course:last-child { border-bottom: none; margin-bottom: 0; }
.course h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; }
.course .note { margin: 0; font-size: 15px; line-height: 1.7; color: #6B5B52; font-weight: 300; max-width: 30ch; }
.course-items { display: grid; gap: 34px; }
.menu-item { display: grid; gap: 8px; }
.menu-item .row { display: flex; align-items: baseline; gap: 16px; }
.menu-item h3 { margin: 0; font-size: 23px; letter-spacing: .01em; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted #DCC9A9; transform: translateY(-4px); }
.menu-item .price { font-family: 'Bodoni Moda', Georgia, serif; font-size: 20px; color: #C4402A; }
.menu-item p { margin: 0; font-size: 15px; line-height: 1.65; color: #6B5B52; font-weight: 300; max-width: 58ch; text-wrap: pretty; }

.bar-section {
  background: #E9F3F1;
  color: #2A2320;
  padding: 100px 40px;
}
.bar-section .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}
.bar-section .eyebrow { color: #1E8F86; }
.bar-section h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; text-wrap: pretty; }
.bar-section p.lede { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.7; font-weight: 300; color: #4F625E; }
.drinks { display: grid; gap: 28px; }
.drink-item { display: grid; gap: 6px; }
.drink-item .row { display: flex; align-items: baseline; gap: 16px; }
.drink-item h3 { margin: 0; font-size: 22px; }
.drink-item .dots { flex: 1; border-bottom: 1px dotted #B9D6CF; transform: translateY(-4px); }
.drink-item .price { font-family: 'Bodoni Moda', Georgia, serif; font-size: 19px; color: #1E8F86; }
.drink-item p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 300; color: #4F625E; }

.menu-cta {
  position: relative;
  padding: 110px 40px;
  text-align: center;
  background-color: #221512;
  background-image:
    linear-gradient(rgba(20, 13, 11, .72), rgba(20, 13, 11, .72)),
    url('../images/frida-bg.jpg');
  background-size: cover;
  background-position: center 28%;
}
.menu-cta h2 {
  margin: 0 0 24px;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
  color: #FFFCF6;
}

/* Scroll reveal */
[data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(22px); }

/* Responsive */
@media (max-width: 900px) {
  .site-header, .menu-hero .inner, .courses, .bar-section, .gallery-section, .reservations, .visit, .instagram, .site-footer, .menu-cta {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .site-header .logo { height: 48px !important; }
  .hero { height: 56vh !important; min-height: 360px !important; }
  .hero-card-wrap { padding-left: 22px !important; padding-right: 22px !important; }
  .hero-card { margin-top: -52px !important; padding: 34px 26px 38px !important; }
  .gallery-grid > * { grid-column: span 3 !important; }
  .quote-strip { flex-direction: column !important; gap: 26px !important; text-align: center !important; }
  .quote-strip .rule { display: none !important; }
  .quote-strip .hours { text-align: center !important; }
  .course { gap: 34px !important; }

  /* Hamburger menu */
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: #FFFCF6;
    border: 1px solid #F0E3CC;
    box-shadow: 0 18px 40px rgba(42, 35, 32, .14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
  }
  .site-nav.is-open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px 22px;
    border-bottom: 1px solid #F0E3CC;
  }
  .site-nav a:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .gallery-grid > * { grid-column: span 6 !important; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
