/* ============================================================
   BALLET GRAND PRIX — SHARED STYLESHEET
   Colour palette: deep navy, royal blue #1a4fd6, silver/pearl
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black:      #0d1020;
  --dark:       #111428;
  --dark-mid:   #181e35;
  --blue:       #1a4fd6;
  --blue-light: #3a6ef0;
  --blue-dark:  #0f2f8a;
  --gold:       #c8cdd8;
  --gold-light: #e2e5ee;
  --white:      #ffffff;
  --off-white:  #eef0f5;
  --muted:      #8a8fa8;
  --border:     rgba(255,255,255,0.09);
  --nav-h:      80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: rgba(238,240,245,0.82); }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a0b0d8;
  margin-bottom: 1rem;
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; padding: 0 5%;
  background: rgba(13,16,32,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; }
.nav-links { display: flex; gap: 2.5rem; margin-left: auto; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: color 0.2s; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--blue-light); transition: width 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 2rem; padding: 9px 22px; background: var(--blue); color: var(--white) !important; border-radius: 3px; font-size: 0.78rem !important; font-weight: 600 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--blue-light) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 36px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 3px; transition: all 0.25s; cursor: pointer; border: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-dark  { background: var(--dark); }
.section-darker { background: var(--black); }
.section-mid   { background: var(--dark-mid); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.gold-rule { width: 50px; height: 2px; background: linear-gradient(to right, var(--blue-light), var(--gold)); margin: 1.2rem 0 2rem; }
.gold-rule.center { margin-left: auto; margin-right: auto; }

.card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 36px 30px; transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(26,79,214,0.4); transform: translateY(-3px); }

.page-hero { padding: calc(var(--nav-h) + 80px) 0 80px; background: linear-gradient(135deg, var(--black) 0%, var(--dark-mid) 50%, #0d1a3e 100%); border-bottom: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -40%; left: -20%; width: 140%; height: 200%; background: radial-gradient(ellipse at 60% 40%, rgba(26,79,214,0.12) 0%, transparent 60%); pointer-events: none; }

/* Footer */
footer { background: var(--black); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; color: var(--muted); max-width: 280px; }
.footer-col h5 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #a0b0d8; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; margin-top: 1.2rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--blue); color: var(--white); background: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-blue { background: rgba(26,79,214,0.2); color: var(--blue-light); border: 1px solid rgba(26,79,214,0.3); }
.badge-gold { background: rgba(200,205,216,0.12); color: var(--gold-light); border: 1px solid rgba(200,205,216,0.25); }

/* Fee table */
.fee-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fee-table th { text-align: left; padding: 12px 16px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--border); }
.fee-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(238,240,245,0.85); }
.fee-table tr:last-child td { border-bottom: none; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--blue), transparent); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid var(--dark); box-shadow: 0 0 0 3px rgba(26,79,214,0.25); }
.timeline-item h4 { color: var(--white); margin-bottom: 4px; }
.timeline-item p { font-size: 0.9rem; }

/* Category cards */
.category-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 28px 24px; border-top: 3px solid var(--blue); }
.category-card.gold-top { border-top-color: var(--gold); }
.category-card h4 { color: var(--white); margin-bottom: 6px; }
.category-card .birth-year { font-size: 0.78rem; color: #a0b0d8; letter-spacing: 0.1em; margin-bottom: 14px; }
.category-card p { font-size: 0.88rem; line-height: 1.7; }

/* Photo frames */
.photo-frame { border-radius: 6px; overflow: hidden; position: relative; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.photo-frame:hover img { transform: scale(1.04); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--black); padding: 30px 5%; border-top: 1px solid var(--border); gap: 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
