/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  /* Color Palette */
  --bg-primary: #fbfbfd;
  --bg-secondary: #f5f5f7;
  --surface: #ffffff;
  
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dark: #424245;
  --accent: #D4AF37; /* Champagne Gold Upgrade */
  
  /* Shadows & Borders */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.12);
  --border: rgba(0, 0, 0, 0.06);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* Global Spacing */
  --section-padding: 50px;
  --section-padding-mobile: 50px;
}

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
}

body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden; 
  width: 100%;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { 
  width: 4px; 
}
::-webkit-scrollbar-track { 
  background: var(--bg-secondary); 
}
::-webkit-scrollbar-thumb { 
  background: var(--accent); 
  border-radius: 4px; 
}

/* ==========================================================================
   TYPOGRAPHY & GLOBALS
   ========================================================================== */
section { 
  padding: var(--section-padding) 60px; 
}

section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.section-title em { 
  font-style: italic; 
  color: var(--accent); 
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-radius: 999px;
  padding: 16px 34px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-ghost {
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent);
  border-radius: 999px;
  padding: 16px 34px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-radius: 999px;
  z-index: 1000;
  transition: all .35s ease;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0.02)
  );
  pointer-events: none;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;  
  height: 100%;
}

.logo,
nav ul a {
  color: #111;
  text-shadow: 0 1px 8px rgba(255,255,255,0.4);
}

.logo span { 
  color: var(--accent); 
}

.logo img {
  height: 135px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
}

nav ul a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  opacity: .8;
  position: relative;
  transition: .3s ease;
}

nav ul a:hover { 
  opacity: 1; 
  color: var(--accent); 
}

nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: .3s ease;
}

nav ul a:hover::after {
  width: 100%;
}

nav ul a.active {
  color: var(--accent);
  opacity: 1;
}

nav ul a.active::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  font-size: 10px !important;
  letter-spacing: 0.2em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--accent) !important;
  opacity: 1 !important;
  transition: background 0.3s, color 0.3s !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.12);
}

.nav-cta:hover { 
  background: var(--accent) !important; 
  color: var(--surface) !important; 
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #111;
  z-index: 1001;
}

.mobile-menu-active ul {
  display: flex !important;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  padding: 18px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  gap: 14px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; 
  background-color: #1a1a1a;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15),
    rgba(0,0,0,.25),
    rgba(0,0,0,.45)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 50px;
  border-radius: 40px;  
}

.hero-eyebrow {
  color: var(--accent);  
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s 0.5s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(70px, 8vw, 130px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 1s 0.8s ease forwards;
  color: white;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin: 0 auto 52px;
  max-width: 90%;
  opacity: 0;
  animation: fadeUp 1s 1.1s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s 1.4s ease forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-indicator span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s 2.5s ease infinite;
}

/* ==========================================================================
   FIXED BG BREAKS (PARALLAX)
   ========================================================================== */
.fixed-bg-break {
  height: 40vh; 
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat !important; 
  background-size: cover !important; 
  position: relative;
  padding: 0 !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fixed-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); 
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-primary);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.marquee-dot { 
  width: 4px; 
  height: 4px; 
  background: var(--accent); 
  border-radius: 50%; 
  flex-shrink: 0; 
}

/* ==========================================================================
   TEAM PREVIEW (Home Page)
   ========================================================================== */
.team-preview-section {
  padding: var(--section-padding) 8%;
  background: #fff;
}

.team-preview-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.team-preview-intro {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
  transition: .4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card-image {
  height: 500px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 30px 30px 10px;
}

.team-role {
  display: block;
  margin: 0 30px 20px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-card p {
  margin: 0 30px 30px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.team-preview-action {
  text-align: center;
  margin-top: 60px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 100px; 
  align-items: center; 
  max-width: 1300px; 
  margin: 0 auto; 
}

.about-images {
  position: relative;
  height: 560px;
}

.about-img {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.about-img picture,
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img img {
  transition: transform 8s ease;
  filter: saturate(1.05) contrast(1.03);
}

.about-img:hover img { 
  transform: scale(1.05); 
}

.about-img-1 { 
  width: 58%; 
  height: 70%; 
  top: 0; 
  left: 0; 
}

.about-img-2 { 
  width: 50%; 
  height: 60%; 
  bottom: 0; 
  right: 0; 
  border: 6px solid var(--surface); 
}

.about-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 32px 0 48px;
  font-weight: 300;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 25px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section { 
  background: var(--bg-primary); 
  padding: var(--section-padding) 0;
}

.services-inner { 
  max-width: 1300px; 
  margin: 0 auto; 
  padding: 0 60px;
}

.services-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-end; 
  margin-bottom: 72px; 
}

.services-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.service-card {
  background: var(--surface);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0;
  width: 0; 
  height: 3px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.service-card:hover::before { 
  width: 100%; 
}

.service-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s;
}

.service-card:hover .service-num { 
  color: rgba(212, 175, 55, 0.15); 
}

.service-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section { 
  max-width: 1300px; 
  margin: 0 auto; 
  padding: var(--section-padding) 60px;
}

.portfolio-header { 
  text-align: center; 
  margin-bottom: 72px; 
}
/* Forces the picture wrapper to respect the grid cell boundaries */
.portfolio-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s ease;
}

.portfolio-item:hover { 
  box-shadow: var(--shadow-lg); 
}

.portfolio-item.wide { 
  grid-column: span 2; 
  aspect-ratio: 16/9; 
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-thumb { 
  transform: scale(1.08); 
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.15);
  pointer-events: none;
  opacity: 0;
  transition: .4s ease;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   PORTFOLIO VIDEO CARDS (CLICK-TO-PLAY)
   ========================================================================== */
.films-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #111;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Specific aspect ratio for YouTube Shorts / Reels */
.video-card.reel-card {
  aspect-ratio: 9/16;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85; 
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.95); 
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; 
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #D4AF37;
}

.video-card .play-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin-left: 4px; 
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.75) 100%
  );
  opacity: 0;
  transition: opacity .45s ease;
  display: none !important; /* Hide on mobile */
  align-items: flex-end;
  padding: 36px;
}

.portfolio-item:hover .portfolio-overlay { 
  opacity: 1; 
}

.portfolio-couple {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: white;
  display: block;
  margin-bottom: 8px;
}

.portfolio-meta {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px; 
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.play-btn svg { 
  width: 18px; 
  height: 18px; 
  fill: white; 
  margin-left: 3px; 
}

.portfolio-item:hover .play-btn { 
  transform: translate(-50%, -50%) scale(1); 
}

/* ==========================================================================
   PORTFOLIO PAGE (Hero & Layouts)
   ========================================================================== */
.portfolio-hero {
  position: relative;
  height: 65vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("https://amavifilms.ca/frontend/images/optimized/BSP-79.webp") center center / cover no-repeat;
  overflow: hidden;
  padding: 0;
}

.portfolio-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.45),
    rgba(0,0,0,.65)
  );
}

.portfolio-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  color: #fff;
}

.portfolio-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 90px);
  line-height: .95;
  font-weight: 300;
  margin-bottom: 24px;
  color: #fff;
}

.portfolio-hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: auto;
  opacity: .9;
}

.portfolio-films {
  padding: var(--section-padding) 8%;
  background: #fff;
}

.portfolio-reels {
  padding: var(--section-padding) 8%;
  background: #fbfbfd;
}

.portfolio-gallery {
  padding: var(--section-padding) 8%;
  background: #fff;
}

.portfolio-cta {
  padding: var(--section-padding) 24px;
  text-align: center;
  background: #fbfbfd;
}

.portfolio-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(50px, 6vw, 90px);
  font-weight: 300;
  margin-bottom: 24px;
}

.portfolio-cta-text {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.cta-note {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.portfolio-scroll {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.portfolio-scroll span {
  font-size: 22px;
  animation: bounceArrow 2s infinite;
}

/* ==========================================================================
   SHOWREEL CTA
   ========================================================================== */
.showreel-cta {
  text-align: center;
  background: var(--bg-primary);
  padding: var(--section-padding) 60px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showreel-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 48px;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s;
}

.play-circle:hover { 
  gap: 32px; 
}

.play-circle-ring {
  width: 72px; 
  height: 72px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: background 0.3s;
}

.play-circle:hover .play-circle-ring { 
  background: rgba(212, 175, 55, 0.08); 
}

.play-circle-ring svg { 
  width: 22px; 
  height: 22px; 
  fill: var(--accent); 
  margin-left: 3px; 
}

/* ==========================================================================
   TESTIMONIALS SECTION (LUXURY OVERLAY UPGRADE)
   ========================================================================== */
.testimonials-section {
    position: relative;
    padding: 140px 0;
    background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-10.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    max-width: 100%;
    margin: 0;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.testimonials-section > * {
    position: relative;
    z-index: 2;
}

.testimonials-header,
.testimonials-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-header { 
    text-align: center; 
    margin-bottom: 80px; 
}

.testimonials-section .section-title {
    color: white;
}

.testimonials-section .section-label {
    color: var(--accent);
}

.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 52px 48px;
    position: relative;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04),
                0 1px 0 rgba(255,255,255,.8) inset;
    transition: transform .35s ease, box-shadow .35s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.08;
    position: absolute;
    top: 24px;
    left: 40px;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 36px;
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.testimonial-role {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 3px;
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.stars span { 
    color: var(--accent); 
    font-size: 18px; 
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-section { 
  background: var(--bg-primary); 
  padding: var(--section-padding) 0;
}

.process-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 60px;
}

.process-steps { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
  margin-top: 80px; 
}

.process-step {
  padding: 48px 36px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.step-desc { 
  font-size: 13px; 
  line-height: 1.75; 
  color: var(--text-secondary); 
  font-weight: 300; 
}

/* ==========================================================================
   CONTACT CTA
   ========================================================================== */
.contact-cta {
  text-align: center;
  padding: var(--section-padding) 60px;
  position: relative;
  overflow: hidden;
}

.cta-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.cta-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 56px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   TEAM PAGE: HERO
   ========================================================================== */
.team-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 180px 24px 100px; 
  min-height: 60vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("https://amavifilms.ca/frontend/images/placeholders/founders.webp") center 30% / cover no-repeat;
}

.team-hero.about-hero {
  background: url("https://amavifilms.ca/frontend/images/placeholders/about.webp") center 40% / cover no-repeat;
}

.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,   
    rgba(0, 0, 0, 0.25) 50%,  
    rgba(0, 0, 0, 0.85) 100%  
  );
  z-index: 1;
  pointer-events: none;
}

.team-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2; 
}

.team-hero .section-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.team-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 90px);
  font-weight: 300;
  line-height: 1;
  color: #ffffff; 
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); 
}

.team-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95); 
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   TEAM PAGE: STATS
   ========================================================================== */
.team-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: var(--section-padding) 40px;
  text-align: center;
  background: white;
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
}

.team-values .value h3 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.team-values .value p {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   TEAM PAGE: MEMBERS
   ========================================================================== */
.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--section-padding) 24px;
}

.team-member-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
}

.team-member-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.team-member-image picture,
.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-image img {
  transition: transform 0.6s ease;
}

.team-member-image:hover img {
  transform: scale(1.05);
}

.team-member-content h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.team-member-content span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.team-member-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-member-content blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-dark);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}

@media (min-width: 901px) {
  .team-member.reverse .team-member-content {
    order: -1;
  }
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.expertise-tags span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.expertise-tags span:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.04);
}

/* ==========================================================================
   TEAM PAGE: PHILOSOPHY
   ========================================================================== */
.team-philosophy {
  padding: var(--section-padding) 24px;
  background: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border);
}

.philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
}

.team-philosophy h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.team-philosophy p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   TEAM PAGE: CTA
   ========================================================================== */
.team-cta {
  text-align: center;
  padding: var(--section-padding) 24px;
  background: linear-gradient(
    180deg,
    var(--bg-secondary),
    #ffffff
  );
}

.team-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.team-cta .cta-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   TRUST BAR (Home/Global)
   ========================================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.trust-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   BOOKING PAGE & FORM
   ========================================================================== */
.booking-section {
  padding: var(--section-padding) 20px;
  background: #fff;
  text-align: center;
}

.booking-form {
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 18px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  font-size: 16px;
}

.booking-form button {
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.booking-hero {
  padding: 160px 24px 80px; 
  text-align: center;
  position: relative;
  background: url("https://amavifilms.ca/frontend/images/optimized/BSP-57.webp") center center / cover no-repeat;
}

.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.booking-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2; 
}

.booking-eyebrow {
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent); 
  margin-bottom: 24px;
}

.booking-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: .95;
  margin-bottom: 24px;
  color: #fff; 
}

.booking-hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.booking-intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85); 
}

.booking-form-section {
  padding: var(--section-padding) 24px;
  background: #f5f5f7; 
}

.booking-form-wrapper {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

#bookingForm {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #222;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  background: #fff;
  font-size: 1rem;
  font-family: "Jost", sans-serif;
  transition: .25s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.full-width {
  grid-column: 1 / -1;
}

.submit-btn {
  border: none;
  cursor: pointer;
  padding: 18px 32px;
  font-size: 1rem;
  width: 100%;
}

#dynamic-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dynamic-field-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.success-message {
  text-align: center;
  padding: 60px 20px;
}

.success-message h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: auto;
  line-height: 1.8;
}

/* ==========================================================================
   ABOUT PAGE: OUR STORY (Staggered Layout)
   ========================================================================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-padding) 40px;
}

.about-story-content h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
}

.about-story-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-story-images img {
  width: 100%;
  height: 340px; 
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-story-images img:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.about-story-images img:nth-child(2),
.about-story-images img:nth-child(4) {
  margin-top: 60px;
}

/* ==========================================================================
   ABOUT PAGE: FOUNDERS PREVIEW
   ========================================================================== */
.founders-preview {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--section-padding) 0;
}

.founders-preview-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.founders-preview h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.founder-card {
  padding: 40px 32px;
  background: var(--bg-primary);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.founder-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.founder-card span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   ABOUT PAGE: WHY AMAVI FILMS
   ========================================================================== */
.why-amavi {
  padding: var(--section-padding) 24px;
  background: var(--bg-primary); 
  text-align: center;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.why-amavi h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 40px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.why-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER (Desktop layout)
   ========================================================================== */
.footer {
    background: #111;
    color: #fff;
    padding: 120px 8% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-logo {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    margin-bottom: 25px;
}

.footer-brand p {
    max-width: 350px;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.footer a {
    display: block;
    text-decoration: none;
    color: rgba(255,255,255,.7);
    margin-bottom: 12px;
    transition: .3s;
}

.footer a:hover {
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255,255,255,.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 80px;
    padding-top: 30px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    margin: 0;
}

.admin-link {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4); 
    text-decoration: none;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--accent); 
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-body);
    z-index: 1;
}

/* Desktop Background Overrides */
#about-bg-break { background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-14.webp'); }
#team-bg-break { background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-85.webp'); }

/* ==========================================================================
   GALLERY MASONRY FIXES
   ========================================================================== */
.gallery-grid {
    columns: 3;
    column-gap: 24px;
    margin-top: 70px;
}
.gallery-grid picture {
    display: block;
    margin-bottom: 24px; 
    break-inside: avoid; 
    width: 100%;
    height: auto; 
}
.gallery-grid picture img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    margin-bottom: 0; 
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet / Medium Breakpoint */
@media (max-width: 900px) {
  nav { padding: 22px 28px; }
  nav.scrolled { height: 64px; }
  nav ul { display: none; }
  .hamburger { display: block; }
  
  section, .team-preview-section, .services-section, .portfolio-section,
  .process-section, .contact-cta, .showreel-cta, .about-story, .founders-preview,
  .why-amavi, .portfolio-films, .portfolio-reels, .portfolio-gallery, .portfolio-cta,
  .team-member, .team-philosophy, .team-cta, .booking-section, .booking-form-section {
    padding: var(--section-padding-mobile) 28px; 
  }
  
  .testimonials-section { padding: 80px 0; }
  .testimonials-header, .testimonials-grid { padding: 0 28px; }
  .team-hero, .booking-hero { padding: 120px 24px 60px; }
  .team-values { padding: var(--section-padding-mobile) 24px; margin: 0 auto 40px auto; }
  
  .about { grid-template-columns: 1fr; gap: 60px; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .why-card { padding: 40px 32px; }
  .about-images { height: 380px; }
  
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.wide { grid-column: span 1; aspect-ratio: 3/4; }
  
  .team-preview-grid { grid-template-columns: 1fr; }
  .team-card-image { height: 380px; }
  .portfolio-item { border-radius: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  
  .hero-title { font-size: 42px; line-height: 1; letter-spacing: -0.03em; }
  .services-header { flex-direction: column; gap: 24px; align-items: flex-start; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 18px; }
  
  .hero-actions { flex-direction: column; }
  .hero-content { width: 100%; max-width: 100%; padding: 0 12px; }
  .hero { min-height: 85vh; }
  .hero-actions a { width: 100%; max-width: 280px; text-align: center; }
  
  .process-step { padding: 28px 20px; }
  .testimonial-card { padding: 28px 20px; }
  .service-card { padding: 28px 22px; }
  .section-title { font-size: 42px; }
  .section-label { font-size: 8px; }
  
  .about-story { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-story-text blockquote { text-align: left; }
  
  .team-member { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .team-member.reverse .team-member-content { order: 0; }
  .expertise-tags { justify-content: center; }
  .team-member-content blockquote { text-align: left; }
  
  .team-values { grid-template-columns: repeat(2, 1fr); gap: 60px 40px; }
}

/* ==========================================================================
   Small Tablet / Large Phone Breakpoint
   ========================================================================== */
@media (max-width: 768px) {
  .scroll-indicator { display: none !important; }
  
  .hero-actions {
      gap: 16px;
      flex-direction: column;
  }
  .btn-primary, .btn-ghost {
      padding: 14px 24px;
      font-size: 14px;
      width: 100%;
      max-width: 100%;
  }
  
  .booking-form-wrapper {
    padding: 28px;
    border-radius: 24px;
  }
  .booking-intro { font-size: 1rem; }
  
  /* Grid collapses to 1 column */
  .founders-grid, .form-grid, .films-grid, #dynamic-fields, .dynamic-field-group {
    grid-template-columns: 1fr;
  }
  .full-width { grid-column: auto; }
  
  /* Portfolio & Gallery Mobile Grids */
  .reels-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  
  .portfolio-hero-content h1 { font-size: 58px; }
  .team-hero h1 { font-size: clamp(42px, 10vw, 58px); }
  .team-member-content h2 { font-size: 36px; }

  /* --------------------------------------
     Mobile Background Overrides
     -------------------------------------- */
  #about-bg-break { background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-14-mobile.webp'); }
  #team-bg-break { background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-85-mobile.webp'); }
  
  .testimonials-section {
      background-image: url('https://amavifilms.ca/frontend/images/optimized/BSP-10-mobile.webp');
      background-attachment: scroll !important;
      background-position: center 30%; 
  }

  /* --------------------------------------
     Fix the Massive Footer on Mobile
     -------------------------------------- */
  .footer {
      padding: 60px 24px 30px; 
  }
  .footer-container {
      grid-template-columns: 1fr;
      gap: 32px; 
  }
  .footer-bottom {
      margin-top: 40px; 
      padding-top: 24px;
  }

  /* --------------------------------------
     Mobile Portfolio "View More" Logic
     -------------------------------------- */
  .portfolio-item.mobile-hidden {
      display: none;
  }
  .view-more-container {
      display: block !important; 
  }
  .full-portfolio-link {
      display: none;
  }
}

/* ==========================================================================
   Mobile Breakpoint
   ========================================================================== */
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .reels-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .portfolio-hero {
    min-height: 500px;
    background: url("https://amavifilms.ca/frontend/images/optimized/BSP-79.webp") center center / cover no-repeat;
  }
  .portfolio-hero-content h1 { font-size: 44px; }
  .team-values { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Small Mobile Breakpoint
   ========================================================================== */
@media (max-width: 480px) {
  section, .team-preview-section, .services-section, .portfolio-section,
  .process-section, .contact-cta, .showreel-cta, .about-story, .founders-preview,
  .why-amavi, .portfolio-films, .portfolio-reels, .portfolio-gallery, .portfolio-cta,
  .team-member, .team-philosophy, .team-cta, .booking-section, .booking-form-section {
    padding: 60px 18px;
  }
  .testimonials-section { padding: 60px 0; }
  .testimonials-header, .testimonials-grid { padding: 0 18px; }
  .hero-title { font-size: 36px; }
  .hero-sub {
    font-size: 12px;
    line-height: 1.8;
    max-width: 320px;
    margin: 0 auto 40px;
  }
  nav {
    width: 96%;
    padding: 0 18px;
  }
  .logo { font-size: 18px; }
  .team-hero, .booking-hero { padding: 140px 18px 60px; }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #111;
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials-carousel-wrapper {
  position: relative;
  max-width: 800px; /* Limit width for readability */
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-grid {
  display: flex; /* Arrange slides in a row */
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Remove the previous grid-template-columns */
}

.testimonial-card.slide {
  flex: 0 0 100%; /* Each slide takes full width of the wrapper */
  opacity: 0.4; /* Dim inactive slides */
  transform: scale(0.95); /* Slightly shrink inactive slides */
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 40px; /* Adjust padding if needed */
}

.testimonial-card.slide.active {
  opacity: 1;
  transform: scale(1); /* Full size for active slide */
}

/* Indicators (Dots) */
.carousel-indicators {
  text-align: center;
  margin-top: 30px;
}

.carousel-indicators .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

.team-dynamic {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.team-card {
  /* Top row gets 33.33% width minus the gap */
  flex: 1 1 calc(33.333% - 15px);
  height: 350px; /* Fixed height so they line up perfectly */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Bottom row gets 50% width minus the gap */
.team-card.wide {
  flex: 1 1 calc(50% - 15px);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Keeps focus on their faces if the image gets wide */
}

/* Mobile Responsiveness (Stacks them gracefully on phones) */
@media (max-width: 768px) {
  .team-card, .team-card.wide {
    flex: 1 1 100%;
  }
}

/* Fix Testimonial Slider Drift - The Margin Method */
.testimonials-grid {
    display: flex !important;
    gap: 0 !important; /* Gaps break JS percentage math, we use margins instead */
    padding: 0 !important;
}

.testimonial-card.slide {
    /* 1. Reset the borders from the previous attempt */
    border: none !important; 
    background-clip: border-box !important;

    /* 2. Set the actual width of the white card */
    flex: 0 0 76% !important; 
    
    /* 3. Add margins to perfectly center it (76% + 12% + 12% = 100%) */
    margin: 0 12% !important; 
    
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Mobile Adjustment to keep cards looking good on phones */
@media (max-width: 768px) {
    .testimonial-card.slide {
        flex: 0 0 90% !important; /* Wider card on phones */
        margin: 0 5% !important;  /* Smaller margins on phones (90 + 5 + 5 = 100) */
    }
}