@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

/* DESIGN SYSTEM VARIABLES - FEMININE, SPIRITUAL & PLUM/GOLD */
:root {
  /* Colors */
  --bg-color: #FCF8F5;         /* Delicate Rose Cream */
  --fg-color: #3E2E2A;         /* Bark Brown (softer than black) */
  --color-plum: #4A2E40;       /* Rich Deep Plum (Patricia Lynch vibe) */
  --color-primary: #C99B8B;    /* Antique Dusty Rose */
  --color-secondary: #95A78F;  /* Alpine Sage Green */
  --color-accent: #D4AF37;     /* Bright Antique Gold */
  --color-muted: #F5ECE4;      /* Soft Terracotta Cream Card Bg */
  --color-border: #EADFD5;     /* Warm Cream Border */
  --color-white: #FFFFFF;
  --color-dark: #341F2D;       /* Warm Dark Plum/Violet for footer & dark text overlays */
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */
  --space-4xl: 6rem;    /* 96px */
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(74, 46, 64, 0.03);
  --shadow-md: 0 8px 16px rgba(74, 46, 64, 0.05), 0 2px 4px rgba(74, 46, 64, 0.03);
  --shadow-lg: 0 16px 24px rgba(74, 46, 64, 0.06), 0 4px 8px rgba(74, 46, 64, 0.03);
  --shadow-xl: 0 24px 38px rgba(74, 46, 64, 0.08), 0 10px 18px rgba(74, 46, 64, 0.04);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 110px;
}

/* BASE STYLES & RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--fg-color);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--fg-color);
  font-weight: 400;
  line-height: 1.25;
}

/* UTILITY CLASSES */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 10;
}

.section-padding {
  padding: var(--space-4xl) 0;
  position: relative;
}

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

/* OLISTIC DIVIDERS & MANDALAS */
.olistic-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-md) auto var(--space-xl) auto;
  color: var(--color-accent);
}

.olistic-divider svg {
  width: 60px;
  height: 60px;
  opacity: 0.8;
  transition: transform 0.8s ease;
}

.olistic-divider:hover svg {
  transform: rotate(30deg);
}

/* Section Background Mandalas */
.mandala-bg-left, .mandala-bg-right {
  position: absolute;
  width: 380px;
  height: 380px;
  color: var(--color-primary);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  transform-origin: center;
  will-change: transform;
}

.mandala-bg-left {
  left: -100px;
  top: 15%;
}

.mandala-bg-right {
  right: -100px;
  bottom: 10%;
}

/* Rotating Animations for Watermarks */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-slow {
  animation: rotateSlow 120s linear infinite;
}

/* On dark sections, adjust mandala color/opacity */
.section-dark .mandala-bg-left,
.section-dark .mandala-bg-right {
  color: var(--color-accent);
  opacity: 0.07;
}

.italic-subtitle {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--color-primary);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.section-dark .italic-subtitle {
  color: var(--color-accent);
  opacity: 0.9;
}

/* HIGH-CONTRAST DARK SECTIONS (Patricia Lynch Style) */
.section-dark {
  background-color: var(--color-plum);
  color: #FCF8F5;
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.1), inset 0 -20px 40px rgba(0,0,0,0.1);
}

#visione {
  position: relative;
  background-color: var(--color-plum);
  background-image: linear-gradient(rgba(74, 46, 64, 0.91), rgba(74, 46, 64, 0.91)), url('images/valposchiavo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 1024px) {
  #visione {
    background-attachment: scroll;
  }
}

.flower-of-life-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  color: var(--color-plum);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  transform-origin: center;
  will-change: transform;
  right: -100px;
  bottom: 10%;
}

.section-dark .flower-of-life-bg {
  color: var(--color-accent);
  opacity: 0.15;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-accent);
}

.section-dark p {
  color: rgba(252, 248, 245, 0.85);
}

.section-dark .olistic-divider {
  color: var(--color-accent);
}

.section-dark .quote-block {
  color: #ffffff;
  border-left-color: var(--color-accent);
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 15px 36px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-plum);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(74, 46, 64, 0.25);
  border-color: var(--color-accent);
}

.section-dark .btn-primary:hover {
  background-color: var(--bg-color);
  color: var(--color-plum);
  border-color: var(--bg-color);
  box-shadow: 0 6px 14px rgba(255,255,255,0.1);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--fg-color);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(201, 155, 139, 0.15);
}

.section-dark .btn-secondary {
  color: #FCF8F5;
  border-color: var(--color-accent);
}

.section-dark .btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-plum);
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.2);
}

/* HEADER & NAVIGATION */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

header.scrolled {
  position: fixed;
  background-color: rgba(74, 46, 64, 0.96); /* Plum color for scrolled header */
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: 85px;
}

header.scrolled nav a {
  color: #FCF8F5;
}

header.scrolled .logo {
  color: var(--color-accent);
}

header.scrolled .logo span {
  color: #FCF8F5;
}

header.scrolled .burger div {
  background-color: var(--color-accent);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--fg-color);
  display: flex;
  align-items: center;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-top: -1px;
  font-weight: 500;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .logo-img {
  height: 60px;
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 768px) {
  .logo-img {
    height: 65px;
  }
  header.scrolled .logo-img {
    height: 48px;
    filter: brightness(0) invert(1) !important;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--fg-color);
  opacity: 0.85;
  position: relative;
  padding: var(--space-xs) 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

nav a:hover,
nav a.active {
  opacity: 1;
  color: var(--color-accent) !important;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Hamburger menu for mobile */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 22px;
  height: 2px;
  background-color: var(--fg-color);
  margin: 4px;
  transition: all 0.3s ease;
}

/* HERO SECTION (Warm feminine background) */
#home {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  position: relative;
  background-color: #FAF4EE;
  overflow: hidden;
}

/* Soft gold background circle decoration */
#home::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(252, 248, 245, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Faint mandala background in hero */
.hero-mandala-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  height: 45vw;
  color: var(--color-primary);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 10;
}

.hero-tagline {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.75rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--color-accent);
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 300;
  margin-bottom: var(--space-md);
  color: var(--fg-color);
  font-family: var(--font-title);
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-family: var(--font-title);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  color: #5C4A45;
}

/* Organic Oval frame for Jelena's Portrait */
.hero-img-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container {
  width: 90%;
  max-width: 420px;
  aspect-ratio: 4/5.5;
  overflow: hidden;
  border-radius: 180px 180px 30px 30px; /* Elegant arch shape */
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-img-container::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid var(--color-accent);
  border-radius: 186px 186px 36px 36px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img-container:hover .hero-portrait {
  transform: scale(1.07);
}

/* SCIAMANIC DREAMCATCHER ASSETS */
.olistic-divider img {
  height: auto;
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: drop-shadow(0 6px 12px rgba(74, 46, 64, 0.1));
}

.olistic-divider:hover img {
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 10px 18px rgba(74, 46, 64, 0.15));
}

/* VISIONE SECTION - SCARLET PLUM */
.vision-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-3xl);
  align-items: center;
}

.vision-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 200px 30px 200px 30px; /* Flowing organic leaf shape */
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.15);
}

.vision-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-img-wrapper:hover .vision-img {
  transform: scale(1.05);
}

.vision-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.vision-text p {
  margin-bottom: var(--space-md);
  color: rgba(252, 248, 245, 0.85);
}

.quote-block {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* PORTFOLIO / GALLERIA */
#galleria {
  background-color: #FAF4EE;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 20px;
  cursor: pointer;
  color: var(--color-primary);
  position: relative;
  transition: all 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.filter-btn:hover {
  color: var(--fg-color);
}

.filter-btn.active {
  color: var(--color-accent);
  font-weight: 600;
}

.filter-btn.active::after {
  width: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3/2;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-item.portrait-ratio {
  aspect-ratio: 2/3;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 46, 64, 0.7); /* Plum overlay for image hover */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: var(--space-md);
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-info {
  color: #ffffff;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h4 {
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  font-weight: 300;
}

.gallery-info span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  color: #FCF8F5;
}

/* ESPERIENZA / SERVIZI */
#esperienza {
  background-color: var(--bg-color);
}

.experience-intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl) auto;
  text-align: center;
}

.experience-intro p {
  font-size: 1.15rem;
  color: #5C4A45;
  line-height: 1.8;
}

/* Service Detail Block */
.service-block {
  margin-bottom: var(--space-4xl);
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-img-container {
  overflow: hidden;
  border-radius: 150px 150px 8px 8px; /* Arched window shape */
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.service-row.reverse .service-img-container {
  border-radius: 8px 8px 150px 150px;
}

.service-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-img-container:hover .service-img {
  transform: scale(1.05);
}

.service-content h3 {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.service-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-content p {
  color: #5C4A45;
  margin-bottom: var(--space-lg);
}

.service-features-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.service-features-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: #5C4A45;
}

/* Gold lotus markers for lists */
.service-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Custom lotus marker for lists */
.lotus-list-item::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='1.5'%3E%3Cpath d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z'/%3E%3Cpath d='M12 6c-2 3-3 5.5-3 8 0 2.5 1.5 4 3 4s3-1.5 3-4c0-2.5-1-5-3-8z'/%3E%3Cpath d='M12 8c2.5-1 4.5.5 5.5 2.5 1 2 .5 4.5-1.5 5.5-2 1-4.5.5-5.5-1.5-1-2-.5-4.5 1.5-5.5z'/%3E%3Cpath d='M12 8c-2.5-1-4.5.5-5.5 2.5-1 2-.5 4.5 1.5 5.5 2 1 4.5.5 5.5-1.5 1-2 .5-4.5-1.5-5.5z'/%3E%3C/svg%3E") !important;
}

/* CONTACT SECTION */
#contatti {
  background-color: #FAF4EE;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  position: relative;
  z-index: 10;
}

.contact-info-col h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.contact-info-col p {
  margin-bottom: var(--space-2xl);
  color: #5C4A45;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.info-icon {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-top: 2px;
}

.info-text h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 2px;
  font-weight: 600;
}

.info-text p, .info-text a {
  font-size: 1.05rem;
  color: var(--fg-color);
}

.info-text a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-color);
  padding: var(--space-2xl);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  background-color: var(--bg-color);
  border-radius: 6px;
  transition: all 0.3s ease;
  color: var(--fg-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 155, 139, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  margin-top: var(--space-md);
  padding: 12px;
  border-radius: 6px;
  display: none;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* FOOTER - DARK PLUM SCENE */
footer {
  background-color: var(--color-dark);
  color: rgba(252, 248, 245, 0.85);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.7rem;
  margin-bottom: var(--space-sm);
  font-weight: 300;
}

.footer-brand p {
  color: rgba(252, 248, 245, 0.6);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(252, 248, 245, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-plum);
  transform: translateY(-3px) rotate(10deg);
}

.footer-nav h3, .footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: rgba(252, 248, 245, 0.65);
}

.footer-nav a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact p {
  color: rgba(252, 248, 245, 0.65);
  margin-bottom: var(--space-sm);
}

.footer-contact a {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(252, 248, 245, 0.05);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: rgba(252, 248, 245, 0.4);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* LIGHTBOX MODAL */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 24, 22, 0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border-radius: 4px;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.05);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: var(--space-md);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: var(--space-md);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 2010;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.lightbox-next {
  right: -80px;
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* DYNAMIC SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-img-wrapper {
    order: 1;
    margin-bottom: var(--space-md);
  }
  
  .hero-dreamcatcher {
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
  }
  
  .vision-grid, .service-row, .service-row.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .service-row.reverse .service-img-container {
    order: -1;
  }
  
  .lightbox-prev {
    left: var(--space-md);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  
  .lightbox-next {
    right: var(--space-md);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-color);
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
  }
  
  nav.active {
    height: 320px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
  }
  
  .burger {
    display: block;
  }
  
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-4px, 5px);
  }
  
  .burger.toggle .line2 {
    opacity: 0;
  }
  
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-4px, -5px);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}
