/* ==========================================================================
   Layout Styles - Any Brew Goonies-Inspired Landing Page
   ========================================================================== */

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(44, 95, 45, 0.2);
  transition: all var(--transition-normal);
}

.nav--scrolled {
  padding: var(--space-xs) var(--space-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.logo {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  font-size: 0.9rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--treasure-gold);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.nav--open {
    display: flex;
  }
  
  .nav-links a {
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--radius-md);
    margin: var(--space-xs) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .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(7px, -6px);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px var(--space-3xl) 0 var(--space-3xl);
}


.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero__content {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero__text {
  max-width: 600px;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hero__text * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hero__title {
  margin-bottom: var(--space-md);
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: left;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hero__subtitle {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  font-weight: var(--font-weight-semibold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: none !important;
  text-align: left;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}


.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.hero__image {
  display: none;
}

body {
  background-attachment: fixed !important;
  background-image: url('../img/any brew hero.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% center;
  animation: vintageFloat 60s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .hero__content {
    padding: var(--space-xl) var(--space-lg);
  }
  
  .hero__text {
    max-width: 40vw;
    width: 40vw;
    padding: var(--space-lg);
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }
  
  .hero__subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    align-items: flex-end;
    justify-content: center;
}

.hero__overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
  }
  
  .hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    height: 100%;
    width: 100%;
  }
  
  .hero__text {
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg) var(--space-lg);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
  }
  
  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    text-align: center;
  }
  
  .hero__subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: var(--space-md);
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: var(--font-weight-medium);
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    text-align: center;
  }
  
  .hero__ctas {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 100%;
  align-items: center;
  }
  
  .hero__ctas .btn {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-height: 48px;
  }
  
  .hero__ctas .btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
  }
  
  .hero__ctas .btn--primary:hover {
    background: transparent;
    color: var(--color-primary);
  }
  
  .hero__ctas .btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
  
  .hero__ctas .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
  }
  
  .hero__image img {
    object-position: center center;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Page theme transitions per section */
body.theme-hero {
  background-color: var(--color-cream);
}

body.theme-make {
  background: linear-gradient(180deg, rgba(248,249,250,1) 0%, rgba(255,255,255,1) 50%, rgba(248,249,250,1) 100%);
}

body.theme-enjoy {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
}

body.theme-built {
  background: linear-gradient(180deg, rgba(248,249,250,1) 0%, rgba(255,255,255,1) 100%);
}

body.theme-testimonials {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
}

body.theme-cta {
  background: radial-gradient(circle at center, rgba(255,215,0,0.06) 0%, rgba(255,255,255,0) 60%), #ffffff;
}

/* Make Any Coffee Drink Section */
.make-any-drink {
  position: relative;
  z-index: 10;
  background: #ffffff;
  padding: 8rem var(--space-lg) 6rem var(--space-lg);
  margin-top: 2rem;
  margin-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Simple section header - sticky until next section */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: sticky;
  top: 80px;
  z-index: 100;
  background: #ffffff;
  padding: var(--space-lg) 0;
}

.drink-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Stacked cards mode (desktop only, sticky stacking) */
.stacked-mode .drink-instructions {
  display: block;
  max-width: 800px;
}

.stacked-mode .instruction-card {
  position: sticky;
  top: calc(50vh + 80px); /* Center vertically but below header - desktop */
  transform: translateY(-50%); /* Center the card itself */
  bottom: auto; /* Remove bottom constraint for centering */
  margin: 0 auto var(--space-xl);
  transform-origin: center center;
  /* Ensure incoming card can be seen fully above */
  background: rgba(255, 255, 255, 0.98);
}

/* Mobile responsive positioning */
@media (max-width: 768px) {
  .stacked-mode .instruction-card {
    top: calc(50vh + 60px); /* Smaller header offset on mobile */
  }
}

@media (max-width: 480px) {
  .stacked-mode .instruction-card {
    top: calc(50vh + 40px); /* Even smaller header offset on small mobile */
  }
}

.stacked-mode .instruction-card:nth-child(1) { z-index: 5; }
.stacked-mode .instruction-card:nth-child(2) { z-index: 6; }
.stacked-mode .instruction-card:nth-child(3) { z-index: 7; }
.stacked-mode .instruction-card:nth-child(4) { z-index: 8; }

.stacked-mode .instruction-card:hover {
  transform: translateY(-3px);
}

.instruction-card {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.instruction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.instruction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #FFA500);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.instruction-card:hover::before {
  opacity: 1;
}

.instruction-card h3 {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  text-transform: none;
}

.instruction-card p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin: 0;
  font-weight: var(--font-weight-medium);
}

.instruction-card.highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c5f2d 100%);
  color: #ffffff;
  grid-column: 1 / -1;
  margin-top: var(--space-xl);
  box-shadow: 0 12px 40px rgba(44, 95, 45, 0.3);
}

.instruction-card.highlight h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin: 0;
  font-weight: var(--font-weight-bold);
  text-transform: none;
}

.instruction-card.highlight::before {
  background: linear-gradient(90deg, #FFD700, #FFA500);
}

.card-image {
  width: 100%;
  height: 220px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  transform: translateY(var(--card-parallax, 0));
}

.instruction-card:hover .card-image img {
  transform: scale(1.05);
}

.instruction-card.highlight .card-image {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Enjoy Perfect Coffee Section */
.enjoy-perfect-coffee {
  position: relative;
  z-index: 10;
  background: #f8f9fa;
  padding: 6rem var(--space-lg) 6rem var(--space-lg);
  margin-top: 0;
  margin-bottom: 0;
}

.enjoy-perfect-coffee .section-subtitle {
  font-size: 1.2rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  margin-top: var(--space-lg);
}

.cta-container {
  text-align: center;
  margin-top: var(--space-3xl);
}

.cta-container .btn {
  font-size: 1.1rem;
  padding: var(--space-md) var(--space-2xl);
  font-weight: var(--font-weight-bold);
}

/* Built by People Section */
.built-by-people {
  position: relative;
  z-index: 10;
  background: #ffffff;
  padding: 6rem var(--space-lg) 6rem var(--space-lg);
  margin-top: 0;
  margin-bottom: 0;
}

.team-slideshow {
  margin-top: var(--space-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

.slideshow-container {
  display: block;
}

.team-slide {
  position: sticky;
  top: calc(50vh + 80px); /* Center vertically but below header - desktop */
  transform: translateY(-50%); /* Center the card itself */
  bottom: auto; /* Remove bottom constraint for centering */
  margin: 0 auto var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  opacity: 1;
  z-index: 10;
  transform-origin: center center;
}

/* Mobile responsive positioning for team slides */
@media (max-width: 768px) {
  .team-slide {
    top: calc(50vh + 60px); /* Smaller header offset on mobile */
  }
}

@media (max-width: 480px) {
  .team-slide {
    top: calc(50vh + 40px); /* Even smaller header offset on small mobile */
  }
}

.team-slide:nth-child(1) { z-index: 10; }
.team-slide:nth-child(2) { z-index: 20; }
.team-slide:nth-child(3) { z-index: 30; }
.team-slide:nth-child(4) { z-index: 40; }

.slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl);
  height: 100%;
  width: 100%;
}

.member-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image img {
  width: 100% !important;
  max-width: 300px !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
}

.member-name {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  text-transform: none;
}

.member-role {
  font-size: 1.2rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  text-transform: none;
}

.member-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  font-style: italic;
  margin: 0;
}

.slideshow-navigation {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.nav-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.nav-dot:hover {
  background: var(--color-secondary);
  transform: scale(1.05);
}

.mission-statement {
  text-align: center;
  margin-top: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mission-cta {
  margin-top: var(--space-xl);
}

.mission-statement p {
  font-size: 1.3rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: 1.5;
  font-style: italic;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero {
    height: 100vh;
    padding: 0;
  }
  
  .hero__content {
    padding: var(--space-lg) var(--space-lg) var(--space-4xl);
    justify-content: flex-end;
    align-items: center;
    text-align: center;
  }
  
  .hero__text {
    max-width: 100%;
    width: 100%;
  }
  
  .hero__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }
  
  .hero__subtitle {
    font-size: clamp(1rem, 5vw, 1.3rem);
    margin-bottom: var(--space-xl);
    line-height: 1.4;
  }
  
  .hero__ctas {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero__ctas .btn {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* Make Any Coffee Drink Section Mobile */
  .make-any-drink {
    padding: 4rem var(--space-md) 4rem var(--space-md);
    margin-top: 0;
  }
  .stacked-mode .drink-instructions,
  .stacked-mode .instruction-card {
    position: static;
  }
  
  .drink-instructions {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
  }
  
  .instruction-card {
    padding: var(--space-lg);
  }
  
  .instruction-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
  }
  
  .instruction-card p {
    font-size: 1rem;
  }
  
  .card-image {
    height: 180px;
    margin-bottom: var(--space-md);
  }
  
  .instruction-card.highlight h3 {
    font-size: 1.4rem;
  }
  
  /* Enjoy Perfect Coffee Section Mobile */
  .enjoy-perfect-coffee {
    padding: 4rem var(--space-md) 4rem var(--space-md);
  }
  
  .enjoy-perfect-coffee .section-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .cta-container {
    margin-top: var(--space-2xl);
  }
  
  .cta-container .btn {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* Built by People Section Mobile */
  .built-by-people {
    padding: 4rem var(--space-md) 4rem var(--space-md);
  }
  
  .built-by-people .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .slideshow-container {
    height: auto;
    min-height: 600px;
  }
  
  .slide-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
    text-align: center;
    height: auto;
    min-height: 600px;
  }
  
  .member-image {
    order: 1;
  }
  
  .member-image img {
    max-width: 200px;
    height: 140px;
  }
  
  .member-info {
    order: 2;
    padding: var(--space-sm);
    max-width: 100%;
  }
  
  .member-name {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
  }
  
  .member-role {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
  }
  
  .member-quote {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    padding: 0 var(--space-xs);
  }
  
  .slideshow-navigation {
    margin-top: var(--space-lg);
  }
  
  .nav-dot {
    width: 10px;
    height: 10px;
  }
  
  .mission-statement {
    margin-top: var(--space-2xl);
  }
  
  .mission-statement p {
    font-size: 1.1rem;
  }
  
  /* Customer Validation Section Mobile */
  .customer-validation {
    padding: 4rem var(--space-md) 4rem var(--space-md);
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
  }
  
  .testimonial-card {
    padding: var(--space-lg);
  }
  
  .testimonial-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .testimonial-content p::before,
  .testimonial-content p::after {
    font-size: 2rem;
  }
  
  /* Final CTA Section Mobile */
  .final-cta {
    padding: 4rem var(--space-md) 4rem var(--space-md);
  }
  
  .cta-headline {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: var(--space-md);
  }
  
  .cta-subhead {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: var(--space-2xl);
  }
  
  .btn--portal {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* Navigation Mobile */
  .nav {
    padding: var(--space-sm) var(--space-md);
  }
  
  /* Container Mobile */
  .container {
    padding: 0 var(--space-md);
  }
  
  /* Section Headers Mobile */
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: var(--space-md);
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  backdrop-filter: blur(15px);
  padding: var(--space-xs) var(--space-lg);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer .logo {
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-links a {
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* Ensure buttons in footer maintain their button styling */
.footer-links .btn {
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.footer-links .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Footer Mobile */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }
  
}

/* Customer Validation Section */
.customer-validation {
  position: relative;
  z-index: 10;
  background: #f8f9fa;
  padding: 6rem var(--space-lg) 6rem var(--space-lg);
  margin-top: 0;
  margin-bottom: 0;
}

.testimonials {
  display: block;
  margin-top: var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  margin: 0 auto var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all var(--transition-normal);
  overflow: hidden;
  z-index: 10;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:nth-child(1) { z-index: 10; }
.testimonial-card:nth-child(2) { z-index: 10; }
.testimonial-card:nth-child(3) { z-index: 10; }
.testimonial-card:nth-child(4) { z-index: 10; }

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  font-style: italic;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-primary);
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-content p::after {
  content: '"';
  font-size: 3rem;
  color: var(--color-primary);
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: serif;
  opacity: 0.3;
}

/* Responsive adjustments for Customer Validation section */
@media (max-width: 768px) {
  .customer-validation {
    padding: 4rem var(--space-md) 4rem var(--space-md);
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
  }
  
  .testimonial-card {
    padding: var(--space-xl);
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .testimonial-content p::before,
  .testimonial-content p::after {
    font-size: 2rem;
  }
}

/* Final CTA Section */
.final-cta {
  position: relative;
  z-index: 200;
  background: #ffffff;
  padding: 8rem var(--space-lg) 8rem var(--space-lg);
  margin-top: 0;
  margin-bottom: 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  text-transform: none;
}

.cta-subhead {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: #5a6c7d;
  margin-bottom: var(--space-3xl);
  line-height: 1.3;
  text-transform: none;
}

.portal-button-container {
  position: relative;
  display: inline-block;
  z-index: 300;
}

.btn--portal {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--space-lg) var(--space-3xl);
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: none;
  text-transform: none;
  z-index: 300;
  pointer-events: auto;
  cursor: pointer;
}

/* .btn--portal::before removed to fix click issue */

.btn--portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* .btn--portal::after removed to fix click issue */

/* Responsive adjustments for Final CTA section */
@media (max-width: 768px) {
  .final-cta {
    padding: 6rem var(--space-md) 6rem var(--space-md);
  }
  
  .cta-headline {
    margin-bottom: var(--space-md);
  }
  
  .cta-subhead {
    margin-bottom: var(--space-2xl);
  }
  
  .btn--portal {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
  }
}

/* Section Spacing */
section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Snap scrolling between major sections (non-intrusive) */
.snap-section {
  scroll-snap-align: start;
}

html, body {
  scroll-snap-type: y proximity;
}

/* Remove duplicate section-header rule - using the one above */

.section-title {
  font-size: 3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: var(--space-lg);
}

/* Removed complex styling */

.section-subtitle {
  font-size: 1.125rem;
  margin-bottom: 0;
  color: var(--color-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Adventure Section */
.adventure {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.adventure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cave-texture" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cave-texture)"/></svg>') repeat;
  opacity: 0.3;
  z-index: 1;
}

.adventure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin: var(--space-3xl) 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .adventure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .adventure-grid {
    grid-template-columns: 1fr;
  }
}

.adaptation-section {
  margin-top: var(--space-3xl);
  padding: var(--space-3xl) 0;
  background: var(--color-cream);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
}

.adaptation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

.adaptation-copy h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--treasure-gold);
}

.adaptation-copy p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.bottle-showcase {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .adaptation-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .bottle-showcase {
    order: -1;
  }
}

/* Perfect Coffee Section */
.perfect-coffee {
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

/* Subscribe CTA Section */
.subscribe-cta {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--color-black);
}

/* Crew Section */
.crew {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.crew::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%, rgba(255, 215, 0, 0.05) 100%);
  z-index: 1;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.mission-statement {
  text-align: center;
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-coffee-light), var(--color-accent));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.mission-statement p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.mission-statement strong {
  color: var(--treasure-gold);
}

/* Testimonials Section */
.testimonials {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  /* Background pattern removed to eliminate weird color effects */
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}

/* FAQ Section */
.faq {
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.faq-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.faq-item {
  background: #ffffff;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  color: var(--color-black);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.faq-item p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Final CTA Section - duplicate definition removed */

/* Duplicate styles removed */


/* Vintage Background Animation */
@keyframes vintageFloat {
  0%, 100% {
    transform: scale(1) translateY(0px);
    filter: brightness(1) contrast(1) sepia(0.1);
  }
  25% {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(1.05) contrast(1.02) sepia(0.15);
  }
  50% {
    transform: scale(1.01) translateY(-1px);
    filter: brightness(1.02) contrast(1.01) sepia(0.12);
  }
  75% {
    transform: scale(1.03) translateY(-3px);
    filter: brightness(1.08) contrast(1.03) sepia(0.18);
  }
}
