/* ============================================
   FANUS CAFE & RESTRO — Stylesheet
   Colors from logo: Forest Green + Gold + Cream
   ============================================ */

:root {
  --green:        #123f30;
  --green-dark:   #0d2e23;
  --green-soft:   #1c5240;
  --gold:         #c99a3f;
  --gold-light:   #e0bd6b;
  --cream:        #f7efe1;
  --cream-dark:   #efe3cf;
  --ink:          #24211c;
  --muted:        #6b6455;
  --white:        #ffffff;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(18, 63, 48, 0.08);
  --shadow-md: 0 8px 28px rgba(18, 63, 48, 0.14);
  --radius: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--green); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

.section { padding: 80px 0; }
.section-alt { background: var(--white); }

/* ---------- Section heading ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; font-size: 0.72rem;
  color: var(--gold); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); margin-top: 12px; }
.divider-lamp {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px;
}
.divider-lamp span { height: 1px; width: 46px; background: var(--gold); }
.divider-lamp small { color: var(--gold); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 40px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: all .25s ease;
}
.btn-primary { background: var(--gold); color: var(--green-dark); }
.btn-primary:hover { background: var(--green); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--gold); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--green-dark); }
.btn-ghost { border-color: rgba(247,239,225,.5); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--green-dark); }

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 63, 48, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 46px; width: auto; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .brand-text b { font-family: var(--font-head); color: var(--cream); font-size: 1.25rem; letter-spacing: 2px; }
.nav-brand .brand-text small { color: var(--gold-light); font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--cream); font-weight: 500; font-size: 0.95rem; padding: 8px 16px; border-radius: 30px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links .nav-cta { background: var(--gold); color: var(--green-dark) !important; margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--cream); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: .3s; border-radius: 2px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background:
    linear-gradient(rgba(13,46,35,.82), rgba(13,46,35,.9)),
    url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
  text-align: center; color: var(--cream); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(224,189,107,.18), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 40px 22px; }
.hero-logo { height: 120px; margin: 0 auto 24px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); animation: glow 3s ease-in-out infinite; }
@keyframes glow {
  0%,100% { filter: drop-shadow(0 6px 20px rgba(201,154,63,.25)); }
  50% { filter: drop-shadow(0 6px 34px rgba(224,189,107,.55)); }
}
.hero h1 { color: var(--cream); font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: 6px; }
.hero .tagline { color: var(--gold-light); font-size: clamp(1rem,2.4vw,1.4rem); letter-spacing: 4px; text-transform: uppercase; margin: 6px 0 18px; font-weight: 500; }
.hero .sub { font-size: 1.05rem; color: rgba(247,239,225,.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--gold-light); font-size: 1.4rem; z-index: 2; animation: bob 1.8s infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ---------- Highlights strip ---------- */
.highlights { background: var(--green); color: var(--cream); }
.highlights .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 46px 0; }
.highlight { text-align: center; padding: 10px; }
.highlight .ic { font-size: 2rem; margin-bottom: 10px; }
.highlight h3 { color: var(--gold-light); font-size: 1.15rem; margin-bottom: 4px; }
.highlight p { color: rgba(247,239,225,.75); font-size: .9rem; }

/* ============================================
   ABOUT preview
   ============================================ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split .imgwrap { position: relative; }
.about-split .imgwrap img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-split .imgwrap::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold);
  border-radius: var(--radius); z-index: -1;
}
.about-split h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 10px; }
.about-split .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .72rem; }
.about-split p { color: var(--muted); margin: 14px 0; }

/* ============================================
   MENU
   ============================================ */
.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.menu-tab {
  padding: 9px 22px; border-radius: 30px; border: 1.5px solid var(--cream-dark); background: var(--white);
  font-weight: 500; font-size: .9rem; cursor: pointer; color: var(--muted); transition: all .2s;
}
.menu-tab:hover { border-color: var(--gold); color: var(--green); }
.menu-tab.active { background: var(--green); color: var(--cream); border-color: var(--green); }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 48px; max-width: 960px; margin: 0 auto; }
.menu-cat { display: none; }
.menu-cat.show { display: contents; }
.menu-item {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--cream-dark);
}
.menu-item .mi-name { font-weight: 600; color: var(--green); white-space: nowrap; }
.menu-item .mi-dots { flex: 1; border-bottom: 1.5px dotted #c9bfa8; transform: translateY(-4px); }
.menu-item .mi-price { font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.menu-cat-title {
  grid-column: 1 / -1; text-align: center; font-size: 1.6rem; color: var(--green);
  margin: 10px 0 6px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.menu-cat-title::before, .menu-cat-title::after { content:''; height:1px; width:40px; background: var(--gold); }
.menu-note { text-align: center; color: var(--muted); margin-top: 40px; font-size: .9rem; }

/* ---- Pure Veg badge ---- */
.veg-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 30px;
  padding: 9px 22px; border-radius: 40px; background: #eaf4ec; border: 1.5px solid #2e7d46;
  color: #1f6b38; font-weight: 600; font-size: .92rem; letter-spacing: .5px;
}
.veg-badge .veg-dot {
  width: 16px; height: 16px; border: 2px solid #2e7d46; border-radius: 3px;
  display: grid; place-items: center;
}
.veg-badge .veg-dot::after { content: ''; width: 7px; height: 7px; background: #2e7d46; border-radius: 50%; }
.veg-center { text-align: center; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; grid-auto-rows: 240px; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); position: relative; box-shadow: var(--shadow-sm); }
.gallery-grid figure.tall { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 24px 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(13,46,35,.85)); font-weight: 500; font-size: .95rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--green); color: var(--cream); }
.reviews .section-head h2 { color: var(--cream); }
.reviews .section-head .eyebrow { color: var(--gold-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(224,189,107,.25);
  border-radius: var(--radius); padding: 28px 24px; backdrop-filter: blur(4px);
}
.review-card .stars { color: var(--gold-light); margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { color: rgba(247,239,225,.9); font-style: italic; margin-bottom: 18px; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-head);
}
.review-card .who b { color: var(--cream); display: block; font-size: .95rem; }
.review-card .who small { color: var(--gold-light); font-size: .78rem; }

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: linear-gradient(rgba(18,63,48,.9), rgba(18,63,48,.9)),
    url('https://images.unsplash.com/photo-1521017432531-fbd92d768814?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--cream); text-align: center; padding: 76px 0;
}
.cta-banner h2 { color: var(--cream); font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(247,239,225,.85); margin-bottom: 26px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 6px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--cream-dark); }
.info-row .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--gold-light);
  display: grid; place-items: center; font-size: 1.2rem;
}
.info-row b { color: var(--green); display: block; }
.info-row span, .info-row a { color: var(--muted); font-size: .95rem; }
.info-row a:hover { color: var(--gold); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.contact-form { background: var(--white); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 18px; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--green); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-dark); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; margin-bottom: 16px; background: var(--cream); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--green-dark); color: var(--cream); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 66px; margin-bottom: 8px; }
.footer-wordmark {
  display: block; font-family: var(--font-head); color: var(--cream);
  font-size: 1.5rem; letter-spacing: 3px; line-height: 1.1; margin-bottom: 12px;
}
.footer-wordmark span { display: block; font-size: .68rem; letter-spacing: 4px; color: var(--gold-light); margin-top: 4px; text-transform: uppercase; }
.footer-brand p { color: rgba(247,239,225,.7); font-size: .9rem; max-width: 300px; }
.footer h4 { color: var(--gold-light); font-family: var(--font-body); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer-contact p { color: rgba(247,239,225,.75); font-size: .92rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold-light); }
.footer-contact p { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(224,189,107,.4);
  display: grid; place-items: center; color: var(--gold-light); font-size: 1.05rem; transition: all .25s;
}
.social-row a:hover { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(224,189,107,.18); padding: 20px 0; text-align: center; font-size: .82rem; color: rgba(247,239,225,.6); }
.footer-bottom a { color: var(--gold-light); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(rgba(13,46,35,.86), rgba(13,46,35,.92)),
    url('https://images.unsplash.com/photo-1559925393-8be0ec4767c8?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--cream); text-align: center; padding: 90px 0 70px;
}
.page-banner h1 { color: var(--cream); font-size: clamp(2.2rem,5vw,3.4rem); letter-spacing: 3px; }
.page-banner .crumb { color: var(--gold-light); margin-top: 10px; font-size: .9rem; letter-spacing: 1px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 74px; right: 0; height: calc(100vh - 74px); width: 260px;
    background: var(--green-dark); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px 20px; transform: translateX(100%); transition: transform .3s ease; box-shadow: -6px 0 24px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }

  .about-split, .contact-split { grid-template-columns: 1fr; gap: 34px; }
  .about-split .imgwrap::after { display: none; }
  .highlights .grid { grid-template-columns: 1fr; gap: 18px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  /* fixed backgrounds jank on mobile/iOS -> use scroll */
  .hero, .page-banner, .cta-banner { background-attachment: scroll; }
}

/* Large desktops & TVs — use a little more width */
@media (min-width: 1500px) {
  :root { --maxw: 1300px; }
  .hero h1 { font-size: 5.4rem; }
}

/* Big tablets / small laptops */
@media (max-width: 1100px) and (min-width: 901px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .menu-grid { grid-template-columns: 1fr; gap: 4px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid figure.tall { grid-row: span 1; }
  .hero { min-height: 82vh; }
  .hero-logo { height: 96px; }
  .nav-brand .brand-text small { display: none; }
  .contact-form { padding: 24px 20px; }
  .page-banner { padding: 70px 0 54px; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 22px; font-size: .9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .section-head h2 { font-size: 1.7rem; }
  .menu-cat-title { font-size: 1.35rem; }
  .nav-brand img { height: 40px; }
  .wa-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 16px; right: 16px; }
}

/* Landscape phones — shorter hero so content shows */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 460px; }
}

/* Reduced-motion: calm the scroll reveals, but keep the hero coffee
   animation running (it is the brand centerpiece the owner wants shown). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================
   HERO — Animated coffee scene (3D-style)
   ============================================ */
.hero-coffee {
  width: min(330px, 78vw); height: auto; margin: 0 auto 6px; display: block;
  overflow: visible; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35));
}
.hero-coffee .anim { transform-box: fill-box; }

/* whole cup gently floats */
.cc-cup { transform-box: fill-box; transform-origin: 50% 50%; animation: ccFloat 4s ease-in-out infinite; }
@keyframes ccFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* warm glow pulse */
.cc-glow { transform-box: fill-box; transform-origin: center; animation: ccGlow 4.5s ease-in-out infinite; }
@keyframes ccGlow { 0%,100% { opacity:.45; transform: scale(1); } 50% { opacity:.8; transform: scale(1.07); } }

/* rising steam */
.cc-steam { transform-box: fill-box; transform-origin: bottom center; opacity: 0; filter: blur(1.4px); }
.cc-steam.s1 { animation: ccSteam 3.4s ease-in-out infinite; }
.cc-steam.s2 { animation: ccSteam 3.4s ease-in-out .9s infinite; }
.cc-steam.s3 { animation: ccSteam 3.4s ease-in-out 1.8s infinite; }
@keyframes ccSteam {
  0%   { opacity: 0;   transform: translateY(8px) scaleY(.55); }
  25%  { opacity: .55; }
  60%  { opacity: .35; }
  100% { opacity: 0;   transform: translateY(-48px) scaleY(1.25); }
}

/* pouring coffee stream */
.cc-pour { transform-box: fill-box; transform-origin: top center; animation: ccPour 3s ease-in-out infinite; }
@keyframes ccPour {
  0%,12%  { opacity: 0; transform: scaleY(0); }
  22%     { opacity: .95; transform: scaleY(1); }
  82%     { opacity: .95; transform: scaleY(1); }
  100%    { opacity: 0; transform: scaleY(1); }
}

/* falling drops */
.cc-drop { transform-box: fill-box; transform-origin: center; opacity: 0; }
.cc-drop.d1 { animation: ccDrop 1.3s linear infinite; }
.cc-drop.d2 { animation: ccDrop 1.3s linear .65s infinite; }
@keyframes ccDrop { 0% { opacity:0; transform: translateY(0);} 12%{opacity:1;} 88%{opacity:1;} 100%{ opacity:0; transform: translateY(104px);} }

/* floating coffee beans */
.cc-bean { transform-box: fill-box; transform-origin: center; }
.cc-bean.b1 { animation: ccBean1 5s ease-in-out infinite; }
.cc-bean.b2 { animation: ccBean2 6s ease-in-out infinite; }
.cc-bean.b3 { animation: ccBean3 5.5s ease-in-out infinite; }
@keyframes ccBean1 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-6px,-12px) rotate(-18deg); } }
@keyframes ccBean2 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(7px,-10px) rotate(20deg); } }
@keyframes ccBean3 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(5px,-14px) rotate(12deg); } }

@media (max-width: 560px) { .hero-coffee { width: min(232px, 64vw); } }
/* Hero coffee animation is intentionally kept ON in all cases,
   including reduced-motion, as it is the site's signature visual. */
