/* ==========================================================
   Bombay Dosa Cafe - static rebuild of bombaydosacafe.ca
   Bootstrap 5 + custom styles (matches the live WordPress theme)
   ========================================================== */

:root {
  --bd-gold: #BE8E31;        /* buttons, active nav, icons */
  --bd-gold-dark: #A07624;
  --bd-navy: #274253;        /* section headings, submit button */
  --bd-black: #000000;
  --bd-cream: #ECE8E5;       /* first home section */
  --bd-pink: #FFDDE0;        /* catering section */
  --bd-brown: #5F4818;       /* FAQ banner */
  --bd-footer: #191B1D;
  --bd-grey: #F4F4F4;        /* FAQ rows */

  --font-body: Arial, Helvetica, sans-serif;
  --font-head: 'Roboto', Arial, sans-serif;
  --font-form: 'Bitter', Georgia, serif;
  --font-script: 'Kaushan Script', cursive;
}

/* `clip` (not `hidden`) prevents sideways scrolling on every browser,
   including iOS Safari, without breaking the sticky header */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bd-black);
  background: #fff;
  overflow-x: clip;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); }
p, li, h1, h2, h3 { overflow-wrap: break-word; }
a { color: var(--bd-gold); }
a:hover { color: var(--bd-gold-dark); }
/* height:auto so width/height attributes never force a fixed height */
img { max-width: 100%; height: auto; }

.section-pad { padding: 90px 0; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--bd-gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 11px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s;
}
.btn-gold:hover { background: var(--bd-gold-dark); color: #fff; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  z-index: 1030;
}
.site-header .navbar { padding: 10px 0; }
.navbar-brand img { width: 120px; height: 120px; object-fit: contain; transition: width .25s, height .25s; }
.site-header.is-scrolled .navbar-brand img { width: 80px; height: 80px; }
.main-nav .nav-link {
  font-family: var(--font-head);
  font-size: 21px;
  color: #000 !important;
  padding: 8px 13px !important;
  transition: color .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--bd-gold) !important; }
.navbar-toggler { border: 0; box-shadow: none !important; }

/* ── PAGE BANNERS ────────────────────────────────────────── */
.page-banner {
  position: relative;
  background: #222 no-repeat center / cover;
  padding: 110px 0 80px;
  text-align: center;
  color: #fff;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}
.page-banner.solid { background: var(--bd-brown); }
.page-banner.solid::before { display: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 45px;
  color: #fff;
  margin-bottom: 18px;
}
.banner-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 440px;
  margin: 0 auto;
}
.banner-divider::before,
.banner-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .85); }
.banner-divider span { font-size: 14px; line-height: 1; }
.banner-divider.short { max-width: 130px; }

/* ── GOLD LINE + FORK ICON DIVIDER ───────────────────────── */
.fork-divider {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--bd-gold);
  font-size: 15px;
}
.fork-divider::before,
.fork-divider::after { content: ''; flex: 1; height: 1px; background: #D8C49A; }

/* ── HOME: HERO SLIDER ───────────────────────────────────── */
/* Artwork with text baked in: always show the whole image, never crop */
.hero-slider .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1900 / 520;
  display: block;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; }

/* ── HOME: TEXT + OVERLAPPING IMAGES ─────────────────────── */
.home-fresh { background: var(--bd-cream); }
.home-intro h1,
.home-intro h2 {
  font-weight: 400;
  font-size: 35px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 22px;
}
.home-intro p { font-size: 14px; text-align: justify; margin-bottom: 26px; }

.img-stack { position: relative; max-width: 480px; height: 400px; margin: 0 auto; }
.img-stack img {
  position: absolute;
  width: 300px;
  aspect-ratio: 300 / 324;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.img-stack .back { top: 0; left: 0; }
.img-stack .front { top: 66px; left: 180px; z-index: 1; }
/* second section: mirrored (front image lower-left) */
.img-stack.mirror .back { left: auto; right: 0; }
.img-stack.mirror .front { left: 0; top: 48px; }

/* ── HOME: CATERING ──────────────────────────────────────── */
.catering-section {
  position: relative;
  background: var(--bd-pink);
  padding: 70px 0 80px;
  text-align: center;
}
/* zig-zag bottom edge, as on the live site */
.catering-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--bd-pink) 50%, transparent 50%) 0 0 / 12px 10px repeat-x,
    linear-gradient(225deg, var(--bd-pink) 50%, transparent 50%) 0 0 / 12px 10px repeat-x;
  z-index: 1;
}
.catering-section h2 {
  font-weight: 400;
  font-size: 40px;
  color: var(--bd-navy);
  margin-bottom: 26px;
}
.catering-section .lead-text { font-size: 18px; margin-bottom: 18px; }
.catering-section .fork-divider { margin-bottom: 30px; }
.cater-item img { width: 80px; height: 80px; margin-bottom: 14px; }
.cater-item h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--bd-navy);
  margin: 0;
}

/* ── CONTACT STRIP (home + contact page) ─────────────────── */
.contact-strip { padding: 70px 0; }
.round-photo {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px #eee, 0 6px 20px rgba(0, 0, 0, .08);
}
.strip-info { text-align: center; }
.strip-info .awning { width: 64px; height: 64px; margin-bottom: 24px; }
.strip-info p { font-size: 16px; margin-bottom: 14px; }
.strip-info i { color: var(--bd-gold); margin-right: 8px; }
.strip-info a { color: #000; text-decoration: none; }
.strip-info a:hover { color: var(--bd-gold); }

/* ── CONTACT FORM + MAP ──────────────────────────────────── */
.form-map { padding: 60px 0; }
.form-card {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .1);
  padding: 30px 26px 34px;
  max-width: 470px;
  margin: 0 auto;
}
.form-card .field { position: relative; margin-bottom: 26px; }
.form-card .form-control {
  font-family: var(--font-form);
  font-size: 15px;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 10px 2px;
  box-shadow: none;
}
.form-card .form-control:focus { border-bottom-color: var(--bd-gold); }
.form-card .form-control::placeholder { color: #333; }
.form-card .field i {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bd-navy);
  pointer-events: none;
}
.btn-submit {
  display: block;
  width: 100%;
  background: var(--bd-navy);
  color: #fff;
  font-family: var(--font-form);
  font-weight: 600;
  font-size: 17.6px;
  border: 0;
  border-radius: 2px;
  padding: 8px;
  transition: background .2s;
}
.btn-submit:hover { background: var(--bd-gold); color: #fff; }
.form-status { font-size: 14px; margin-top: 12px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-intro p { font-size: 15px; margin-bottom: 28px; }
.about-intro h2 {
  font-weight: 700;
  font-size: 26px;
  color: var(--bd-navy);
  margin-bottom: 20px;
}
.diamond-list { list-style: none; padding: 0; margin: 0 0 30px; }
.diamond-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.diamond-list li::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: var(--bd-gold);
}
.about-stack { position: relative; max-width: 440px; height: 400px; margin: 0 auto; }
.about-stack img {
  position: absolute;
  width: 274px;
  aspect-ratio: 274 / 360;
  object-fit: cover;
}
.about-stack .front { top: 0; left: 0; z-index: 1; }
.about-stack .back { top: 22px; right: 0; }

.menu-teaser {
  background: url('../images/ABOUT-IMAGE.webp') no-repeat center / cover;
  padding: 90px 0;
}
.menu-teaser img { width: 100%; aspect-ratio: 583 / 336; object-fit: cover; }
.menu-teaser h2 {
  font-weight: 400;
  font-size: 40px;
  color: var(--bd-navy);
  margin-bottom: 18px;
}
.menu-teaser p { font-size: 15px; margin-bottom: 30px; }

/* ── CONTACT PAGE ────────────────────────────────────────── */
.touch-title {
  font-weight: 400;
  font-size: 45px;
  color: var(--bd-navy);
  text-align: center;
  margin: 0 0 18px;
}

/* ── FAQS ────────────────────────────────────────────────── */
.faq-section { padding: 60px 0 40px; }
.faq-wrap { max-width: 720px; margin: 0 auto; }
.script-title {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 34px;
  color: var(--bd-gold);
  margin-bottom: 30px;
}
.script-title::before,
.script-title::after { content: ''; flex: 1; height: 1px; background: #e6e6e6; }
.faq-accordion .accordion-item { border: 0; background: none; margin-bottom: 24px; }
.faq-accordion .accordion-button {
  background: var(--bd-grey);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--bd-navy);
  padding: 12px 18px;
  box-shadow: none;
  border-radius: 0 !important;
  gap: 12px;
}
.faq-accordion .accordion-button::after { display: none; }
.faq-accordion .accordion-button::before {
  content: '+';
  font-weight: 700;
  color: #aaa;
  flex-shrink: 0;
}
.faq-accordion .accordion-button:not(.collapsed)::before { content: '\2212'; color: var(--bd-gold); }
.faq-accordion .accordion-body { padding: 16px 18px 6px 44px; font-size: 15px; }

/* ── MENU PAGE ───────────────────────────────────────────── */
.menu-banner p { font-size: 17px; max-width: 560px; margin: 0 auto 22px; color: rgba(255, 255, 255, .9); }
.menu-banner .btn-gold { margin-top: 26px; }

/* sticky search + category bar (top is set by js/menu.js to sit under the header) */
.menu-nav {
  position: sticky;
  top: var(--header-h, 100px);
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
  padding: 14px 0 0;
}
.menu-search { position: relative; max-width: 420px; margin: 0 auto 12px; }
.menu-search input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 9px 18px 9px 42px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.menu-search input:focus { border-color: var(--bd-gold); }
.menu-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bd-gold); }
.menu-pills {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 4px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.menu-pills a {
  display: block;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--bd-navy);
  border: 1px solid #e3d6bb;
  border-radius: 30px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.menu-pills a:hover { border-color: var(--bd-gold); color: var(--bd-gold); }
.menu-pills a.active { background: var(--bd-gold); border-color: var(--bd-gold); color: #fff; }

.menu-body { padding: 30px 0 70px; background: #fbf9f6; }
.menu-cat { padding-top: 40px; scroll-margin-top: calc(var(--header-h, 100px) + 120px); }
.menu-cat-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.menu-cat-head h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 34px;
  color: var(--bd-gold);
  margin: 0;
}
.menu-cat-head::after { content: ''; flex: 1; height: 1px; background: #e3d6bb; }
.menu-cat-head .count { order: 3; font-size: 12px; color: #999; white-space: nowrap; }

.dish {
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
}
.dish:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.dish-img {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f3efe9;
  overflow: hidden;
  cursor: zoom-in;
}
.dish-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.dish:hover .dish-img img { transform: scale(1.05); }
.dish-body { padding: 14px 14px 16px; }
.dish-body h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--bd-navy);
  margin: 0 0 8px;
}
.dish-desc { font-size: 12px; color: #777; margin: -4px 0 8px; }
.dish-price {
  display: inline-block;
  background: #f7efe0;
  color: var(--bd-gold-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 20px;
  padding: 2px 12px;
}
.menu-empty { text-align: center; color: #777; padding: 60px 0 20px; }

.menu-cta { background: var(--bd-brown); color: #fff; text-align: center; padding: 50px 0; }
.menu-cta h2 { font-weight: 400; font-size: 32px; margin-bottom: 18px; }

/* photo pop-up */
#dishModal .modal-content { border: 0; border-radius: 12px; overflow: hidden; }
#dishModal img { width: 100%; display: block; }
#dishModal .modal-footer { justify-content: space-between; border: 0; }
#dishModal .modal-title { font-family: var(--font-head); font-size: 20px; color: var(--bd-navy); margin: 0; }

@media (max-width: 767.98px) {
  .menu-banner p { font-size: 15px; }
  .menu-nav { padding-top: 10px; }
  .menu-search { margin-bottom: 10px; }
  .menu-cat { padding-top: 28px; }
  .menu-cat-head h2 { font-size: 27px; }
  .dish-body { padding: 10px 10px 12px; }
  .dish-body h3 { font-size: 14px; }
  .dish-price { font-size: 13px; padding: 2px 10px; }
  .menu-cta h2 { font-size: 26px; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bd-footer);
  color: #fff;
  padding: 60px 0 30px;
  font-size: 13px;
}
.footer-logo img { width: 200px; }
.site-footer h3 {
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer h3.underlined {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bd-gold);
  margin-bottom: 26px;
}
.info-table td { padding: 0 6px 18px; vertical-align: top; }
.info-table td:first-child { font-weight: 700; padding-left: 6px; white-space: nowrap; }
.info-table a { color: #fff; text-decoration: none; }
.info-table a:hover { color: var(--bd-gold); }
.hours-wrap { position: relative; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 34px;
  margin-bottom: 9px;
}
.hours-list .day { font-weight: 700; }
.hours-list .dots { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .6); }
.hours-list .time { white-space: nowrap; }
.hours-list li.today .day,
.hours-list li.today .time { color: var(--bd-gold); }
.hours-list .clock {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bd-gold);
  font-size: 18px;
}
.footer-map iframe { width: 100%; height: 230px; border: 0; display: block; }
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 50px;
  padding-top: 26px;
  font-size: 13px;
}
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: var(--bd-gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #4a4c4e;
  color: #191b1d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.footer-social a:hover { background: var(--bd-gold); color: #fff; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── TABLET (< 992px) ────────────────────────────────────── */
@media (max-width: 991.98px) {
  .section-pad { padding: 70px 0; }
  .navbar-brand img,
  .site-header.is-scrolled .navbar-brand img { width: 80px; height: 80px; }
  .main-nav { padding: 10px 0 16px; }
  .main-nav .nav-link { font-size: 18px; }
  .page-banner { padding: 80px 0 60px; }
  .home-intro h1, .home-intro h2 { font-size: 30px; }
  .img-stack, .about-stack { margin-top: 10px; }
  .menu-teaser h2, .catering-section h2 { font-size: 34px; }
}

/* ── PHONE (< 768px) ─────────────────────────────────────── */
@media (max-width: 767.98px) {
  .section-pad { padding: 55px 0; }
  .page-banner { padding: 60px 0 46px; }
  .page-banner h1 { font-size: 32px; }
  .banner-divider { max-width: 240px; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { width: 10%; }

  .home-intro h1, .home-intro h2 { font-size: 25px; }
  .home-intro p, .about-intro p { text-align: left; }

  /* overlapping photos scale down with the screen */
  .img-stack { height: auto; aspect-ratio: 480 / 400; max-width: 340px; }
  .img-stack img { width: 62.5%; }
  .img-stack .front { top: 16.5%; left: 37.5%; }
  .img-stack.mirror .front { left: 0; top: 12%; }
  .about-stack { height: auto; aspect-ratio: 440 / 400; max-width: 320px; }
  .about-stack img { width: 62%; }
  .about-stack .back { top: 5.5%; }

  .catering-section { padding: 55px 0 60px; }
  .catering-section h2, .menu-teaser h2 { font-size: 28px; }
  .catering-section .lead-text { font-size: 16px; }
  .cater-item img { width: 64px; height: 64px; }
  .cater-item h3 { font-size: 15px; }

  .contact-strip { padding: 50px 0; }
  .round-photo { width: 220px; }
  .touch-title { font-size: 34px; }
  .form-map { padding: 40px 0; }
  .form-card { padding: 24px 18px; }
  .map-frame iframe { min-height: 300px; }
  .menu-teaser { padding: 60px 0; }

  .script-title { font-size: 26px; gap: 14px; }
  .faq-accordion .accordion-button { font-size: 16px; }
  .faq-accordion .accordion-body { padding-left: 18px; }

  .site-footer { padding-top: 45px; }
  .footer-logo { text-align: center; }
  .footer-logo img { width: 150px; }
  .footer-bottom { text-align: center; }
}
