/* ===========================================================
   Cadence Cure — design tokens
   Palette:  --navy (wordmark/deep accent), --sky (primary light blue),
             --sky-pale (backgrounds), --mist (section alt bg), --ink (body text)
   Type:     Display/Headlines -> 'Poppins' (echoes the logo's rounded wordmark)
             Body/UI           -> 'Inter'   (Apple-style neutral grotesk)
   Signature: soft "trunk-curve" wave divider + rounded blob frames,
              echoing the elephant mark in the Cadence Cure logo.
   =========================================================== */

:root{
  --navy: #153e75;
  --navy-deep: #0e2c54;
  --sky: #7ca5dc;
  --sky-strong: #5a8bd1;
  --sky-pale: #eaf2fc;
  --mist: #f5f9fd;
  --white: #ffffff;
  --ink: #1c2b3a;
  --ink-soft: #51637a;
  --line: #dde8f7;
  --blush: #ffe3d9;
  --coral: #f2a488;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -25px rgba(21,62,117,0.35);
  --shadow-card: 0 12px 30px -18px rgba(21,62,117,0.28);
  --container: 1180px;
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-weight: 600; }
h2{ font-weight: 600; }
h3{ font-weight: 500; }

p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-strong);
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ background: var(--navy-deep); transform: translateY(-2px); }
.btn-secondary{
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover{ border-color: var(--sky-strong); transform: translateY(-2px); }
.btn-whatsapp{
  background: #ffffff;
  color: #159c53;
  border-color: #cdeedd;
}
.btn-whatsapp:hover{ background:#e9fbf1; transform: translateY(-2px); }
.btn-block{ width:100%; }
.btn-lg{ padding:16px 32px; font-size:16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 20px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand img{ height: 48px; width:auto; }
.brand{ display:flex; align-items:center; }

.main-nav{ display:flex; align-items:center; gap: 34px; }
.main-nav a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position:relative;
  padding: 6px 0;
}
.main-nav a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px; background: var(--sky-strong);
  transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ color: var(--navy-deep); font-weight:600; }

.header-cta{ display:flex; align-items:center; gap:12px; }
.header-cta .btn-secondary{ display:none; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 40px; height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background: var(--navy-deep);
  position:relative;
}
.nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; width:22px; height:2px; background: var(--navy-deep);
  transition: transform .2s ease;
}
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(760px 420px at 82% -10%, var(--sky-pale) 0%, rgba(234,242,252,0) 70%),
    var(--white);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(34px, 4.4vw, 54px);
  margin-bottom: 20px;
}
.hero h1 .accent{ color: var(--sky-strong); }
.hero p.lead{
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-media{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3.1;
}
.hero-media img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Carousel (hero) ---------- */
.carousel{ position:relative; width:100%; height:100%; display:block; overflow:hidden; }
.carousel-track{ display:flex; width:100%; height:100%; transition: transform .45s ease; will-change: transform; }
.carousel-slide{ flex:0 0 100%; min-width:100%; display:block; overflow:hidden; }
.carousel-slide img{ width:100%; height:100%; object-fit:cover; display:block; }

.carousel-prev, .carousel-next{
  position:absolute; top:50%; transform:translateY(-50%);
  background: rgba(255,255,255,0.9); border: none; width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:22px; cursor:pointer;
  box-shadow: var(--shadow-card); color: var(--navy-deep);
}
.carousel-prev{ left: 14px; }
.carousel-next{ right: 14px; }

.carousel-dots{ position:absolute; left:50%; transform:translateX(-50%); bottom:14px; display:flex; gap:10px; }
.carousel-dots button{ width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.9); border:1px solid rgba(21,62,117,0.08); padding:0; cursor:pointer; }
.carousel-dots button.active{ background: var(--navy-deep); box-shadow: 0 4px 10px rgba(14,44,84,0.15); }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .carousel-prev, .carousel-next{ width:36px; height:36px; font-size:18px; }
}
.hero-badge{
  position:absolute;
  left: -26px; bottom: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display:flex;
  align-items:center;
  gap: 12px;
  max-width: 240px;
}
@media (max-width: 640px){ .hero-badge{ left:12px; bottom:-18px; } }
.hero-badge .dot{
  width: 40px; height:40px; border-radius:50%;
  background: var(--sky-pale);
  display:flex; align-items:center; justify-content:center;
  color: var(--navy);
  font-size:18px;
  flex:none;
}
.hero-badge strong{ display:block; font-size:14px; color: var(--navy-deep); }
.hero-badge span{ font-size:12.5px; color: var(--ink-soft); }

/* trunk-curve divider (signature element) */
.wave-divider{
  display:block;
  width:100%;
  height: 64px;
  margin-top: -1px;
}

/* ---------- Trust strip ---------- */
.trust-strip{
  background: var(--navy);
  color: var(--white);
  padding: 22px 0;
}
.trust-strip .container{
  display:flex;
  flex-wrap:wrap;
  gap: 22px 40px;
  justify-content:space-between;
  align-items:center;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  font-size: 14px;
  color: #dfeaf9;
}
.trust-item strong{ color:#fff; font-family: var(--font-display); font-weight:600; font-size:15px; }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-alt{ background: var(--mist); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Service cards ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-icon{
  width: 52px; height:52px;
  border-radius: 16px;
  background: var(--sky-pale);
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--navy);
}
.service-card h3{ font-size: 17px; margin-bottom:8px; }
.service-card p{ font-size: 14.5px; margin-bottom:14px; }
.service-card .card-link{
  font-size: 13.5px; font-weight:600; color: var(--sky-strong);
  display:inline-flex; align-items:center; gap:6px;
}
.service-card .card-link .arrow{ transition: transform .2s ease; }
.service-card:hover .card-link .arrow{ transform: translateX(4px); }

/* ---------- Full service detail blocks (services page) ---------- */
.service-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items:center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child{ border-bottom:none; }
.service-detail.reverse .service-detail-media{ order:2; }
.service-detail-media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 5/4;
}
.service-detail-media img{ width:100%; height:100%; object-fit:cover; }
.service-detail-text .tag{
  display:inline-block;
  background: var(--sky-pale);
  color: var(--navy);
  font-size:12.5px;
  font-weight:600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service-detail-text h2{ font-size: 28px; margin-bottom:14px; }
.service-detail-text ul{ margin: 18px 0 26px; }
.service-detail-text li{
  display:flex; align-items:flex-start; gap:10px;
  font-size: 15px; color: var(--ink-soft);
  margin-bottom: 10px;
}
.service-detail-text li::before{
  content:"";
  flex:none;
  width:7px; height:7px;
  margin-top:8px;
  border-radius:50%;
  background: var(--coral);
}

@media (max-width: 860px){
  .service-detail, .hero-grid{ grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-media{ order:0; }
}

/* ---------- About / values ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items:center;
}
.about-media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/4.4;
}
.about-media img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 860px){ .about-grid{ grid-template-columns:1fr; } }

.values-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 780px){ .values-grid{ grid-template-columns: 1fr; } }
.value-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--line);
}
.value-card .service-icon{ margin-bottom: 14px; }

/* ---------- Timeline (about) ---------- */
.timeline{ margin-top: 40px; }
.timeline-item{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:first-child{ border-top:none; }
.timeline-item .year{ font-family: var(--font-display); font-weight:600; color: var(--sky-strong); }

/* ---------- Experts ---------- */
.experts-grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 26px;
}
@media (max-width: 940px){ .experts-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .experts-grid{ grid-template-columns: 1fr; } }

.expert-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  text-align:center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.expert-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-card); }
.expert-avatar{
  width: 96px; height:96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), var(--navy));
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 26px;
}
.expert-card h3{ font-size:19px; margin-bottom:6px; }
.expert-role{ color: var(--sky-strong); font-size:15px; font-weight:600; margin-bottom:14px; }
.expert-bio{ font-size:15.5px; }
.expert-tags{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:16px; }
.expert-tags span{
  font-size:13px; font-weight:600; color:var(--navy);
  background: var(--sky-pale); padding:6px 12px; border-radius:999px;
}

/* ---------- Testimonial / stats ---------- */
.stats-strip{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  text-align:center;
}
@media (max-width: 780px){ .stats-strip{ grid-template-columns: repeat(2,1fr); } }
.stat-num{ font-family: var(--font-display); font-size: 36px; font-weight:600; color: var(--navy); }
.stat-label{ font-size:13.5px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 30px;
  flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.cta-banner::after{
  content:"";
  position:absolute; right:-60px; top:-60px;
  width:220px; height:220px; border-radius:50%;
  background: rgba(124,165,220,0.25);
}
.cta-banner h2{ color:#fff; margin-bottom:8px; font-size: 27px; }
.cta-banner p{ color:#cfe0f6; margin-bottom:0; }
.cta-banner-actions{ display:flex; gap:12px; flex-wrap:wrap; position:relative; z-index:1; }

/* ---------- Contact / booking ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items:flex-start;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }

.booking-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-row{ margin-bottom: 18px; }
.form-row label{
  display:block; font-size: 13.5px; font-weight:600; color: var(--navy-deep);
  margin-bottom: 7px;
}
.form-row input, .form-row select, .form-row textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--mist);
  transition: border-color .18s ease, background .18s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--sky-strong);
  background: #fff;
}
.form-two{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .form-two{ grid-template-columns:1fr; } }
.form-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 8px; }
.form-note{ font-size:12.5px; color: var(--ink-soft); margin-top:14px; }

.contact-info-card{
  background: var(--sky-pale);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 20px;
}
.info-row{ display:flex; gap:16px; align-items:flex-start; margin-bottom: 20px; }
.info-row:last-child{ margin-bottom:0; }
.info-row .service-icon{ background:#fff; margin-bottom:0; }
.info-row h4{ font-size:15px; margin-bottom:4px; color:var(--navy-deep); font-family: var(--font-body); font-weight:600; }
.info-row p{ font-size:14px; margin-bottom:0; }

.map-frame{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-deep);
  color: #cfe0f6;
  padding: 64px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-brand img{ height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p{ color: #a9c1e0; font-size:14px; max-width:280px; }
.site-footer h4{ color:#fff; font-size:14px; margin-bottom:16px; font-family: var(--font-body); font-weight:600; }
.site-footer ul li{ margin-bottom:10px; }
.site-footer a{ color:#a9c1e0; font-size:14px; transition: color .2s ease; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 22px; font-size: 13px; color:#88a3c9; flex-wrap:wrap; gap:10px;
}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.social-row a:hover{ background: var(--sky-strong); }

/* ---------- WhatsApp float button ---------- */
.wa-float{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 58px; height:58px;
  border-radius: 50%;
  background: #25d366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.6);
  color:#fff;
  transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.07); }

/* ---------- Page header (interior pages) ---------- */
.page-hero{
  padding: 64px 0 56px;
  background: var(--sky-pale);
  text-align:center;
}
.page-hero h1{ font-size: clamp(36px, 5vw, 54px); margin-bottom:16px; }
.page-hero p{ max-width: 560px; margin: 0 auto; font-size:18px; }
.breadcrumb{ font-size:16px; color: var(--sky-strong); font-weight:600; margin-bottom:18px; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- mobile nav ---------- */
@media (max-width: 900px){
  .main-nav{
    position: fixed; top: 68px; left:0; right:0;
    background: #fff;
    flex-direction:column;
    align-items:flex-start;
    gap: 4px;
    padding: 18px 28px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .main-nav.open{ transform: translateY(0); }
  .main-nav a{ padding: 10px 0; width:100%; }
  .nav-toggle{ display:flex; }
  .header-cta .btn-secondary{ display:none; }
}
