/* =====================================================
   DM EXERCISE CLINIC — MAIN STYLESHEET
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --color-red:        #E40319;
  --color-red-dark:   #9D0A19;
  --color-maroon:     #650F18;
  --color-black:      #191919;
  --color-black-soft: #121818;
  --color-white:      #FFFFFF;
  --color-offwhite:   #F9F9F9;
  --color-light-gray: #EEEEEE;
  --color-border:     #3A3A3A;
  --color-text-body:  #5C5C5C;
  --color-text-muted: #9A9A9A;
  --color-placeholder:#7A7A7A;

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --container-max: 1320px;
  --container-pad: 24px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 999px;

  --transition-fast: 0.2s ease;
  --transition-med:  0.35s ease;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--color-text-body);
  background:var(--color-white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4,h5,h6{ margin:0; font-family:var(--font-heading); color:var(--color-black); }
p{ margin:0; }
input, select, textarea{ font-family:inherit; }

.container{
  max-width:var(--container-max);
  margin:0 auto;
  padding:0 var(--container-pad);
}
/* On desktop, keep the container at a fixed 1320px regardless of viewport
   width above that point (matches the Figma frame exactly). Below this
   breakpoint the container stays fluid so mobile/tablet layouts don't
   force horizontal scrolling. */
@media (min-width: 1368px){
  .container{
    min-width:1320px;
  }
}

/* Visible focus state for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--color-red);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

.skip-link{
  position:absolute; left:-9999px; top:auto;
  background:var(--color-red); color:#fff; padding:10px 16px; z-index:10000;
}
.skip-link:focus{ left:10px; top:10px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.03em;
  text-transform:uppercase;
  padding:16px 30px;
  border-radius:2px;
  border:none;
  transition:background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space:nowrap;
}
.btn-red{
  background:var(--color-red);
  color:#fff;
}
.btn-red:hover{
  background:var(--color-red-dark);
  transform:translateY(-2px);
}
.btn-white{
  background:#fff;
  color:var(--color-black);
}
.btn-white:hover{
  background:var(--color-black);
  color:#fff;
  transform:translateY(-2px);
}
.btn svg{ width:16px; height:16px; flex-shrink:0; }

/* ---------- Eyebrow / Section Heading ---------- */
.eyebrow{
  display:block;
  color:var(--color-red);
  font-weight:700;
  font-size:14px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.section-title{
  font-size:38px;
  font-weight:800;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:-0.01em;
}
.section-head{
  text-align:center;
  max-width:700px;
  margin:0 auto 56px;
}
.section-head.align-left{
  text-align:left;
  margin:0;
  max-width:600px;
}

/* ---------- Site Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
  border-bottom:1px solid #ececec;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-top:16px;
  padding-bottom:16px;
}
.site-logo img{
  height:48px;
  width:auto;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:40px;
}
.main-nav ul{
  display:flex;
  align-items:center;
  gap:34px;
}
.main-nav a{
  font-size:14px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--color-black);
  position:relative;
  padding:6px 0;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background:var(--color-red);
  transition:width var(--transition-fast);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{ width:100%; }

/* Dropdown submenus (only appear if a site owner adds child menu items
   under a top-level page in Appearance > Menus — the design itself has
   no visible dropdowns, so this is purely progressive enhancement). */
.main-nav li{ position:relative; }
.main-nav ul ul{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  background:#fff;
  box-shadow:0 16px 32px -8px rgba(0,0,0,0.16);
  border-radius:4px;
  padding:10px 0;
  min-width:240px;
  z-index:50;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul{ display:flex; }
.main-nav ul ul li{ width:100%; }
.main-nav ul ul a{
  display:block;
  width:100%;
  padding:10px 22px;
  white-space:nowrap;
  text-transform:none;
  font-size:13.5px;
  letter-spacing:0.01em;
}
.main-nav ul ul a::after{ display:none; }
.main-nav ul ul a:hover{ background:var(--color-offwhite); color:var(--color-red); }

.header-cta{ flex-shrink:0; }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  flex-direction:column;
  gap:5px;
  padding:8px;
}
.menu-toggle span{
  display:block;
  width:26px;
  height:2px;
  background:var(--color-black);
  transition:transform var(--transition-fast), opacity var(--transition-fast);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:var(--color-black-soft);
  min-height:680px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center right;
}
.hero .container{
  position:relative;
  z-index:2;
}
.hero-content{
  max-width:620px;
  width:100%;
  padding:90px 0;
  margin:0;
  text-align:left;
}
.hero-content h1{
  color:#fff;
  font-size:40px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:20px;
  letter-spacing:-0.01em;
}
.hero-content .hero-sub{
  color:#fff;
  font-size:24px;
  font-weight:400;
  line-height:1.45;
  margin-bottom:24px;
}
.hero-content .hero-tagline{
  color:var(--color-red);
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
  margin-bottom:16px;
  opacity:1;
}

/* ---------- Hero Slider (homepage, multi-slide) ---------- */
.hero-slider{
  min-height:680px;
}
.hero-slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.8s ease, visibility 0s linear 0.8s;
}
.hero-slide.is-active{
  opacity:1;
  visibility:visible;
  transition:opacity 0.8s ease;
}
.hero-slide::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(10,12,12,0.96) 0%, rgba(10,12,12,0.82) 32%, rgba(10,12,12,0.25) 60%, rgba(10,12,12,0.05) 100%);
  z-index:1;
}
.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  margin-bottom:32px;
}
.hero-points li{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  font-size:14px;
  font-weight:500;
}
.hero-points .check{
  width:18px; height:18px;
  border-radius:50%;
  background:var(--color-red);
  color:#fff;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-points .check svg{ width:10px; height:10px; }

.hero-slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(10,12,12,0.35);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease;
}
.hero-slider-arrow:hover{ background:var(--color-red); border-color:var(--color-red); }
.hero-slider-arrow svg{ width:18px; height:18px; }
.hero-slider-arrow.prev{ left:24px; }
.hero-slider-arrow.next{ right:24px; }

.hero-slider-dots{
  position:absolute;
  left:0; right:0;
  bottom:22px;
  z-index:3;
  display:flex;
  justify-content:center;
  gap:10px;
}
.hero-slider-dots button{
  width:9px; height:9px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.6);
  background:transparent;
  padding:0;
  cursor:pointer;
  transition:background 0.2s ease, width 0.2s ease;
}
.hero-slider-dots button.is-active{
  background:var(--color-red);
  border-color:var(--color-red);
  width:22px;
  border-radius:5px;
}

@media (max-width:600px){
  .hero-slider-arrow{ width:36px; height:36px; }
  .hero-slider-arrow.prev{ left:12px; }
  .hero-slider-arrow.next{ right:12px; }
  .hero-points{ gap:8px 16px; margin-bottom:24px; }
}

/* ---------- Enquire Now ---------- */
.enquire-section{
  position:relative;
  background:var(--color-black);
  padding:90px 0 110px;
  margin-top:-1px;
}
.enquire-section::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:18px;
  background:var(--color-red);
  clip-path:polygon(0 100%, 100% 0, 100% 100%);
}
.enquire-section .section-title{
  color:#fff;
  text-align:center;
  margin-bottom:48px;
}
.enquire-form{
  max-width:980px;
  margin:0 auto;
}
.enquire-row{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.enquire-row:last-child{ margin-bottom:0; }
.enquire-field input,
.enquire-field select{
  width:100%;
  background:transparent;
  border:1px solid var(--color-border);
  color:#fff;
  padding:18px 20px;
  font-size:14px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  border-radius:2px;
  appearance:none;
}
.enquire-field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 20px center;
}
/* Native <option> elements always render on a white popup background in
   every browser, regardless of the select's own color — without this the
   white select text becomes invisible white-on-white once the list opens. */
.enquire-field select option{
  color:var(--color-black);
  background:#fff;
}
.enquire-field input::placeholder{
  color:var(--color-placeholder);
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:0.04em;
}
.enquire-field input:focus,
.enquire-field select:focus{
  border-color:var(--color-red);
}
.enquire-submit{
  width:100%;
  height:100%;
  min-height:58px;
}
.enquire-note{
  text-align:center;
  margin-top:18px;
  color:var(--color-placeholder);
  font-size:13px;
  letter-spacing:0.02em;
}
.form-msg{
  text-align:center;
  margin-top:20px;
  color:#fff;
  font-size:14px;
}
.form-msg.success{ color:#5FD37A; }
.form-msg.error{ color:#FF7A7A; }

/* ---------- Three Core Pillars ---------- */
.pillars-section{
  padding:110px 0 90px;
  background:#fff;
}
.pillars-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:50px;
  text-align:center;
}
.pillar-photo{
  width:250px;
  height:250px;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto 32px;
  border:3px solid #f3d9d9;
  box-shadow:0 18px 40px -10px rgba(228,3,25,0.18);
}
.pillar-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.pillar-card h3{
  font-size:21px;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:14px;
}
.pillar-card p{
  font-size:15px;
  line-height:1.7;
  color:var(--color-text-body);
  max-width:320px;
  margin:0 auto;
}

/* ---------- Why Choose Us ---------- */
.why-section{
  position:relative;
  background:var(--color-black);
  padding:120px 0 90px;
}
.why-section::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:18px;
  background:var(--color-red);
  clip-path:polygon(0 0, 100% 100%, 100% 0);
  transform:translateY(-100%);
}
.why-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:flex-start;
}
.why-content .section-title{ color:#fff; margin-bottom:32px; }
.why-list{ display:flex; flex-direction:column; }
.why-list li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:20px 0;
  border-bottom:1px solid #2c2c2c;
  color:#e8e8e8;
  font-size:16px;
  line-height:1.5;
}
.why-list li svg{
  flex-shrink:0;
  width:14px;
  height:14px;
  margin-top:5px;
  color:var(--color-red);
}
.why-media-col{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:20px;
}
.why-media-cta{ flex-shrink:0; }
.why-media{
  position:relative;
  width:100%;
}
.why-media img{
  border-radius:4px;
  width:100%;
  height:580px;
  object-fit:cover;
}

/* ---------- Scientific Assessment ---------- */
.assessment-section{
  position:relative;
  padding:110px 0;
  background:#fff;
}
.why-section::after{
  content:"";
}
.assessment-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:40px;
  margin-bottom:56px;
}
.assessment-top .section-head{
  text-align:left;
  margin:0;
  max-width:680px;
}
.assessment-top .btn{ flex-shrink:0; margin-top:14px; }
.assessment-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:24px;
  align-items:stretch;
}
.assessment-media{
  border-radius:4px;
  overflow:hidden;
  min-height:480px;
}
.assessment-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:opacity var(--transition-med);
}
.assessment-tabs{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.assessment-tab{
  width:100%;
  text-align:left;
  background:var(--color-offwhite);
  border:none;
  padding:24px 28px;
  font-size:17px;
  font-weight:600;
  color:var(--color-black);
  border-radius:2px;
  transition:background var(--transition-fast), color var(--transition-fast);
  flex:1;
  display:flex;
  align-items:center;
}
.assessment-tab.active{
  background:var(--color-red);
  color:#fff;
}
.assessment-tab:hover:not(.active){
  background:#e9e9e9;
}

/* ---------- Featured Programs ---------- */
.programs-section{
  position:relative;
  background:var(--color-black);
  padding:130px 0 100px;
  overflow:hidden;
}
.programs-section::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:18px;
  background:var(--color-red);
  clip-path:polygon(0 0, 100% 100%, 100% 0);
  transform:translateY(-100%);
}
.programs-section::after{
  content:"";
  position:absolute;
  bottom:0; left:0; right:0;
  height:18px;
  background:var(--color-red);
  clip-path:polygon(0 100%, 100% 0, 100% 100%);
  transform:translateY(100%);
}
.programs-shape-tr{
  position:absolute;
  top:0; right:0;
  width:380px;
  height:60%;
  background-image:radial-gradient(circle, #3a3a3a 1.6px, transparent 1.7px);
  background-size:18px 18px;
  background-position:top right;
  pointer-events:none;
  z-index:1;
}
.programs-shape-bl{
  position:absolute;
  bottom:0; left:0;
  width:340px;
  height:55%;
  background-image:radial-gradient(circle, #3a3a3a 1.6px, transparent 1.7px);
  background-size:18px 18px;
  background-position:bottom left;
  pointer-events:none;
  z-index:1;
}
.programs-tri{
  position:absolute;
  width:0; height:0;
  border-style:solid;
  pointer-events:none;
  z-index:1;
}
.programs-tri-1{
  top:34%; right:6%;
  border-width:0 60px 60px 0;
  border-color:transparent #000 transparent transparent;
  opacity:0.55;
  transform:rotate(8deg);
}
.programs-tri-2{
  top:48%; right:2%;
  border-width:46px 46px 0 0;
  border-color:#000 transparent transparent transparent;
  opacity:0.45;
}
.programs-tri-3{
  bottom:26%; left:4%;
  border-width:0 0 54px 54px;
  border-color:transparent transparent #000 transparent;
  opacity:0.5;
  transform:rotate(-4deg);
}
.programs-tri-4{
  bottom:14%; left:1%;
  border-width:0 42px 42px 0;
  border-color:transparent #000 transparent transparent;
  opacity:0.4;
}
.programs-section .section-head{ position:relative; z-index:2; }
.programs-section .section-title{ color:#fff; }
.programs-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  position:relative;
  z-index:2;
}
.program-card{
  background:#fff;
  border:6px solid #fff;
  border-radius:2px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.program-media{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
}
.program-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.program-body{
  padding:32px 36px 28px;
  flex:1;
}
.program-body h3{
  font-size:22px;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:14px;
}
.program-body p{
  font-size:15px;
  line-height:1.7;
  color:var(--color-text-body);
  margin-bottom:22px;
}
.program-features{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.program-features li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15px;
  font-weight:500;
  color:var(--color-black);
}
.program-features .check{
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--color-red);
  color:#fff;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.program-features .check svg{ width:11px; height:11px; }
.program-footer{
  background:var(--color-red);
  padding:26px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.program-footer p{
  color:#fff;
  font-size:15px;
  font-weight:500;
  line-height:1.4;
}
.program-footer .btn{ flex-shrink:0; }

/* ---------- Modalities Carousel ---------- */
.modalities-section{
  padding:110px 0;
  background:#fff;
}
.modalities-carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
}
.carousel-track-wrap{
  flex:1;
  overflow:hidden;
}
.carousel-track{
  display:flex;
  gap:30px;
  transition:transform var(--transition-med);
}
.modality-card{
  flex:0 0 calc((100% - 60px)/3);
  border-radius:2px;
  overflow:hidden;
}
.modality-media{
  height:280px;
  overflow:hidden;
}
.modality-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.modality-label{
  background:var(--color-offwhite);
  text-align:center;
  padding:22px 16px;
  font-size:15px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.4;
}
.carousel-btn{
  flex-shrink:0;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid #e2e2e2;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--color-red);
  transition:background var(--transition-fast), color var(--transition-fast);
}
.carousel-btn:hover{ background:var(--color-red); color:#fff; }
.carousel-btn svg{ width:18px; height:18px; }
.carousel-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:36px;
}
.carousel-dots button{
  width:8px; height:8px;
  border-radius:50%;
  border:none;
  background:#ddd;
  padding:0;
}
.carousel-dots button.active{ background:var(--color-red); width:24px; border-radius:5px; transition:width var(--transition-fast); }

/* ---------- Client Outcomes ---------- */
.outcomes-section{
  position:relative;
  background:var(--color-offwhite);
  padding:100px 0;
  overflow:hidden;
}
.outcomes-shape-bl{
  position:absolute;
  left:0; bottom:0;
  width:320px;
  height:60%;
  background-image:radial-gradient(circle, #d8d8d8 2.2px, transparent 2.4px);
  background-size:22px 22px;
  background-position:bottom left;
  pointer-events:none;
  z-index:1;
}
.outcomes-tri{
  position:absolute;
  width:0; height:0;
  border-style:solid;
  pointer-events:none;
  z-index:1;
}
.outcomes-tri-1{
  top:18%; right:3%;
  border-width:0 50px 50px 0;
  border-color:transparent #d9d9d9 transparent transparent;
}
.outcomes-tri-2{
  top:30%; right:0%;
  border-width:46px 0 0 46px;
  border-color:transparent transparent transparent #d9d9d9;
}
.outcomes-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:40px;
  align-items:center;
}
.outcomes-photo{
  display:flex;
  justify-content:center;
}
.outcomes-photo img{
  max-height:520px;
  width:auto;
}
.outcomes-content p.lead{
  font-size:16px;
  line-height:1.75;
  color:var(--color-text-body);
  max-width:560px;
  margin-bottom:36px;
}
.outcomes-content .section-title{ margin-bottom:20px; }
.outcomes-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 50px;
}
.outcomes-list li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15.5px;
  font-weight:500;
  color:var(--color-black);
}
.outcomes-list .check{
  width:20px; height:20px;
  border-radius:50%;
  background:var(--color-red);
  color:#fff;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.outcomes-list .check svg{ width:11px; height:11px; }

/* ---------- CTA Banner ---------- */
.cta-section{
  position:relative;
  background:var(--color-maroon);
  padding:110px 0;
  text-align:center;
  overflow:hidden;
}
.cta-section::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:24px;
  background:var(--color-black);
  clip-path:polygon(0 100%, 100% 0, 100% 100%);
  transform:translateY(-100%);
}
.cta-section .eyebrow{ color:#FF8A8A; }
.cta-section h2{
  color:#fff;
  font-size:38px;
  font-weight:800;
  text-transform:uppercase;
  line-height:1.25;
  max-width:880px;
  margin:0 auto 24px;
}
.cta-section p{
  color:#f0d8da;
  font-size:16px;
  line-height:1.7;
  max-width:640px;
  margin:0 auto 36px;
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--color-black);
  padding:80px 0 0;
}
.footer-top{
  text-align:center;
  padding-bottom:50px;
}
.footer-logo{
  height:90px;
  width:auto;
  margin:0 auto 28px;
}
.footer-address{
  color:#b6b6b6;
  font-size:15px;
  line-height:1.7;
  max-width:560px;
  margin:0 auto 28px;
}
.footer-phones{
  color:#fff;
  font-size:20px;
  font-weight:700;
  margin-bottom:24px;
}
.footer-phones a{ color:#fff; }
.footer-phones span.sep{ margin:0 14px; color:#666; font-weight:400; }
.footer-social{
  display:flex;
  justify-content:center;
  gap:14px;
}
.footer-social a{
  width:38px; height:38px;
  border-radius:50%;
  background:var(--color-red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform var(--transition-fast), background var(--transition-fast);
}
.footer-social a:hover{ background:var(--color-red-dark); transform:translateY(-3px); }
.footer-social svg{ width:16px; height:16px; }

.footer-links{
  border-top:1px solid #2a2a2a;
  padding:48px 0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.footer-links-col{
  padding:0 24px;
  border-left:1px solid #2a2a2a;
}
.footer-links-col:first-child{ border-left:none; padding-left:0; }
.footer-links-col li{
  margin-bottom:14px;
}
.footer-links-col a{
  color:#b6b6b6;
  font-size:15px;
  transition:color var(--transition-fast);
}
.footer-links-col a:hover{ color:#fff; }
.footer-link-disabled{
  color:#6f6f6f;
  font-size:15px;
  cursor:default;
}

.footer-bottom{
  border-top:1px solid #2a2a2a;
  padding:24px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.footer-bottom p,
.footer-bottom a{
  color:#8c8c8c;
  font-size:13.5px;
}
.footer-bottom a:hover{ color:#fff; }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1100px){
  .why-grid{ grid-template-columns:1fr; }
  .why-media img{ height:420px; }
  .assessment-grid{ grid-template-columns:1fr; }
  .assessment-media{ min-height:360px; order:2; }
  .assessment-tabs{ order:1; flex-direction:row; flex-wrap:wrap; }
  .assessment-tab{ flex:1 1 auto; }
  .outcomes-grid{ grid-template-columns:1fr; text-align:center; }
  .outcomes-list{ justify-content:center; }
  .outcomes-photo img{ max-height:380px; }
}

@media (max-width: 900px){
  .main-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .header-cta{ display:none; }

  .hero{ min-height:auto; }
  .hero-content{ padding:70px 0 60px; max-width:100%; }
  .hero-content h1{ font-size:36px; }
  .hero-content .hero-sub{ font-size:19px; }

  .section-title{ font-size:29px; }

  .enquire-row{ grid-template-columns:1fr; }

  .pillars-grid{ grid-template-columns:1fr; gap:60px; }

  .why-media-col{ align-items:flex-start; }
  .assessment-top{ flex-direction:column; }
  .assessment-top .btn{ align-self:flex-start; }

  .programs-grid{ grid-template-columns:1fr; }
  .program-footer{ flex-direction:column; align-items:flex-start; }
  .program-footer .btn{ width:100%; justify-content:center; }

  .modality-card{ flex:0 0 calc((100% - 30px)/2); }

  .footer-links{ grid-template-columns:1fr 1fr; }
  .footer-links-col{ border-left:none; padding:0; }
}

@media (max-width: 600px){
  :root{ --container-pad:18px; }
  .hero-content h1{ font-size:30px; }
  .hero-content .hero-sub{ font-size:17px; }
  .hero-content .hero-tagline{ font-size:14px; }

  .section-title{ font-size:25px; }

  .pillar-photo{ width:200px; height:200px; }

  .why-media img{ height:280px; }

  .assessment-media{ min-height:260px; }
  .assessment-tabs{ flex-direction:column; }

  .program-media{ aspect-ratio:1/1; }
  .program-body{ padding:26px 22px; }
  .program-footer{ padding:22px; }

  .modality-card{ flex:0 0 100%; }
  .modality-media{ height:220px; }

  .outcomes-list{ grid-template-columns:1fr; }

  .cta-section h2{ font-size:26px; }

  .footer-links{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; text-align:center; justify-content:center; }
}

/* ---------- Mobile Nav Open State ---------- */
@media (max-width: 900px){
  .main-nav.nav-open{
    display:flex;
    position:absolute;
    top:100%;
    left:0; right:0;
    background:#fff;
    flex-direction:column;
    padding:20px 24px 28px;
    box-shadow:0 12px 24px -8px rgba(0,0,0,0.12);
    border-bottom:1px solid #ececec;
  }
  .main-nav.nav-open ul{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    width:100%;
  }
  .main-nav.nav-open::after{
    content:"";
    display:block;
    margin-top:18px;
  }
  /* On mobile, submenus are always visible (indented) inside the open
     drawer rather than relying on hover, since touch devices have no
     hover state. */
  .main-nav.nav-open ul ul{
    display:flex;
    position:static;
    box-shadow:none;
    padding:6px 0 0 16px;
    min-width:0;
  }
  .main-nav.nav-open ul ul a{ padding:8px 0; }
  .menu-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2){ opacity:0; }
  .menu-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

/* ---------- Blog / Archive / Single ---------- */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:36px;
}
.blog-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:4px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.blog-card-media{ display:block; height:220px; overflow:hidden; }
.blog-card-media img{ width:100%; height:100%; object-fit:cover; }
.blog-card-body{ padding:24px; flex:1; display:flex; flex-direction:column; }
.blog-card-title{ font-size:19px; margin-bottom:8px; }
.blog-card-title a:hover{ color:var(--color-red); }
.blog-card-meta{ font-size:13px; color:var(--color-text-muted); margin-bottom:12px; }
.blog-card-excerpt{ font-size:14.5px; line-height:1.65; margin-bottom:20px; flex:1; }
.blog-card-body .btn{ align-self:flex-start; }

.single-content,
.page-content{
  max-width:780px;
  margin:0 auto;
  padding:90px 24px;
  line-height:1.8;
  font-size:16px;
}
.single-content h1,
.page-content h1{
  font-size:36px;
  text-transform:uppercase;
  margin-bottom:24px;
}
.single-content img,
.page-content img{ border-radius:4px; margin:24px 0; }
.single-meta{ color:var(--color-text-muted); font-size:14px; margin-bottom:30px; }

.pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:50px;
}
.pagination .page-numbers{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border:1px solid #eee;
  border-radius:4px;
  font-size:14px;
  font-weight:600;
}
.pagination .page-numbers.current{ background:var(--color-red); color:#fff; border-color:var(--color-red); }

.error-404{
  text-align:center;
  padding:140px 24px;
}
.error-404 h1{ font-size:80px; color:var(--color-red); margin-bottom:16px; }
.error-404 p{ font-size:18px; margin-bottom:30px; }

@media (max-width: 900px){
  .blog-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
  .blog-grid{ grid-template-columns:1fr; }
  .single-content, .page-content{ padding:60px 18px; }
}

/* ---------- Utility ---------- */
.screen-reader-text{
  position:absolute !important;
  clip:rect(1px,1px,1px,1px);
  width:1px; height:1px;
  overflow:hidden;
  word-wrap:normal !important;
}

/* ---------- Scroll Reveal ----------
   Content defaults to fully visible. The "pre-reveal" hidden/offset state
   only applies once html.js is present (set by an inline script in
   header.php before first paint) AND the element hasn't been marked
   .is-visible yet. This guarantees the page is fully readable with
   JavaScript disabled, failed, or blocked — including for search engine
   crawlers — while still animating normally for everyone else. */
.reveal,
.reveal-group .reveal-item{
  opacity:1;
  transform:none;
}
html.js .reveal:not(.is-visible){
  opacity:0;
  transform:translateY(36px);
  transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change:opacity, transform;
}
html.js .reveal[data-reveal="left"]:not(.is-visible){ transform:translateX(-40px); }
html.js .reveal[data-reveal="right"]:not(.is-visible){ transform:translateX(40px); }
html.js .reveal[data-reveal="zoom"]:not(.is-visible){ transform:scale(0.94); }
html.js .reveal[data-reveal="fade"]:not(.is-visible){ transform:none; }
html.js .reveal.is-visible{
  transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
html.js .reveal-group:not(.is-visible) .reveal-item{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
html.js .reveal-group.is-visible .reveal-item{
  transition:opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-group.is-visible .reveal-item:nth-child(1){ transition-delay:0.05s; }
.reveal-group.is-visible .reveal-item:nth-child(2){ transition-delay:0.16s; }
.reveal-group.is-visible .reveal-item:nth-child(3){ transition-delay:0.27s; }
.reveal-group.is-visible .reveal-item:nth-child(4){ transition-delay:0.38s; }
.reveal-group.is-visible .reveal-item:nth-child(5){ transition-delay:0.49s; }
.reveal-group.is-visible .reveal-item:nth-child(6){ transition-delay:0.6s; }
.reveal-group.is-visible .reveal-item:nth-child(7){ transition-delay:0.7s; }

@media (prefers-reduced-motion: reduce){
  html.js .reveal:not(.is-visible),
  html.js .reveal-group:not(.is-visible) .reveal-item{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* ---------- Hero Load-in Animation ----------
   Base state is fully visible (opacity:1, no transform) so the hero never
   risks being invisible without JS or in renderers with partial CSS
   animation support. The entrance motion is opt-in via .hero-anim-ready,
   added by JS a frame after load — see assets/js/main.js. */
.hero-load-in h1,
.hero-load-in .hero-sub,
.hero-load-in .hero-tagline,
.hero-load-in .hero-points,
.hero-load-in .btn{
  opacity:1;
  transform:none;
}
.hero-load-in.hero-anim-ready h1,
.hero-load-in.hero-anim-ready .hero-sub,
.hero-load-in.hero-anim-ready .hero-tagline,
.hero-load-in.hero-anim-ready .hero-points,
.hero-load-in.hero-anim-ready .btn{
  opacity:0;
  transform:translateY(22px);
  animation:dmHeroIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-load-in.hero-anim-ready .hero-tagline{ animation-delay:0.1s; }
.hero-load-in.hero-anim-ready h1{ animation-delay:0.2s; }
.hero-load-in.hero-anim-ready .hero-sub{ animation-delay:0.32s; }
.hero-load-in.hero-anim-ready .hero-points{ animation-delay:0.32s; }
.hero-load-in.hero-anim-ready .btn{ animation-delay:0.46s; }

@keyframes dmHeroIn{
  to{ opacity:1; transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .hero-load-in.hero-anim-ready h1,
  .hero-load-in.hero-anim-ready .hero-sub,
  .hero-load-in.hero-anim-ready .hero-tagline,
  .hero-load-in.hero-anim-ready .hero-points,
  .hero-load-in.hero-anim-ready .btn{
    animation:none;
    opacity:1;
    transform:none;
  }
}

/* ---------- Floating Action Buttons ---------- */
.dm-floating-actions{
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:900;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.dm-float-btn{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  box-shadow:0 10px 24px -6px rgba(0,0,0,0.35);
  transition:transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  cursor:pointer;
}
.dm-float-btn svg{ width:26px; height:26px; }
.dm-float-btn:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 14px 30px -6px rgba(0,0,0,0.45);
}
.dm-float-whatsapp{
  background:#25D366;
  color:#fff;
}
.dm-float-call{
  background:var(--color-red);
  color:#fff;
  animation:dmPulseRing 2.4s ease-out infinite;
}
.dm-float-top{
  background:#fff;
  color:var(--color-black);
  border:1px solid #e6e6e6;
  width:46px;
  height:46px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity var(--transition-fast), transform var(--transition-fast);
}
.dm-float-top.is-visible{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.dm-float-top svg{ width:20px; height:20px; }

@keyframes dmPulseRing{
  0%   { box-shadow:0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 0 rgba(228,3,25,0.55); }
  70%  { box-shadow:0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 14px rgba(228,3,25,0); }
  100% { box-shadow:0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 0 rgba(228,3,25,0); }
}

@media (prefers-reduced-motion: reduce){
  .dm-float-call{ animation:none; }
}

@media (max-width: 600px){
  .dm-floating-actions{ right:14px; bottom:16px; gap:10px; }
  .dm-float-btn{ width:50px; height:50px; }
  .dm-float-btn svg{ width:22px; height:22px; }
  .dm-float-top{ width:40px; height:40px; }
  .dm-float-top svg{ width:18px; height:18px; }
}

/* ---------- Thank You Page ---------- */
.thankyou-section{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:center;
  background:var(--color-offwhite);
  padding:80px 0;
  overflow:hidden;
}
.thankyou-card{
  position:relative;
  z-index:2;
  max-width:620px;
  margin:0 auto;
  text-align:center;
  background:#fff;
  border-radius:8px;
  padding:64px 48px;
  box-shadow:0 24px 60px -20px rgba(0,0,0,0.12);
}
.thankyou-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:74px;
  height:74px;
  border-radius:50%;
  background:var(--color-red);
  color:#fff;
  margin-bottom:28px;
}
.thankyou-icon svg{ width:36px; height:36px; }
.thankyou-card .eyebrow{ justify-content:center; display:block; }
.thankyou-card .section-title{ margin-bottom:18px; }
.thankyou-text{
  font-size:16px;
  line-height:1.7;
  color:var(--color-text-body);
  margin-bottom:36px;
}
.thankyou-actions{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

@media (max-width: 600px){
  .thankyou-card{ padding:44px 26px; }
  .thankyou-actions{ flex-direction:column; }
  .thankyou-actions .btn{ width:100%; }
}
