/* ==========================================================================
   REELMATIC — AGENCY WEBSITE STYLESHEET
   Video Editing + Social Media Management for Coaches & Speakers
   Strict 80 / 10 / 10 Color System:
   • 80% White (#FFFFFF) — Main canvas, sections, cards
   • 10% Black (#111111) — Headings, body text, nav, footer block
   • 10% Orange (#FF7F5C) — Accent only: CTAs, hover states, underlines, icons
   • Body Text (#333333) — Soft readability
   • Surface Border (#E5E5E5)
   ========================================================================== */

:root {
  /* Strict 3-Color Tokens */
  --bg-white: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --text-black: #111111;
  --text-body: #333333;
  --text-muted: #666666;
  --accent-orange: #FF7F5C;
  --accent-orange-hover: #fa683f;
  --accent-orange-subtle: rgba(255, 127, 92, 0.08);
  --border-light: #E5E5E5;
  --footer-dark: #111111;

  /* Typography */
  --font-family: 'Gilroy', 'Poppins', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacings */
  --container-max: 1200px;
  --section-padding: 130px 0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-black);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-orange);
  color: var(--bg-white);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-black);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
}

p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-orange {
  color: var(--accent-orange);
}

/* ==========================================================================
   BUTTONS (Strict Pill Shape — Never Circle, Never Wrapping)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--bg-white);
  border-color: var(--accent-orange);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(255, 127, 92, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-black);
  border-color: var(--border-light);
}

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

.btn-outline-orange {
  background: var(--bg-white);
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

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

/* ==========================================================================
   SITE HEADER & NAVBAR (Single Row, Zero Overflow)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 14px 0;
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.top-left-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-black);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.top-left-admin-btn:hover {
  border-color: var(--text-black);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.top-left-admin-btn.authed {
  border-color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
}

.admin-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999999;
}

.admin-badge-dot.online {
  background: #10b981;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  max-height: 36px;
  width: auto;
  display: block;
}

.desktop-nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-black);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Hamburger Button (Mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   FULL-SCREEN MOBILE OVERLAY MENU (< 768px)
   ========================================================================== */
.mobile-overlay-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-white);
  z-index: 9999;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-overlay-logo .brand-logo-img {
  height: 26px;
  max-height: 26px;
}

.mobile-overlay-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-overlay-body {
  flex: 1;
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-black);
  text-decoration: none;
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid #F5F5F5;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-orange);
}

.mobile-overlay-cta {
  padding-top: 20px;
}

.mobile-menu-cta-btn {
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  display: block;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MOBILE STICKY BOTTOM CTA BAR (Protected from Netlify Badge Overlap)
   ========================================================================== */
.mobile-sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 140px 10px 16px; /* 140px Right padding ensures Netlify free-tier badge never overlaps the button! */
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-sticky-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-full);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-body);
}

/* Hero Section */
.hero-section {
  padding: 155px 0 90px;
  background: var(--bg-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 24px;
}

.dot-orange {
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.7rem, 4.8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

/* Hero Brand Reel Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-reel-container {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9/15.5;
  border-radius: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

.brand-reel-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #FFFFFF;
}

#hero-brand-reel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.reel-controls-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.reel-ctrl-btn {
  background: rgba(17, 17, 17, 0.85);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reel-ctrl-btn:hover {
  background: var(--accent-orange);
  transform: scale(1.08);
}

.reel-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-light);
}

.reel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-orange);
}

/* Trust Strip */
.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-black);
}

.trust-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.trust-stat-unit {
  display: flex;
  flex-direction: column;
}

.trust-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-black);
  line-height: 1;
}

.trust-stat-val .accent {
  color: var(--accent-orange);
}

.trust-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Services Section (2 Bundled Cards) */
.services-section {
  padding: var(--section-padding);
  background: var(--bg-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 35px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-black);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.06);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 24px;
  transition: border-color var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  border-color: var(--accent-orange);
}

.service-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.6;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.service-features-list li {
  font-size: 0.92rem;
  color: var(--text-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features-list li svg {
  color: var(--accent-orange);
  flex-shrink: 0;
}

.services-addendum {
  text-align: center;
  padding: 18px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-body);
  box-sizing: border-box;
}

.services-addendum strong {
  color: var(--text-black);
}

/* Process Section ("How It Works") */
.process-section {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  transition: all var(--transition-fast);
  position: relative;
  box-sizing: border-box;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-black);
}

.process-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 16px;
  line-height: 1;
}

.process-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Portfolio Section */
.portfolio-section {
  padding: var(--section-padding);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.portfolio-filter-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-body);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--transition-fast);
  position: relative;
  z-index: 2;
}

.filter-tab-btn:hover {
  color: var(--text-black);
}

.filter-tab-btn.active {
  color: var(--bg-white);
  background: var(--text-black);
}

.portfolio-carousel-wrapper {
  position: relative;
  width: 100%;
  outline: none;
}

.portfolio-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  border-radius: var(--radius-lg);
}

.portfolio-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.portfolio-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
}

.portfolio-carousel-track.no-transition {
  transition: none !important;
}

.portfolio-card-slide {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  box-sizing: border-box;
}

.portfolio-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1.5px solid var(--accent-orange);
  color: var(--text-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(255, 127, 92, 0.12);
}

.carousel-nav-btn:hover {
  background: var(--accent-orange);
  color: var(--bg-white);
  transform: scale(1.06);
}

.carousel-nav-btn:disabled,
.carousel-nav-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-light);
  color: var(--text-muted);
  transform: none;
  box-shadow: none;
}

.carousel-dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent-orange);
  width: 24px;
  border-radius: 999px;
}

.portfolio-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-black);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
}

.card-media-box {
  position: relative;
  width: 100%;
  background: #FAFAFA;
  overflow: hidden;
  aspect-ratio: 16/9; /* Consistent uniform aspect ratio */
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .card-thumb-img {
  transform: scale(1.03);
}

.card-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portfolio-card:hover .card-play-hover {
  opacity: 1;
}

.play-ring-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-details-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

.card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.niche-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.card-project-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card-desc-line {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 18px;
}

.card-action-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-black);
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  transition: color var(--transition-fast);
  margin-top: auto;
}

.portfolio-card:hover .card-action-line {
  color: var(--accent-orange);
}

/* Why ReelMatic Section */
.why-section {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.why-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.why-card:hover {
  border-color: var(--text-black);
  transform: translateY(-3px);
}

.why-num-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 18px;
}

.why-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.test-quote {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-black);
  margin-bottom: 24px;
}

.test-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.test-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.test-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-black);
}

.test-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.test-result-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 12px;
  width: fit-content;
}

/* Lead Capture Section */
.lead-capture-section {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.lead-capture-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.lead-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.lead-form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.lead-form-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-black);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
  border-color: var(--text-black);
}

.lead-calendly-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.cal-card-top h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.cal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.cal-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-black);
}

.cal-features li svg {
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* Free Content Audit Lead Magnet */
.lead-magnet-section {
  padding: 0 0 100px;
  background: var(--bg-white);
}

.lead-magnet-card {
  background: var(--bg-white);
  border: 2px solid var(--text-black);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-sizing: border-box;
}

.magnet-left {
  max-width: 650px;
}

.magnet-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  background: var(--accent-orange);
  color: var(--bg-white);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.magnet-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.magnet-sub {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--text-black);
}

.faq-question-btn {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-black);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--accent-orange);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 26px 22px;
  display: none;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--footer-dark);
  color: var(--bg-white);
  padding: 60px 0 30px;
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col {
  max-width: 320px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-nav-col {
  display: flex;
  gap: 30px;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--accent-orange);
}

.footer-social-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent-orange);
  color: var(--bg-white);
}

.footer-bottom-row {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--accent-orange);
}

/* Video Lightbox Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.96);
  transition: transform var(--transition-fast);
}

.video-modal.open .video-modal-card {
  transform: scale(1);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-player-viewport {
  width: 100%;
  background: #111111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-player-viewport.aspect-9-16 { max-height: 60vh; aspect-ratio: 9/16; margin: 0 auto; }
.modal-player-viewport.aspect-16-9 { width: 100%; aspect-ratio: 16/9; }

.modal-canvas-screen {
  width: 100%;
  height: 100%;
  display: block;
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text-black);
  color: var(--bg-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  transform: translateY(80px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon { color: var(--accent-orange); }
.toast-msg { font-size: 0.9rem; font-weight: 600; }

/* Admin Modal Styles */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.admin-modal.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  transform: scale(0.96);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.admin-modal.open .admin-modal-card {
  transform: scale(1);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.admin-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-modal-body {
  padding: 28px;
}

.admin-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.admin-tab-nav-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.admin-tab-nav-btn:hover {
  color: var(--text-black);
}

.admin-tab-nav-btn.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.admin-dropzone-box {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 6px;
}

.admin-dropzone-box:hover {
  border-color: var(--accent-orange);
  background: var(--bg-white);
}

.admin-file-name-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-subtle);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop >= 768px, Mobile < 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 45px;
  }
  .hero-content { align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .lead-capture-grid { grid-template-columns: 1fr; }
  .trust-flex { justify-content: center; text-align: center; }
}

@media (max-width: 767px) {
  :root { 
    --section-padding: 56px 0; /* Consistent 56px rhythm per mobile spec */
  }

  body {
    padding-bottom: 78px; /* Space for mobile sticky bottom CTA */
  }

  .container {
    padding: 0 18px; /* Safe side padding */
    width: 100%;
    max-width: 100%;
  }

  /* Header: Exactly 2 Elements (Logo Left, Hamburger Right) */
  .site-header {
    padding: 12px 0;
  }

  .nav-container {
    gap: 0;
  }

  .brand-logo-img {
    height: 26px;
    max-height: 26px;
  }

  /* Hide desktop elements on mobile navbar row */
  .desktop-nav-menu {
    display: none !important;
  }

  .desktop-cta-btn {
    display: none !important;
  }

  .top-left-admin-btn {
    display: none !important;
  }

  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Show overlay menu */
  .mobile-overlay-menu {
    display: flex;
  }

  /* Show sticky bottom CTA */
  .mobile-sticky-cta-bar {
    display: block;
  }

  /* Section Header */
  .section-header {
    margin: 0 auto 36px;
    padding: 0 4px;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 95px 0 48px;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-cta-group {
    width: 100%;
    gap: 12px;
    margin-bottom: 36px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .brand-reel-container {
    max-width: 290px;
    border-radius: 24px;
    padding: 6px;
  }

  /* Trust Strip */
  .trust-strip {
    padding: 24px 0;
  }

  .trust-flex {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .trust-tagline {
    font-size: 0.88rem;
  }

  .trust-stats-row {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }

  .trust-stat-val {
    font-size: 1.3rem;
  }

  .trust-stat-lbl {
    font-size: 0.72rem;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .service-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .service-title {
    font-size: 1.35rem;
  }

  .service-desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .services-addendum {
    padding: 14px 18px;
    font-size: 0.88rem;
    border-radius: 14px;
  }

  /* Process Section */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .process-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .process-num {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .process-title {
    font-size: 1.2rem;
  }

  .process-desc {
    font-size: 0.9rem;
  }

  /* Portfolio Section */
  .portfolio-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 4px 0 12px;
    margin-bottom: 24px;
    gap: 8px;
    width: 100%;
  }

  .portfolio-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .portfolio-card-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .portfolio-carousel-track {
    gap: 16px;
  }

  .portfolio-carousel-controls {
    margin-top: 22px;
    gap: 14px;
  }

  .carousel-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .portfolio-card {
    border-radius: 16px;
  }

  .card-media-box {
    aspect-ratio: 16/9; /* Consistent uniform thumbnail height */
  }

  .card-details-box {
    padding: 18px 18px;
  }

  .card-project-title {
    font-size: 1.15rem;
  }

  .card-desc-line {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  /* Why ReelMatic */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .why-title {
    font-size: 1.2rem;
  }

  .why-desc {
    font-size: 0.9rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .test-quote {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  /* Lead Capture */
  .lead-capture-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lead-form-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .lead-form-title {
    font-size: 1.35rem;
  }

  .lead-calendly-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .cal-card-top h3 {
    font-size: 1.35rem;
  }

  .cal-features {
    margin: 18px 0 24px;
  }

  /* Lead Magnet */
  .lead-magnet-section {
    padding: 0 0 56px;
  }

  .lead-magnet-card {
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    justify-content: center;
    gap: 18px;
  }

  .magnet-title {
    font-size: 1.35rem;
  }

  .magnet-sub {
    font-size: 0.9rem;
  }

  .lead-magnet-card .btn {
    width: 100%;
  }

  /* FAQ */
  .faq-list {
    gap: 12px;
  }

  .faq-question-btn {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  /* Footer */
  .site-footer {
    padding: 45px 0 24px;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 26px;
    padding-bottom: 26px;
  }

  .footer-logo-img {
    height: 30px;
  }

  .footer-nav-col {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    font-size: 0.8rem;
  }
}
