/*
Theme Name: Prestige Maternal Care
Theme URI: https://example.com/
Author: Prestige Maternal Care
Author URI: https://example.com/
Description: A warm, modern maternal and lactation care theme with sections for Home, About Us, Services Offered, Mom & Baby updates, Appointment booking, and Contact. Built for compassion, clarity, and trust.
Version: 2.3.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prestige-maternal-care
*/

/* =========================================================
   1. DESIGN TOKENS
   Signature motif: the "growth curve" — a soft rising line
   borrowed from a pediatric growth chart. It reappears as a
   hero flourish, a section divider, and a nav underline.
========================================================= */
:root{
  /* color — soft childish feminine pink */
  --color-bg:        #FFF7FB;
  --color-bg-alt:    #FCEAF5;
  --color-primary:   #e687c9;
  --color-primary-dark: #c45fa8;
  --color-accent:    #e687c9;
  --color-accent-dark:#d973b8;
  --color-accent-soft:#f9d6ec;
  --color-text:      #5a3a52;
  --color-text-muted:#9a738c;
  --color-white:     #FFFFFF;
  --color-border:    #f3cce4;

  /* hero fade — light pink band above wave */
  --color-hero-fade: #f5d0e8;

  /* type */
  --font-display: "Great Vibes", cursive, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* scale */
  --h1: clamp(2.8rem, 4.5vw + 1rem, 4.2rem);
  --h2: clamp(2.4rem, 3vw + 1rem, 3.8rem);
  --h3: 1.8rem;
  --body: 1.0625rem;
  --small: 0.875rem;

  /* layout */
  --radius-sm: 14px;
  --radius-lg: 26px;
  --container: 1180px;
  --gutter: 24px;

  --shadow-card: 0 10px 30px -12px rgba(230,135,201,0.22);
  --shadow-premium: 0 20px 40px -15px rgba(230,135,201,0.16);
}

/* =========================================================
   2. RESET & BASE
========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body{
  margin:0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img{ max-width:100%; display:block; }
a{ color: var(--color-primary); text-decoration:none; transition: color 0.2s ease; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--color-primary-dark); line-height:1.12; margin:0 0 .5em; font-weight:400; font-style:normal; }
h1{ font-size: var(--h1); letter-spacing:0; }
h2{ font-size: var(--h2); letter-spacing:0; }
h3{ font-size: var(--h3); font-weight:400; }
p{ margin:0 0 1.1em; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section{ position:relative; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* =========================================================
   3. UTILITIES
========================================================= */
.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  padding: .4em .9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
  max-width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.text-muted{ color: var(--color-text-muted); }
.bg-alt{ background: var(--color-bg-alt); }
.section-pad{ padding: 96px 0; }
@media (max-width: 780px){ .section-pad{ padding: 64px 0; } }

/* growth-curve divider between sections */
.curve-divider{
  display:block;
  width:100%;
  height:80px;
  margin: 0;
  padding: 0;
  /* transparent so the hero's solid --color-hero-fade shows through above the wave */
  background: transparent;
  overflow: hidden;
  line-height: 0;
  vertical-align: bottom;
}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family: var(--font-body); font-weight:700; font-size: .95rem;
  padding: .95em 1.7em; border-radius: 999px; border:2px solid transparent;
  cursor:pointer; transition: transform .2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-3px); }
.btn-primary{ background: var(--color-primary); color: var(--color-white); box-shadow: var(--shadow-card); }
.btn-primary:hover{ background: var(--color-accent-dark); color: var(--color-white); box-shadow: 0 14px 28px -10px rgba(230,135,201,0.45); }
.btn-outline{ border-color: var(--color-primary); color: var(--color-primary); background:transparent; }
.btn-outline:hover{ background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* cards */
.card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  border:1px solid var(--color-border);
  height:100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

/* =========================================================
   4. HEADER / NAV
========================================================= */
.site-header{
  position: sticky; top:0; z-index: 999;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom:1px solid var(--color-border);
  box-shadow: 0 4px 30px -10px rgba(230,135,201,0.12);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 18px var(--gutter); max-width: var(--container); margin:0 auto; }
.site-branding{ display:flex; align-items:center; gap:.6em; }
.site-branding a{ color: var(--color-primary); font-family: var(--font-display); font-weight:700; font-size:1.35rem; text-decoration:none; }
.site-branding img{ max-height:50px; width:auto; display:block; }
.site-branding .custom-logo-link{ display:flex; align-items:center; }
/* Keep wide logos from crushing the menu */
.site-branding .custom-logo-link img{
  max-height: 50px;
  max-width: min(220px, 28vw);
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-branding .tagline{ display:block; font-family: var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color: var(--color-text-muted); }

/* FIX: Align navigation links and CTA button side-by-side using Flexbox */
.primary-nav {
  display: flex !important;
  align-items: center;
  gap: 2.1em;
}
.primary-nav ul{ display:flex !important; align-items:center; gap: 2.1em; margin: 0; padding: 0; }
.primary-nav a{
  font-family: var(--font-mono); font-size:.82rem; letter-spacing:.06em; text-transform:uppercase;
  color: var(--color-text); position:relative; padding-bottom:6px;
}
.primary-nav a:not(.btn)::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:4px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'><path d='M0 6 C 8 6,10 1,18 1 S 30 6,40 6' fill='none' stroke='%23e687c9' stroke-width='2'/></svg>");
  background-repeat:no-repeat; background-size:100% 100%;
  opacity:0; transform: translateY(3px); transition: opacity .2s ease, transform .2s ease;
}
.primary-nav a:not(.btn):hover::after,
.primary-nav a:not(.btn).current::after,
.primary-nav .current-menu-item > a::after{ opacity:1; transform:translateY(0); }
.primary-nav .btn{ margin-left: .5em; }
.primary-nav a.btn-primary,
.primary-nav .btn-primary{
  background: var(--color-primary);
  color: var(--color-white);
  padding: .95em 1.7em;
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--font-body);
  font-size: .95rem;
  border: 2px solid transparent;
}
.primary-nav a.btn-primary:hover,
.primary-nav .btn-primary:hover{
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--color-primary-dark); margin:5px 0; transition:.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Responsiveness */
@media (max-width: 1024px){
  .nav-toggle{
    display: block;
    position: relative;
    z-index: 99999;
  }
  .primary-nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #FFF7FB;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 60px;
    gap: 0;
    z-index: 99998;
    box-sizing: border-box;
  }
  .primary-nav.is-open{
    transform: translateX(0);
  }
  .primary-nav ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .primary-nav li{
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav a{
    display: block;
    padding: 20px 0;
    font-size: 1.05rem;
    width: 100%;
    box-sizing: border-box;
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
  }
  .primary-nav a:not(.btn)::after{ display: none; }
  .primary-nav .btn{
    margin: 28px 0 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    justify-content: center;
  }
  body.nav-open{ overflow: hidden; }
}

/* =========================================================
   5. HERO — premium editorial (cream + blush palette)
========================================================= */
.hero{
  position: relative;
  padding: 80px 0 0;
  overflow: visible;
  background-color: var(--color-hero-fade);
  background-image:
    radial-gradient(ellipse 55% 40% at 50% 0%, color-mix(in srgb, var(--color-accent) 22%, transparent) 0%, transparent 70%),
    linear-gradient(
      180deg,
      var(--color-bg) 0%,
      var(--color-bg-alt) 45%,
      transparent 82%
    );
}
.hero > .container{ position: relative; z-index: 2; }
.hero .curve-divider{
  position: relative;
  z-index: 2;
  margin-top: 3.25rem;
  background: transparent;
}

/* Asymmetric grid — image sits slightly lower than the copy */
.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 40px 64px;
  align-items: center;
}
.hero-copy{
  max-width: 100%;
  padding-top: 0.35rem;
  padding-right: 0.5rem;
}
.hero h1{ margin-bottom: .45em; color: var(--color-primary); }
.hero-lead{
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 44ch;
  line-height: 1.65;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.75em;
}

/* Eyebrow with accent mark */
.hero-eyebrow{
  gap: .65em;
  padding: .42em .95em .42em .75em;
  margin-bottom: 1.15em;
  background: var(--color-primary);
  color: var(--color-white);
}
.eyebrow-mark{
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* Soft organic blobs — accents only, not concentric with the photo */
.hero-blobs{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob{
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.hero-blob--1{
  width: min(320px, 38vw);
  height: min(280px, 34vw);
  right: -2%;
  top: 38%;
  border-radius: 58% 42% 48% 52%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--color-primary) 55%, white), transparent 72%);
  opacity: .42;
  filter: blur(10px);
}
.hero-blob--2{
  width: min(210px, 26vw);
  height: min(230px, 28vw);
  right: 26%;
  bottom: 10%;
  border-radius: 60% 40% 55% 45%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--color-primary) 35%, white), transparent 72%);
  opacity: .28;
  filter: blur(12px);
}
.hero-blob--3{
  width: min(150px, 18vw);
  height: min(150px, 18vw);
  right: 6%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 40%, white), transparent 70%);
  opacity: .3;
  filter: blur(8px);
}

/* Scattered dots — top-left texture */
.hero-dots{
  position: absolute;
  z-index: 0;
  top: 14%;
  left: 5%;
  width: 150px;
  height: 130px;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(circle, var(--color-primary) 1.1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 75%);
}

/* Photo + floating badge */
.hero-art{
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  margin-top: 1.5rem;
  margin-right: -0.25rem;
}
.hero-photo-wrap{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  background: var(--color-bg-alt);
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--color-primary) 28%, white),
    0 0 0 22px color-mix(in srgb, var(--color-primary) 16%, transparent),
    var(--shadow-premium);
}
.hero-art .hero-photo,
.hero-photo-wrap .hero-photo{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: 58% 22%;
  border-radius: 0;
}

.hero-badge{
  position: absolute;
  z-index: 3;
  left: -2%;
  bottom: 10%;
  width: min(190px, 56%);
  padding: 13px 15px 12px;
  background: color-mix(in srgb, var(--color-white) 94%, var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 14px 34px -16px rgba(196, 95, 168, 0.35);
  transform: rotate(-2.5deg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge-stars{
  display: flex;
  gap: 2px;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.hero-badge-stat{
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.25;
}
.hero-badge-meta{
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Button polish */
.btn-with-arrow .btn-arrow{
  display: inline-block;
  flex-shrink: 0;
  transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-with-arrow:hover .btn-arrow{ transform: translateX(4px); }
.hero-actions .btn{
  box-shadow: 0 6px 18px -10px rgba(196, 95, 168, 0.28);
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hero-actions .btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px rgba(196, 95, 168, 0.38);
}

/* Motion — default visible; animate only when motion is OK */
.hero-reveal,
.hero-eyebrow,
.hero-art{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference){
  .hero-blob--1{ animation: heroFloatA 6.2s ease-in-out infinite; }
  .hero-blob--2{ animation: heroFloatB 5.1s ease-in-out infinite; animation-delay: -1.5s; }
  .hero-blob--3{ animation: heroFloatC 7s ease-in-out infinite; animation-delay: -2.6s; }
  .hero-badge{ animation: heroBadgeFloat 5.4s ease-in-out infinite; }

  .hero-reveal{
    opacity: 0;
    transform: translateY(16px);
    animation: heroRevealIn .75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-reveal--1{ animation-delay: .08s; }
  .hero-reveal--2{ animation-delay: .2s; }
  .hero-reveal--3{ animation-delay: .34s; }
  .hero-eyebrow{
    opacity: 0;
    transform: translateY(12px);
    animation: heroRevealIn .7s cubic-bezier(0.22, 1, 0.36, 1) .02s forwards;
  }
  .hero-art{
    opacity: 0;
    animation: heroRevealIn .9s cubic-bezier(0.22, 1, 0.36, 1) .2s forwards;
  }
}

@keyframes heroRevealIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes heroFloatA{
  0%, 100%{ transform: translate3d(0, 0, 0); }
  50%{ transform: translate3d(6px, -12px, 0); }
}
@keyframes heroFloatB{
  0%, 100%{ transform: translate3d(0, 0, 0) rotate(0deg); }
  50%{ transform: translate3d(-8px, 10px, 0) rotate(3deg); }
}
@keyframes heroFloatC{
  0%, 100%{ transform: translate3d(0, 0, 0); }
  50%{ transform: translate3d(7px, -9px, 0); }
}
@keyframes heroBadgeFloat{
  0%, 100%{ transform: rotate(-2.5deg) translateY(0); }
  50%{ transform: rotate(-2.5deg) translateY(-7px); }
}

.page-hero{ padding: 64px 0 0; text-align: center; }
.page-hero .eyebrow{ margin-left: auto; margin-right: auto; }
.page-hero h1{ margin-bottom: .2em; }

@media (max-width: 900px){
  .hero{ padding-top: 56px; overflow: hidden; }
  .hero-grid{ grid-template-columns: 1fr; gap: 28px; }
  .hero-copy{ max-width: none; padding: 0; order: 2; }
  .hero-art{
    order: 1;
    max-width: 320px;
    margin: 0 auto;
    justify-self: center;
  }
  .hero-badge{ left: 0; bottom: 6%; width: min(170px, 60%); }
  .hero-dots{ opacity: .2; }
  .hero-blob--1{ opacity: .3; }
}

@media (prefers-reduced-motion: reduce){
  .btn-with-arrow:hover .btn-arrow{ transform: none; }
  .hero-actions .btn:hover{ transform: none; }
}

/* =========================================================
   6. QUICK LINK / FEATURE CARDS
========================================================= */
.grid{ display:grid; gap: 26px; }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-2{ grid-template-columns: repeat(2,1fr); }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2,1fr);} .grid-3{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.link-card{ display:flex; flex-direction:column; gap:14px; transition: transform .25s ease, box-shadow 0.25s ease; }
.link-card:hover{ transform: translateY(-5px); }
.link-card .icon{ width:46px; height:46px; color: var(--color-accent); transition: transform 0.25s ease; }
.link-card:hover .icon{ transform: scale(1.1); }
.link-card .go{ margin-top:auto; font-family:var(--font-mono); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--color-primary); font-weight: 600; }

.feature{ text-align:left; }
.feature .num{ font-family:var(--font-mono); color: var(--color-accent-dark); font-size:.8rem; letter-spacing:.1em; font-weight: 600; }

/* =========================================================
   7. SERVICES / INNER PAGES
========================================================= */
.single-post-content{ max-width: 800px; margin: 0 auto; line-height: 1.8; }
.single-post-content h1{ color: var(--color-primary-dark); font-family: var(--font-display); }
.single-post-content p { margin-bottom: 1.5em; }

/* =========================================================
   10. CTA BANNER
========================================================= */
.cta-banner{ background: var(--color-primary); color: var(--color-white); border-radius: var(--radius-lg); padding: 56px 46px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; box-shadow: var(--shadow-premium); }
.cta-banner h2{ color: var(--color-white); margin:0; font-size: clamp(1.7rem, 2.2vw + 1rem, 2.3rem); }
.cta-banner p{ color: var(--color-accent-soft); margin:.4em 0 0; }
.cta-banner .btn-outline{ border-color: var(--color-white); color: var(--color-white); }
.cta-banner .btn-outline:hover{ background: var(--color-white); color: var(--color-primary); }

/* =========================================================
   11. FOOTER
========================================================= */
.site-footer{ background: var(--color-primary-dark); color: var(--color-accent-soft); padding: 60px 0 30px; margin-top: 60px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer h4{ color: var(--color-white); font-family: var(--font-mono); font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.5em; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.site-footer a{ color: var(--color-accent-soft); transition: color 0.2s ease; }
.site-footer a:hover{ color: var(--color-white); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size:.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color: var(--color-accent-soft); }
.footer-links li{ margin-bottom: .6em; }

/* =========================================================
   12. 404 / archive helpers
========================================================= */
.not-found{ text-align:center; padding: 100px 0; }

/* =========================================================
   12b. SHARED FORM STYLES
========================================================= */
.form-wrap{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-border);
}
@media (max-width: 620px){ .form-wrap{ padding: 28px 22px; } }

.field{ display: flex; flex-direction: column; gap: 6px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px){ .form-row{ grid-template-columns: 1fr; } }

.field label{
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-primary-dark);
}

.field input,
.field select,
.field textarea{
  width: 100%;
  padding: .85em 1.1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.appt-form, form{ display: flex; flex-direction: column; gap: 20px; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230,135,201,0.2);
}

.field textarea{
  min-height: 130px;
  resize: vertical;
}

.form-msg{
  border-radius: var(--radius-sm);
  padding: .9em 1.2em;
  font-size: .92rem;
  font-weight: 500;
}
.form-msg.success{
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}
.form-msg.error{
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}


/* =========================================================
   13. PAGE HERO (inner pages)
========================================================= */
.page-hero{
  background-color: var(--color-hero-fade);
  background-image:
    radial-gradient(ellipse 55% 40% at 50% 0%, color-mix(in srgb, var(--color-accent) 28%, transparent) 0%, transparent 70%),
    linear-gradient(
      180deg,
      var(--color-bg) 0%,
      var(--color-bg-alt) 45%,
      transparent 82%
    );
  color: var(--color-text);
  padding: 80px 0 0;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow{ background: var(--color-accent-soft); color: var(--color-accent-dark); }
.page-hero h1{ color: var(--color-primary-dark); margin-bottom: .5em; }
.page-hero-sub{ color: var(--color-text-muted); font-size: 1.15rem; max-width: 56ch; margin: 0 auto; line-height: 1.7; }
.hero-wave-bottom{
  display: block;
  width: 100%;
  height: 70px;
  margin-top: 3rem;
  margin-bottom: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent; /* page-hero solid fade shows through above the wave */
}
.hero-wave-bottom svg{ width: 100%; height: 100%; display: block; vertical-align: bottom; }
.page-hero + .section-pad,
.hero + .section-pad{ margin-top: 0; }

/* =========================================================
   14. SECTION HEADER (centered headings)
========================================================= */
.section-header{ text-align: center; max-width: 100%; margin: 0 auto 3.5rem; }
.section-sub{ color: var(--color-text-muted); font-size: 1.05rem; margin: 0; }

/* =========================================================
   15. ABOUT US PAGE
========================================================= */
/* Mission Split */
.mission-split{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.mission-text h2{ margin-bottom: .6em; }
.mission-text p{ color: var(--color-text-muted); }
.mission-text .btn{ margin-top: 1.4rem; }
.mission-visual{ display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.mission-blob svg{ width: 100%; max-width: 340px; height: auto; }
.mission-photo{
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: block;
}
.stat-chips{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.stat-chip{
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-chip.accent{ background: var(--color-primary); }
.stat-chip .stat-num{ display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-primary); }
.stat-chip.accent .stat-num{ color: var(--color-white); }
.stat-chip .stat-label{ font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.stat-chip.accent .stat-label{ color: rgba(255,255,255,0.7); }
@media (max-width: 780px){ .mission-split{ grid-template-columns: 1fr; } }

/* Team Cards */
.team-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-premium); }
.team-card.featured-team{ border-color: var(--color-primary); }
.team-avatar{ width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid var(--color-border); }
.team-avatar svg{ width: 100%; height: 100%; }
.team-info h3{ margin-bottom: .1em; font-size: 1.2rem; }
.team-role{ font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-dark); }
.team-info p{ margin-top: .6em; }
.team-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.team-tags span{
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .3em .9em;
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
}

/* Values Grid */
.value-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.value-card:hover{ transform: translateY(-4px); }
.value-icon{
  width: 48px; height: 48px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.value-icon svg{ width: 22px; height: 22px; }

/* =========================================================
   16. SERVICES PAGE
========================================================= */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px){ .services-grid{ grid-template-columns: 1fr; } }

.service-item{
  display: flex; gap: 20px; align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-item:hover{ transform: translateY(-4px); box-shadow: var(--shadow-premium); }
.service-icon-wrap{
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.service-icon-wrap svg{ width: 26px; height: 26px; }
.service-photo-wrap{
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.service-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-item.has-photo{
  align-items: center;
}
.service-content h3{ margin-bottom: .4em; font-size: 1.15rem; }
.service-list{ margin-top: .8em; display: flex; flex-direction: column; gap: 6px; }
.service-list li{
  padding-left: 1.2em;
  position: relative;
  color: var(--color-text-muted);
  font-size: .92rem;
}
.service-list li::before{
  content: "→";
  position: absolute; left: 0;
  color: var(--color-accent);
  font-size: .8rem;
  top: .1em;
}

/* Process Steps */
.steps-row{
  display: flex; align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.step-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  flex: 1;
  min-width: 0;
  text-align: center;
}
.step-num{
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-bg-alt);
  -webkit-text-stroke: 2px var(--color-primary);
  display: block;
  margin-bottom: .3em;
}
.step-connector{ flex-shrink: 0; width: 48px; display: flex; align-items: center; justify-content: center; }
.step-connector svg{ width: 48px; }
@media (max-width: 900px){
  .steps-row{ flex-wrap: wrap; gap: 16px; }
  .step-connector{ display: none; }
  .step-card{ flex: 1 1 160px; }
}

/* =========================================================
   17. MOM & BABY PAGE
========================================================= */
/* Category Tabs */
.category-tabs{
  display: flex; gap: 10px; flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}
.cat-tab{
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-text-muted);
  padding: .7em 1.2em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.cat-tab:hover, .cat-tab.active{
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Featured Article */
.featured-article{
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-border);
}
.featured-art{ height: 100%; min-height: 300px; }
.featured-art svg, .featured-art img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-content{ padding: 40px 40px 40px 10px; }
.featured-content h2{ font-size: clamp(1.4rem, 2vw + 1rem, 2rem); margin-bottom: .6em; }
@media (max-width: 780px){
  .featured-article{ grid-template-columns: 1fr; }
  .featured-content{ padding: 30px; }
}

/* Article Category Badge */
.article-cat{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--color-accent-soft); color: var(--color-accent-dark);
  padding: .3em .8em; border-radius: 999px;
  margin-bottom: .7em;
}

/* Article Meta */
.article-meta{ display: flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--color-text-muted); flex-wrap: wrap; margin: .8em 0 1.2em; }
.meta-author{ font-weight: 600; color: var(--color-primary); }
.meta-sep{ color: var(--color-border); }

/* Articles Grid */
.articles-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px){ .articles-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .articles-grid{ grid-template-columns: 1fr; } }

.article-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.article-thumb{ aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-alt); }
.article-thumb-placeholder svg, .article-img, .article-photo{ width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card:hover .article-photo{ transform: scale(1.05); }
.article-photo{ transition: transform 0.4s ease; }
.article-body{ padding: 22px 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-body h3{ font-size: 1.05rem; margin: 0; }
.article-body h3 a{ color: var(--color-primary-dark); }
.article-body h3 a:hover{ color: var(--color-accent); }
.article-excerpt{ font-size: .9rem; }

/* Newsletter */
.newsletter-box{
  background: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  color: var(--color-white);
  box-shadow: var(--shadow-premium);
}
.newsletter-icon{ flex-shrink: 0; }
.newsletter-icon svg{ width: 60px; height: 60px; }
.newsletter-box h2{ color: var(--color-white); font-size: clamp(1.4rem, 2vw + 1rem, 2rem); margin-bottom: .3em; }
.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.newsletter-form input{
  flex: 1 1 160px; min-width: 0; width: 100%;
  padding: .9em 1.2em; border-radius: 999px;
  border: none; font-size: .95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}
.newsletter-form input::placeholder{ color: rgba(255,255,255,0.5); }
.newsletter-form input:focus{ outline: 2px solid var(--color-accent); }
@media (max-width: 780px){ .newsletter-box{ padding: 36px 28px; } .newsletter-form{ width: 100%; } }

/* =========================================================
   18. APPOINTMENT PAGE
========================================================= */
.appt-layout{ display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: flex-start; }
@media (max-width: 900px){ .appt-layout{ grid-template-columns: 1fr; } }

.appt-info-card{
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.appt-info-icon{
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.appt-info-icon svg{ width: 20px; height: 20px; }
.appt-info-card h4{ font-size: .9rem; margin-bottom: .3em; }

.hours-list{ display: flex; flex-direction: column; gap: 4px; }
.hours-list li{ display: flex; justify-content: space-between; font-size: .88rem; color: var(--color-text-muted); gap: 1em; }
.hours-list .closed{ color: var(--color-accent-dark); }

.appt-checklist{
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  border: 1px solid var(--color-border);
}
.appt-checklist h4{ margin-bottom: 1rem; font-size: .88rem; }
.appt-checklist ul{ display: flex; flex-direction: column; gap: 10px; }
.appt-checklist li{ display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--color-text-muted); }
.appt-checklist li svg{ width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

/* =========================================================
   19. CONTACT PAGE
========================================================= */
.contact-layout{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: flex-start; }
@media (max-width: 900px){ .contact-layout{ grid-template-columns: 1fr; } }

.contact-detail-list{ display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.contact-detail{ display: flex; gap: 16px; align-items: flex-start; }
.contact-icon{
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.contact-icon svg{ width: 20px; height: 20px; }
.contact-detail h4{ font-size: .88rem; margin-bottom: .2em; color: var(--color-primary-dark); }
.contact-detail p, .contact-detail a{ color: var(--color-text-muted); font-size: .95rem; }

.map-placeholder{ position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.map-placeholder svg{ width: 100%; display: block; }
.map-overlay{
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
}

/* FAQ Grid */
.faq-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 720px){ .faq-grid{ grid-template-columns: 1fr; } }
.faq-item{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.faq-item h4{ margin-bottom: .5em; color: var(--color-primary-dark); font-size: 1.05rem; }

/* =========================================================
   8. ANIMATIONS & TRANSITIONS
========================================================= */

/* Smooth Scrolling */
html{
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Apply Animations (hero entrance handled in §5 HERO) */

.card{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.link-card:hover .icon{
  transform: scale(1.1) rotate(5deg);
}

.link-card .icon{
  transition: transform 0.3s ease;
}

.feature:hover .num{
  transform: scale(1.1);
  color: var(--color-accent);
}

.feature .num{
  transition: all 0.3s ease;
}

.service-item{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover{
  transform: translateY(-5px);
  background: var(--color-white);
  box-shadow: var(--shadow-premium);
}

.service-icon-wrap{
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon-wrap{
  transform: scale(1.1);
}

.article-card{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.article-card:hover .article-thumb-placeholder{
  transform: scale(1.05);
}

.article-thumb-placeholder{
  transition: transform 0.4s ease;
}

.team-card{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.team-avatar{
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar{
  transform: scale(1.05);
}

.value-card{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.value-card:hover .value-icon{
  transform: scale(1.1) rotate(5deg);
}

.value-icon{
  transition: transform 0.3s ease;
}

.btn{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after{
  width: 300px;
  height: 300px;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 135, 201, 0.22);
}

.btn:active{
  transform: translateY(0);
}

.btn-outline:hover{
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.cta-banner{
  animation: fadeInUp 0.8s ease-out;
}

.stat-chip{
  transition: all 0.3s ease;
}

.stat-chip:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.stat-chip.accent:hover{
  transform: scale(1.05);
}

/* Section Animations on Scroll */
.section-pad{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-pad.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation for Grid Items */
.grid > *{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.grid.visible > *:nth-child(1){ transition-delay: 0.1s; }
.grid.visible > *:nth-child(2){ transition-delay: 0.2s; }
.grid.visible > *:nth-child(3){ transition-delay: 0.3s; }
.grid.visible > *:nth-child(4){ transition-delay: 0.4s; }
.grid.visible > *:nth-child(5){ transition-delay: 0.5s; }
.grid.visible > *:nth-child(6){ transition-delay: 0.6s; }

.grid.visible > *{
  opacity: 1;
  transform: translateY(0);
}

/* Hero Wave Animation */
.hero-wave-bottom svg{
  animation: fadeIn 1.2s ease-out;
}

/* Mission Split Animation */
.mission-split > div{
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mission-split > .mission-text{
  transform: translateX(-30px);
}

.mission-split > .mission-visual{
  transform: translateX(30px);
}

.mission-split.visible > .mission-text,
.mission-split.visible > .mission-visual{
  opacity: 1;
  transform: translateX(0);
}

/* Contact Detail Animation */
.contact-detail{
  transition: all 0.3s ease;
}

.contact-detail:hover{
  transform: translateX(10px);
}

.contact-detail:hover .contact-icon{
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.contact-icon{
  transition: all 0.3s ease;
}

/* FAQ Item Animation */
.faq-item{
  transition: all 0.3s ease;
}

.faq-item:hover{
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

/* Form Input Animations */
input, textarea, select{
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 135, 201, 0.15);
}

/* Newsletter Box Animation */
.newsletter-box{
  animation: fadeInUp 0.8s ease-out;
}

/* Category Tab Animation */
.cat-tab{
  transition: all 0.3s ease;
}

.cat-tab:hover{
  transform: translateY(-2px);
}

.cat-tab.active{
  animation: scaleIn 0.3s ease;
}

/* Featured Article Animation */
.featured-article{
  animation: fadeInUp 0.8s ease-out;
}

/* Appt Info Card Animation */
.appt-info-card{
  transition: all 0.3s ease;
}

.appt-info-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

/* Appt Checklist Animation */
.appt-checklist li{
  transition: all 0.3s ease;
}

.appt-checklist li:hover{
  transform: translateX(5px);
}

.appt-checklist li svg{
  transition: transform 0.3s ease;
}

.appt-checklist li:hover svg{
  transform: scale(1.2);
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Bounce Animation for Buttons */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.btn-primary:hover{
  animation: bounce 0.5s ease;
}

/* Text Gradient Animation */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Animation Adjustments */
@media (max-width: 1024px){
  .grid > *,
  .section-pad,
  .mission-split > div{
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   WPForms booking form — match theme form styles
========================================================= */
.form-wrap .wpforms-container {
  margin: 0;
}
.form-wrap .wpforms-field {
  padding: 0 0 1rem;
}
.form-wrap .wpforms-field-label {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: .4rem;
}
.form-wrap .wpforms-field input.wpforms-field-medium,
.form-wrap .wpforms-field select.wpforms-field-medium,
.form-wrap .wpforms-field textarea.wpforms-field-medium,
.form-wrap .wpforms-field input[type="text"],
.form-wrap .wpforms-field input[type="email"],
.form-wrap .wpforms-field input[type="tel"],
.form-wrap .wpforms-field select,
.form-wrap .wpforms-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .85em 1em;
  font-family: var(--font-body);
  background: var(--color-white);
}
.form-wrap .wpforms-submit-container {
  margin-top: .5rem;
}
.form-wrap .wpforms-submit {
  width: 100%;
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 1.1em !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.form-wrap .wpforms-submit:hover {
  background: var(--color-accent-dark) !important;
  color: var(--color-white) !important;
}
.form-wrap .wpforms-confirmation-container-full {
  border-radius: var(--radius-sm);
  border-color: var(--color-primary);
}

/* =========================================================
   20. MOBILE APP LAYOUT — Android / phone first pass
   Prevents cut-off sections, horizontal scroll, cramped CTAs
========================================================= */
img, svg, video, iframe, embed, object{
  max-width: 100%;
  height: auto;
}
iframe{ max-width: 100%; }
table{ display: block; max-width: 100%; overflow-x: auto; }

/* Elementor pages — keep widgets inside the viewport */
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.elementor-widget-container{
  max-width: 100%;
}
.elementor-section.elementor-section-boxed > .elementor-container{
  max-width: 100%;
}
@media (max-width: 767px){
  .elementor-section{
    overflow-x: clip;
  }
  .elementor-column-gap-default > .elementor-column > .elementor-element-populated,
  .elementor-column-gap-extended > .elementor-column > .elementor-element-populated,
  .elementor-column-gap-wide > .elementor-column > .elementor-element-populated,
  .elementor-column-gap-wider > .elementor-column > .elementor-element-populated{
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Tablet: stack dense layouts earlier */
@media (max-width: 900px){
  .steps-row{ flex-wrap: wrap; gap: 16px; }
  .step-connector{ display: none; }
  .step-card{ flex: 1 1 100%; }
  .service-item,
  .service-item.has-photo{
    flex-direction: column;
    align-items: flex-start;
  }
  .service-photo-wrap{ width: 100%; height: 160px; }
  .form-row{ grid-template-columns: 1fr; }
  .cta-banner{
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 36px 24px;
    gap: 20px;
  }
  .cta-banner .btn,
  .cta-banner .btn-outline{ width: 100%; max-width: 100%; }
  .newsletter-box{
    flex-direction: column;
    align-items: stretch;
    padding: 32px 22px;
    gap: 20px;
  }
  .newsletter-form{
    width: 100%;
    margin-left: 0;
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form .btn{ width: 100%; min-width: 0; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .page-hero{ padding: 48px 0 0; }
  .page-hero-sub{ font-size: 1rem; padding: 0 4px; }
  .section-header{ margin-bottom: 2.25rem; padding: 0 4px; }
  .hero-art{ margin-right: 0; justify-self: center; }
}

/* Phone: app-like density, safe areas, no overflow */
@media (max-width: 620px){
  * {
    -webkit-tap-highlight-color: transparent;
  }
  :root{
    --gutter: 16px;
    --radius-sm: 8px;
    --radius-lg: 16px;
  }
  body {
    line-height: 1.5;
  }
  .site-header, .btn, .cat-tab, .nav-toggle {
    user-select: none;
  }

  .header-inner{
    padding: 8px var(--gutter);
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    gap: 12px;
  }
  .site-branding a{ font-size: 1.15rem; line-height: 1.2; }
  .site-branding .tagline{ display: none; }
  .site-branding .custom-logo-link img{
    max-height: 36px;
    max-width: min(160px, 52vw);
  }

  .section-pad{ padding: 24px 0; }
  .card{ padding: 16px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .btn{
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 48px;
    padding: .85em 1.25em;
  }

  .hero{ padding-top: 24px; overflow: hidden; }
  .hero-grid{ gap: 20px; }
  .hero-art{
    max-width: min(280px, 78vw);
    margin: 0 auto;
    margin-right: auto;
  }
  .hero-badge{
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 24px auto 0;
    transform: none;
    animation: none !important;
  }
  .hero-lead{ font-size: 1rem; max-width: none; margin-bottom: 0; }
  .hero-photo-wrap,
  .hero-art .hero-photo-wrap{
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--color-primary) 28%, white),
      0 0 0 14px color-mix(in srgb, var(--color-primary) 14%, transparent),
      var(--shadow-card);
  }
  .hero-blob--1,
  .hero-blob--2,
  .hero-blob--3{ opacity: .22; }
  .hero-dots{ display: none; }

  .hero-wave-bottom{ height: 32px; margin-top: 1.5rem; }

  .stat-chips{ gap: 12px; }
  .stat-chip{ flex: 1 1 calc(50% - 12px); min-width: 0; padding: 12px; }
  .stat-chip .stat-num{ font-size: 1.25rem; }

  .form-wrap{ padding: 16px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .hours-list li{ flex-wrap: wrap; gap: 4px 1em; }
  .category-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
  }
  .category-tabs::-webkit-scrollbar{ display: none; }
  .cat-tab{ flex: 0 0 auto; white-space: nowrap; padding: .65em .9em; scroll-snap-align: start; }

  .featured-content{ padding: 16px; }
  .article-body{ padding: 16px; }

  .cta-banner{ border-radius: var(--radius-sm); padding: 24px 16px; }
  .cta-banner h2{ font-size: 1.35rem; }

  .site-footer{
    padding: 32px 0 calc(24px + env(safe-area-inset-bottom, 0px));
    margin-top: 32px;
  }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }

  .appt-info-card,
  .contact-card{ flex-wrap: wrap; padding: 16px; }
  .appt-checklist{ padding: 16px; }

  /* Soften hover lifts on touch */
  .card:hover,
  .service-item:hover,
  .article-card:hover,
  .team-card:hover,
  .value-card:hover,
  .link-card:hover,
  .btn:hover{
    transform: none;
  }
}

/* Very small phones */
@media (max-width: 380px){
  :root{ --gutter: 14px; }
  .hero-art{ max-width: min(240px, 86vw); }
  .stat-chip{ flex: 1 1 100%; }
}

/* =========================================================
   ANDROID APP-LIKE MOBILE OVERHAUL
   Proper spacing, cards, touch targets, and layout
========================================================= */
@media (max-width: 620px){

  /* ---- Font sizes — scaled for Great Vibes on mobile ---- */
  :root{
    --gutter: 16px;
    --radius-lg: 18px;
    --radius-sm: 10px;
    --h1: clamp(2rem, 10vw, 2.6rem);
    --h2: clamp(1.8rem, 8vw, 2.4rem);
    --h3: 1.5rem;
  }

  /* ---- Global center-align all headings & text on mobile ---- */
  h1, h2, h3, h4{
    text-align: center;
  }
  p{
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
  }

  /* ---- Full-width safe container ---- */
  .container{
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
    box-sizing: border-box;
  }

  /* ---- Section padding ---- */
  .section-pad{ padding: 36px 0; }

  /* ---- Page hero ---- */
  .page-hero{
    padding: 40px 0 0;
    text-align: center;
  }
  .page-hero .eyebrow{ margin-left: auto; margin-right: auto; }
  .page-hero h1{
    font-size: var(--h1);
    margin-bottom: 0.4em;
    line-height: 1.15;
    padding: 0 4px;
  }
  .page-hero-sub{
    font-size: 0.93rem;
    line-height: 1.65;
    text-align: center;
    max-width: 100%;
    padding: 0 4px;
  }

  /* ---- Section headers — all centered ---- */
  .section-header{
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 4px;
  }
  .section-header .eyebrow{ margin-left: auto; margin-right: auto; }
  .section-header h2{ font-size: var(--h2); line-height: 1.15; }
  .section-sub{
    font-size: 0.93rem;
    text-align: center;
    max-width: 100%;
  }

  /* ---- Buttons — centered on mobile ---- */
  .btn{
    display: flex;
    justify-content: center;
    text-align: center;
    min-height: 50px;
    font-size: 0.95rem;
    padding: 0.9em 1.4em;
    white-space: normal;
    line-height: 1.3;
  }
  .hero-actions{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 1.4em;
  }
  .hero-actions .btn{
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .cta-banner .btn,
  .form-wrap .btn,
  [style*="width:100%"].btn{
    width: 100%;
    justify-content: center;
  }

  /* ---- Hero section ---- */
  .hero{ padding-top: 24px; }
  .hero-copy{ text-align: center; }
  .hero h1{ font-size: var(--h1); }
  .hero-lead{ font-size: 0.93rem; text-align: center; }
  .hero-eyebrow{ margin-left: auto; margin-right: auto; }

  /* ---- Cards ---- */
  .card{
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(230,135,201,0.12);
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
    text-align: center;
  }

  /* ---- Grid layouts ---- */
  .grid-4, .grid-3, .grid-2{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ---- Services ---- */
  .services-grid{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .service-item{
    border-radius: var(--radius-lg) !important;
    padding: 16px 18px !important;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(230,135,201,0.08);
    text-align: center;
  }
  .service-item h3{ text-align: center !important; }

  /* ---- About Us ---- */
  .mission-split{ grid-template-columns: 1fr; gap: 24px; }
  .values-grid{ grid-template-columns: 1fr; gap: 12px; }
  .value-card{ text-align: center; }

  /* ---- Contact ---- */
  .contact-layout{
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .contact-detail-list{ gap: 12px; }
  .contact-detail{
    padding: 14px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(230,135,201,0.08);
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .contact-detail > div{
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .contact-detail h4{ text-align: left; margin-bottom: 2px; }
  .contact-detail p{
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0 0 2px;
  }
  .contact-detail a{
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
    font-size: 0.88rem;
  }
  .contact-icon{
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }
  .contact-form-wrap{ margin-top: 0; width: 100%; box-sizing: border-box; }
  .form-wrap{
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(230,135,201,0.1);
    border: 1px solid var(--color-border);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .form-wrap h3{ text-align: center; }
  .form-row{ grid-template-columns: 1fr; gap: 12px; }
  .field{ width: 100%; box-sizing: border-box; }
  .field label{ font-size: 0.875rem; display: block; }
  .field input, .field textarea, .field select{
    font-size: 1rem;
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  /* ---- Steps ---- */
  .steps-row{ flex-direction: column; gap: 12px; }
  .step-connector{ display: none; }
  .step-card{
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(230,135,201,0.08);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .step-num{ margin: 0 auto 8px; }

  /* ---- FAQ ---- */
  .faq-grid{ grid-template-columns: 1fr !important; gap: 12px; }
  .faq-item{
    padding: 18px 16px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(230,135,201,0.08);
    text-align: center;
  }
  .faq-item h4{ text-align: center; }

  /* ---- CTA Banner ---- */
  .cta-banner{
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: stretch;
  }
  .cta-banner h2{ font-size: var(--h2); text-align: center; }
  .cta-banner p{ text-align: center; }
  .cta-banner .btn{ width: 100%; justify-content: center; }

  /* ---- Footer ---- */
  .site-footer{
    padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    margin-top: 36px;
    text-align: center;
  }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom{
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    text-align: center;
  }
  .site-footer h4{ margin-bottom: 0.8em; text-align: center; }
  .footer-links{ text-align: center; }
  .footer-links li{ margin-bottom: 8px; }

  /* ---- Eyebrow ---- */
  .eyebrow{ font-size: 0.7rem; padding: 0.35em 0.8em; }

  /* ---- Booking page ---- */
  .appt-layout{ grid-template-columns: 1fr !important; gap: 24px; }
  .appt-info-card, .appt-checklist{ padding: 18px 16px; border-radius: var(--radius-lg); }

  /* ---- Wave dividers ---- */
  .hero-wave-bottom{ height: 28px; margin-top: 1rem; }

  /* ---- Remove hover lifts on touch ---- */
  .card:hover, .service-item:hover, .link-card:hover,
  .btn:hover, .step-card:hover, .faq-item:hover{
    transform: none !important;
  }
}
