/* ============================================================
   Fiafia Smoothie Shop & Cafe — Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --brand-navy:   #3B4F80;
  --brand-navy-dark: #2d3d65;
  --brand-navy-light: #4e64a0;
  --white:        #ffffff;
  --off-white:    #f7f7f5;
  --text-dark:    #1a1a1a;
  --text-muted:   #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --radius-card:  16px;
}

/* --- Base --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* --- Utility --- */
.fw-500  { font-weight: 500; }
.fw-600  { font-weight: 600; }
.opacity-90 { opacity: 0.9; }
.lead-sm { font-size: 1.05rem; }
.z-1 { z-index: 1; }
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
.bg-light-warm { background-color: var(--off-white); }

/* --- Buttons --- */
.btn-brand {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--brand-navy-dark);
  border-color: var(--brand-navy-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-brand {
  background-color: transparent;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: var(--brand-navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Navbar --- */
#mainNav {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: box-shadow 0.3s ease;
}

#mainNav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nav-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--brand-navy);
  background-color: rgba(59, 79, 128, 0.07);
}

/* --- Hero --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--brand-navy);
  background-image: url('images/hero.jpg');
  background-image: image-set(url('images/hero.webp') type('image/webp'), url('images/hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.58);
}

.hero-content {
  max-width: 680px;
  padding: 2rem 1.5rem;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}

.hero-content .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Hero placeholder label */
.hero-section .hero-placeholder-note {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* --- Section Headings --- */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* --- Location Cards --- */
.location-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.location-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #eaecf1;
}

.location-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dde2ef 0%, #eaecf4 100%);
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.location-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.location-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.location-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-open {
  color: #15803d;
  background-color: #dcfce7;
  border-color: #bbf7d0;
}

.status-closed {
  color: #b91c1c;
  background-color: #fee2e2;
  border-color: #fecaca;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  flex: 1;
}

.location-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

a.location-link {
  color: var(--brand-navy);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a.location-link:hover,
a.location-link:focus {
  text-decoration: underline;
  opacity: 0.8;
}

.info-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.65;
  color: var(--brand-navy);
  display: block;
}

/* --- Contact Form --- */
.contact-form .form-control,
.contact-form .form-select {
  border-color: var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(59, 79, 128, 0.15);
}

.contact-form .form-label {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.recaptcha-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.recaptcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recaptcha-notice a:hover {
  color: var(--brand-navy);
}

/* --- Social Icons --- */
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-social:hover {
  color: var(--brand-navy);
  background-color: rgba(59, 79, 128, 0.07);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.55);
  border-radius: 6px;
  transition: color 0.2s ease;
}
.footer-social-link:hover {
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--brand-navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
}

.footer-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* --- Mobile hamburger menu --- */
@media (max-width: 991.98px) {
  /* Border on the ul (not the collapsible wrapper) so Bootstrap includes
     it in its height calculation — prevents the 1px jump on open */
  #navbarNav .navbar-nav {
    border-top: 1px solid var(--border-color);
    padding-top: 0.35rem;
    padding-bottom: 0.5rem;
    margin-top: 0.35rem;
    width: 100%;
  }

  /* Indent social icons to align with nav link text */
  #navbarNav .nav-item:has(.nav-social) {
    padding-left: 0.25rem;
  }

  /* Align Order Online button with other menu items */
  #navbarNav .nav-item:has(.btn-brand) {
    padding-left: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.1rem;
  }
}

/* --- Responsive adjustments --- */
@media (max-width: 767.98px) {
  .py-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .location-body {
    padding: 1.25rem;
  }

  .footer-nav {
    gap: 1.25rem;
  }

  .site-footer {
    text-align: center;
  }

  .footer-copy {
    margin-top: 0.25rem;
  }
}

/* ── Photo strip ─────────────────────────────────────────────────────────── */
.photo-strip {
  overflow: hidden;
  line-height: 0; /* collapse whitespace gaps */
}

.photo-strip-inner {
  display: flex;
  gap: 4px;
}

.photo-strip-item {
  flex: 0 0 max(150px, calc((100% - 5 * 4px) / 6));
  aspect-ratio: 1;
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.06);
}

/* Hide recaptcha badge */
.grecaptcha-badge {
  visibility: hidden;
}