/* Sweet Honey Tea - Landing Page Styles */
:root {
  --honey: #f2a900;
  /* Accent palette updated to Sweet Honey Tea orange */
  --berry: #ff8a00; /* light orange */
  --plum: #e85d04;  /* deep orange */
  --ink: #1f1f1f;
  --cloud: #f8f7fb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.modal-open { overflow: hidden; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--cloud));
}
h1, h2, h3, .section-title { font-family: "Playfair Display", Georgia, serif; }

/* Masthead (centered logo, with top background image) */
.masthead {
  position: relative;
  padding: 12px 0; /* move logo closer to the very top */
  min-height: clamp(813px, 75vh, 1150px);
  background: radial-gradient(80% 50% at 50% 0%, rgba(242,169,0,0.08), transparent 70%);
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/LakeshoreFruitSplash.png') 68% 8% / 70vw auto no-repeat;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
  z-index: 1;
}
.masthead-inner {
  display: flex;
  align-items: flex-start; /* align logo to top */
  justify-content: flex-start; /* move logo to the left */
  padding-top: 4px;
  position: relative;
  z-index: 2;
}
.masthead-logo {
  max-width: min(240px, 36%);
  height: auto;
  display: block;
  margin-left: 5vw; /* adjusted per request */
  opacity: 0;
  animation: fadeIn 0.6s ease-in 0.8s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* .masthead-caption removed */

/* Make sure the image remains very prominent on small/medium screens */
@media (max-width: 820px) {
  .masthead {
    padding-top: 8px;
    min-height: 500px;
    padding-bottom: 0;
  }
  .masthead::before {
    background-position: center top;
    background-size: 100vw auto;
  }
  /* Place product intro below the image on mobile */
  .product-intro.overlay { 
    margin-top: 0 !important; 
    padding-top: 20px;
  }
  .product-intro .container.left-align {
    margin-left: 4vw;
    margin-right: 4vw;
    max-width: 92vw;
  }
  .intro-main-title,
  .intro-subtitle,
  .intro-description {
    padding-left: 0;
  }
  .product-intro .cta {
    padding-left: 0;
  }
}

/* Slightly reduce scaling on large desktops for composition, keep it big */
@media (min-width: 1200px) {
  .masthead { background-size: auto, 58vw auto; }
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header (removed nav); keeping styles commented to avoid unused CSS weight */

/* Hero */
.hero { padding: 28px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
.hero-visual {
  background: radial-gradient(80% 80% at 30% 20%, rgba(242,169,0,0.18), transparent 60%),
              radial-gradient(80% 80% at 80% 10%, rgba(123,44,191,0.18), transparent 60%),
              #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img { width: 100%; height: auto; object-fit: contain; display: block; }
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.commercial-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product Introduction Section */
.product-intro { 
  text-align: left; 
  padding: 24px 0 48px; 
}
.product-intro.overlay { 
  position: relative; 
  z-index: 3;
  margin-top: clamp(-491px, -32vh, -520px);
  padding-top: 0;
}
.product-intro .container.left-align { 
  text-align: left; 
  max-width: 650px; 
  margin-left: 10vw; 
  margin-right: 0;
  position: relative;
  z-index: 3;
}

/* Main Title - Lakeshore Fruit Splash */
.intro-main-title {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3.2rem);
  font-weight: 400;
  line-height: 1;
  color: #800020;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 8px rgba(128,0,32,0.15);
  padding-left: 40px;
  text-transform: uppercase;
  opacity: 0;
  animation: typeIn 0.5s ease-out 1.4s forwards;
}

@keyframes typeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Subtitle - Vibrant New Premium Tea */
.intro-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.85rem, 0.4vw + 0.75rem, 1rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0;
  margin: 0 0 18px 0;
  padding-left: 40px;
  font-style: italic;
  animation: typeIn 0.5s ease-out 1.8s forwards;
}

/* Description Styling */
.intro-description {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0;
  margin: 0 0 24px 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding-left: 40px;
  animation: typeIn 0.5s ease-out 2.2s forwards;
}

@media (max-width: 720px) {
  .product-intro .container.left-align { 
    margin-left: 4vw; 
    max-width: 92vw;
  }
  .intro-main-title {
    padding-left: 0;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .intro-subtitle {
    padding-left: 0;
    font-size: 0.85rem;
  }
  .intro-description {
    padding-left: 0;
    font-size: 1rem;
  }
}

.section-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: 14px 0 6px; }
.section-subtitle { margin: 0 0 10px; opacity: 0.8; }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 18px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--berry), var(--plum)); box-shadow: 0 8px 20px rgba(232, 93, 4, 0.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { color: var(--plum); background: #fff; border: 2px solid rgba(232,93,4,0.15); }
.btn-secondary:hover { border-color: rgba(232,93,4,0.28); }
/* Darker orange accent button */
.btn-accent { color: #fff; background: linear-gradient(135deg, #d9480f, #b43c06); box-shadow: 0 8px 20px rgba(212, 72, 15, 0.3); margin-left: 10px; }
.btn-accent:hover { filter: brightness(1.05); }
.cta { display: flex; align-items: center; gap: 10px; }
.product-intro .cta { 
  justify-content: flex-start; 
  margin-top: 12px; 
  padding-left: 40px;
  opacity: 0;
  animation: popUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 2.6s forwards;
}

@keyframes popUp {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 720px) {
  .product-intro .cta { 
    padding-left: 0;
    flex-wrap: wrap;
  }
}

/* Product */
.product { padding: 26px 0 70px; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.product-copy h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.product-copy p { margin: 0 0 12px; opacity: 0.9; }
.bullets { padding-left: 18px; margin: 0 0 16px; }
.art-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.art-card img { width: 100%; display: block; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1.2fr; gap: 24px; }
  .product-grid { grid-template-columns: 1.2fr 1fr; gap: 30px; }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(0,0,0,0.06); background: #fff; }
.footer-content { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 10px; }
.socials { display: flex; gap: 12px; }
.social { color: var(--ink); text-decoration: none; opacity: 0.8; }
.social:hover { opacity: 1; }

/* Modal (Get Notified) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50); /* darker to dim page */
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 9999; /* ensure it overlays all site content */
}
.modal-backdrop[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.modal-backdrop[aria-hidden="false"] { opacity: 1; visibility: visible; }

.modal {
  width: min(560px, 92%);
  background: #ffffff; /* solid background so text beneath is not visible */
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease;
  position: relative;
  overflow: hidden;
  z-index: 10000; /* stack above backdrop children like fixed elements */
}
.modal-backdrop[aria-hidden="false"] .modal { opacity: 1; transform: translateY(0) scale(1); }

.modal::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(60% 40% at 20% -10%, rgba(255,138,0,0.20), transparent 60%),
              radial-gradient(50% 30% at 120% 0%, rgba(232,93,4,0.16), transparent 60%);
  pointer-events: none;
}

.modal-header { padding: 22px 22px 0; text-align: center; }
.modal-header h3 { margin: 6px 0 4px; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.modal-sub { margin: 0 0 8px; opacity: 0.8; }

.modal-body { padding: 16px 22px 20px; }
.input-label { display: block; font-weight: 600; margin: 10px 0 6px; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  font-size: 1rem;
}
.input:focus { border-color: rgba(232,93,4,0.45); box-shadow: 0 0 0 4px rgba(232,93,4,0.12); }
.consent { font-size: 0.9rem; opacity: 0.8; margin: 10px 0 14px; }
.phone-warning {
  background: rgba(232,93,4,0.08);
  border-left: 4px solid var(--plum);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 8px;
}
.phone-warning p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.phone-warning strong {
  color: var(--plum);
}
.form-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}
.modal-actions { display: flex; gap: 10px; align-items: center; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
}
.modal-success { padding: 24px 22px 28px; text-align: center; }
.modal-success h4 { margin: 6px 0 8px; font-size: clamp(1.2rem, 1rem + 0.4vw, 1.4rem); }

/* Dealer Locator Section */
.dealer-locator {
  padding: 180px 0 60px;
  margin-top: 0;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 3;
  clear: both;
}

/* About Section */
.about-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #fff, var(--cloud));
  text-align: center;
}
.about-section .section-title {
  margin-bottom: 24px;
  color: var(--plum);
}
.about-text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem);
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 24px auto;
  align-items: stretch;
}
.location-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.25);
  outline: none;
  background: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--ink);
}
.location-input:focus {
  border-color: var(--plum);
  box-shadow: 0 4px 12px rgba(232,93,4,0.15);
}
.search-error {
  color: #dc2626;
  background: #fee;
  padding: 12px 18px;
  border-radius: 12px;
  margin: 16px auto 0;
  max-width: 600px;
  font-size: 0.95rem;
}

/* Dealer Results Modal */
.modal-wide {
  width: min(700px, 92%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-wide .modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}
.dealer-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dealer-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.dealer-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: var(--plum);
}
.dealer-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 8px;
}
.dealer-address {
  margin: 4px 0;
  color: var(--ink);
  opacity: 0.85;
}
.dealer-distance {
  display: inline-block;
  background: linear-gradient(135deg, var(--berry), var(--plum));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}
.dealer-phone {
  color: var(--plum);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}
.dealer-phone:hover {
  text-decoration: underline;
}
.no-results {
  text-align: center;
  padding: 32px 20px;
  color: var(--ink);
  opacity: 0.7;
}
.map-container {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.google-map {
  width: 100%;
  height: 350px;
}

/* Google Places Autocomplete Styling */
.pac-container {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  margin-top: 4px;
  font-family: "Poppins", sans-serif;
}
.pac-item {
  padding: 10px 14px;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.pac-item:hover {
  background-color: rgba(232,93,4,0.08);
}
.pac-item-selected {
  background-color: rgba(232,93,4,0.12);
}
.pac-icon {
  margin-top: 4px;
}
.pac-item-query {
  font-weight: 600;
  color: var(--plum);
}

@media (max-width: 820px) {
  .dealer-locator {
    padding: 120px 0 60px;
    margin-top: 0;
  }
  .dealer-locator .section-title {
    font-size: 1.5rem;
  }
  .dealer-locator .section-subtitle {
    font-size: 0.95rem;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .dealer-locator {
    padding: 80px 0 50px;
    margin-top: 0;
  }
  .search-box {
    flex-direction: column;
    padding: 0 16px;
  }
  .search-box .btn {
    width: 100%;
  }
  .location-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Video Section */
.video-section {
  padding: 60px 0 80px;
  background: var(--cloud);
}
.video-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.video-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.video-section .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 40px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

@media (max-width: 820px) {
  .video-section {
    padding: 60px 0;
  }
  .video-section .section-title {
    font-size: 2rem;
  }
  .video-section .section-subtitle {
    font-size: 1rem;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .video-section {
    padding: 50px 0;
  }
  .video-section .section-title {
    font-size: 1.75rem;
  }
  .video-wrapper {
    border-radius: 12px;
  }
  .video-wrapper iframe {
    border-radius: 12px;
  }
}
