/* ============================================================
   Caramel Café & Lounge — styles.css
   Warm, refined, mobile-first single-page brochure
   ============================================================ */

:root {
  /* Palette */
  --caramel: #c8853f;
  --caramel-deep: #b06f2c;
  --espresso: #3a2a1e;
  --espresso-soft: #4f3a2a;
  --cream: #f7f1e8;
  --cream-deep: #efe5d4;
  --gold: #e0b15e;
  --ink: #2a1d13;
  --muted: #7a6552;
  --white: #fffdf9;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing & shape */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(58, 42, 30, 0.08);
  --shadow: 0 18px 40px -18px rgba(58, 42, 30, 0.35);
  --shadow-lg: 0 30px 70px -28px rgba(58, 42, 30, 0.5);
  --header-h: 72px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--espresso); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--caramel-deep);
  margin-bottom: 14px;
}

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 620px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.section-note { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-primary { background: var(--caramel); color: var(--white); box-shadow: 0 10px 24px -10px rgba(200,133,63,.8); }
.btn-primary:hover { background: var(--caramel-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(200,133,63,.85); }

.btn-outline { background: transparent; border-color: rgba(58,42,30,.28); color: var(--espresso); }
.btn-outline:hover { border-color: var(--caramel); color: var(--caramel-deep); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,.14); color: var(--espresso); border-color: transparent; }
.btn-ghost:hover { background: var(--caramel); color: var(--white); }

.link-arrow { color: var(--caramel-deep); font-weight: 600; font-size: .95rem; transition: gap .2s, color .2s; display: inline-flex; gap: 4px; }
.link-arrow:hover { color: var(--espresso); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247, 241, 232, 0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 241, 232, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); height: 60px;
}
/* Light header text while transparent over the hero photo */
.site-header .brand-name { color: var(--cream); }
.site-header .brand-sub { color: rgba(247, 241, 232, .8); }
.site-header .nav a { color: rgba(247, 241, 232, .9); }
.site-header .nav a:hover { color: #fff; }
.site-header .header-call { color: var(--cream); }
/* Revert to dark once the solid background appears */
.site-header.scrolled .brand-name { color: var(--espresso); }
.site-header.scrolled .brand-sub { color: var(--muted); }
.site-header.scrolled .nav a { color: var(--espresso-soft); }
.site-header.scrolled .nav a:hover { color: var(--caramel-deep); }
.site-header.scrolled .header-call { color: var(--espresso); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: block; width: 38px; height: 38px;
  object-fit: cover; border-radius: 11px; box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--espresso); line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: none; gap: 30px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--espresso-soft); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--caramel); transition: width .3s var(--ease); }
.nav a:hover { color: var(--caramel-deep); }
.nav a:hover::after { width: 100%; }

@media (min-width: 880px) { .nav { display: flex; } .header-call { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: var(--espresso);
  will-change: transform;
}
.hero-bg::before {
  content: ""; position: absolute; inset: -7%;
  background-image: url("photos/terrace-evening.jpg");
  background-size: cover; background-position: center;
  transform-origin: 60% 40%;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,16,9,.62) 0%, rgba(26,16,9,.38) 38%, rgba(26,16,9,.72) 100%),
    radial-gradient(110% 80% at 78% 8%, rgba(224,177,94,.22), transparent 55%);
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2.5%, -2%); }
}

/* Hero text reads light over the photo */
.hero .eyebrow { color: var(--gold); }
.hero-title { color: var(--cream); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-title .amp { color: var(--gold); }
.hero-title-light { color: var(--gold); }
.hero-tagline { color: rgba(247,241,232,.92); text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero-rating { color: rgba(247,241,232,.88); }
.hero .btn-outline { border-color: rgba(247,241,232,.55); color: var(--cream); }
.hero .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 760px; }

.hero-title {
  font-size: clamp(3rem, 12vw, 6.6rem); font-weight: 600; line-height: .96;
  letter-spacing: -0.02em; margin: 6px 0 0;
}
.hero-title .amp { color: var(--caramel-deep); font-style: italic; font-weight: 400; }
.hero-title-light { color: var(--caramel); font-style: italic; font-weight: 400; }

.hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--espresso-soft); margin-top: 22px; max-width: 30ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: .95rem; color: var(--espresso-soft); }
.stars, .proof-stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.star-half { position: relative; display: inline-block; color: rgba(224,177,94,.35); }
.star-half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--gold); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(247,241,232,.5); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--cream); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- Social proof strip ---------- */
.proof { background: var(--espresso); color: var(--cream); }
.proof-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 18px 22px; text-align: center; font-size: .95rem; }
.proof-item { display: inline-flex; align-items: center; gap: 8px; }
.proof strong { color: var(--gold); }
.proof-dot { color: rgba(247,241,232,.4); }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; gap: 44px; align-items: center; }
.about-copy p { color: var(--espresso-soft); margin-top: 16px; }
.about-copy .lead { font-size: 1.18rem; color: var(--espresso); margin-top: 22px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { font-size: .82rem; font-weight: 600; color: var(--caramel-deep); background: var(--cream-deep); border: 1px solid rgba(200,133,63,.3); padding: 7px 15px; border-radius: 999px; }

.about-media { position: relative; }
.about-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; bottom: -18px; left: -10px; background: var(--white);
  padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  border: 1px solid var(--cream-deep);
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.about-badge-num { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--caramel-deep); }
.about-badge-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

@media (min-width: 820px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; } }

/* ---------- Menu ---------- */
.menu { background: linear-gradient(180deg, var(--cream-deep), var(--cream)); }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--cream-deep);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.menu-card-img { height: 190px; background-size: cover; background-position: center; animation: kenburns-soft 14s ease-in-out infinite alternate; }
/* desync each card so they drift independently */
.menu-grid .menu-card:nth-child(2) .menu-card-img { animation-duration: 17s; animation-delay: -5s; }
.menu-grid .menu-card:nth-child(3) .menu-card-img { animation-duration: 15s; animation-delay: -9s; }
.menu-grid .menu-card:nth-child(4) .menu-card-img { animation-duration: 18s; animation-delay: -3s; }
.menu-grid .menu-card:nth-child(5) .menu-card-img { animation-duration: 16s; animation-delay: -11s; }
.menu-card-body { padding: 22px 22px 26px; }
.menu-card-body h3 { margin-bottom: 8px; }
.menu-card-body p { color: var(--muted); font-size: .96rem; }

.menu-card-cta { background: var(--espresso); color: var(--cream); justify-content: center; }
.menu-card-cta h3 { color: var(--cream); }
.menu-card-cta p { color: rgba(247,241,232,.72); }
.menu-card-cta .link-arrow { color: var(--gold); margin-top: 14px; }
.menu-card-cta .link-arrow:hover { color: var(--white); }

/* ---------- Reviews ---------- */
.reviews { background: var(--espresso); color: var(--cream); position: relative; overflow: hidden; }
.reviews::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(224,177,94,.16), transparent 60%); pointer-events: none; }
.reviews h2 { color: var(--cream); }
.reviews .eyebrow { color: var(--gold); }
.reviews-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  position: relative; background: rgba(255,253,249,.05); border: 1px solid rgba(247,241,232,.14);
  border-radius: var(--radius); padding: 40px 26px 26px; backdrop-filter: blur(4px);
}
.quote-mark { position: absolute; top: 6px; left: 22px; font-family: var(--serif); font-size: 4rem; color: var(--caramel); line-height: 1; opacity: .85; }
.review-stars { display: block; color: var(--gold); font-size: 1rem; letter-spacing: .14em; margin-bottom: 12px; }
.review-card blockquote { font-family: var(--serif); font-size: 1.06rem; font-style: italic; line-height: 1.55; color: var(--cream); }
.review-card figcaption { margin-top: 20px; }
.review-name { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--cream); font-style: normal; }
.review-meta { display: block; margin-top: 3px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream-deep); }
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--cream);
  aspect-ratio: 1 / 1;
}
.gallery-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: filter .5s var(--ease);
  animation: kenburns-soft 16s ease-in-out infinite alternate;
}
.gallery-item:hover img { filter: brightness(1.06) saturate(1.05); }
/* desync each tile so the grid drifts organically */
.gallery-item:nth-child(2) img { animation-duration: 18s; animation-delay: -4s; }
.gallery-item:nth-child(3) img { animation-duration: 15s; animation-delay: -8s; }
.gallery-item:nth-child(4) img { animation-duration: 19s; animation-delay: -2s; }
.gallery-item:nth-child(5) img { animation-duration: 17s; animation-delay: -10s; }
.gallery-item:nth-child(6) img { animation-duration: 16s; animation-delay: -6s; }
.gallery-item:nth-child(7) img { animation-duration: 18s; animation-delay: -12s; }
.gallery-item:nth-child(8) img { animation-duration: 15s; animation-delay: -5s; }

/* shared drift for menu & gallery photos — noticeable but smooth */
@keyframes kenburns-soft {
  0%   { transform: scale(1.08) translate(3%, 2%); }
  50%  { transform: scale(1.2) translate(-1%, -2.5%); }
  100% { transform: scale(1.1) translate(-3%, 1.5%); }
}

/* ---------- Visit ---------- */
.visit { background: var(--cream); }
.visit-grid { display: grid; gap: 40px; align-items: stretch; }
@media (min-width: 880px) { .visit-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.visit-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 22px; }
.visit-list li { display: flex; gap: 16px; align-items: flex-start; }
.visit-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--cream-deep); border-radius: 12px; font-size: 1.2rem; }
.visit-list h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.visit-list p { color: var(--espresso); margin-top: 3px; }
.visit-list a:hover { color: var(--caramel-deep); }
.visit-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.visit-map { min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.visit-map iframe { display: block; height: 100%; min-height: 360px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--cream); padding-top: 64px; }
.footer-inner { display: grid; gap: 40px; padding-bottom: 44px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1.4fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }
.footer-sub { font-size: .9rem; color: rgba(247,241,232,.65); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 12px; }
.footer-col p { font-size: .95rem; color: rgba(247,241,232,.78); margin-top: 6px; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-social a { font-size: .95rem; color: rgba(247,241,232,.78); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 22px 30px; border-top: 1px solid rgba(247,241,232,.12); font-size: .85rem; color: rgba(247,241,232,.6); }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-on-scroll { opacity: 0; transform: translateY(22px); }
.reveal { animation: rise .9s var(--ease) forwards; }
.reveal[data-delay="1"] { animation-delay: .1s; }
.reveal[data-delay="2"] { animation-delay: .22s; }
.reveal[data-delay="3"] { animation-delay: .34s; }
.reveal[data-delay="4"] { animation-delay: .46s; }
.reveal[data-delay="5"] { animation-delay: .6s; }
.reveal-on-scroll.in-view { animation: rise .8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}
