/* ============================================
   INSTAPIX EVENTS — Design System v2
   Deep Forest + Emerald + Gold | Premium Weddings
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --white: #FFFFFF;
  --cream: #F5F0E8;
  --cream-dark: #EDE6DA;
  --forest: #0B1F14;
  --forest-light: #132B1D;
  --emerald: #2D5A3D;
  --emerald-hover: #245031;
  --emerald-light: rgba(45, 90, 61, 0.10);
  --emerald-glow: rgba(45, 90, 61, 0.20);
  --gold: #C5A96A;
  --gold-hover: #B89B5A;
  --gold-light: rgba(197, 169, 106, 0.12);
  --gold-glow: rgba(197, 169, 106, 0.25);
  --text-primary: #0B1F14;
  --text-secondary: #4A5D50;
  --text-muted: #8A9690;
  --border: #DDD8D0;
  --border-light: #EAE5DD;

  /* Typography */
  --font-heading: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes — fluid scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --nav-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 31, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 31, 20, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 31, 20, 0.10);
  --shadow-xl: 0 16px 50px rgba(11, 31, 20, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  font-size: 80%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.accent-text {
  font-family: 'Great Vibes', cursive;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 550px;
}

/* --- Gold Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border-radius: 100px;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

section {
  padding: var(--space-section) 0;
}

.section--cream {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10 Q30 25 40 40 Q50 25 40 10Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M40 40 Q30 55 40 70 Q50 55 40 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M10 40 Q25 30 40 40 Q25 50 10 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M40 40 Q55 30 70 40 Q55 50 40 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23C5A96A' opacity='0.3'/%3E%3C/svg%3E"),
    linear-gradient(rgba(197,169,106,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,169,106,0.12) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px, 40px 40px;
}

/* Reusable brand pattern — add to any element with cream bg */
.bg-pattern {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10 Q30 25 40 40 Q50 25 40 10Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M40 40 Q30 55 40 70 Q50 55 40 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M10 40 Q25 30 40 40 Q25 50 10 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M40 40 Q55 30 70 40 Q55 50 40 40Z' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23C5A96A' opacity='0.3'/%3E%3C/svg%3E"),
    linear-gradient(rgba(197,169,106,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,169,106,0.12) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px, 40px 40px;
}

.section--forest {
  background: var(--forest);
  color: var(--white);
}

.section--forest h2,
.section--forest h3,
.section--forest h4,
.section--forest h5 {
  color: var(--white);
}

.section--forest p {
  color: rgba(255, 255, 255, 0.70);
}

.section--forest .section-label {
  color: var(--gold);
}

.section--emerald {
  background: var(--emerald);
  color: var(--white);
}

.section--emerald h2,
.section--emerald h3,
.section--emerald h4 {
  color: var(--white);
}

.section--emerald p {
  color: rgba(255, 255, 255, 0.75);
}

.section--emerald .section-label {
  color: var(--gold);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .grid--4.grid--compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .grid--4.grid--compact { grid-template-columns: 1fr; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(11, 31, 20, 0.06);
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.98);
  box-shadow: 0 1px 12px rgba(11, 31, 20, 0.08);
}

/* Transparent nav for dark hero pages */
.nav--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav--transparent .nav__link {
  color: rgba(255, 255, 255, 0.7);
}

.nav--transparent .nav__link:hover,
.nav--transparent .nav__link.active {
  color: var(--white);
}

.nav--transparent .nav__toggle span {
  background: var(--white);
}

.nav--transparent.scrolled {
  background: rgba(11, 31, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(197, 169, 106, 0.15);
}

.nav--transparent.scrolled .nav__link {
  color: rgba(255, 255, 255, 0.7);
}

.nav--transparent.scrolled .nav__link:hover,
.nav--transparent.scrolled .nav__link.active {
  color: var(--white);
}

.nav--transparent.scrolled .nav__toggle span {
  background: var(--white);
}

.nav__inner {
  max-width: none;
  margin: 0;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-right: auto;
}

.nav__logo img {
  filter: brightness(0) invert(0.15);
}

.nav--transparent .nav__logo img {
  filter: none;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.05em;
}

.nav__logo-text span {
  color: var(--gold);
}

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

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--forest);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

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

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__cta {
  display: inline-flex;
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 6px 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  /* When menu is open, expand nav to full screen */
  .nav.menu-open {
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.menu-open .nav__inner {
    flex-wrap: wrap;
    align-content: flex-start;
  }

  .nav__menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    display: none;
    padding: var(--space-3xl) 0;
    flex-grow: 1;
  }

  .nav__menu.open {
    display: flex;
  }

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

  .nav__link {
    font-size: var(--text-xl);
    color: var(--forest);
  }

  .nav__cta {
    margin-top: var(--space-md);
  }

  /* Dark mobile menu for transparent nav pages */
  .nav--transparent.menu-open {
    background: var(--forest);
  }

  .nav--transparent.menu-open .nav__link {
    color: rgba(255, 255, 255, 0.85);
  }

  .nav--transparent.menu-open .nav__link:hover,
  .nav--transparent.menu-open .nav__link.active {
    color: var(--white);
  }

  .nav--transparent .nav__menu .nav__cta {
    color: var(--white);
    border-color: var(--gold);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--emerald);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.25);
}

.btn--gold {
  background: var(--gold);
  color: var(--forest);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 169, 106, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--forest);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--emerald);
  padding: 0;
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--emerald-hover);
}

.btn--ghost::after {
  content: '\2192';
  transition: transform var(--duration-fast);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 1.1rem 2.75rem;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.625rem 1.5rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card--featured {
  border: 2px solid var(--gold);
  position: relative;
}

.card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 1.25rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* --- Testimonial Cards --- */
.testimonial {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.testimonial__stars {
  color: var(--gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

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

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--emerald);
  font-size: var(--text-sm);
}

.testimonial__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.testimonial__event {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

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

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-img {
  object-position: 55% 35%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 20, 0.60) 0%,
    rgba(11, 31, 20, 0.70) 50%,
    rgba(11, 31, 20, 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding: 8px 24px;
  border: 1px solid rgba(197, 169, 106, 0.35);
  border-radius: 100px;
  background: rgba(197, 169, 106, 0.08);
}

.hero__title {
  font-size: clamp(3rem, 2.5rem + 4vw, 6rem);
  margin-bottom: 0;
  line-height: 1;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero__title img {
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__title {
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-lg);
  font-style: italic;
  font-weight: 300;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 115vh;
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .hero__bg-img {
    object-position: 48% 40%;
  }

  .hero__title {
    font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  }

  .hero__scroll {
    bottom: 24px;
  }
}

/* --- Image Gallery / Lightbox --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 20, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal);
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(11, 31, 20, 0.35);
}

.gallery-item__icon {
  color: var(--white);
  font-size: var(--text-2xl);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-item__icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 20, 0.94);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  background: none;
  border: none;
  color: var(--white);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-sm);
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: var(--text-xl);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev { left: var(--space-xl); }
.lightbox__next { right: var(--space-xl); }

@media (max-width: 480px) {
  .lightbox__prev { left: var(--space-xs); }
  .lightbox__next { right: var(--space-xs); }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}

/* --- Gallery Filters --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

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

.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

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

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  transition: border-color var(--duration-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-light);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.footer__brand-name span {
  color: var(--gold);
}

.footer__description {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
  margin-bottom: var(--space-lg);
}

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

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  background: var(--emerald);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

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

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast);
  display: inline-block;
  padding: var(--space-xs) 0;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl) var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__grid > :first-child .footer__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__grid > :first-child .footer__social {
    justify-content: center;
  }

  /* Contact column spans full width with horizontal layout */
  .footer__grid > :last-child {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer__grid > :last-child .footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-xl);
  }

  .footer__grid > :last-child .footer__links li {
    margin-bottom: 0;
    text-align: center;
  }
  .footer__grid > :last-child .footer__links li:nth-last-child(-n+2) {
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 300ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Blog post link hover --- */
.card h3 a:hover,
.card h5 a:hover {
  color: var(--emerald);
}

/* --- Responsive inline grids --- */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce excessive gaps when grids stack on mobile */
  [style*="gap:var(--space-4xl)"],
  [style*="gap: var(--space-4xl)"] {
    gap: var(--space-xl) !important;
  }
  [style*="gap:var(--space-3xl)"],
  [style*="gap: var(--space-3xl)"] {
    gap: var(--space-lg) !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Carousel dots --- */
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 300ms;
}

.carousel__dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 100px;
}

/* --- Marquee (Testimonials) --- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: marquee-scroll 90s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__card {
  flex-shrink: 0;
  width: 380px;
  text-align: left;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee__card { width: 300px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .photo-marquee { animation: none !important; }
  .hero__scroll-dot { animation: none !important; }
  .fade-in, .fade-in-left, .fade-in-right, .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
