/*
Theme Name: NewWave Swimming
Theme URI: https://newwave-swimming.co.uk/
Author: NewWave Swimming
Description: A sleek, upmarket navy & gold theme for NewWave Swimming — family swimming lessons across London & Essex. Front page content is fully editable via the WordPress Customizer, and all navigation uses standard WordPress menus.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: newwave
*/

:root{
  --navy: #0A1F3B;
  --navy-mid: #122C50;
  --navy-deep: #071528;
  --ink: #142137;
  --gold: #B08D45;
  --gold-bright: #C9A24C;
  --cream: #F6F3EC;
  --cream-line: #E4DECF;
  --white: #FFFFFF;
  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display{
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.screen-reader-text{ position:absolute !important; clip:rect(1px,1px,1px,1px); overflow:hidden; height:1px; width:1px; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
header.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(176,141,69,0.25);
}
.nav-inner{
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold-bright); font-family:'Fraunces',serif; font-size: 18px;
  flex-shrink:0; overflow:hidden;
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.brand-name{ color: var(--white); font-family:'Fraunces',serif; font-size: 19px; letter-spacing: 0.01em; }
.brand-name span{ color: var(--gold-bright); }

nav.links{ display:flex; align-items:center; gap: 34px; }
nav.links ul{ list-style:none; display:flex; gap:34px; margin:0; padding:0; }
nav.links li{ position:relative; }
nav.links a{
  color: rgba(255,255,255,0.82); font-size: 14.5px; font-weight: 500;
  position: relative; padding: 6px 0; display:inline-block;
}
nav.links a:hover, nav.links a:focus{ color: var(--white); }
nav.links a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background: var(--gold-bright); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
nav.links a:hover::after, nav.links a:focus::after{ transform: scaleX(1); }

/* dropdown submenus */
nav.links ul ul{
  display:none; position:absolute; top: 100%; left:0; min-width: 240px;
  background: var(--navy-mid); padding: 10px 0; flex-direction:column;
  border-top: 2px solid var(--gold-bright); z-index: 60;
}
nav.links li:hover > ul, nav.links li:focus-within > ul{ display:flex; }
nav.links ul ul li{ width:100%; }
nav.links ul ul a{ padding: 10px 20px; display:block; }
nav.links ul ul a::after{ display:none; }

.btn-gold{
  display:inline-block; background: var(--gold-bright); color: var(--navy-deep);
  font-weight: 600; font-size: 14px; padding: 11px 24px;
  border: 1px solid var(--gold-bright);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-gold:hover{ background: transparent; color: var(--gold-bright); }

.btn-outline{
  display:inline-block; background: transparent; color: var(--white);
  font-weight: 500; font-size: 14px; padding: 11px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover{ border-color: var(--gold-bright); background: rgba(176,141,69,0.08); }

.menu-toggle{ display:none; background:none; border:none; color:var(--white); font-size: 26px; cursor:pointer; }

@media (max-width: 900px){
  nav.links{
    display:none; position:absolute; top:76px; left:0; right:0;
    background: var(--navy); flex-direction:column; padding: 12px 0 24px;
    border-bottom: 1px solid rgba(176,141,69,0.25);
  }
  nav.links.is-open{ display:flex; }
  nav.links ul{ flex-direction:column; gap:0; width:100%; }
  nav.links ul li{ width:100%; }
  nav.links ul a{ padding: 14px 32px; }
  nav.links ul ul{ position:static; border-top:none; background: rgba(0,0,0,0.15); padding-left: 12px; }
  .menu-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 640px;
  display:flex; align-items:center;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center 30%;
}
.hero-bg::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(7,21,40,0.94) 20%, rgba(7,21,40,0.72) 48%, rgba(7,21,40,0.28) 78%);
}
.hero-content{ position:relative; z-index:2; padding: 100px 0 96px; }
.eyebrow-gold{
  color: var(--gold-bright); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 22px; display:block;
}
.hero h1{
  color: var(--white); font-size: clamp(34px, 5vw, 56px);
  max-width: 620px; margin-bottom: 26px;
}
.hero h1 em{ font-style: italic; color: var(--gold-bright); }
.hero-sub{
  color: rgba(255,255,255,0.82); font-size: 17px; line-height: 1.6;
  max-width: 460px; margin-bottom: 38px;
}
.hero-ctas{ display:flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats{ background: var(--cream); border-bottom: 1px solid var(--cream-line); }
.stats-inner{
  display:grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--max); margin:0 auto; padding: 0 32px;
}
.stat{
  padding: 34px 24px; text-align:center;
  border-left: 1px solid var(--cream-line);
}
.stat:first-child{ border-left: none; }
.stat .num{ font-family:'Fraunces',serif; font-size: 32px; color: var(--navy); display:block; margin-bottom: 6px; }
.stat .label{ font-size: 13.5px; color: #5c5646; }

/* ---------- Intro ---------- */
.intro{ padding: 108px 0 96px; background: var(--white); }
.intro-inner{ max-width: 720px; margin: 0 auto; text-align: center; }
.intro h2{
  font-size: clamp(26px, 3.4vw, 34px); color: var(--navy); margin-bottom: 28px;
  font-weight: 400; font-style: italic;
}
.intro p{ font-size: 17px; line-height: 1.75; color: #40424c; margin-bottom: 18px; }
.rule-gold{ width: 56px; height: 2px; background: var(--gold-bright); margin: 0 auto 34px; }

/* ---------- Programs ---------- */
.programs{ background: var(--navy); padding: 100px 0; }
.section-head{ display:flex; justify-content: space-between; align-items:flex-end; margin-bottom: 56px; gap: 24px; flex-wrap: wrap; }
.section-head h2{ color: var(--white); font-size: clamp(28px,3.4vw,38px); }
.section-head p{ color: rgba(255,255,255,0.6); max-width: 360px; font-size: 15px; line-height: 1.6; margin:0; }
.programs-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); }
.program-card{
  background: var(--navy); padding: 40px 32px 36px;
  border-top: 2px solid var(--gold-bright);
}
.program-card h3{ color:var(--white); font-size: 22px; margin-bottom: 16px; }
.program-card p{ color: rgba(255,255,255,0.68); font-size: 14.5px; line-height: 1.65; margin-bottom: 22px; }
.program-card .tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 26px; }
.program-card .tags span{
  font-size: 12px; color: var(--gold-bright); border: 1px solid rgba(176,141,69,0.4);
  padding: 4px 10px;
}
.program-link{ color: var(--gold-bright); font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(176,141,69,0.4); padding-bottom: 2px; }
.program-link:hover{ border-color: var(--gold-bright); }

/* ---------- Skills / image split ---------- */
.skills{ background: var(--cream); padding: 110px 0; }
.skills-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.skills-img{ position: relative; }
.skills-img img{ width: 100%; height: 520px; object-fit: cover; }
.skills-img::before{
  content:''; position:absolute; top:20px; left:20px; right:-20px; bottom:-20px;
  border: 1.5px solid var(--gold-bright); z-index:-1;
}
.skills-text h2{ color: var(--navy); font-size: clamp(26px,3.2vw,34px); margin-bottom: 20px; }
.skills-text > p{ color:#4a4d57; font-size: 15.5px; line-height: 1.7; margin-bottom: 32px; max-width: 460px; }
.skill-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.skill-list li{
  font-size: 14.5px; color: var(--ink); padding-left: 20px; position: relative; line-height: 1.5;
}
.skill-list li::before{
  content:''; position:absolute; left:0; top: 8px; width: 9px; height: 1.5px; background: var(--gold-bright);
}

/* ---------- Benefits ---------- */
.benefits{ background: var(--white); padding: 110px 0; }
.benefits-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.benefit h3{ font-size: 18px; color: var(--navy); margin-bottom: 12px; font-weight: 500; }
.benefit .idx{ font-family:'Fraunces',serif; font-style: italic; color: var(--gold); font-size: 15px; display:block; margin-bottom: 14px; }
.benefit p{ font-size: 14px; line-height: 1.65; color: #565a63; margin:0; }

.activities{ margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--cream-line); }
.activities-head{ font-size: 15px; color:#5c5646; margin-bottom: 22px; max-width: 480px; line-height: 1.6; }
.chip-row{ display:flex; flex-wrap: wrap; gap: 10px; }
.chip-row span{
  font-size: 13.5px; color: var(--navy); border: 1px solid var(--cream-line); background: var(--cream);
  padding: 8px 16px;
}

/* ---------- Quote / CTA banner ---------- */
.quote{
  background: var(--navy-deep);
  padding: 110px 0;
  position: relative;
  text-align: center;
}
.quote-mark{ font-family:'Fraunces',serif; font-size: 64px; color: var(--gold-bright); line-height:1; margin-bottom: 8px; font-style: italic; }
.quote blockquote{
  font-family:'Fraunces',serif; font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px); color: var(--white);
  max-width: 700px; margin: 0 auto 24px; line-height: 1.5;
}
.quote cite{ color: rgba(255,255,255,0.55); font-size: 14px; font-style: normal; }

/* ---------- Final CTA ---------- */
.final-cta{ background: var(--cream); padding: 96px 0; }
.cta-box{
  display:flex; justify-content: space-between; align-items:center; gap: 32px; flex-wrap: wrap;
  border: 1px solid var(--cream-line); padding: 56px 60px; background: var(--white);
}
.cta-box h2{ color: var(--navy); font-size: clamp(24px,3vw,32px); max-width: 420px; }
.cta-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.btn-navy{
  display:inline-block; background: var(--navy); color: var(--white); font-weight: 600;
  font-size: 14px; padding: 13px 28px; border: 1px solid var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-navy:hover{ background: transparent; color: var(--navy); }
.btn-line{
  display:inline-block; color: var(--navy); font-weight: 600; font-size: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--navy);
}

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--navy-deep); padding: 72px 0 32px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name{ margin-bottom: 14px; }
.footer-grid p{ color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4{ color: var(--gold-bright); font-size: 13px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 11px; }
.footer-col a{ color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display:flex; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p{ color: rgba(255,255,255,0.4); font-size: 13px; margin:0; }

/* ---------- Generic inner-page header + content (page.php / single.php / index.php) ---------- */
.page-header-band{
  position: relative;
  background: var(--navy-deep);
  padding: 76px 0 64px;
  overflow: hidden;
}
.page-header-band::before{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(60% 140% at 85% 0%, rgba(176,141,69,0.16) 0%, rgba(176,141,69,0) 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-header-band .wrap{ position: relative; z-index: 1; }
.page-header-eyebrow{
  color: var(--gold-bright); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 14px; display:block;
}
.page-header-band .page-title{
  color: var(--white); font-size: clamp(30px,4vw,44px); margin-bottom: 0;
}
.page-header-band .page-meta{ color: rgba(255,255,255,0.55); font-size: 13.5px; margin-top: 14px; }

.site-content{ padding: 80px 0 96px; min-height: 30vh; background: var(--cream); }
.site-content-inner{ background: var(--white); border: 1px solid var(--cream-line); padding: 56px 64px; }
.site-content .entry-content{ max-width: 720px; font-size: 16px; line-height: 1.75; color: #33364a; }
.site-content .entry-content p{ margin-bottom: 1.2em; }
.post-list{ max-width: 760px; display:flex; flex-direction:column; gap: 40px; }
.post-list article{ border-bottom: 1px solid var(--cream-line); padding-bottom: 32px; }
.post-list article:last-child{ border-bottom: none; padding-bottom: 0; }
.post-list h2{ color: var(--navy); font-size: 24px; margin-bottom: 10px; }
.post-list h2 a:hover{ color: var(--gold); }
.post-meta{ font-size: 13px; color: #8b8877; margin-bottom: 12px; }

@media (max-width: 560px){
  .site-content-inner{ padding: 36px 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .programs-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; gap: 48px; }
  .skills-img{ order: -1; }
  .skills-img img{ height: 360px; }
  .benefits-grid{ grid-template-columns: 1fr 1fr; }
  .stats-inner{ grid-template-columns: 1fr; }
  .stat{ border-left:none; border-top: 1px solid var(--cream-line); }
  .stat:first-child{ border-top:none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-box{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px){
  .wrap, .nav-inner{ padding: 0 20px; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .skill-list{ grid-template-columns: 1fr; }
  .cta-box{ padding: 36px 28px; }
}
