/* ==========================================
   Bob și Soare - Brutarie cu Meșteșug
   Main Stylesheet
   ========================================== */

/* === CSS Variables & Design Tokens === */
:root {
  /* Color Palette */
  --color-primary-bg: #f8f3e9;
  --color-secondary-bg: #dfdac4;
  --color-white: #ffffff;
  --color-accent: #B8C88E;
  --color-accent-dark: #9CAD75;
  --color-text-primary: #2d2d2d;
  --color-text-secondary: #5a5a5a;
  --color-text-light: #8a8a8a;

  /* Typography */
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Pacifico', cursive;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
}

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=Pacifico&family=Cinzel:wght@400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-primary-bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: calc(var(--header-height) + 25px + 20px + 15px);
  /* Add padding for header + scallop bar (25px) + scallop depth (20px) + gap (15px) */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

.text-accent {
  font-family: var(--font-accent);
  color: var(--color-accent-dark);
}

/* === Container & Layout === */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===*/
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');

/* Page Top Scalloped Decoration - Above header, hides on scroll */
.page-top-scallop {
  width: 100%;
  height: 15px;
  /* Keep bar height same or adjust if needed */
  background-color: #E9EDDB;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
  /* Above header content */
  display: block;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.page-top-scallop::after {
  content: '';
  position: absolute;
  bottom: -15px;
  /* Matches height */
  left: 0;
  width: 100%;
  height: 15px;
  /* Height of the scallop */
  background-size: 30px 30px;
  /* Width 30px (diameter), Height 30px (for circle context) */
  background-image: radial-gradient(circle at 15px 0, #E9EDDB 15px, transparent 15.5px);
  /* Circle radius 15px */
  background-repeat: repeat-x;
}

/* Hide scallop when scrolled down */
.header.scrolled .page-top-scallop {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 243, 233, 0.85);
  /* Matches hero #f8f3e9 with opacity */
  backdrop-filter: blur(10px);
  /* Adds blur effect for better translucency */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  box-shadow: none;
  /* No shadow */
  transition: all 0.3s ease;
  padding-top: calc(15px + 15px + 15px);
  /* Bar (15px) + Scallop (15px) + Gap (15px) */
}

.header .container {
  max-width: 95%;
  padding: 0 var(--spacing-md);
}

.header.scrolled {
  box-shadow: none;
  /* No shadow when scrolled */
  padding-top: 10px;
  /* Keep minimal padding when scrolled to prevent logo/text from going too high */
}

/* Navigation Container */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem var(--spacing-lg);
  /* Compact padding for sleek header */
  position: relative;
  gap: 2rem;
}

/* Split Menu Areas */
.nav-split-left,
.nav-split-right {
  display: flex;
  gap: 3rem;
  /* Proper spacing between big items */
  align-items: center;
  z-index: 1000;
  /* Ensure menu stays above content but below logo */
}

.nav-split-left {
  justify-content: flex-end;
  margin-right: 140px;
  /* Space for centered logo */
}

.nav-split-right {
  justify-content: flex-start;
  margin-left: 140px;
  /* Space for centered logo */
}

/* Central Logo - Overlapping Style */
.logo-centered-link {
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 5px;
  /* Position with gap from scallop - logo sits higher with proper spacing */
  z-index: 1002;
  /* Above header and scallop */
  transition: all 0.3s ease;
  margin: 0;
}

.logo-centered-link:hover {
  transform: translateX(-50%) scale(1.03);
}

/* Logo Size - Default (Large at top) */
.logo-centered {
  height: 150px;
  width: 150px;
  object-fit: contain;
  border-radius: 50%;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo Size - Scrolled (Smaller) */
.header.scrolled .logo-centered {
  height: 100px;
  width: 100px;
}

.header.scrolled .logo-centered-link {
  top: 5px;
  /* Adjusted position when scrolled - stays within header bounds */
}

/* Nav Links - Refined Style */
.nav-link {
  color: #3D3127;
  /* Dark rich brown color matching BAKED text */
  font-family: 'Cinzel', serif;
  /* Decorative rustic serif font matching BRUTARIE style */
  font-weight: 700;
  /* Bold weight */
  text-decoration: none;
  font-size: 1.3rem;
  /* Much smaller - matches Tori's ~15px */
  /* Much smaller - matches Tori's ~15px */
  transition: color 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link::after {
  display: none;
  /* Remove old underline style */
}

.nav-link:hover,
.nav-link.active {
  color: #2C2416;
  /* Darker brown on hover */
  border-bottom: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

/* Hide fallback menu on desktop */
.nav-menu {
  display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {

  .nav-split-left,
  .nav-split-right {
    display: none;
  }

  .nav {
    justify-content: space-between;
    padding: 1rem;
  }

  .logo-centered-link {
    order: 1;
    margin-right: auto;
    margin-left: 0;
  }

  .logo-centered {
    height: 70px;
    width: 70px;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  /* Mobile Menu Styles Update */
  .nav-menu.active {
    display: flex;
    background-color: var(--color-primary-bg);
  }

  .nav-menu .nav-link {
    font-size: 2.5rem;
    /* Even bigger on mobile list */
    color: #3D3127;
    /* Dark brown color for mobile menu */
    font-family: 'Cinzel', serif;
    /* Match desktop font */
  }
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

/* === Cards === */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === Product Card === */
.product-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.product-info {
  padding: var(--spacing-lg);
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.product-description {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* === Grid Layouts === */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.7), rgba(184, 200, 142, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-xl);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--spacing-xl);
  color: var(--color-white);
  opacity: 0.95;
}

/* === Features Section === */
/* === Features Section === */
/* === Features Section (Linear Redesign) === */
.features-linear {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Changed to 3 columns */
  gap: var(--spacing-xl);
  /* Increased gap for wider feel */
  align-items: flex-start;
  padding: var(--spacing-xl) 0;
  max-width: 100%;
  margin: 0 auto;
}

.feature-linear-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-md);
  border-right: 2px solid #a69b8d;
  /* Divider line */
}

/* Remove border from last item */
.feature-linear-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  object-fit: contain;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.feature-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
  .features-linear {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .feature-linear-item {
    border-right: none;
    /* Remove vertical dividers on tablet */
    padding: 0;
  }
}

@media (max-width: 600px) {
  .features-linear {
    grid-template-columns: 1fr;
  }
}

/* === Indulgent Desserts Section === */
.section-indulgent {
  background-color: #F8F3E9;
  /* Cream, matches hero */
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.indulgent-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #3a322b;
  /* Dark Brown from user image */
  line-height: 1.2;
  margin-bottom: var(--spacing-3xl);
  text-transform: lowercase;
}

.indulgent-big {
  font-size: 4rem;
  text-transform: uppercase;
  display: block;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-weight: 700;
}

.indulgent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 Columns */
  gap: 4rem 2rem;
  max-width: 1200px;
  /* Wider container to allow edge positioning */
  margin: 0 auto var(--spacing-3xl);
  position: relative;
  padding: 0 var(--spacing-md);
}

.indulgent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  width: 320px;
  /* Fixed uniform width for all items */
}

/* Specific Staggering for 5 Items */
/* Row 1 */
.item-1 {
  grid-column: 1;
  margin-top: 0;
  justify-self: start;
  /* Push to far left */
}

.item-2 {
  grid-column: 2;
  margin-top: 120px;
  /* Increased stagger */
  justify-self: end;
  /* Push to far right */
}

/* Centered Item 3 */
.item-3 {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: -60px;
  z-index: 2;
}

/* Row 2 */
.item-4 {
  grid-column: 1;
  justify-self: start;
  /* Push to far left */
  margin-top: 40px;
}

.item-5 {
  grid-column: 2;
  justify-self: end;
  /* Push to far right */
  margin-top: 140px;
  /* Increased stagger */
}

/* === Exact Reference Styling === */
.indulgent-image-wrapper {
  overflow: hidden;
  border-radius: 50%;
  /* Pure oval via sizing + radius */
  box-shadow: var(--shadow-xl);
  /* The "Magic" of the reference: Container rotates one way, image rotates back */
  transform: rotate(27deg);
  transition: transform 0.6s ease;
  width: 100%;
  aspect-ratio: 0.82;
  /* ~318/382 */
}

.indulgent-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Counter-rotate and scale up to cover corners */
  transform: rotate(-27deg) scale(1.35);
}

/* Floating Animation - JS/Webflow style simulation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.indulgent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 Columns */
  gap: 2rem 1rem;
  /* Reduced gap for compactness */
  max-width: 1200px;
  /* Wider container to allow edge positioning */
  margin: 0 auto var(--spacing-3xl);
  position: relative;
  padding: 0 var(--spacing-md);
}

.indulgent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  width: 320px;
  /* Fixed uniform width for all items */
  animation: float 6s ease-in-out infinite;
}

/* Stagger animation delays for organic feel */
.item-1 {
  animation-delay: 0s;
  grid-column: 1;
  justify-self: start;
  margin-top: 40px;
  /* Reduced start margin */
}

.item-2 {
  animation-delay: 1s;
  grid-column: 2;
  justify-self: end;
  margin-top: 100px;
  /* Reduced stagger */
}

/* Center Item */
.item-3 {
  animation-delay: 2s;
  animation-duration: 7s;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: -100px;
  /* Pull up more aggressively to overlap/compact */
  z-index: 2;
  width: 450px;
  /* Significantly larger as requested */
}

/* Specific styling for the large center image to ensure it looks good */
.item-3 .indulgent-name {
  font-size: 2rem;
  /* Larger text for the main item */
}

/* Row 2 Stagger */
.item-4 {
  animation-delay: 0.5s;
  grid-column: 1;
  justify-self: start;
  margin-top: -20px;
  /* Pull up into the space */
}

.item-5 {
  animation-delay: 1.5s;
  grid-column: 2;
  justify-self: end;
  margin-top: 60px;
  /* Reduced stagger */
}

.indulgent-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #3D3127;
  /* Updated color from user request */
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline-round {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid #464D33;
  border-radius: 50px;
  color: #464D33;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-round:hover {
  background-color: #464D33;
  color: #F8F3E9;
}

/* Mobile Stagger Reset */
@media (max-width: 768px) {
  .indulgent-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .item-1,
  .item-2,
  .item-3 {
    margin-top: 0;
  }

  .indulgent-image-wrapper {
    width: 80%;
    /* Smaller on mobile */
  }
}



/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* === Loading Screen === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #dfdac4;
  /* Culoarea mai închisă */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo-container {
  position: relative;
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure all logo parts stack on top of each other */
.loading-logo-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Layer 1: Circle */
.logo-circle,
.logo-layer-circle {
  z-index: 1;
  opacity: 1;
}

/* Layer 2: Back - Reveal from left to right */
.logo-layer-back {
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  animation: revealFromLeft 0.8s ease-out forwards;
}

/* Layer 3: Front - Reveal from right to left with delay */
.logo-layer-front {
  z-index: 3;
  clip-path: inset(0 0 0 100%);
  animation: revealFromRight 0.8s ease-out 0.5s forwards;
}

@keyframes revealFromLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes revealFromRight {
  from {
    clip-path: inset(0 0 0 100%);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Modifiers for Smart Transitions */
.loading-screen.show-immediately .logo-layer-back,
.loading-screen.show-immediately .logo-layer-front {
  animation: none !important;
  clip-path: inset(0 0 0 0) !important;
  opacity: 1 !important;
}

/* Remove old animations that are no longer used */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loading-text {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent-dark);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-2xl: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 500px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }
}

/* === Visit Section === */
.section-visit {
  background-color: #e9eddb;
  /* Match features section */
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.visit-content {
  padding-right: var(--spacing-lg);
}

.visit-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  /* Much smaller */
  text-transform: uppercase;
  color: #000000;
  /* Black text */
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.5px;
}

.visit-description {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #000000;
  /* Black text */
  line-height: 1.6;
  font-weight: 500;
  /* Bold (Medium) as requested */
  margin-bottom: var(--spacing-xl);
  max-width: 90%;
}

.visit-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  /* Black text */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #000000;
  /* Black border */
  border-radius: 50px;
  padding: 14px 32px;
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.visit-link:hover {
  background-color: #000000;
  /* Black hover */
  color: #e9eddb;
  /* Light background color for text */
  opacity: 1;
}

.visit-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}

.visit-img-item {
  width: 100%;
  height: 350px;
  /* Taller images ~80% of section */
  border-radius: 1rem;
  /* Rounded corners */
  object-fit: cover;
  /* box-shadow: var(--shadow-md); Remove shadow for cleaner look */
}

/* Middle image offset effect (optional, if needed to match reference exactly, usually reference has them aligned or staggered) */
/* The reference showed 3 distinct images side by side. Simple grid covers it. */

@media (max-width: 992px) {
  .visit-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .visit-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .visit-description {
    margin: 0 auto var(--spacing-xl);
  }
}

/* === Our Skilled Professionals (Reference Port) === */
.team-2-section {
  padding-top: 50px;
  padding-bottom: 250px;
  /* Extra space for scroll */
  background-color: #FAF9F6;
}

.team-2-section-wrapper {
  min-height: 400vh;
  /* Increased scroll track length */
  position: relative;
}

.team-2-sticky-box {
  position: sticky;
  top: 100px;
  height: 600px;
  /* Fixed height for the viewing area */
  display: flex;
  flex-direction: column;
  overflow: visible;
  /* Allow shadows/transforms to peek */
}

/* Header layout: Title centered (button removed) */
.section-content {
  display: flex;
  justify-content: center;
  /* Center title since button is removed */
  align-items: center;
  margin-bottom: 80px;
  /* Increased separation from photos */
  width: 100%;
}

.section-title {
  margin-bottom: 0;
  /* Remove default margin */
}

.section-button {
  flex-shrink: 0;
  /* Prevent button squishing */
}

.team-2-section-content {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

/* Stack all items on top of each other */
.team-2-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* visibility: hidden removed - was blocking clicks */
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Slower, smoother */
  transform: translateY(100px) scale(0.95);
  /* Come from further down and slightly smaller */
  pointer-events: none;
  /* Disable clicks on the box itself */
}

.team-2-box.active {
  opacity: 1;
  /* visibility: visible removed - not needed */
  transform: translateY(0) scale(1);
  z-index: 10;
  /* pointer-events: auto removed - boxes should never block clicks */
}

/* Ensure subsequent active items are on top of previous ones */
.team-2-box:nth-child(1) {
  z-index: 1;
}

.team-2-box:nth-child(2) {
  z-index: 2;
}

.team-2-box:nth-child(3) {
  z-index: 3;
}

/* When active, they maintain their natural z-index order, so 2 covers 1 */

.team-2-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
}

.team-2-thumbnail {
  z-index: 2;
  border-radius: 15px;
  width: 380px;
  height: 480px;
  position: absolute;
  top: 0;
  left: 5%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background-color: #eee;
}

/* Rotations from reference - Balanced Fan Stack */
.team-2-thumbnail._1 {
  transform: rotate(-10deg) translate(-15px, 0);
}

.team-2-thumbnail._2 {
  transform: rotate(8deg) translate(15px, 0);
}

.team-2-thumbnail._3 {
  transform: rotate(0deg) translate(0, 0);
}

.team-2-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.team-2-content {
  z-index: 5;
  position: absolute;
  right: 0;
  width: 45%;
  text-align: left;
  opacity: 1;
  /* Always visible if parent is active */
  transition: opacity 0.5s ease;
  pointer-events: auto;
  /* CRITICAL: Links always clickable */
}

/* Position text blocks one under another */
.team-2-box:nth-child(1) .team-2-content {
  top: 50px;
}

.team-2-box:nth-child(2) .team-2-content {
  top: 200px;
}

.team-2-box:nth-child(3) .team-2-content {
  top: 350px;
}

/* Remove previous conditional hiding */
/* .team-2-box.current .team-2-content { opacity: 1; } replaced by default opacity 1 */

.team-2-title-box,
.team-2-sepretor-box,
.team-2-position-box {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.team-2-title {
  font-family: 'Caudex', serif;
  color: #3D3127;
  /* Match menu text color */
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: underline wavy;
  text-decoration-color: #3D3127;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  pointer-events: auto;
  /* CRITICAL: Links always clickable */
}


.team-2-title:hover {
  color: #2C2416;
  /* Darker on hover */
  text-decoration-thickness: 3px;
  /* Thicker underline on hover */
}

.team-2-sepretor {
  font-size: 2rem;
  color: #888;
}

.team-2-position {
  font-family: 'Inter', sans-serif;
  color: #555;
  font-size: 1rem;
  font-weight: 700;
  /* Increased from 500 to make bolder */
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .team-2-thumbnail {
    width: 300px;
    height: 380px;
  }

  .team-2-title {
    font-size: 2rem;
  }

  .team-2-content {
    width: 40%;
  }
}

@media (max-width: 768px) {

  .team-2-box:nth-child(1) .team-2-content,
  .team-2-box:nth-child(2) .team-2-content,
  .team-2-box:nth-child(3) .team-2-content {
    position: static;
    top: auto;
    margin-top: 20px;
  }

  .team-2-section-wrapper {
    min-height: auto;
  }

  .team-2-sticky-box {
    position: static;
    height: auto;
    display: block;
  }

  .team-2-section-content {
    margin-top: 30px;
  }

  .team-2-box {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    height: auto;
    margin-bottom: 80px;
    display: block;
  }

  .team-2-thumbnail {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 450px;
    left: 0;
    top: 0;
    margin: 0 auto 30px auto;
    transform: rotate(0) !important;
  }

  .team-2-content {
    position: static;
    width: 100%;
    text-align: center;
    padding: 0 20px;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  background-color: #f8f3e9;
  padding: 5rem 0;
  text-align: center;
}

.testimonials-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #d4756e;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

.testimonials-track {
  position: relative;
  min-height: 200px;
}

.testimonial-item {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-quote {
  font-family: 'Caudex', serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #2c2416;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: #3D3127;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-nav:hover {
  color: #d4756e;
  transform: translateY(-50%) scale(1.2);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 0 50px;
  }

  .testimonial-quote {
    font-size: 1.25rem;
  }

  .testimonial-nav {
    font-size: 2rem;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel {
    padding: 0 40px;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }
}

/* Stories That Warm Our Hearts */
.testimonial-stories {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(61, 49, 39, 0.1);
  position: relative;
}

/* Wheat decorations on background */
.testimonial-stories::before,
.testimonial-stories::after {
  content: '🌾';
  position: absolute;
  font-size: 4rem;
  opacity: 0.15;
  z-index: 0;
}

.testimonial-stories::before {
  top: 20px;
  left: 20px;
  transform: rotate(-15deg);
}

.testimonial-stories::after {
  bottom: 20px;
  right: 20px;
  transform: rotate(15deg);
}

.stories-title {
  font-family: 'Caudex', serif;
  font-size: 2.5rem;
  color: #8B6F47;
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
  position: relative;
}

.stories-title::before,
.stories-title::after {
  content: '🌾';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.6;
}

.stories-title::before {
  left: 10%;
}

.stories-title::after {
  right: 10%;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.story-card {
  text-align: center;
}

.story-image-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  /* Square photos - shorter height */
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #e0e0e0;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.story-card:hover .story-image-wrapper {
  filter: grayscale(0%);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #3D3127;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.story-name {
  font-family: 'Caudex', serif;
  font-size: 1rem;
  color: #666;
  font-style: italic;
}

/* Mobile Responsive for Stories */
@media (max-width: 768px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stories-title::before,
  .stories-title::after {
    display: none;
  }

  .stories-title {
    font-size: 2rem;
  }
}

/* === Footer Section - Sleek Dark Style === */
.footer {
  background: linear-gradient(to bottom, #2c2c2c 0%, #1a1a1a 100%);
  color: #E9EDDB;
  padding: 3.5rem 0 0;
  margin-top: 4rem;
  position: relative;
}

/* Texture overlay */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2r9//38gYGAEESAAEGAAasgJOgzJdGQAAAAASUVORK5CYII=');
  opacity: 0.03;
  pointer-events: none;
}

.footer .container {
  max-width: 1200px;
  width: 85%;
  position: relative;
  z-index: 1;
}

/* Footer Main Content - 4 Columns */
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(233, 237, 219, 0.15);
  margin-bottom: 1.5rem;
}

/* Footer Brand Section with Logo */
.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 2rem;
}

.footer-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #F5E6D3;
  margin: 0;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-brand-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #D4C4B0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -0.25rem;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #D4C4B0;
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
  font-style: italic;
  max-width: 280px;
}

/* Social Media Buttons Under Logo */
.social-links-brand {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(184, 200, 142, 0.12);
  border: 2px solid rgba(184, 200, 142, 0.3);
  border-radius: 50%;
  transition: all 0.35s ease;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(184, 200, 142, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 50%;
}

.social-btn:hover::before {
  opacity: 1;
}

.social-btn svg {
  width: 100%;
  height: 100%;
  fill: #D4C4B0;
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.social-btn:hover {
  background-color: #B8C88E;
  border-color: #B8C88E;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(184, 200, 142, 0.35);
}

.social-btn:hover svg {
  fill: #2C2416;
  transform: scale(1.05);
}

/* Active/Focus states */
.social-btn:active {
  transform: translateY(-1px) scale(1.05);
}

.social-btn:focus {
  outline: 2px solid rgba(184, 200, 142, 0.5);
  outline-offset: 3px;
}

/* Footer Navigation Columns with Dividers */
.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(233, 237, 219, 0.25);
}

.footer-nav-column h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #F5E6D3;
  margin: 0 0 1rem 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-nav-column a,
.footer-nav-column p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D4C4B0;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-nav-column a::before {
  content: '✓';
  color: #B8C88E;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-nav-column a:hover {
  color: #F5E6D3;
  padding-left: 4px;
}

/* Contact Column - Special Icons */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-icon {
  color: #B8C88E;
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D4C4B0;
  line-height: 1.6;
  margin: 0;
}

.footer-contact-text a {
  color: #D4C4B0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-text a:hover {
  color: #F5E6D3;
}

/* Hours Column */
.footer-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D4C4B0;
  line-height: 1.8;
  gap: 1rem;
}

.footer-hours-day {
  font-weight: 500;
}

.footer-hours-time {
  color: #B8C88E;
  white-space: nowrap;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #A89985;
  margin: 0;
  font-weight: 400;
}

/* Social Links in Footer Bottom */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(184, 200, 142, 0.15);
  border: 1px solid rgba(184, 200, 142, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 8px;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #B8C88E;
  border-color: #B8C88E;
  transform: translateY(-2px);
}

.social-icon:hover img {
  filter: brightness(0);
  opacity: 1;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }

  .footer-brand-section {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2.5rem 0 0;
  }

  .footer-logo {
    width: 80px;
    height: 80px;
  }

  .footer-brand {
    font-size: 1.25rem;
  }

  .social-icon {
    width: 32px;
    height: 32px;
  }
}