/* ============================================
   TTCoach.ca — Business Card Design System
   Colors from Iryna's business card:
   Mint #B4D4BB · Royal Blue #2B4B9C · Yellow #EDD940
   ============================================ */

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

:root {
  /* Brand Colors — from Iryna's business card */
  --royal-blue: #2B4B9C;
  --royal-blue-dark: #1A3580;
  --royal-blue-light: #3D5FAD;
  --yellow: #EDD940;
  --yellow-hover: #D4BA28;
  --mint: #B4D4BB;
  --mint-light: #E8F3EB;
  --navy: #0F2043;
  --navy-light: #1A3366;

  /* Neutrals */
  --charcoal: #1C1C1E;
  --dark-gray: #2D2D2F;
  --medium-gray: #5A5A5E;
  --light-gray: #E8E6E3;
  --off-white: #F4FAF6;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  max-width: 65ch;
}

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

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

.text-muted {
  color: var(--medium-gray);
}

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

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

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

.section--dark {
  background-color: var(--charcoal);
  color: var(--off-white);
}

.section--primary {
  background-color: var(--royal-blue);
  color: var(--white);
}

.section--light {
  background-color: var(--mint-light);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

.flex {
  display: flex;
}

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

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

/* --- Diagonal Section Dividers --- */
.diagonal-top {
  position: relative;
}

.diagonal-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.diagonal-bottom {
  position: relative;
}

.diagonal-bottom::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
  z-index: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--royal-blue-dark);
  letter-spacing: -0.03em;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar--scrolled .navbar__logo {
  color: var(--charcoal);
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

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

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--royal-blue);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
}

.navbar--scrolled .navbar__link {
  color: var(--charcoal);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition-base);
}

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

.navbar__link:hover {
  color: var(--royal-blue-dark);
}

.navbar--scrolled .navbar__link:hover {
  color: var(--royal-blue);
}

.navbar__cta {
  background: var(--yellow);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--royal-blue);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar--scrolled .navbar__hamburger span {
  background: var(--charcoal);
}

.navbar__hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.navbar__mobile {
  display: none;           /* JS sets display:flex before first open */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--royal-blue-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar__mobile--open {
  opacity: 1;
  pointer-events: auto;
}

.navbar__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.navbar__mobile a:hover {
  color: var(--yellow);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}

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

.btn--primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 217, 64, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

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

.btn--outline {
  background: transparent;
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn--outline:hover {
  background: var(--royal-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mint) 0%, #C8E8D0 55%, var(--mint-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 75, 156, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--off-white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-3xl);
  position: relative;
  z-index: 3;
}

.hero__content {
  color: var(--royal-blue-dark);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 75, 156, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 75, 156, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--royal-blue);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__title span {
  color: var(--yellow);
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(26, 53, 128, 0.88);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--yellow);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(43, 75, 156, 0.75);
  margin-top: 0.15rem;
}

.hero__image {
  position: relative;
  animation: fadeInRight 1s var(--ease-out) 0.3s both;
}

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hero__image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.6;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: var(--space-sm);
}

.section-header__label::before,
.section-header__label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--yellow);
  opacity: 0.4;
}

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

.section-header__subtitle {
  color: var(--medium-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section-header__subtitle {
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--royal-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  color: var(--medium-gray);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-card .btn,
.service-card__link {
  margin-top: auto;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--royal-blue);
  transition: gap var(--transition-fast);
}

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

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--yellow);
  line-height: 0;
  position: relative;
  top: 0.3em;
  margin-right: 0.1em;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--royal-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--medium-gray);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--medium-gray);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-tab:hover,
.gallery-tab--active {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

.about-panel--hidden {
  display: none;
}

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

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

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

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

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

.gallery-item__caption {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox--open {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

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

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

/* ============================================
   BENEFITS LIST
   ============================================ */
.benefit-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--light-gray);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(43, 75, 156, 0.08), rgba(43, 75, 156, 0.04));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--royal-blue);
}

.benefit-item__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.benefit-item__desc {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(43, 75, 156, 0.1);
}

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

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--light-gray);
}

.faq-item__question {
  width: 100%;
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--royal-blue);
}

.faq-item__icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-base);
  color: var(--yellow);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

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

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item--open .faq-item__answer {
  max-height: 300px;
  padding-bottom: var(--space-md);
}

.faq-item__answer p {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

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

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--yellow);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(160deg, var(--mint) 0%, #C8E8D0 55%, var(--mint-light) 100%);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  color: var(--royal-blue-dark);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--off-white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.page-header__title {
  margin-bottom: var(--space-xs);
}

.page-header__subtitle {
  color: rgba(26, 53, 128, 0.65);
  font-size: 1.05rem;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__image {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero__inner {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-xl);
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero__stats {
    gap: var(--space-lg);
  }

  .hero__image {
    max-width: 300px;
  }

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

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .btn--lg {
    width: 100%;
  }
}

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

  .hero__stats {
    gap: var(--space-sm);
  }

  .hero__stat-value {
    font-size: 1.6rem;
  }
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
  --white: #1E1E20;
  --off-white: #2A2A2C;
  --light-gray: #3A3A3C;
  --medium-gray: #AEAEB2;
  --charcoal: #F2F2F7;
  --dark-gray: #E5E5EA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.7);
}
[data-theme="dark"] body { background: #16161A; }
[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar--scrolled { background: rgba(22, 22, 26, 0.97); }
[data-theme="dark"] .section--light { background: var(--off-white); }
[data-theme="dark"] .footer { background: #0D0D0F; }
[data-theme="dark"] .footer__brand,
[data-theme="dark"] .footer__heading { color: #FFFFFF; }

/* Keep semantic sections anchored — bypass variable inversion */
[data-theme="dark"] .section--dark {
  background-color: #111113;
  color: rgba(255, 255, 255, 0.9);
}
/* Force headings white in dark sections (overrides inline style="color: var(--white)") */
[data-theme="dark"] .section--dark h2,
[data-theme="dark"] .section--dark h3,
[data-theme="dark"] .section--dark .section-header__title {
  color: #FFFFFF !important;
}
[data-theme="dark"] .section--primary {
  color: #FFFFFF;
}

/* Hero & page-header: dark forest-green gradient instead of mint */
[data-theme="dark"] .hero,
[data-theme="dark"] .page-header {
  background: linear-gradient(160deg, #1C2C22 0%, #192820 55%, #1E3026 100%);
}
[data-theme="dark"] .hero::after {
  background: #16161A;
}
[data-theme="dark"] .hero__badge {
  background: rgba(180, 212, 187, 0.12);
  border-color: rgba(180, 212, 187, 0.25);
  color: var(--mint);
}
[data-theme="dark"] .hero__content {
  color: var(--mint);
}
[data-theme="dark"] .hero__subtitle {
  color: rgba(180, 212, 187, 0.82);
}
[data-theme="dark"] .hero__stat-label {
  color: rgba(180, 212, 187, 0.65);
}
[data-theme="dark"] .page-header {
  color: var(--mint);
}
[data-theme="dark"] .page-header__subtitle {
  color: rgba(180, 212, 187, 0.72);
}

/* Mobile nav dark mode — fix near-black link text on dark-navy background */
[data-theme="dark"] .navbar__mobile {
  background: #0A1628;
}
[data-theme="dark"] .navbar__mobile a {
  color: #FFFFFF;
}

/* Page-header headings — override inline style="color: var(--white)" in dark mode */
[data-theme="dark"] .page-header h1,
[data-theme="dark"] .page-header h2,
[data-theme="dark"] .page-header .section-header__title {
  color: var(--mint) !important;
}

/* Theme toggle button */
.navbar__theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--royal-blue);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
  margin-left: 0.5rem;
}
.navbar__theme-toggle:hover { opacity: 0.7; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Language switcher */
.navbar__lang {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--royal-blue);
  border-radius: var(--radius-sm);
  color: var(--royal-blue);
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.navbar__lang:hover { background: var(--royal-blue); color: var(--white); }

/* Schedule table mobile scroll */
.service-card table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
