/* === Font Import for Vintage Logo === */
@font-face {
  font-family: "Veneer";
  src: url("./Veneer.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === CSS Variables: Global Colors === */
:root {
  --sienna: #1acfff;
  --sienna-2: #1acfff;
  --white: #ffffff;
  --black: #000000;
  --tan: #1acfff;
  --papaya-whip: #ffffff;
}

/* === Global Reset === */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* === Body Styling === */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--papaya-whip);
  color: var(--black);
  overflow-x: hidden;
}

/* Prevent scrolling during load */
body.no-scroll {
  overflow: hidden;
}

/* === Preloader === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--papaya-whip);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

.glass {
  width: 70px;
  height: 100px;
  border: 4px solid var(--sienna);
  border-top: none;
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  background: rgba(26, 207, 255, 0.05);
  box-shadow: 0 5px 20px rgba(26, 207, 255, 0.2);
}

.glass::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 12%;
  width: 4px;
  height: 70%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  z-index: 5;
}

.water {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--sienna);
  border-radius: 35% 45% 40% 40%;
  animation: fillUp 2s ease-in-out forwards, waveAction 2.5s linear infinite;
  opacity: 0.9;
}

@keyframes fillUp {
  0% {
    top: 50%;
  }

  100% {
    top: 20%;
  }
}

@keyframes waveAction {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-family: "Veneer", serif;
  font-size: 2rem;
  color: var(--sienna);
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* === Header Bar === */
header {
  position: sticky;
  /* sticks to top on scroll */
  top: 0;
  z-index: 10000;
  background-color: var(--papaya-whip);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Bottom border animation (controlled via JS) */
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: var(--border-width);
  background-color: var(--tan);
}

/* Header content layout */
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Image */
.logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav Menu */
nav {
  display: flex;
  gap: 2.5rem;
}

/* Nav Link Styling */
nav a {
  font-weight: bold;
  color: var(--sienna);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--black);
}

/* Hamburger Icon (hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 26px;
  height: 3px;
  background: var(--black);
}

/* Mobile Nav Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--sienna);
  padding: 1rem 2rem;
  border-top: 1px solid var(--tan);
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--papaya-whip);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--sienna);
}

/* === Main Content Wrapper === */
main {
  padding-left: 0;
  position: relative;
}

/* Sections avoid the sidebar except for the products section */
.hero,
.section-intro,
.timeline-section {
  width: 100%;
}

/* === Vertical Social Media Sidebar === */


/* === Responsive Sidebar Behavior for Mobile === */
@media (max-width: 768px) {

  .hero,
  .section-intro,
  .timeline-section {
    padding-left: 0;
  }


}

/* === Footer Section (Elegant Minimalist) === */
footer {
  background: #050a0f;
  color: var(--white);
  padding: 5rem 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.minimalist-footer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}

.footer-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
}

.footer-email,
.footer-phone {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-email:before,
.footer-phone:before {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--sienna);
  transition: width 0.3s ease;
}

.footer-email:hover,
.footer-phone:hover {
  color: var(--sienna);
}

.footer-email:hover:before,
.footer-phone:hover:before {
  width: 100%;
}

.footer-credits {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-credits p {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-transform: uppercase;
}

/* Responsive Minimalist Footer */
@media (max-width: 768px) {
  .footer-contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-email,
  .footer-phone {
    font-size: 1.15rem;
  }
}

/* === Responsive Header Behavior === */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav.show {
    display: flex;
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: calc(50rem - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--papaya-whip);
  background-size: cover;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Big Heading Animation Target */
.hero-content h1 {
  font-family: "Veneer", serif;
  font-weight: 100;
  font-size: clamp(8rem, 16vw, 12rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0.5rem 0;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--sienna);
  opacity: 0;
}

.hero-content .line {
  display: block;
}

/* Bottle wrapper for scroll animation */
.hero-bottle-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  /* Use viewport height for better pinning control */
  width: 100%;
  /* Start centered relative to the padded content */
  z-index: 400;
  /* Stay on top of most content but below header */
  opacity: 0;
  display: flex;
  align-items: flex-start;
  /* Align to top so y offset is predictable */
  justify-content: center;
  pointer-events: none;
  /* Don't block header clicks */
}

/* Mobile static bottle image hidden by default */
.hero-bottle-mobile {
  display: none;
}

/* Actual bottle image */
.hero-bottle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 100%;
  margin: 0 auto;
  filter: drop-shadow(8px 8px 12px rgba(0, 0, 0, 0.15));
  transform: rotate(20deg);
  transition: filter 0.3s ease;
  will-change: transform, opacity;
}

/* Hero stamp image animation target */
.hero-stamp {
  position: absolute;
  left: 35%;
  top: 0;
  right: 0;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-20deg) scale(100);
  opacity: 0;
  max-width: 250px;
}

/* === Responsive Hero Section === */
@media (max-width: 768px) {
  .hero {
    min-height: calc(30rem - 80px);
  }

  .hero-bottle-wrapper {
    display: none;
    /* Completely disable floating bottle on mobile to avoid overlap */
  }

  .hero-stamp {
    max-width: 100px;
  }

  .hero-content h1 {
    font-size: 15vw;
  }

  .hero-bottle-mobile {
    display: block;
    width: auto;
    height: 250px;
    margin: 0 auto 1rem;
    filter: drop-shadow(8px 8px 12px rgba(0, 0, 0, 0.15));
    transform: rotate(10deg);
    position: relative;
    z-index: 5;
  }
}

/* === Intro Section (below hero) === */
.section-intro {
  background-color: var(--papaya-whip);
  border-top: 1px solid var(--tan);
  padding: 1rem 2rem;
  position: relative;
  z-index: 1;
}

/* === Intro Section Grid Layout === */
.intro-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

/* Left and Right Columns in Intro Section */
.intro-left,
.intro-right {
  max-width: 30%;
}

/* Section Label Above Main Heading */
.small-title {
  font-family: "Inter", sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sienna-2);
  margin-bottom: 1rem;
}

/* Main Heading: Heritage Line */
.main-heading {
  font-family: "Veneer", serif;
  font-weight: 100;
  font-size: 4.5rem;
  line-height: 1.2;
  color: var(--sienna);
  margin-bottom: 1.5rem;
}

/* Intro Paragraph Description */
.description {
  font-size: 1.05rem;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Call-to-Action Button */
.cta-box {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--sienna);
  background-color: var(--sienna);
  color: var(--papaya-whip);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-box:hover {
  background-color: var(--papaya-whip);
  color: var(--sienna);
}

/* === Responsive Intro Section === */
@media (max-width: 768px) {
  .intro-grid {
    text-align: center;
    flex-direction: column;
    gap: 5rem;
  }

  .intro-left,
  .intro-right {
    max-width: 100%;
    width: 100%;
  }

  .intro-left {
    padding-right: 0;
  }

  .main-heading {
    font-size: 2.5rem;
  }
}

/* === Ingredients Log Container === */
.ingredients-log {
  background: transparent;
  padding: 1rem 0;
}

/* Ingredients Section Title */
.ingredients-title {
  font-family: "Veneer", serif;
  font-size: 1.75rem;
  color: var(--sienna);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 1px;
}

/* Single Ingredient Entry Layout */
.ingredient-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Quantity Value (e.g. 500ml) */
.ingredient-qty {
  font-family: "Veneer", serif;
  font-size: 2.5rem;
  color: var(--sienna-2);
  min-width: 90px;
  text-align: left;
  line-height: 1;
}

/* Textual Description of Ingredient */
.ingredient-text {
  max-width: 400px;
}

.ingredient-text strong {
  font-family: "Veneer", serif;
  font-size: 1.2rem;
  color: var(--sienna);
  display: block;
  margin-bottom: 0.2rem;
}

.ingredient-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}

/* === Responsive Ingredients Layout === */
@media (max-width: 768px) {
  .ingredient-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .ingredient-qty {
    font-size: 2rem;
    text-align: center;
  }

  .ingredient-text {
    max-width: 100%;
  }

  .ingredients-title {
    text-align: center;
    font-size: 2.5rem;
  }
}

/* === Timeline Section === */
.timeline-section {
  padding: 6rem 0rem 3rem;
  border-top: 1px solid var(--tan);
  display: flex;
  flex-direction: column;
}

/* Each Timeline Entry Block */
.timeline-entry {
  margin: 0;
  padding: 0 2rem 0;
  display: flex;
  gap: 3rem;
  align-items: center;
  min-height: 600px;
  max-width: 70%;
}

/* Alternate Entry Layout (odd/even) */
.timeline-entry:nth-child(odd) {
  margin-left: auto;
}

.timeline-entry:nth-child(odd) .timeline-left {
  order: 2;
}

.timeline-entry:nth-child(odd) .timeline-right {
  order: 1;
}

.timeline-entry:nth-child(even) {
  margin-right: auto;
}

.timeline-entry:last-child {
  margin-bottom: 0rem;
}

/* Main Section Title (Big Year Heading) */
.timeline-main-title {
  padding: 0 2rem 0rem;
  font-weight: 100;
  font-family: "Veneer", serif;
  font-size: 10rem;
  line-height: 1.2;
  color: var(--sienna);
  margin-bottom: 2.5rem;
}

/* Left Side of Timeline: Year + Image */
.timeline-left {
  flex: 0 0 300px;
  text-align: center;
}

.timeline-date {
  font-family: "Veneer", serif;
  font-size: 4rem;
  color: var(--sienna);
  line-height: 1;
  transform: translateY(30px);
  /* initial offset for animation */
}

.timeline-img {
  width: 100%;
  max-width: 240px;
  border: 3px solid var(--sienna-2);
  padding: 0.5rem;
  background-color: var(--papaya-whip);
  box-shadow: 4px 4px 0 var(--sienna);
}

/* Right Side of Timeline: Text Content */
.timeline-right {
  flex: 1;
  max-width: 400px;
}

.timeline-title {
  font-family: "Veneer", serif;
  font-size: 2rem;
  color: var(--sienna-2);
  margin-bottom: 1rem;
}

.timeline-description {
  font-size: 1.05rem;
  color: var(--black);
  line-height: 1.6;
}

/* === Responsive Timeline Section === */
@media (max-width: 768px) {
  .timeline-section {
    padding: 3rem 0rem 3rem;
  }

  .timeline-main-title {
    font-size: 4rem;
    text-align: center;
  }

  .timeline-entry {
    flex-direction: column;
    text-align: center;
    margin: 0 auto 2rem;
    gap: 1rem;
    max-width: 100%;
    min-height: unset;
  }

  .timeline-left {
    margin-bottom: 2rem;
  }

  .timeline-title {
    font-size: 1.5rem;
  }

  .timeline-date {
    font-size: 3rem;
    color: var(--sienna);
    font-weight: 100;
  }

  .timeline-entry:nth-child(odd) .timeline-right {
    order: 2;
  }
}

/* === Products Section === */
.products-section {
  padding: 8rem 2rem;
  background-color: var(--papaya-whip);
  border-top: 1px solid var(--tan);
  z-index: 1;
  /* Above sidebar if needed */
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: "Veneer", serif;
  font-size: 4rem;
  color: var(--sienna);
  text-align: center;
  margin-bottom: 6rem;
  font-weight: 100;
  letter-spacing: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  /* Added some breathing room between image and text */
  padding: 1.5rem;
  background: rgba(26, 207, 255, 0.03);
  border-radius: 20px;
  transition: transform 0.3s ease;
  width: 100%;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-img-box {
  width: 100%;
  height: clamp(250px, 30vh, 320px);
  /* Responsive height */
  display: flex;
  align-items: flex-start;
  /* Align all tops to the exact same line */
  justify-content: center;
  position: relative;
}

.target-spot {
  border: none;
  background: transparent;
  min-height: clamp(250px, 30vh, 320px);
  /* Match container height */
}

.mobile-only-bottle {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .product-img-box {
    height: 250px;
    display: flex;
    align-items: flex-end;
    /* Mobile bottom alignment */
    justify-content: center;
  }

  .target-spot {
    border: none;
    background: transparent;
    min-height: unset;
  }

  .mobile-only-bottle {
    display: block;
    height: 220px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}

.product-img {
  height: 100%;
  /* Fill the responsive container */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-name {
  font-family: "Veneer", serif;
  font-size: 1.6rem;
  color: var(--sienna);
  font-weight: 100;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.4;
  opacity: 0.8;
}

.product-price {
  font-family: "Veneer", serif;
  font-size: 1.4rem;
  color: var(--sienna-2);
}

/* === Responsive Products Section === */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .product-item {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* === Contact Section (Parallax & Form) === */
.contact-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./contactus.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  padding: 6rem 2rem;
  z-index: 2;
  /* Keep it above standard flow, ensure bottle context works well */
}

/* Glassmorphism/Dark Overlay for better text readability */
.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Dark overlay */
  backdrop-filter: blur(3px);
  /* Gentle blur */
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.08);
  /* slight white tint */
  backdrop-filter: blur(12px);
  padding: 3.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.contact-title {
  font-family: "Veneer", serif;
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
  width: 100%;
}

.form-row .form-group {
  flex: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--sienna);
  box-shadow: 0 0 15px rgba(26, 207, 255, 0.3);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--sienna);
  color: var(--white);
  padding: 1.1rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: var(--white);
  color: var(--sienna);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 207, 255, 0.4);
}

.submit-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(4px) translateY(-4px);
}

/* === Responsive Contact Form === */
@media (max-width: 768px) {
  .contact-container {
    padding: 2rem;
  }

  .contact-title {
    font-size: 3rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-section {
    background-attachment: scroll;
    /* Prevents the 'running' glass frame effect on mobile */
  }
}