/* ═══════════════════════════════════════════════
   TENNIS PRO PROJECT — Shared Stylesheet
═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --navy:       #0B1F3A;
  --navy-deep:  #07101E;
  --navy-mid:   #112847;
  --gold:       #C8A96E;
  --gold-light: #E8D5A3;
  --gold-dark:  #866730;
  --gold-dark-contrast: #866730;
  --white:      #FFFFFF;
  --off-white:  #F8F6F1;
  --gray-50:    #F4F1EC;
  --gray-100:   #EAE6DF;
  --gray-300:   #CEC8BE;
  --gray-500:   #8C8278;
  --gray-700:   #4A4540;
  --text:       #1C1814;

  --font-head:  'Playfair Display', serif;
  --font-body:  'Montserrat', sans-serif;
  --max-w:      1280px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── Navigation ─── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6%;
  transition: background 0.4s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

#main-nav.scrolled {
  background: var(--navy-deep);
  padding: 16px 6%;
  box-shadow: 0 1px 40px rgba(0,0,0,0.5);
}

#main-nav.solid {
  background: var(--navy-deep);
  padding: 16px 6%;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 44px;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  transition: color 0.2s;
}

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

.nav-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 11px 26px;
  transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── Mobile Drawer ─── */
#mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 16, 30, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}

#mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-close {
  position: absolute;
  top: 24px; right: 6%;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

#mobile-drawer a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

#mobile-drawer a:hover { color: #C8A96E; }

/* ─── Footer ─── */
footer {
  background: var(--navy-deep);
  padding: 64px 6% 36px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-note {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

/* ─── Inner Page Hero ─── */
.page-hero {
  position: relative;
  height: 48vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(7,16,30,0.92) 0%,
    rgba(7,16,30,0.55) 50%,
    rgba(7,16,30,0.35) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 6% 64px;
  width: 100%;
}

.page-hero-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.page-hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ─── Shared Utilities ─── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark-contrast);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold-dark-contrast);
  flex-shrink: 0;
}

.eyebrow.light {
  color: var(--gold);
}

.eyebrow.light::before {
  background: var(--gold);
}

.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.section-h2 em { font-style: italic; color: #9A7E4A; }
.section-h2.light { color: var(--white); }
.section-h2.light em { color: var(--gold-light); }

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

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

/* Buttons */
.btn-gold {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-gold:hover::after {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

.btn-ghost {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.32);
  transition: border-color 0.2s, color 0.2s;
}

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

.btn-navy {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }

/* ─── Areas Strip ─── */
.areas {
  background: var(--gold);
  padding: 36px 6%;
}

.areas-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.areas-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy-deep);
  white-space: nowrap;
}

.areas-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
}

.area {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-deep);
  padding: 0 28px;
  border-right: 1px solid rgba(7,16,30,0.2);
}

.area:first-child { padding-left: 0; }
.area:last-child { border-right: none; }

.areas-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--navy-deep);
}

@media (max-width: 1024px) {
  .area {
    padding: 0 16px;
    font-size: 0.95rem;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .areas-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .areas-list { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .area { padding: 0; border-right: none; font-size: 0.95rem; }
  .area::after { content: ' \00b7'; margin-left: 16px; opacity: 0.4; }
  .area:last-child::after { content: ''; }
  .page-hero { height: 42vh; min-height: 320px; }
  .page-hero-content { padding-bottom: 44px; }
}

@media (max-width: 480px) {
  .page-hero-title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
}

/* ─── Focus styles ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Premium Form States ─── */
#cform.was-validated .fgroup input:invalid,
#cform.was-validated .fgroup select:invalid,
#cform.was-validated .fgroup textarea:invalid {
  border-color: #E57373 !important;
  background: #FFF8F8 !important;
}

#cform.was-validated .fgroup input:valid,
#cform.was-validated .fgroup select:valid,
#cform.was-validated .fgroup textarea:valid {
  border-color: #81C784 !important;
}

/* Loading Spinner inside Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200, 169, 110, 0.3);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
