/* ============================================================
   HADRIAN FITNESS — GLOBAL DESIGN SYSTEM
   hadrianfit.com
   ============================================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&display=swap');

/* --- TOKENS --- */
:root {
  /* Colors */
  --black:        #0a0a0a;
  --black-rich:   #080808;
  --charcoal:     #111111;
  --stone-dark:   #1a1814;
  --stone-mid:    #252018;
  --stone-smoke:  #2e2923;
  --smoke:        rgba(30, 25, 18, 0.85);
  --white:        #f5f2ed;
  --white-pure:   #ffffff;
  --gold:         #c9a84c;
  --gold-light:   #e0c06b;
  --gold-dim:     #8a6f2e;
  --gold-border:  rgba(201, 168, 76, 0.4);
  --gold-glow:    rgba(201, 168, 76, 0.12);
  --text-primary: #f5f2ed;
  --text-muted:   rgba(245, 242, 237, 0.55);

  /* Fonts */
  --font-display: 'Cinzel', serif;
  --font-body:    'Barlow', sans-serif;
  --font-impact:  'Barlow Condensed', sans-serif;

  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-w:    1200px;
  --gutter:   clamp(1.5rem, 5vw, 4rem);
  --section-pad: clamp(5rem, 10vw, 9rem);

  /* Radius */
  --radius-sm: 2px;
  --radius:    4px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.3s;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- UTILITY --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-pad {
  padding-block: var(--section-pad);
}

/* Gold rule / divider */
.gold-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-inline: auto;
}

.gold-rule-left {
  margin-inline: 0;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-3);
}

/* Section heading */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* Display hero heading */
.display-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

/* Impact subheading */
.impact-heading {
  font-family: var(--font-impact);
  font-size: var(--text-3xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
}

/* Body text */
.body-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
}

/* Gold accent text */
.gold-text { color: var(--gold); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
}

.btn-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #e0c06b 50%, #c9a84c 100%);
  color: var(--black);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e0c06b 0%, #f0d47a 50%, #e0c06b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245, 242, 237, 0.2);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- GOLD BORDER CARD --- */
.gold-card {
  border: 1px solid var(--gold-border);
  background: linear-gradient(145deg, rgba(26, 24, 20, 0.9), rgba(37, 32, 24, 0.7));
  padding: var(--space-8) var(--space-8);
  position: relative;
}

.gold-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-glow);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.gold-card:hover::before { opacity: 1; }

/* Corner accents */
.gold-card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-5);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  padding-block: var(--space-3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-right: var(--space-4);
}

.nav-social a {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease);
}

.nav-social a:hover { opacity: 1; }

.nav-social svg {
  display: block;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-size: var(--text-xs) !important;
  padding: 0.6rem 1.5rem !important;
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all var(--dur) var(--ease);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.nav-mobile a:hover { color: var(--gold); }

.nav-mobile-social {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.nav-mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  font-size: 0;
  transition: opacity var(--dur) var(--ease);
}

.nav-mobile-social a:hover { opacity: 1; }

/* --- STONE TEXTURE OVERLAY --- */
.stone-bg {
  position: relative;
  background: var(--stone-dark);
}

.stone-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.stone-bg > * { position: relative; z-index: 1; }

/* --- FOOTER --- */
.footer {
  background: var(--black-rich);
  border-top: 1px solid var(--gold-border);
  padding-block: var(--space-12) var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-logo img {
  height: 56px;
  margin-bottom: var(--space-4);
}

.footer-motto {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--gold);
  letter-spacing: 0.05em;
  font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-social { display: none; }
  .nav-hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Better touch targets for buttons on mobile */
  .btn {
    padding: 0.9rem 2rem;
  }

  /* Gold card padding reduction on mobile */
  .gold-card {
    padding: var(--space-6);
  }
}

/* --- SCROLL ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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