/* ============================================================
   iSkatePro — Public Site Shared Styles
   Used by: index, competitions, contact, login
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blush:    #f7ede8;
  --peach:    #f0d5c8;
  --rose:     #d4897a;
  --rosedark: #b5614f;
  --ice:      #e8f2f6;
  --sky:      #c2dce8;
  --cream:    #fdf8f5;
  --warm:     #7a5c52;
  --muted:    #a08880;
  --text:     #3d2b25;
  --border:   #e8d5cc;
  --card:     #ffffff;
  --shadow:   0 2px 24px rgba(61,43,37,0.07);
  --radius:   16px;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; }

/* ── Blobs ── */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: 0.5; }
.blob-1 { width: 360px; height: 360px; background: var(--peach); top: -80px; left: -100px; }
.blob-2 { width: 260px; height: 260px; background: var(--sky); bottom: -60px; right: -60px; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled { background: rgba(253,248,245,0.94); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }

.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; color: var(--text); text-decoration: none; }
.nav-brand span { color: var(--rose); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--warm); text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 20px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.nav-links .btn-nav { background: var(--rose); color: #fff; font-weight: 600; padding: 0.45rem 1.2rem; border-radius: 20px; margin-left: 0.4rem; box-shadow: 0 2px 12px rgba(212,137,122,0.3); transition: background 0.2s, transform 0.15s; }
.nav-links .btn-nav:hover { background: var(--rosedark); color: #fff; transform: translateY(-1px); }
.nav-links .coach-link { font-size: 0.7rem; opacity: 0.4; }

/* ── Hamburger / Mobile Menu ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0.55rem 0.6rem;
  background: var(--blush); border: 1.5px solid var(--border);
  border-radius: 10px; min-width: 44px; min-height: 44px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-hamburger:hover { background: var(--peach); border-color: var(--rose); }
.nav-hamburger span { display: block; width: 22px; height: 2.5px; background: var(--rosedark); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px; z-index: 99;
  background: rgba(253,248,245,0.98); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu.open { display: flex; animation: menuFadeIn 0.22s ease both; }
.mobile-menu a {
  font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 400;
  color: var(--warm); text-decoration: none; transition: color 0.15s;
  padding: 0.25rem 1rem;
}
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--rose); outline: none; }
.mobile-menu .btn-mobile {
  font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 600;
  background: var(--rose); color: #fff; padding: 0.8rem 2.4rem; border-radius: 24px;
  box-shadow: 0 4px 18px rgba(212,137,122,0.32);
}
.mobile-menu .coach-mobile {
  font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.06em; opacity: 0.55;
}
@media (max-width: 640px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }

/* ── Skip Link ── */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; background: var(--rose); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 0.6rem 1.2rem; border-radius: 0 0 10px 10px; text-decoration: none; transition: top 0.15s; }
.skip-link:focus { top: 0; }

/* ── Focus Styles ── */
*:focus { outline: none; }
*:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-nav:focus-visible, .btn-mobile:focus-visible, .btn-login:focus-visible, .btn-submit:focus-visible { outline: 3px solid var(--rosedark); outline-offset: 3px; }
.nav-hamburger:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.social-link:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ── Page Hero ── */
.page-hero { padding: 9rem 2rem 4.5rem; background: linear-gradient(155deg, var(--blush) 0%, var(--cream) 60%, var(--ice) 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.page-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rose); background: rgba(212,137,122,0.1); border: 1px solid rgba(212,137,122,0.22); padding: 0.35rem 1rem; border-radius: 20px; margin-bottom: 1.25rem; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 400; color: var(--text); line-height: 1.15; }
.page-hero h1 em { font-style: italic; color: var(--rose); }
.page-hero p { margin-top: 0.9rem; font-size: 1rem; color: var(--muted); line-height: 1.8; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ── Shared Card ── */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.25rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.info-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--peach), var(--rose)); }
.card-icon { font-size: 1.75rem; margin-bottom: 0.85rem; display: block; }
.info-card h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 500; color: var(--text); margin-bottom: 0.75rem; }
.info-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.85; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--rose); color: #fff; font-family: 'Nunito', sans-serif; font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.6rem; border-radius: 24px; text-decoration: none; box-shadow: 0 4px 16px rgba(212,137,122,0.3); transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--rosedark); transform: translateY(-2px); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ── */
footer { background: var(--blush); border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--warm); margin-bottom: 1.25rem; display: block; }
.footer-brand span { color: var(--rose); font-style: italic; }
.social-links { display: flex; gap: 0.65rem; justify-content: center; margin-bottom: 1.25rem; }
.social-link { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-size: 0.85rem; transition: all 0.2s; }
.social-link:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.footer-nav { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8rem; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.footer-nav a:hover { color: var(--rose); }
.footer-copy { font-size: 0.72rem; color: var(--muted); opacity: 0.6; }
