/* =========================================================
   Chibu Kite Instructor — UI Refresh (Frontend-only)
   Notes:
   - Loaded AFTER existing CSS to override visuals globally
   - Does not change backend/PHP logic
========================================================= */

/* Design tokens */
:root{
  --ui-bg: #0b1220;
  --ui-surface: rgba(255,255,255,.08);
  --ui-surface-2: rgba(255,255,255,.12);
  --ui-card: rgba(255,255,255,.90);
  --ui-card-border: rgba(148,163,184,.22);
  --ui-text: #0f172a;
  --ui-muted: #475569;

  --ui-brand-1: #22d3ee; /* cyan */
  --ui-brand-2: #6366f1; /* indigo */
  --ui-brand-3: #34d399; /* green */
  --ui-accent: #fb7185;  /* rose */

  --ui-radius-lg: 22px;
  --ui-radius-md: 16px;
  --ui-radius-sm: 12px;
  --ui-shadow: 0 18px 50px rgba(2,6,23,.18);
  --ui-shadow-soft: 0 12px 28px rgba(2,6,23,.12);

  --ui-container: 1140px;

  /* Header sizing (keeps layout consistent) */
  --ck-header-h: 74px;
  --ck-header-h-mobile: 70px;
}

html { scroll-padding-top: 110px; }
body{
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(99,102,241,.18), transparent 55%),
    radial-gradient(900px 600px at 95% 10%, rgba(34,211,238,.14), transparent 55%),
    radial-gradient(800px 500px at 20% 95%, rgba(52,211,153,.10), transparent 55%),
    #ffffff;
  color: var(--ui-text) !important;
}

html, body{
  overflow-x: clip;
}
#siteWrapper{
  overflow-x: clip;
}

/* Make Bootstrap containers feel consistent */
.container{
  max-width: var(--ui-container) !important;
}

/* ===========================
   NEW HEADER (ck-*)
=========================== */
.ck-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ck-nav{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: var(--ck-header-h);
}

.ck-brand{ justify-self: start; }
.ck-nav-links{ justify-self: center; }
.ck-actions{ justify-self: end; }

.ck-brand img{
  height: 46px;
  width: auto;
  display: block;
}

.ck-nav-links{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.ck-nav-links a{
  text-decoration: none;
  color: #0b1220;
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

.ck-nav-links a:hover{
  background: rgba(99,102,241,.10);
}

.ck-nav-links a.is-active{
  background: rgba(34,211,238,.14);
}

.ck-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ck-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(148,163,184,.18);
  font-size: .95rem;
}

.ck-btn-primary{
  background: linear-gradient(135deg, var(--ui-brand-2), var(--ui-brand-1));
  color: #fff;
  box-shadow: 0 16px 34px rgba(99,102,241,.20);
  border: none;
}

.ck-btn-primary:hover{
  color: #fff;
  filter: brightness(1.05);
}

.ck-btn-ghost{
  background: rgba(255,255,255,.70);
  color: #0b1220;
}

.ck-btn-ghost:hover{
  background: rgba(99,102,241,.10);
  color: #0b1220;
}

.ck-burger{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}
.ck-burger span{
  width: 18px;
  height: 2px;
  background: #0b1220;
  border-radius: 2px;
}

.ck-mobile-drawer{
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  background: transparent !important;
  border-top: none !important;
  pointer-events: none;
  z-index: 1100;
}

.ck-mobile-drawer.active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ck-mobile-sheet{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 22px;
  box-shadow: var(--ui-shadow);
  padding: 16px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: 1;
}

.ck-mobile-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,.18);
  margin-bottom: 10px;
}

.ck-mobile-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ck-mobile-close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(248,250,252,.9);
}

.ck-mobile-links{
  display: grid;
  gap: 8px;
  padding: 10px 0 6px;
}

.ck-mobile-links a{
  text-decoration: none;
  color: #0b1220;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(148,163,184,.18);
}

.ck-mobile-links a.is-active{
  background: rgba(34,211,238,.14);
}

.ck-mobile-cta{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ck-mobile-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.42);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* ===========================
   NEW SECTIONS / CARDS
=========================== */
.ck-section{
  padding: 96px 0;
}
.ck-section-soft{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(99,102,241,.10), transparent 55%),
    radial-gradient(900px 520px at 90% 15%, rgba(34,211,238,.08), transparent 55%),
    rgba(241,245,249,.55);
  border-top: 1px solid rgba(148,163,184,.18);
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.ck-section-head{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.ck-section-head h2{
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.ck-section-head p{
  color: var(--ui-muted);
  margin: 0;
  font-size: 1.1rem;
}
.ck-kicker{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34,211,238,.14);
  border: 1px solid rgba(34,211,238,.22);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  color: #0b1220;
  margin-bottom: 14px;
}

.ck-hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  margin-bottom: 14px;
  backdrop-filter: blur(12px) saturate(140%);
  width: auto !important;
  max-width: max-content;
  white-space: nowrap;
}

/* Some legacy CSS forces hero children to display:block; ensure badge stays tight */
.hero-content .ck-hero-badge{
  display: inline-flex !important;
}

/* Home hero: slightly smaller badge so it doesn’t dominate */
.page-home .ck-hero-badge{
  padding: 8px 12px;
  font-size: .95rem;
}

.ck-strip{
  padding: 22px 0;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}
.ck-strip-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ck-chip{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.ck-chip i{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ui-brand-2), var(--ui-brand-1));
  color: #fff;
  box-shadow: 0 12px 24px rgba(99,102,241,.22);
}
.ck-chip strong{
  display: block;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.ck-chip span{
  display: block;
  color: var(--ui-muted);
  font-weight: 600;
  font-size: .95rem;
}

.ck-feature-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 22px;
  box-shadow: var(--ui-shadow-soft);
  padding: 22px;
  height: 100%;
}
.ck-feature-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ck-feature-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.18);
  color: #1f2937;
}
.ck-feature-tag{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.18);
  font-weight: 900;
  font-size: .85rem;
}
.ck-feature-card h3{
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}
.ck-feature-card p{
  color: var(--ui-muted);
  font-weight: 600;
}

.ck-checks{
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
}
.ck-checks li{
  padding-left: 22px;
  position: relative;
  font-weight: 700;
  color: #0f172a;
}
.ck-checks li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 1000;
}

.ck-mini-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.ck-mini{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.ck-mini strong{
  display: block;
  font-weight: 950;
}
.ck-mini span{
  display: block;
  margin-top: 2px;
  color: var(--ui-muted);
  font-weight: 600;
}

.ck-media{
  border-radius: 24px;
  overflow: hidden;
}

.ck-cta{
  border-radius: 28px;
  border: 1px solid rgba(148,163,184,.20);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 15%, rgba(34,211,238,.14), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.70));
  box-shadow: var(--ui-shadow);
  padding: 26px;
}
.ck-cta-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.ck-cta-inner h2{
  font-weight: 1000;
  letter-spacing: -0.03em;
}
.ck-cta-inner p{
  color: var(--ui-muted);
  font-weight: 650;
  margin: 12px 0 0;
}
.ck-cta-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ck-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 22px;
  box-shadow: var(--ui-shadow-soft);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ck-card-featured{
  outline: 3px solid rgba(34,211,238,.28);
}
.ck-card-top{
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ck-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .84rem;
  background: rgba(99,102,241,.10);
  border: 1px solid rgba(99,102,241,.18);
}
.ck-pill-pop{
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.18);
}
.ck-pill-type{
  background: rgba(34,211,238,.12);
  border-color: rgba(34,211,238,.18);
}
.ck-pill-qty{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.18);
}
.ck-card-title{
  font-weight: 1000;
  letter-spacing: -0.03em;
  margin: 6px 0 6px;
}
.ck-card-text{
  color: var(--ui-muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.ck-meta{
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #0f172a;
  font-weight: 700;
}
.ck-meta i{ opacity: .85; margin-right: 8px; }
.ck-meta-ok{ color: #15803d; }
.ck-card-actions{
  margin-top: auto;
  padding-top: 12px;
}

.ck-empty{
  text-align: center;
  padding: 42px 18px;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,.45);
  background: rgba(255,255,255,.70);
}
.ck-empty h3{
  font-weight: 950;
  margin-bottom: 8px;
}
.ck-empty p{
  color: var(--ui-muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.ck-split-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.ck-list-card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  padding: 16px 16px;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.ck-list-card h4{
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ck-list-card h4 i{
  margin-right: 10px;
  color: #1f2937;
}

/* Contact page panels */
.ck-contact-panel{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  box-shadow: var(--ui-shadow-soft);
  padding: 20px;
}
.ck-contact-cards{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ck-contact-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(148,163,184,.18);
  text-decoration: none;
  color: inherit;
}
.ck-contact-card:hover{
  background: rgba(99,102,241,.08);
}
.ck-contact-ico{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ui-brand-2), var(--ui-brand-1));
  color: #fff;
  box-shadow: 0 12px 24px rgba(99,102,241,.22);
}
.ck-contact-card strong{
  display: block;
  font-weight: 950;
}
.ck-contact-card span{
  display: block;
  color: var(--ui-muted);
  font-weight: 650;
}
.ck-quote{
  margin-top: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.ck-quote-mark{
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 44px;
  font-weight: 1000;
  color: rgba(99,102,241,.25);
  line-height: 1;
}
.ck-quote p{
  margin: 0;
  padding-left: 18px;
  font-weight: 650;
  color: #0f172a;
}
.ck-quote-by{
  margin-top: 10px;
  font-weight: 900;
  color: var(--ui-muted);
  padding-left: 18px;
}

.ck-form-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  box-shadow: var(--ui-shadow);
  padding: 18px;
}
.ck-form-head{
  padding: 10px 10px 16px;
  border-bottom: 1px solid rgba(148,163,184,.18);
  margin-bottom: 14px;
}
.ck-form-head h3{
  font-weight: 1000;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.ck-form-head p{
  margin: 0;
  color: var(--ui-muted);
  font-weight: 650;
}

/* Windguru container */
.ck-windguru{
  border-radius: 22px !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

/* ===========================
   FOOTER (ck-footer*)
=========================== */
.ck-footer-cta{
  margin: 0 0 34px;
  border-radius: 28px;
  border: 1px solid rgba(148,163,184,.18);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 15%, rgba(34,211,238,.14), transparent 60%),
    rgba(255,255,255,.06);
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
  overflow: hidden;
}
.ck-footer-cta-inner{
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.92);
}
.ck-footer-cta h3{
  margin: 0 0 6px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}
.ck-footer-cta p{
  margin: 0;
  color: rgba(226,232,240,.90);
  font-weight: 650;
}
.ck-footer-cta-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ck-footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr;
  gap: 22px;
  padding: 10px 0 26px;
}

@media (max-width: 1200px){
  .ck-footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.ck-footer-brand{
  color: rgba(226,232,240,.95);
}
.ck-footer-logo img{
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.25));
}
.ck-footer-desc{
  margin: 14px 0 16px;
  color: rgba(203,213,225,.90);
  font-weight: 600;
  line-height: 1.6;
}

.ck-footer-col h5{
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ck-footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ck-footer-links a{
  color: rgba(203,213,225,.92);
  text-decoration: none;
  font-weight: 650;
}
.ck-footer-links a:hover{
  color: #fff;
  text-decoration: none;
}

.ck-footer-contact{
  display: grid;
  gap: 10px;
}
.ck-footer-contact-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(148,163,184,.14);
  color: rgba(226,232,240,.95);
  text-decoration: none;
}
.ck-footer-contact-item i{
  margin-top: 2px;
  color: rgba(34,211,238,.92);
}
.ck-footer-contact-item span{
  font-weight: 650;
  line-height: 1.35;
}
.ck-footer-contact-item:hover{
  background: rgba(99,102,241,.12);
  color: #fff;
}

/* Keep footer bottom readable in dark footer */
.footer-bottom p{
  color: rgba(148,163,184,.95) !important;
}
.footer-bottom-links a{
  color: rgba(148,163,184,.95) !important;
  font-weight: 650;
}
.footer-bottom-links a:hover{
  color: rgba(34,211,238,.95) !important;
}

@media (max-width: 992px){
  .ck-strip-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-footer-grid{ grid-template-columns: 1fr 1fr; }
  .ck-footer-cta-inner{ flex-direction: column; align-items: flex-start; }

  /* Tablet: desktop nav pill can overflow — rely on burger menu earlier */
  .ck-nav-links{ display: none !important; }
  .ck-actions{ display: none !important; }
}
@media (max-width: 576px){
  .ck-section{ padding: 72px 0; }
  .ck-mini-grid{ grid-template-columns: 1fr; }
  .ck-strip-grid{ grid-template-columns: 1fr; }
  .ck-footer-grid{ grid-template-columns: 1fr; }
  .ck-footer-cta-actions{ width: 100%; }
  .ck-footer-cta-actions a{ width: 100%; }

  .ck-hero-badge{
    white-space: normal !important;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-buttons{
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary{
    width: 100% !important;
    max-width: none !important;
  }
}

/* Header: modern glass + slimmer, clearer */
header,
.header{
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid rgba(148,163,184,.22) !important;
  box-shadow: 0 6px 18px rgba(2,6,23,.07) !important;
}

.header.scrolled{
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 18px 50px rgba(2,6,23,.12) !important;
}

/* Main content spacing (keeps fixed header safe) */
.main-content{
  margin-top: var(--ck-header-h) !important;
}
@media (max-width: 768px){
  .main-content{ margin-top: var(--ck-header-h-mobile) !important; }
}

/* Hero: more premium, with soft “aurora” overlay */
.hero-section{
  border-bottom: none !important;
}

/* Inner pages: legacy sheet hides overflow — can clip multi-line hero titles/subtitles */
.page-lesson .hero-section,
.page-rental .hero-section,
.page-contact .hero-section,
.page-location-weather .hero-section{
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.video-overlay{
  background:
    radial-gradient(900px 520px at 25% 30%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(900px 520px at 85% 15%, rgba(99,102,241,.28), transparent 60%),
    linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.55)) !important;
  backdrop-filter: blur(1px);
}

/* Allow the same overlay element to be used on image heroes (not only video heroes) */
.page-lesson .hero-section > .video-overlay,
.page-rental .hero-section > .video-overlay,
.page-contact .hero-section > .video-overlay,
.page-location-weather .hero-section > .video-overlay{
  pointer-events: none;
}

.page-home .hero-content{
  max-width: 980px !important;
  padding: 56px 18px !important;
}

/*
  Inner heroes: legacy style.css does `.hero-content { top:50%; left:50%; transform:translate(-50%,-50%) }`
  then `.hero-section .hero-content { transform:none !important }` — that removes centering but KEEPS 50%/50%,
  which shifts the whole block down-right so titles clip (especially on the right).
  Fix: pin with inset:0 (do NOT use top/left:auto — it breaks inset from enhanced-style).
*/
.page-lesson .hero-content,
.page-rental .hero-content,
.page-contact .hero-content,
.page-location-weather .hero-content{
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(48px, 9vh, 96px) max(20px, env(safe-area-inset-left)) clamp(32px, 6vh, 64px) max(20px, env(safe-area-inset-right)) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100 !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Narrow screens: floating WhatsApp sits bottom-right — keep copy out from under it */
@media (max-width: 640px){
  .page-lesson .hero-content,
  .page-rental .hero-content,
  .page-contact .hero-content,
  .page-location-weather .hero-content{
    padding-right: max(20px, env(safe-area-inset-right), 88px) !important;
  }
}

.page-lesson .hero-content h1,
.page-rental .hero-content h1,
.page-contact .hero-content h1,
.page-location-weather .hero-content h1{
  max-width: min(920px, 100%) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.12 !important;
  hyphens: manual !important;
}

.page-lesson .hero-content .hero-subtitle,
.page-rental .hero-content .hero-subtitle,
.page-contact .hero-content .hero-subtitle,
.page-location-weather .hero-content .hero-subtitle{
  max-width: min(780px, 100%) !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

/* Legacy rules force .hero-buttons to display:block — restore the button row like home */
.hero-section .hero-buttons{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.hero-section .hero-content .btn-primary i,
.hero-section .hero-content .btn-secondary i,
.hero-section .hero-content .btn-primary svg,
.hero-section .hero-content .btn-secondary svg{
  display: inline-block !important;
  vertical-align: -0.12em;
}

.hero-content h1{
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 22px 80px rgba(0,0,0,.35) !important;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,.82) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hero-subtitle{
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 16px 60px rgba(0,0,0,.35) !important;
}

/* Inner pages: keep headings readable (global hero h1 uses gradient text) */
.page-lesson .hero-content h1,
.page-rental .hero-content h1,
.page-contact .hero-content h1,
.page-location-weather .hero-content h1{
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
  color: #ffffff !important;
}

/* WhatsApp floats over bottom-right on short heroes — lift it on inner pages */
.page-lesson .whatsapp-button,
.page-rental .whatsapp-button,
.page-contact .whatsapp-button,
.page-location-weather .whatsapp-button{
  bottom: 110px;
}

@media (max-width: 576px){
  .page-lesson .whatsapp-button,
  .page-rental .whatsapp-button,
  .page-contact .whatsapp-button,
  .page-location-weather .whatsapp-button{
    bottom: 96px;
  }
}

/* Sections: add nice rhythm + subtle separators */
.featured-section{
  padding: 90px 0 !important;
  background: transparent !important;
  position: relative;
}

.featured-section.bg-light{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(99,102,241,.10), transparent 55%),
    radial-gradient(900px 520px at 90% 15%, rgba(34,211,238,.08), transparent 55%),
    rgba(241,245,249,.55) !important;
  border-top: 1px solid rgba(148,163,184,.18);
  border-bottom: 1px solid rgba(148,163,184,.18);
}

.featured-section h2{
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

/* Images: softer corners + modern shadow */
.img-fluid{
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: var(--ui-shadow-soft) !important;
  border: 1px solid rgba(148,163,184,.16);
}

/* Buttons: unify to pill + premium glow */
.btn-primary,
.btn-secondary{
  border-radius: 999px !important;
  padding: 14px 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.btn-primary{
  background: linear-gradient(135deg, var(--ui-brand-2), var(--ui-brand-1)) !important;
  box-shadow: 0 16px 34px rgba(99,102,241,.20) !important;
}
.btn-primary:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 44px rgba(99,102,241,.26) !important;
}

.btn-secondary{
  background: linear-gradient(135deg, var(--ui-accent), #f59e0b) !important;
  box-shadow: 0 16px 34px rgba(251,113,133,.16) !important;
}
.btn-secondary:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 44px rgba(251,113,133,.22) !important;
}

/* Highlight blocks */
.wind-info,
.lesson-pricing,
.rental-pricing{
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  border-radius: var(--ui-radius-md) !important;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

/* Forms: cleaner and more modern */
.form-control,
.form-select{
  background: rgba(255,255,255,.75) !important;
  border: 1px solid rgba(148,163,184,.28) !important;
  border-radius: var(--ui-radius-sm) !important;
  padding: 14px 16px !important;
}
.form-control:focus,
.form-select:focus{
  border-color: rgba(99,102,241,.55) !important;
  box-shadow: 0 0 0 5px rgba(99,102,241,.14) !important;
  transform: none !important;
}

/* Footer: darker, more premium */
.footer{
  margin-top: 90px !important;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(99,102,241,.22), transparent 55%),
    radial-gradient(900px 560px at 90% 10%, rgba(34,211,238,.18), transparent 55%),
    linear-gradient(180deg, #0b1220, #070b14) !important;
  border-top: 1px solid rgba(148,163,184,.14);
}

.footer .contact-item{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 14px !important;
}

.footer-bottom{
  border-top: 1px solid rgba(148,163,184,.18) !important;
}

/* Floating buttons */
.back-to-top{
  background: linear-gradient(135deg, var(--ui-brand-2), var(--ui-brand-1)) !important;
  box-shadow: 0 16px 34px rgba(99,102,241,.22) !important;
}

.whatsapp-link{
  border: none !important;
  box-shadow: 0 16px 34px rgba(37,211,102,.22) !important;
}

/* Reduce some aggressive forced overrides from older CSS */
.hero-section .hero-content,
.hero-section .hero-content *{
  transition: none !important;
}

@media (max-width: 768px){
  .featured-section{ padding: 70px 0 !important; }
  .header-title-logo img{ height: 48px !important; }
}

