/* ==========================================================================
   Chowdown Components CSS
   Styles for header, footer, reviews, newsletter-map.
   All values reference CSS variables from base.css.
   No hardcoded colors or font names.
   Mobile-first with breakpoints at 768px and 480px.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. HEADER / NAVBAR
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: var(--shadow-header);
}

.navbar {
  width: 100%;
  padding: var(--space-3) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

/* Logo — center-nav layout (between left/right) */
.nav-logo img {
  height: 100px;
  width: auto;
}

/* Logo — above layout */
.nav-logo-above {
  display: flex;
  justify-content: center;
  padding: var(--space-4) 0 0;
  background: rgba(0, 0, 0, 0.95);
}

.nav-logo-above .nav-logo img {
  height: 120px;
  width: auto;
}

.navbar-full .nav-container {
  justify-content: space-between;
}

/* Nav lists */
.nav-left,
.nav-right {
  display: flex;
  list-style: none;
  gap: var(--space-5);
  align-items: center;
}

.nav-left a,
.nav-right a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: opacity var(--transition-fast);
}

.nav-left a:hover,
.nav-right a:hover {
  opacity: 0.8;
}

/* CTA buttons in nav */
.nav-cta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-left: var(--space-4);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown .icon-chevron-down {
  width: 0.625em;
  height: 0.375em;
  margin-left: 0.25em;
  transition: transform var(--transition-fast);
}

.has-dropdown:hover .icon-chevron-down {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  min-width: 220px;
  padding: var(--space-2) 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  list-style: none;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* --------------------------------------------------------------------------
   2. MOBILE MENU
   -------------------------------------------------------------------------- */

.mobile-menu {
  display: none;
  background: rgba(0, 0, 0, 0.95);
  padding: var(--space-4) var(--space-6);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
}

.mobile-menu .btn {
  margin: var(--space-2) 0;
}

/* Mobile dropdown */
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-sub {
  display: none;
  padding-left: var(--space-4);
}

.mobile-dropdown.open .mobile-sub {
  display: block;
}

.mobile-sub a {
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
}

/* Mobile social */
.mobile-social {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: none !important;
}

.mobile-social a {
  padding: 0;
  font-size: 1.25rem;
}


/* --------------------------------------------------------------------------
   3. FOOTER / CONTACT SECTION
   -------------------------------------------------------------------------- */

.section-contact {
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
  padding: var(--space-section) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-10);
}

.contact-col h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.contact-col h2.mt {
  margin-top: var(--space-8);
}

.contact-col h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.contact-col p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.contact-col a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-col address p {
  line-height: 1.8;
}

/* Social icons row */
.contact-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.contact-social a {
  color: var(--color-text);
  font-size: 1.25rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social a:hover {
  opacity: 0.7;
}

/* Footer bar */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-copyright strong {
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   4. FLOATING WIDGETS
   -------------------------------------------------------------------------- */

.floating-widgets {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-dropdown);
}

/* Birthday pill */
.bday-pill {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  border: none;
  border-radius: 50px;
  padding: var(--space-2) var(--space-4);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  min-height: var(--touch-min);
}

.bday-pill:hover {
  box-shadow: var(--shadow-lg);
}

.bday-icon {
  display: flex;
  align-items: center;
}

.bday-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  text-align: left;
  line-height: 1.3;
}

/* Contact FAB */
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
}

.fab-btn:hover {
  box-shadow: var(--shadow-lg);
}


/* --------------------------------------------------------------------------
   5. MOBILE FOOTER BAR
   -------------------------------------------------------------------------- */

.mobile-footer-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-header);
  justify-content: space-around;
  align-items: center;
  padding: var(--space-2) 0;
}

.mobile-footer-bar a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}


/* --------------------------------------------------------------------------
   6. REVIEWS CAROUSEL
   -------------------------------------------------------------------------- */

.section-reviews {
  position: relative;
  padding: var(--space-section) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.reviews-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-heavy);
}

.reviews-inner {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
}

.reviews-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-8);
}

.reviews-carousel {
  position: relative;
  min-height: 200px;
}

.review-slide {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.review-slide.active {
  display: block;
}

.reviews-source {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-3);
}

.reviews-source .icon {
  margin: 0 var(--space-1);
}

.review-author {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.stars {
  color: var(--color-accent);
  margin-left: var(--space-2);
}

.stars .icon {
  margin: 0 1px;
}

.review-body {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.review-body p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-style: italic;
  font-weight: 300;
}

.quote-mark {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
}

/* Carousel controls */
.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background var(--transition-fast);
}

.review-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.review-prev { left: 0; }
.review-next { right: 0; }

/* Dot indicators */
.review-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.dot {
  width: 10px;
  height: 10px;
  padding: 17px;
  background-clip: content-box;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dot.active {
  background-color: #fff;
  border-color: #fff;
}

/* Pause button */
.review-pause-btn {
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.25rem;
  padding: var(--space-2);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-pause-btn:hover {
  color: #fff;
}


/* --------------------------------------------------------------------------
   7. NEWSLETTER + MAP
   -------------------------------------------------------------------------- */

.section-newsletter-map {
  padding: 0;
}

.newsletter-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-newsletter {
  background: var(--color-bg-light);
  padding: var(--space-10) var(--space-16) var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  text-transform: uppercase;
  color: var(--color-text-dark);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.nl-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
}

.contact-newsletter label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.newsletter-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.nl-input-wrap {
  flex: 1;
  position: relative;
}

.nl-input-wrap input {
  width: 100%;
  padding: var(--space-3) var(--space-1) var(--space-3) var(--space-1);
  border: none;
  border-bottom: 1px solid var(--color-text-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  outline: none;
}

.nl-input-wrap input::placeholder {
  color: var(--color-text-muted);
}

.nl-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nl-input-wrap input:focus ~ .nl-bar {
  width: 100%;
}

/* Map container */
.contact-map {
  width: 100%;
  min-height: 450px;
  background: #e8e8e8;
}


/* --------------------------------------------------------------------------
   8. RESPONSIVE — 768px (Tablet)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-left,
  .nav-right,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    right: 0;
  }

  .nav-container {
    justify-content: center;
  }

  .nav-logo-above {
    padding: var(--space-2) 0;
  }

  .nav-logo-above .nav-logo img {
    height: 80px;
  }

  .mobile-footer-bar {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .contact-social {
    justify-content: center;
  }

  .newsletter-map-grid {
    grid-template-columns: 1fr;
  }

  .contact-newsletter {
    padding: var(--space-8);
    text-align: center;
  }

  .newsletter-heading {
    text-align: center;
    font-size: var(--text-2xl);
  }

  .nl-subtitle {
    text-align: center;
  }

  .newsletter-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .newsletter-row .btn {
    width: 100%;
  }

  .review-prev { left: var(--space-1); }
  .review-next { right: var(--space-1); }

  .floating-widgets {
    bottom: 70px;
  }

  .bday-text {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   9. RESPONSIVE — 480px (Mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .nav-logo img {
    height: 70px;
  }

  .nav-logo-above .nav-logo img {
    height: 60px;
  }

  .reviews-title {
    font-size: var(--text-xl);
  }

  .review-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
