/* == 1) ROOT VARIABLES / DESIGN TOKENS ==*/
:root {
  --bg: #000000;
  --surface: #090909;
  --surface-2: #111111;
  --surface-3: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-soft: rgba(255, 255, 255, 0.55);
  --accent: #ffffff;
  --accent-text: #000000;
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --shadow: 0 18px 50px rgba(255, 255, 255, 0.04);
}

/* 2) RESET / BASE */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

/* 3) PAGE HELPERS */
.background-glow { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 36%), radial-gradient(circle at bottom, rgba(255,255,255,0.05), transparent 26%); }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.section { position: relative; padding: 5rem 0; }
.section-contrast { background: rgba(255,255,255,0.035); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* 4) HEADER / NAVIGATION */
.site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(18px); background: rgba(0,0,0,0.86); border-bottom: 1px solid var(--border); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand strong, .footer-brand strong { display: block; letter-spacing: 0.08em; font-size: 1rem; }
.brand small, .footer-brand small { display: block; color: var(--muted-soft); letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.68rem; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 1rem; background: var(--accent); color: var(--accent-text); font-weight: 800; border: 1px solid rgba(255,255,255,0.25); }
.desktop-nav { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav a, .mobile-nav a { color: var(--muted); transition: color 0.25s ease, background 0.25s ease; }
.desktop-nav a:hover, .mobile-nav a:hover, .desktop-nav a.active, .mobile-nav a.active { color: var(--text); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 1rem; border: 1px solid var(--border); background: transparent; padding: 0.7rem; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 0.45rem; padding: 0 1rem 1rem; border-top: 1px solid var(--border); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.9rem 1rem; border-radius: 0.9rem; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }

/* 5) BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.4rem; border-radius: 1rem; font-weight: 600; border: 1px solid transparent; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--accent-text); }
.btn-solid.alt { width: 100%; }
.btn-dark { background: #000; color: #fff; border: 1px solid rgba(0,0,0,0.85); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn-outline:hover { background: var(--accent); color: var(--accent-text); }

/* 6) SHARED GRID LAYOUTS */
.hero-grid, .split-layout, .footer-grid { display: grid; gap: 2rem; }
.hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; min-height: calc(100vh - 78px); padding-top: 1rem; }
.split-layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
.footer-grid { grid-template-columns: 1fr auto; align-items: end; }
.card-grid, .stats-grid, .hero-panel-grid, .contact-cards, .mini-grid, .form-row, .info-stack { display: grid; gap: 1rem; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: 2.2rem; }
.hero-panel-grid { grid-template-columns: repeat(2, 1fr); }
.contact-cards { grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.mini-grid { grid-template-columns: repeat(2, 1fr); margin-top: 1.4rem; }

/* 7) TYPOGRAPHY / LABELS */
.eyebrow, .mini-label { width: fit-content; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.78rem; }
.eyebrow { border: 1px solid var(--border); padding: 0.65rem 1rem; border-radius: 999px; color: var(--muted); margin-bottom: 1rem; }
.mini-label { color: var(--muted-soft); margin-bottom: 0.6rem; }
.mini-label.dark { color: rgba(0,0,0,0.58); }
.hero h1, .section-heading h2 { margin: 0; font-weight: 800; line-height: 1.08; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); max-width: 11ch; }
.hero-text, .section-heading p, .content-card p, .pricing-card p, .small-panel li, .quick-contact span, .site-footer p, .info-box p, .form-panel p, .map-card p, .review-card p { color: var(--muted); }
.hero-text { max-width: 58ch; margin-top: 1.2rem; font-size: 1.06rem; }
.section-heading { max-width: 46rem; margin-bottom: 2.2rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.left-heading { margin-bottom: 1.4rem; }

/* 8) HERO SECTION */
.hero { position: relative; overflow: hidden; background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.84)), url("images/hero-gym.png") center / cover no-repeat; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-panel { border-radius: var(--radius-xl); border: 1px solid var(--border); background: linear-gradient(140deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035)); padding: 1rem; }
.panel { padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel-light { background: #fff; color: #000; }
.panel-light p { color: rgba(0,0,0,0.68); }
.panel-dark { background: rgba(255,255,255,0.05); }
.panel h2 { margin: 0; font-size: 1.7rem; }

/* 9) CARD STYLING */
.stat-card, .content-card, .pricing-card, .small-panel, .quick-contact, .form-panel, .info-box, .tiny-card, .map-card, .schedule-card, .review-card { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: rgba(255,255,255,0.05); }
.stat-card { padding: 1.15rem; }
.stat-card h3 { margin: 0; font-size: 1.7rem; }
.stat-card p { margin: 0.3rem 0 0; color: var(--muted-soft); font-size: 0.92rem; }
.content-card, .pricing-card, .small-panel, .quick-contact, .form-panel, .map-card { padding: 1.5rem; }
.tiny-card { padding: 1.2rem; }
.tiny-card h3, .content-card h3, .pricing-card h3, .quick-contact h3, .form-panel h3, .info-box h3, .small-panel h3, .map-card h3 { margin: 0; }
.tiny-card p, .tiny-card span { display: block; }
.tiny-card p { margin: 0.65rem 0 0.2rem; }
.tiny-card span { color: var(--muted-soft); font-size: 0.92rem; }

/* Service image wrapper: keeps the full image visible without crop */
.card-image-frame { width: 100%; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: #030303; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.card-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.about-image-wrap { margin-top: 1rem; }
.about-image { width: 100%; border-radius: 1.4rem; border: 1px solid rgba(255,255,255,0.08); }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 600; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

/* 10) LISTS / STACKS */
.check-list, .stack-list, .small-panel ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li, .stack-list li, .small-panel li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; }
.check-list li::before, .small-panel li::before { content: "✓"; position: absolute; left: 0; top: 0; }
.dark-list li::before { color: #000; }
.stack-list li { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 1rem; padding: 0.85rem 1rem; margin-bottom: 0.8rem; }
.stack-list li::before { content: none; }

/* 11) PRICING FEATURED PLAN */
.pricing-grid { align-items: stretch; }
.pricing-card h3 { font-size: 2.2rem; margin-top: 0.4rem; }
.pricing-card h3 span { font-size: 1rem; font-weight: 500; }
.pricing-card.featured { background: #fff; color: #000; position: relative; }
.pricing-card.featured p { color: rgba(0,0,0,0.72); }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 0.35rem 0.7rem; border-radius: 999px; background: #000; color: #fff; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; position: absolute; top: 1.25rem; right: 1.25rem; }

/* 12) ABOUT / CONTACT / MAP EMBED */
.quick-contact { background: #050505; }
.contact-item { display: block; padding: 1rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 1rem; margin-top: 0.9rem; }
.contact-item strong, .info-box h3 { display: block; margin-bottom: 0.25rem; }
.info-box { padding: 1.2rem 1.25rem; }
.map-card { margin-top: 1rem; }
.map-embed { margin-top: 1rem; border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--border); min-height: 320px; background: rgba(255,255,255,0.03); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* 13) REVIEWS CAROUSEL */
.reviews-carousel { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 1.6rem; background: rgba(255,255,255,0.03); }
.reviews-track { display: flex; transition: transform 0.8s ease; will-change: transform; }
.review-card { min-width: 100%; padding: 1.8rem; }
.review-card p { margin: 0.8rem 0 1rem; line-height: 1.8; }
.stars { letter-spacing: 0.16em; }

/* 14) FORM STYLES */
.form-panel { background: #050505; }
#enquiryForm { margin-top: 1.4rem; }
label { display: block; }
label span { display: block; margin-bottom: 0.45rem; color: var(--muted); }
input, textarea { width: 100%; padding: 0.92rem 1rem; border-radius: 1rem; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.36); }
input:focus, textarea:focus { border-color: rgba(255,255,255,0.36); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; }
.form-message { min-height: 1.5rem; margin-top: 1rem; color: var(--muted); }
.form-message.success { color: #ffffff; }
.form-message.error { color: #f1c4c4; }

/* 15) FOOTER / SOCIALS */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-right { text-align: right; }
.socials { display: flex; justify-content: flex-end; gap: 0.7rem; margin-bottom: 0.8rem; }
.socials a { border: 1px solid var(--border); border-radius: 0.9rem; padding: 0.75rem 1rem; color: var(--muted); }
.socials a:hover { background: #fff; color: #000; }

/* 16) SCROLL REVEAL ANIMATION */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* 17) RESPONSIVE: TABLETS / SMALL LAPTOPS */
@media (max-width: 960px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .split-layout, .footer-grid, .hero-panel-grid, .contact-cards, .stats-grid, .mini-grid, .three-up, .form-row { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-top: 1rem; }
  .footer-right { text-align: left; }
  .socials { justify-content: flex-start; }
  .map-embed, .map-embed iframe { min-height: 300px; height: 300px; }
}

/* 18) RESPONSIVE: MOBILE PHONES */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .nav-wrapper { min-height: 72px; }
  .container { width: min(1120px, calc(100% - 1.2rem)); }
  .hero h1 { font-size: 2.35rem; }
  .btn, .mobile-nav a { width: 100%; }
  .hero-actions, .form-actions { flex-direction: column; }
  .map-embed, .map-embed iframe { min-height: 260px; height: 260px; }
  .review-card { padding: 1.35rem; }
}
