/* ==========================================================================
   AC Personal Training — 2026 Redesign
   Cinematic noir fitness aesthetic
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --black: #0a0a0a;
  --black-light: #111111;
  --surface: #161616;
  --surface-raised: #1c1c1c;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(55, 192, 251, 0.35);
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --white: #ffffff;
  --cyan: #37c0fb;
  --cyan-glow: rgba(55, 192, 251, 0.15);
  --cyan-deep: #1a8cc7;

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: min(90%, 1280px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 20000;
  padding: 0.75rem 1.5rem;
  background: var(--cyan);
  color: var(--black);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
  color: var(--black);
}


/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

h2 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--cyan);
  color: var(--black);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
}

.btn-primary:hover {
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(55, 192, 251, 0.35);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(55, 192, 251, 0.08);
}


/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-smooth);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.75rem;
}

.nav-links .btn::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-overlay a:hover {
  color: var(--cyan);
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 25s var(--ease-smooth) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.7) 80%, var(--black) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.5) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: var(--container);
  margin: 0 auto;
  padding-top: 6rem;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-content h1 .accent {
  color: var(--cyan);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero staggered load animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.9s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- Trust Bar ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--black-light);
}

.trust-bar-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--cyan);
  font-size: 0.9rem;
}


/* ---------- Services ---------- */
.services {
  padding: var(--section-pad) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind service cards */
.services::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(55, 192, 251, 0.04), transparent 70%);
  pointer-events: none;
}

.services-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(55, 192, 251, 0.08), 0 0 0 1px rgba(55, 192, 251, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(55, 192, 251, 0.08);
  border: 1px solid rgba(55, 192, 251, 0.15);
}

.service-card h3 {
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-list li i {
  color: var(--cyan);
  font-size: 0.7rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}


/* ---------- About ---------- */
.about {
  padding: var(--section-pad) 0;
  background: var(--black-light);
  position: relative;
  overflow: hidden;
}

/* Diagonal accent line */
.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(55, 192, 251, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.about-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-callout {
  position: relative;
}

.about-callout blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--cyan);
}

.about-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-body .highlight {
  color: var(--white);
  font-weight: 500;
}

.about-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.testimonials-inner {
  width: var(--container);
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-card:nth-child(even) .testimonial-image {
  order: 2;
}

.testimonial-card:nth-child(even) .testimonial-content {
  order: 1;
}

.testimonial-image {
  position: relative;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.testimonial-card:hover .testimonial-image img {
  transform: scale(1.04);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.testimonial-content h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.testimonial-content .quote {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
  padding-top: 1rem;
}

.testimonial-content .quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 1.25rem;
}

/* Featured transformation card */
.testimonial-card.featured {
  border-color: rgba(55, 192, 251, 0.15);
  background: linear-gradient(135deg, var(--surface), rgba(55, 192, 251, 0.03));
}

.testimonial-card.featured .testimonial-content::after {
  content: 'TRANSFORMATION';
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(55, 192, 251, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(55, 192, 251, 0.2);
  margin-top: 1.5rem;
  align-self: flex-start;
}


/* ---------- CTA ---------- */
.cta {
  padding: var(--section-pad) 0;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.cta-inner {
  width: var(--container);
  margin: 0 auto;
  max-width: 700px;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}


/* ---------- Footer ---------- */
.footer {
  padding: var(--section-pad) 0 3rem;
  background: var(--black-light);
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
}

.form-container {
  position: relative;
  height: 80dvh;
  min-height: 500px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-container iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.location-info strong {
  color: var(--white);
  font-weight: 600;
}

.location-info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location-map {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  filter: brightness(0.8) contrast(1.1) saturate(0.3);
  transition: filter 0.4s var(--ease-smooth);
}

.location-map:hover iframe {
  filter: brightness(0.9) contrast(1.05) saturate(0.6);
}

/* Social icons */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-smooth);
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(55, 192, 251, 0.08);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.footer-bottom span.sep {
  color: var(--text-dim);
  opacity: 0.4;
}


/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  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; }


/* ---------- Responsive ---------- */

/* Tablets and below */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .testimonial-card:nth-child(even) .testimonial-image {
    order: 0;
  }

  .testimonial-card:nth-child(even) .testimonial-content {
    order: 0;
  }

  .testimonial-image {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .trust-bar-inner {
    gap: 1.5rem;
  }

  .trust-item {
    font-size: 0.6875rem;
  }

  .testimonial-content {
    padding: 2rem;
  }

  .testimonial-image {
    height: 260px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trust-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .form-container {
    height: 70dvh;
    min-height: 400px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .footer-bottom span.sep {
    display: none;
  }
}
