/* ==========================================================================
   Gansbaai Bakhuis – Main Stylesheet
   Updated: Solid white nav + opaque hero text overlay + reworked contact section
   ========================================================================== */

/* 1. BASIC RESETS & TYPOGRAPHY */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-anchor: none;
}

body {
  font-family: 'Alata', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3 {
  font-family: 'Roboto Slab', serif;
  color: #7A3E1D; /* Baked-crust brown */
  font-weight: bold;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

p {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1.05rem;
}

/* 2. HEADER & NAVIGATION */
header {
  position: relative;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;           /* Pure solid white – no transparency */
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 44px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1)); /* subtle lift */
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #8b4513; /* accent brown on hover */
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #7A3E1D;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
}

/* 3. HERO SECTION */
.hero-container {
  position: relative;
  height: 55vh;
  min-height: 420px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.58);     /* semi-opaque dark overlay */
  padding: 2.25rem 3rem;
  border-radius: 16px;
  backdrop-filter: blur(6px);           /* frosted glass effect */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  max-width: 92%;
  width: 100%;
  max-width: 780px;
}

.title {
  font-size: 3.1rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.75);
}

.subtitle {
  font-size: 1.3rem;
  max-width: 680px;
  margin: 0 auto;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* 4. GENERAL CONTENT LAYOUT */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 4.5rem;
}

/* 5. GALLERY */
.gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#about .gallery img {
  aspect-ratio: 4 / 3;
}

#wine .gallery img {
  aspect-ratio: 3 / 4;
  max-width: 240px;
}

/* 6. BUTTONS */
.center-buttons {
  text-align: center;
  margin: 2rem 0;
}

.cta-button {
  display: inline-block;
  background: #8b4513;
  color: white;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.25s ease;
}

.cta-button:hover,
.cta-button:focus {
  background: #6d3510;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139,69,19,0.3);
}

/* 7. TESTIMONIALS */
.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.testimonial {
  max-width: 540px;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: #444;
}

/* 8. LOCATION SECTION */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.location-column {
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}

.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
}

/* 9. CONTACT SECTION */
.contact-list {
  list-style: none;
  padding: 0;
  max-width: 480px;
  margin: 1.5rem auto 2rem;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 1.15rem;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-item a:hover {
  color: #8b4513;
}

.contact-icon {
  font-size: 1.5rem;
  color: #8b4513;
  min-width: 24px;
  text-align: center;
}

.newsletter-title {
  max-width: 480px;
  margin: 2rem auto 0.75rem;
  text-align: left;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: #8b4513;
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s;
}

.newsletter-form button:hover {
  background: #6d3510;
}

.social-feed {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.social-post {
  text-align: center;
  max-width: 220px;
}

.social-post img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.social-post p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.social-feed .social-post p {
  display: none;
}

/* WhatsApp Floating Button (Plugin-like) */
.whatsapp-float {
  position: fixed;
  bottom: 100px; /* Above back-to-top */
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-align: center;
  line-height: 56px;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(18,140,126,0.4);
}

/* 10. MENU SECTION */
.menu-loading,
.menu-error {
  text-align: center;
  padding: 1rem;
  font-size: 1.15rem;
  color: #555;
}

.menu-error {
  color: #a00;
}

.menu-error:empty {
  display: none;
  padding: 0;
}

.category {
  margin-bottom: 3.5rem;
}

.category h3 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.item-name {
  flex: 1;
}

.item-price {
  font-weight: 700;
  white-space: nowrap;
  padding-left: 2rem;
  text-align: right;
}

.description {
  font-size: 0.975rem;
  color: #555;
  margin: 0.4rem 0 1.2rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sizes {
  display: block;
  font-size: 0.95rem;
  color: #555;
  text-align: right;
}

/* 11. FOOTER & BACK-TO-TOP */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #f9f9f9;
  font-size: 0.95rem;
  color: #555;
  margin-top: 3rem;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #8b4513;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #6d3510;
  transform: translateY(-4px);
}

/* 12. RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
  .nav-inner {
    padding: 1rem 1.2rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.5rem;
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid #efe4d8;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 1.05rem;
  }

  .hero-container {
    height: 60vh;
    min-height: 380px;
  }

  .hero-text {
    padding: 1.8rem 2.2rem;
  }

  .title {
    font-size: 2.6rem;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-embed {
    height: 280px;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 320px;
  }

  .newsletter-form input {
    border-radius: 6px;
    margin-bottom: 0.8rem;
  }

  .newsletter-form button {
    border-radius: 6px;
  }

  .whatsapp-float {
    bottom: 80px;
    right: 20px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero-text {
    padding: 1.4rem 1.8rem;
  }

  .title {
    font-size: 2.1rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .contact-item {
    font-size: 1rem;
  }

  .gallery img {
    max-width: 100%;
  }
}