/* ===== CAFEZIN DESIGN SYSTEM ===== */
/* Clean, consistent, responsive design for all devices */

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Optimize for paint and layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Optimize animations and transitions */
* {
  will-change: auto;
}

/* Font loading optimization */
@font-face {
  font-family: 'Gobold';
  src: url('/fonts/Gobold-Regular.otf') format('opentype');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: 'Gobold';
  src: url('/fonts/Gobold-Bold.otf') format('opentype');
  font-display: swap;
  font-weight: 700;
}

/* Accessibility improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading styles */
.lazy {
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.lazy.loaded {
  opacity: 1;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Optimize for mobile performance */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary-color: #4e2d15;
  --secondary-color: #6f4e37;
  --accent-color: #f4d03f;
  --accent-hover: #f39c12;
  --text-light: #fff;
  --text-dark: #4e2d15;
  --bg-light: #fffaf6;
  --bg-dark: #4e2d15;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-large: 20px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  overflow-x: hidden;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

h1 { 
  font-size: clamp(2.5rem, 6vw, 4rem); 
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 { 
  font-size: clamp(1.8rem, 4.5vw, 3rem); 
  font-weight: 700;
}

h3 { 
  font-size: clamp(1.4rem, 3.5vw, 2.2rem); 
  font-weight: 600;
}

h4 { 
  font-size: clamp(1.2rem, 3vw, 1.8rem); 
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: var(--secondary-color);
  font-weight: 400;
}

.lead-text {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #5a3a1f 100%);
  padding: 1.2rem 0;
  position: sticky; /* was sticky, now enforced */
  top: 0;
  z-index: 10000; /* raised for stacking fix */
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 208, 63, 0.1);
  transition: all var(--transition-medium);
}

.header:hover {
  box-shadow: var(--shadow-heavy);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-img {
  box-shadow: none !important;
  background: none !important;
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.nav-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: var(--border-radius);
  transition: background var(--transition-medium), color var(--transition-medium);
  font-size: clamp(0.9rem, 2vw, 1rem);
  position: relative;
  overflow: hidden;
  background: none;
  box-shadow: none !important;
}

.nav-link::before {
  display: none !important;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(244, 208, 63, 0.15);
  color: var(--text-light);
  outline: none;
  transform: none;
  box-shadow: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #f4d03f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-brazil {
  background-image: url('/images/brazil-coffee.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-brazil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(78, 45, 21, 0.3) 0%, rgba(111, 78, 55, 0.2) 100%);
  z-index: 1;
}

.hero-brazil::after {
  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"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.06)"/></svg>') repeat;
  opacity: 0.6;
  z-index: 1;
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(3px);
  padding: clamp(3rem, 8vw, 5rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  max-width: min(700px, 90vw);
  margin: 0 clamp(1rem, 4vw, 2rem);
  animation: heroFadeIn 1.2s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(244, 208, 63, 0.3), rgba(255, 255, 255, 0.1), rgba(244, 208, 63, 0.3));
  border-radius: var(--border-radius-large);
  z-index: -1;
  opacity: 0.5;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: textSlideUp 1.5s ease-out 0.3s both;
}

.hero-overlay p {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--secondary-color);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 500;
  animation: textSlideUp 1.5s ease-out 0.6s both;
}

@keyframes heroFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(40px) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== JOURNEY SECTION ===== */
.journey-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fdf8f2 50%, #faf5f0 100%);
  position: relative;
  overflow: hidden;
}

.journey-section::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"><circle cx="10" cy="10" r="0.5" fill="rgba(78,45,21,0.03)"/><circle cx="90" cy="30" r="0.3" fill="rgba(78,45,21,0.02)"/><circle cx="30" cy="90" r="0.4" fill="rgba(78,45,21,0.04)"/></svg>') repeat;
  opacity: 0.8;
}

/* ===== MORNING RITUAL SECTION ===== */
.morning-ritual-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: clamp(6rem, 10vw, 10rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.morning-ritual-section::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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.morning-ritual-section h2 {
  color: #f4d03f;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.morning-ritual-section p {
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.journey-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.journey-text {
  animation: slideInLeft 1s ease-out 0.3s both;
}

.journey-image {
  animation: slideInRight 1s ease-out 0.6s both;
}

.journey-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: #4e2d15;
}

.journey-text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #6f4e37;
  line-height: 1.7;
}

.journey-image img {
  width: 100%;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  transition: all var(--transition-medium);
  transform: perspective(1000px) rotateY(-5deg);
}

.journey-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ===== PLANS SECTION ===== */
.plans-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.plans-section::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"><circle cx="15" cy="15" r="0.6" fill="rgba(244,208,63,0.1)"/><circle cx="85" cy="25" r="0.4" fill="rgba(244,208,63,0.08)"/><circle cx="25" cy="85" r="0.5" fill="rgba(244,208,63,0.12)"/></svg>') repeat;
  opacity: 0.7;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.plan-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #5a3a1f 100%);
  color: var(--text-light);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 208, 63, 0.1);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.1), transparent);
  transition: left var(--transition-slow);
}

.plan-card:hover::before {
  left: 100%;
}

.plan-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(244, 208, 63, 0.3);
}

.plan-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: #f4d03f;
}

.plan-card .plan-desc {
  font-size: clamp(0.95rem, 2vw, 1rem);
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.plan-card .plan-price {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #f4d03f;
  margin-bottom: 2rem;
}

.plan-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
}

.plans-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  color: #4e2d15;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, #f39c12 100%);
  color: var(--text-dark);
  border: none;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  letter-spacing: 0.5px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-medium);
}

.cta-button:hover::before,
.cta-button:focus::before {
  left: 100%;
}

.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #e67e22 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  outline: none;
}

/* ===== FOOTER ===== */
.footer {
  background: #fdf8f2;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-blessing {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4e2d15;
}

.footer-tagline {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #6f4e37;
  line-height: 1.6;
}

.footer-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #4e2d15;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #6f4e37;
  text-decoration: none;
  padding: 0.3rem 0;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-links a:hover,
.footer-links a:focus {
  background: rgba(78, 45, 21, 0.1);
  color: #4e2d15;
  outline: none;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter label {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #6f4e37;
  margin-bottom: 0.5rem;
}

.newsletter input[type="email"] {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  width: 100%;
  max-width: 300px;
}

.newsletter button {
  background: #4e2d15;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.newsletter button:hover,
.newsletter button:focus {
  background: #2f1a0d;
  outline: none;
}

.footer-bottom {
  border-top: 1px solid rgba(78, 45, 21, 0.1);
  padding-top: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.footer-bottom p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #6f4e37;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller devices */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    box-shadow: none !important;
    z-index: 998;
    padding-top: 5rem;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
    z-index: 2000; /* was 1002, increased for stacking fix */
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
  }
  .nav-brand {
    z-index: 2000; /* was 1002, increased for stacking fix */
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
  }
  .logo-img {
    height: 35px;
  }
  /* Remove vibrational/glow effect from nav menu items on mobile */
  .nav-menu .glow-effect,
  .nav-menu .glow-effect::after {
    animation: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: none !important;
  }
  .hero-brazil {
    background-attachment: scroll !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-overlay {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .plan-card {
    min-height: 350px;
  }
  
  .cta-button {
    width: 100%;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform var(--transition-medium);
}

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

.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color), transparent, var(--accent-color));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.glow-effect:hover::after {
  opacity: 0.3;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 2px solid #f4d03f;
  outline-offset: 2px;
}

/* ===== PAGE HERO SECTIONS ===== */
.page-hero {
  background: linear-gradient(135deg, #4e2d15 0%, #6f4e37 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: #f4d03f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero .hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: #fff;
}

.content-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.lead-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #4e2d15;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #6f4e37;
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "☕";
  position: absolute;
  left: 0;
  color: #f4d03f;
}

.ritual-note {
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0 0 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
}

.ritual-note::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"><circle cx="20" cy="20" r="0.5" fill="rgba(244,208,63,0.1)"/><circle cx="80" cy="40" r="0.3" fill="rgba(244,208,63,0.08)"/></svg>') repeat;
  opacity: 0.5;
  border-radius: inherit;
}

.ritual-note p {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  color: var(--secondary-color);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.rituals-closing {
  margin-top: clamp(6rem, 10vw, 8rem);
  text-align: center;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.closing-content {
  background: var(--text-light);
  padding: clamp(4rem, 8vw, 6rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(78, 45, 21, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.closing-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.closing-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
}

.closing-icon img {
  font-size: initial;
  animation: none;
}

.closing-content h3 {
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.closing-content p {
  color: var(--secondary-color);
  margin-bottom: 3rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.ritual-reminder {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: var(--text-dark);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1;
}

.ritual-reminder p {
  margin: 0;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.rituals-summary {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(244, 208, 63, 0.2);
  position: relative;
  z-index: 1;
}

.rituals-summary h4 {
  color: var(--text-dark);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.rituals-summary p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.rituals-summary ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.rituals-summary li {
  padding: 0.5rem 0;
  color: var(--secondary-color);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.rituals-summary li::before {
  content: "☕";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1rem;
}

.closing-text {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: #4e2d15;
  font-weight: 600;
  text-align: center;
  margin-top: 3rem;
}

/* ===== RITUALS PAGE ===== */
.rituals-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rituals-main {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
  position: relative;
}

.rituals-toc {
  background: var(--text-light);
  padding: clamp(3rem, 6vw, 4rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  margin-bottom: clamp(4rem, 8vw, 6rem);
  border: 1px solid rgba(78, 45, 21, 0.08);
}

.rituals-toc h2 {
  color: var(--text-dark);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  text-align: center;
}

.rituals-toc p {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
}

.rituals-toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.rituals-toc li {
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(244, 208, 63, 0.2);
  transition: all var(--transition-medium);
}

.rituals-toc li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  border-color: var(--accent-color);
}

.rituals-toc a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  display: block;
  transition: color var(--transition-fast);
}

.rituals-toc a:hover {
  color: var(--accent-color);
}

.rituals-main::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"><circle cx="10" cy="10" r="0.3" fill="rgba(78,45,21,0.02)"/><circle cx="90" cy="30" r="0.2" fill="rgba(78,45,21,0.03)"/><circle cx="30" cy="90" r="0.4" fill="rgba(78,45,21,0.01)"/></svg>') repeat;
  opacity: 0.8;
}

.ritual-category {
  margin-bottom: clamp(5rem, 10vw, 8rem);
  position: relative;
  z-index: 1;
}

.category-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
}

.category-description {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--secondary-color);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* ===== RITUALS GRID ===== */
.rituals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: 3rem 0;
}

.ritual-card {
  background: var(--text-light);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(78, 45, 21, 0.08);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.ritual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.1), transparent);
  transition: left var(--transition-slow);
}

.ritual-card:hover::before {
  left: 100%;
}

.ritual-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(244, 208, 63, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ritual-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.ritual-card h3 {
  color: var(--text-dark);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
  font-weight: 700;
  flex: 1;
}

.ritual-time {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.ritual-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.ritual-steps li {
  padding: 0.8rem 0;
  color: var(--secondary-color);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  position: relative;
  padding-left: 2.5rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(78, 45, 21, 0.05);
}

.ritual-steps li:last-child {
  border-bottom: none;
}

.ritual-steps li::before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.2rem;
  top: 0.8rem;
}

/* Category-specific card styles */
.morning-card {
  border-left: 4px solid #ff6b6b;
}

.afternoon-card {
  border-left: 4px solid #4ecdc4;
}

.evening-card {
  border-left: 4px solid #45b7d1;
}

.weekend-card {
  border-left: 4px solid #96ceb4;
}

.seasonal-card {
  border-left: 4px solid #feca57;
}

.closing-note {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #4e2d15 0%, #6f4e37 100%);
  color: #fff;
  border-radius: 16px;
}

.closing-note p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin: 0;
  text-align: center;
  color: #f4d03f;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  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"><circle cx="20" cy="20" r="1" fill="rgba(244,208,63,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(244,208,63,0.08)"/><circle cx="40" cy="80" r="0.8" fill="rgba(244,208,63,0.06)"/></svg>') repeat;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-decoration {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.coffee-bean {
  width: 12px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: float 3s ease-in-out infinite;
}

.coffee-bean:nth-child(2) {
  animation-delay: 0.5s;
}

.coffee-bean:nth-child(3) {
  animation-delay: 1s;
}

.contact-main {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
  position: relative;
}

.contact-main::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"><circle cx="15" cy="15" r="0.4" fill="rgba(78,45,21,0.02)"/><circle cx="85" cy="25" r="0.3" fill="rgba(78,45,21,0.03)"/><circle cx="25" cy="85" r="0.5" fill="rgba(78,45,21,0.01)"/></svg>') repeat;
  opacity: 0.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-methods {
  animation: slideInLeft 1s ease-out 0.3s both;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--text-dark);
  text-align: center;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--text-light);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(78, 45, 21, 0.08);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.1), transparent);
  transition: left var(--transition-slow);
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(244, 208, 63, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.contact-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-medium);
}

.contact-link:hover {
  color: var(--accent-hover);
  transform: translateX(5px);
}

.location-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-medium);
  border: 1px solid rgba(244, 208, 63, 0.2);
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.contact-item h3 {
  color: #4e2d15;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
}

.contact-item p {
  color: #6f4e37;
  margin: 0.5rem 0;
}

.contact-item a {
  color: #4e2d15;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #f4d03f;
}

.social-links p {
  margin: 0.5rem 0;
}

.wholesale-section {
  animation: slideInRight 1s ease-out 0.6s both;
}

.wholesale-content {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 4rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}

.wholesale-content::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"><circle cx="25" cy="25" r="0.8" fill="rgba(244,208,63,0.1)"/><circle cx="75" cy="35" r="0.5" fill="rgba(244,208,63,0.08)"/><circle cx="35" cy="75" r="0.6" fill="rgba(244,208,63,0.06)"/></svg>') repeat;
  opacity: 0.4;
}

.wholesale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.wholesale-header h2 {
  color: var(--accent-color);
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.wholesale-badge {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wholesale-text {
  position: relative;
  z-index: 1;
}

.wholesale-text .lead-text {
  color: var(--text-light);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 1.5rem;
}

.wholesale-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.wholesale-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(244, 208, 63, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wholesale-cta {
  background: var(--accent-color);
  color: var(--text-dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-light);
}

.wholesale-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.community-section {
  margin-top: clamp(4rem, 8vw, 6rem);
  text-align: center;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.community-content {
  background: var(--text-light);
  padding: clamp(3rem, 6vw, 4rem);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(78, 45, 21, 0.08);
  position: relative;
  overflow: hidden;
}

.community-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.community-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
}

.community-content h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.community-content p {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.story-prompt {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1;
}

.story-prompt p {
  margin: 0;
  font-weight: 600;
  font-style: italic;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NEW PAGES ===== */
/* ===== RESPONSIVE DESIGN OPTIMIZATIONS ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 clamp(1.5rem, 4vw, 2rem);
  }
  
  .rituals-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
  }
  
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Tablets and mobile landscape */
@media (max-width: 768px) {
  .container {
    padding: 0 clamp(1rem, 3vw, 1.5rem);
  }
  
  .rituals-grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .ritual-card {
    text-align: center;
    padding: 2rem;
  }
  
  .ritual-steps li {
    text-align: left;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .ritual-time {
    align-self: center;
  }

  .category-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .closing-content {
    padding: 3rem 2rem;
  }

  /* Contact page responsive */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 4rem);
  }

  .wholesale-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .wholesale-features {
    gap: 1.5rem;
  }

  .feature-item {
    text-align: left;
  }
  
  /* Mobile navigation enhancements */
  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .wholesale-content {
    padding: 2rem 1rem;
  }
  
  .community-content {
    padding: 2rem 1rem;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .coffee-bean {
    display: none;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }
  
  p {
    font-size: clamp(0.95rem, 2.2vw, 1rem);
  }
}

/* Small mobile phones */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .ritual-card,
  .contact-card,
  .plan-card {
    padding: 1.25rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .nav-toggle,
  .hero-decoration {
    display: none !important;
  }
  
  .hero-brazil {
    background: none !important;
    color: #000 !important;
  }
  
  .hero-overlay {
    background: none !important;
    color: #000 !important;
  }
  
  .ritual-card,
  .contact-card,
  .plan-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

@media (max-width: 768px) {
  .hero-brazil {
    position: relative !important;
    overflow: visible !important;
    background-attachment: initial !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .hero-bg-fallback {
    display: block !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover !important;
    pointer-events: none;
    user-select: none;
    /* border: 2px solid red !important;  DEBUG: Remove after confirming visibility */
  }
  .hero-overlay {
    position: relative !important;
    z-index: 2 !important;
  }
  .nav-toggle {
    display: flex !important;
    z-index: 9999 !important;
    position: fixed !important;
    top: 1.2rem !important;
    right: 1.2rem !important;
  }
  .nav-brand {
    z-index: 9999 !important;
    position: fixed !important;
    top: 1.2rem !important;
    left: 1.2rem !important;
  }
  .logo-img {
    z-index: 9999 !important;
    position: relative !important;
  }
  .nav-menu {
    z-index: 100 !important;
  }
}
@media (min-width: 769px) {
  .hero-bg-fallback {
    display: none !important; /* ensure fallback image is hidden at desktop */
  }
}

.ceremony-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 15px;
  box-shadow: 0 8px 25px rgba(78, 45, 21, 0.15);
  transition: all var(--transition-medium);
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ceremony-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(78, 45, 21, 0.2);
}

@media (max-width: 768px) {
  .ceremony-icon {
    width: 60px;
    height: 60px;
    padding: 10px;
  }
}

/* REMOVED CONFLICTING MOBILE RULES */

/* Small phones (iPhone SE, etc.) */
/* REMOVED CONFLICTING SMALL PHONE RULES */

/* Extra small phones */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-overlay {
    padding: 1rem;
    margin: 0 0.25rem;
  }
  
  .hero-overlay h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .hero-overlay p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
  
  .plan-card,
  .ritual-card,
  .contact-card {
    padding: 1.25rem 0.75rem;
  }
  
  .nav-menu {
    padding: 1rem;
    padding-top: 4.5rem;
  }
  
  .nav-link {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-brazil {
    min-height: 100vh;
  }
  
  .hero-overlay {
    padding: clamp(1.5rem, 4vw, 2rem);
  }
  
  .hero-overlay h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-overlay p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
  }
  
  .nav-menu {
    padding-top: 4rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* REMOVED DUPLICATE MOBILE PERFORMANCE RULES */

/* REMOVED BROKEN CSS STRUCTURE */

/* Extra mobile optimizations for very small screens */
@media (max-width: 360px) {
  .hero-overlay h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.1;
  }
  
  .hero-overlay p {
    font-size: clamp(0.9rem, 4vw, 1rem);
    line-height: 1.4;
  }
  
  .nav-menu {
    padding: 1rem;
    padding-top: 4rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
  
  .plan-card,
  .ritual-card,
  .contact-card {
    padding: 1rem 0.75rem;
  }
  
  .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ===== MOBILE FIXES - COMPLETE REWRITE ===== */

/* Base mobile optimizations */
@media (max-width: 768px) {
  /* Reset and fix container */
  .container {
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Fix navigation */
  .nav {
    padding: 0 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    z-index: 998;
    padding-top: 5rem;
    justify-content: flex-start;
    align-items: center;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    min-height: 44px;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 2000; /* was 1002, increased for stacking fix */
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-brand {
    z-index: 2000; /* was 1002, increased for stacking fix */
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
  }
  
  .logo-img {
    height: 35px;
  }
  
  /* Fix hero section */
  .hero-brazil {
    background-attachment: scroll !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-overlay {
    padding: 2rem 1rem;
    margin: 0 1rem;
    max-width: calc(100vw - 2rem);
    text-align: center;
  }
  
  .hero-overlay h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-overlay p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 2rem;
  }
  
  /* Fix journey section */
  .journey-content {
    display: block;
    text-align: center;
    padding: 0 1rem;
  }
  
  .journey-text {
    margin-bottom: 2rem;
  }
  
  .journey-text h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .journey-text p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
  }
  
  .journey-image {
    width: 100%;
  }
  
  .journey-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
  }
  
  /* Fix plans section */
  .plans-grid {
    display: block;
    gap: 2rem;
  }
  
  .plan-card {
    width: 100%;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .plan-card:last-child {
    margin-bottom: 0;
  }
  
  /* Fix typography */
  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.2;
    text-align: center;
  }
  
  h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    line-height: 1.3;
    text-align: center;
  }
  
  h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    line-height: 1.4;
  }
  
  p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
  }
  
  /* Fix sections */
  .journey-section,
  .morning-ritual-section,
  .plans-section {
    padding: 4rem 0;
  }
  
  .morning-ritual-section {
    text-align: center;
    padding: 4rem 1rem;
  }
  
  .morning-ritual-section h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .morning-ritual-section p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 100%;
  }
  
  /* Fix buttons */
  .cta-button {
    display: inline-block;
    width: auto;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-align: center;
    margin: 0 auto;
  }
  
  /* Fix footer */
  .footer-grid {
    display: block;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .footer-section:last-child {
    margin-bottom: 0;
  }
  
  .newsletter {
    display: block;
    text-align: center;
  }
  
  .newsletter input[type="email"] {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem auto;
    display: block;
  }
  
  .newsletter button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-overlay {
    padding: 1.5rem 0.75rem;
    margin: 0 0.5rem;
  }
  
  .hero-overlay h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .hero-overlay p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
  
  .plan-card {
    padding: 1.5rem 0.75rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 100%;
  }
  
  .nav-menu {
    padding: 1.5rem;
    padding-top: 4.5rem;
  }
  
  .nav-link {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  /* Fix forms */
  input[type="email"],
  input[type="text"],
  textarea {
    font-size: 16px;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  button {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-overlay {
    padding: 1rem 0.5rem;
    margin: 0 0.25rem;
  }
  
  .hero-overlay h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  
  .hero-overlay p {
    font-size: clamp(0.85rem, 4vw, 1rem);
  }
  
  .plan-card,
  .ritual-card,
  .contact-card {
    padding: 1rem 0.5rem;
  }
  
  .nav-menu {
    padding: 1rem;
    padding-top: 4rem;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  
  .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-brazil {
    min-height: 100vh;
  }
  
  .hero-overlay {
    padding: 1rem;
  }
  
  .hero-overlay h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 0.5rem;
  }
  
  .hero-overlay p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 1rem;
  }
  
  .nav-menu {
    padding-top: 3rem;
  }
}

/* Remove all conflicting mobile rules */
@media (max-width: 768px) {
  /* Disable problematic animations on mobile */
  .hero-overlay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-overlay h1,
  .hero-overlay p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Fix grid issues */
  .journey-content {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  .plans-grid {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  
  /* Ensure proper text alignment */
  .text-center {
    text-align: center !important;
  }
  
  /* Fix image display */
  img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* Fix button display */
  .cta-button {
    display: inline-block !important;
    text-align: center !important;
  }
}

/* ===== RITUALS PAGE MOBILE FIXES ===== */

@media (max-width: 768px) {
  /* Fix rituals table of contents for mobile */
  .rituals-toc {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
  }
  
  .rituals-toc h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .rituals-toc p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 1.5rem;
  }
  
  .rituals-toc ul {
    display: block;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .rituals-toc li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .rituals-toc a {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    padding: 0.5rem 0;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Fix rituals grid for mobile */
  .rituals-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .ritual-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .ritual-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .ritual-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
  }
  
  .ritual-time {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.25rem 0.75rem;
  }
  
  .ritual-steps {
    margin: 1.5rem 0;
  }
  
  .ritual-steps li {
    font-size: clamp(0.95rem, 3vw, 1rem);
    padding: 0.5rem 0;
    line-height: 1.5;
  }
  
  .ritual-note {
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .ritual-note p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
  
  /* Fix category titles for mobile */
  .category-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 0.75rem;
  }
  
  .category-description {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 2rem;
  }
  
  /* Fix ritual category spacing */
  .ritual-category {
    margin-bottom: 3rem;
  }
  
  /* Fix rituals hero for mobile */
  .rituals-hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .rituals-toc {
    padding: 1.5rem 0.75rem;
  }
  
  .rituals-toc li {
    padding: 0.75rem;
  }
  
  .rituals-toc a {
    font-size: 0.9rem;
  }
  
  .ritual-card {
    padding: 1rem;
  }
  
  .ritual-steps li {
    font-size: 0.9rem;
  }
  
  .category-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

@media (max-width: 360px) {
  .rituals-toc {
    padding: 1rem 0.5rem;
  }
  
  .rituals-toc li {
    padding: 0.5rem;
  }
  
  .ritual-card {
    padding: 0.75rem;
  }
  
  .ritual-steps li {
    font-size: 0.85rem;
  }
}

.quiz-container {
  max-width: 400px;
  margin: 2rem auto;
  background: #fffaf6;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.quiz-step {
  margin-bottom: 1.5rem;
}
.quiz-step label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.quiz-step select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
}
#quiz-result {
  margin-top: 2rem;
  text-align: center;
}

.testimonials-section {
  background: linear-gradient(135deg, #fffaf6 0%, #fdf8f3 100%);
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.testimonials-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-weight: 800;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(78,45,21,0.13);
}
.testimonial-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(78,45,21,0.08);
}
.testimonial-name {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-style: italic;
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .testimonials-section {
    padding: 2.5rem 0;
  }
  .testimonials-grid {
    gap: 1.2rem;
  }
  .testimonial-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .testimonial-photo {
    width: 60px;
    height: 60px;
  }
}

 

