/* =========================================
   Zen Garden Yoga — Main Stylesheet
   ========================================= */

/* ---- Google Fonts are loaded via HTML <link> ---- */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-sage:        #6b8f71;
  --color-sage-dark:   #2d5a3d;
  --color-sage-mid:    #4a7c59;
  --color-sage-light:  #a8c5ad;
  --color-sage-pale:   #d9e8db;
  --color-moss:        #3d6b4a;

  --color-cream:       #f9f6f0;
  --color-ivory:       #faf8f4;
  --color-sand:        #e8dece;
  --color-sand-dark:   #d4c5ad;
  --color-beige:       #f2ece0;

  --color-stone:       #7a7268;
  --color-stone-light: #b8b0a4;
  --color-charcoal:    #2c2a27;
  --color-ink:         #3d3a35;
  --color-mist:        #ede9e1;

  --color-white:       #ffffff;

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Nunito', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  12px;
  --radius-lg:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 42, 39, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 42, 39, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 42, 39, 0.16);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-sm: 0.25s;
  --duration-md: 0.45s;
  --duration-lg: 0.7s;

  /* Nav height */
  --nav-h: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: var(--color-ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }

p {
  font-size: 1rem;
  color: var(--color-stone);
  line-height: 1.8;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage-mid);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ---- Utility ---- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.container--narrow {
  width: 90%;
  max-width: 780px;
  margin-inline: auto;
}

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

/* Reveal animation base states */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-lg) var(--ease-out),
              transform var(--duration-lg) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--duration-md) var(--ease-out),
              box-shadow var(--duration-md) var(--ease-out);
}

.nav.scrolled {
  background: rgba(249, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 42, 39, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-img {
  width: 44px;
  height: 44px;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  line-height: 1.1;
}

.nav__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sage-mid);
  font-weight: 400;
  display: block;
}

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

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  transition: color var(--duration-sm);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-sage-mid);
  transition: width var(--duration-sm) var(--ease-out);
}

.nav__link:hover { color: var(--color-sage-mid); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--color-sage-mid);
  border-radius: var(--radius-full);
  color: var(--color-sage-mid);
  transition: background var(--duration-sm), color var(--duration-sm);
}

.nav__cta:hover {
  background: var(--color-sage-mid);
  color: var(--color-white);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-charcoal);
  transition: transform var(--duration-sm), opacity var(--duration-sm);
  border-radius: 2px;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(249, 246, 240, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 999;
  border-bottom: 1px solid var(--color-sand);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-md) var(--ease-out), opacity var(--duration-md);
}

.nav__mobile.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile .nav__link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-sand);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Atmospheric SVG-based hero background */
.hero__bg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 42, 39, 0.35) 0%,
    rgba(44, 42, 39, 0.55) 50%,
    rgba(44, 42, 39, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-ivory);
  max-width: 820px;
  padding: var(--space-lg) var(--space-sm);
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sage-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(250, 248, 244, 0.82);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
}

.hero__divider {
  width: 48px;
  height: 1px;
  background: var(--color-sage-light);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 0.9s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-md) var(--ease-out);
  cursor: pointer;
}

.btn--outline-light {
  padding: 0.85rem 2.2rem;
  border: 1.5px solid rgba(250, 248, 244, 0.6);
  color: var(--color-ivory);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}

.btn--outline-light:hover {
  background: rgba(250, 248, 244, 0.12);
  border-color: rgba(250, 248, 244, 0.9);
  transform: translateY(-2px);
}

.btn--solid {
  padding: 0.85rem 2.2rem;
  background: var(--color-sage-dark);
  color: var(--color-ivory);
  border: 1.5px solid var(--color-sage-dark);
}

.btn--solid:hover {
  background: var(--color-moss);
  border-color: var(--color-moss);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-dark {
  padding: 0.85rem 2.2rem;
  border: 1.5px solid var(--color-sage-dark);
  color: var(--color-sage-dark);
}

.btn--outline-dark:hover {
  background: var(--color-sage-pale);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(250,248,244,0.6));
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.5);
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  padding: var(--space-xl) 0;
  background: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

.philosophy__pattern {
  position: absolute;
  top: 0; right: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.04;
  pointer-events: none;
}

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

.philosophy__text {}

.philosophy__text .section-label {
  margin-bottom: var(--space-sm);
}

.philosophy__title {
  margin-bottom: var(--space-md);
}

.philosophy__body {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.philosophy__quote {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 2px solid var(--color-sage-pale);
  margin: var(--space-md) 0;
}

.philosophy__quote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-sage-dark);
  font-style: italic;
  line-height: 1.5;
}

.philosophy__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-sage-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-sage-dark);
}

.pillar__title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.pillar__text {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.philosophy__art {
  width: 100%;
  max-width: 440px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--space-xl) 0;
  background: var(--color-cream);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services__header h2 {
  margin-bottom: 1rem;
}

.services__header p {
  max-width: 500px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--color-ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform var(--duration-md) var(--ease-out),
              box-shadow var(--duration-md) var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-sage-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-md);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sage-pale);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-sage-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: background var(--duration-sm);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card__icon {
  background: var(--color-sage-light);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-sage-dark);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-charcoal);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.service-card__text {
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-sage-mid);
  margin-top: var(--space-sm);
  transition: gap var(--duration-sm);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card__link {
  gap: 0.7rem;
}

/* ============================================
   SPACE / GALLERY
   ============================================ */
.space {
  padding: var(--space-xl) 0;
  background: var(--color-charcoal);
  position: relative;
  overflow: hidden;
}

.space__header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.space__header .section-label {
  color: var(--color-sage-light);
}

.space__header h2 {
  color: var(--color-ivory);
  margin-bottom: 1rem;
}

.space__header p {
  color: rgba(250,248,244,0.65);
  max-width: 480px;
  margin-inline: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-stone);
}

.gallery__item:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 380px; }
.gallery__item:nth-child(2) { grid-column: span 5; min-height: 180px; }
.gallery__item:nth-child(3) { grid-column: span 5; min-height: 180px; }
.gallery__item:nth-child(4) { grid-column: span 4; min-height: 200px; }
.gallery__item:nth-child(5) { grid-column: span 4; min-height: 200px; }
.gallery__item:nth-child(6) { grid-column: span 4; min-height: 200px; }

.gallery__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__item:hover .gallery__art {
  transform: scale(1.04);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,42,39,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-md);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__caption {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.85);
  font-weight: 500;
}

.space__cta {
  text-align: center;
  margin-top: var(--space-lg);
  position: relative;
  z-index: 2;
}

.space__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
  font-style: italic;
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--space-xl) 0;
  background: var(--color-beige);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: var(--radius-full);
  background: var(--color-sage-pale);
  opacity: 0.4;
}

.testimonials::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: var(--radius-full);
  background: var(--color-sand);
  opacity: 0.5;
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

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

.testimonial-card {
  background: var(--color-ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card__quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-sage-pale);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 400;
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-sage-dark);
}

.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--color-stone);
  letter-spacing: 0.04em;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}

.testimonial-card__stars svg {
  width: 14px;
  height: 14px;
  color: var(--color-sage-mid);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--space-xl) 0;
  background: var(--color-ivory);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__info {}

.contact__info .section-label {
  margin-bottom: var(--space-sm);
}

.contact__info h2 {
  margin-bottom: var(--space-md);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-sage-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-sage-dark);
}

.contact__detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage-mid);
  display: block;
  margin-bottom: 0.2rem;
}

.contact__detail-value {
  font-size: 0.95rem;
  color: var(--color-ink);
  line-height: 1.5;
}

.contact__hours {
  margin-top: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.contact__hours-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-mid);
  margin-bottom: 0.75rem;
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-sand);
  color: var(--color-ink);
}

.contact__hours-row:last-child {
  border-bottom: none;
}

.contact__hours-row span:last-child {
  color: var(--color-sage-mid);
  font-weight: 500;
}

.map-placeholder {
  margin-top: var(--space-md);
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sand);
  position: relative;
}

/* Form */
.contact__form-wrap {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: border-color var(--duration-sm), box-shadow var(--duration-sm);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-sage-mid);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7268' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-sage-dark);
  color: var(--color-ivory);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration-sm), transform var(--duration-sm);
  border: none;
}

.form__submit:hover {
  background: var(--color-moss);
  transform: translateY(-2px);
}

.form__note {
  font-size: 0.75rem;
  color: var(--color-stone-light);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-charcoal);
  color: rgba(250,248,244,0.7);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(250,248,244,0.1);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-ivory);
  line-height: 1.1;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 240px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250,248,244,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-sm), border-color var(--duration-sm);
}

.footer__social-link:hover {
  background: rgba(250,248,244,0.1);
  border-color: rgba(250,248,244,0.4);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  color: rgba(250,248,244,0.75);
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ivory);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(250,248,244,0.6);
  transition: color var(--duration-sm);
}

.footer__link:hover {
  color: var(--color-ivory);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  font-size: 0.78rem;
  color: rgba(250,248,244,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom a {
  color: rgba(250,248,244,0.55);
  transition: color var(--duration-sm);
}

.footer__bottom a:hover {
  color: rgba(250,248,244,0.85);
}

/* ============================================
   DECORATIVE / SECTION DIVIDERS
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-sand), transparent);
  margin: 0;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.15); }
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .philosophy__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .philosophy__visual {
    order: -1;
  }

  .philosophy__art {
    max-width: 320px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item:nth-child(1) { grid-column: span 2; min-height: 260px; }
  .gallery__item:nth-child(2) { grid-column: span 1; min-height: 160px; }
  .gallery__item:nth-child(3) { grid-column: span 1; min-height: 160px; }
  .gallery__item:nth-child(4) { grid-column: span 2; min-height: 160px; }
  .gallery__item:nth-child(5) { grid-column: span 1; min-height: 140px; }
  .gallery__item:nth-child(6) { grid-column: span 1; min-height: 140px; }

  .form-row { grid-template-columns: 1fr; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact__form-wrap {
    padding: var(--space-md);
  }
}

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

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item:nth-child(n) {
    grid-column: span 1;
  }
}
