/* =============================================
   AMDAYA — Premium Fitness Landing
   ============================================= */

:root {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-surface: #1a1a1a;
  --color-accent: #c9a96e;
  --color-accent-light: #e8c98a;
  --color-text: #f5f5f0;
  --color-text-muted: #888880;
  --color-border: rgba(201, 169, 110, 0.2);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(245, 245, 240, 0.4);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-mobile {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title .reveal-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line:nth-child(1) { transition-delay: 0.1s; }
.reveal-line:nth-child(2) { transition-delay: 0.25s; }
.reveal-line:nth-child(3) { transition-delay: 0.4s; }
.reveal-line:nth-child(4) { transition-delay: 0.55s; }
.reveal-line:nth-child(5) { transition-delay: 0.7s; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */

.section {
  padding: 6rem 0;
}

.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* =============================================
   ANIMATE (Intersection Observer)
   ============================================= */

.animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .animate:nth-child(1) { transition-delay: 0s; }
.features-grid .animate:nth-child(2) { transition-delay: 0.15s; }
.features-grid .animate:nth-child(3) { transition-delay: 0.3s; }

.plans-grid .animate:nth-child(1) { transition-delay: 0s; }
.plans-grid .animate:nth-child(2) { transition-delay: 0.15s; }

/* =============================================
   ABOUT
   ============================================= */

.about {
  background: var(--color-bg-secondary);
}

.about-quote {
  max-width: 780px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* =============================================
   PHILOSOPHY
   ============================================= */

.philosophy {
  position: relative;
  background: var(--color-bg);
  padding: 8rem 0;
  overflow: hidden;
}

.philosophy-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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-size: 256px 256px;
  pointer-events: none;
}

.philosophy-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.philosophy-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.philosophy-quote cite {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-style: normal;
}

/* =============================================
   GALLERY
   ============================================= */

.gallery {
  padding: 4rem 0 6rem;
  background: var(--color-bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =============================================
   PLANS
   ============================================= */

.plans {
  background: var(--color-bg);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.plan-card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-4px);
}

.plan-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.12);
  position: relative;
}

.plan-card--featured:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 0 60px rgba(201, 169, 110, 0.2);
}

.plan-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.plan-badge--featured {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.375rem 0.75rem;
  align-self: flex-start;
}

.plan-type {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.plan-price {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.plan-price-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.plan-price-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-accent);
}

.plan-features {
  flex: 1;
  margin-bottom: 2rem;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 500;
}

/* =============================================
   CTA FINAL
   ============================================= */

.cta-final {
  background: var(--color-bg-secondary);
  text-align: center;
  padding: 7rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  padding: 3rem 0;
  background: var(--color-bg);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
    border-left: 1px solid var(--color-border);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 4rem 0;
  }

  .philosophy {
    padding: 5rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 2rem 1.5rem;
  }
}

/* =============================================
   LEGAL PAGES
   ============================================= */

.legal-page {
  padding-top: var(--nav-height);
}

.legal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.legal-logo img {
  height: 32px;
  width: auto;
}

.legal-back {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--color-accent);
}

.legal-content {
  max-width: 760px;
  padding: 4rem 1.5rem 6rem;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.25rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-accent-light);
}

.legal-content code {
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

.legal-notice {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-left-width: 3px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-notice p {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-footer {
  border-top: 1px solid var(--color-border);
}

.plans-disclaimer {
  max-width: 700px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.plans-disclaimer a {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-location {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* =============================================
   COOKIE BANNER
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 26, 26, 0.98);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }
}
