@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-light-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-regular-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-italic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-italic-webfont.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-medium-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-bold-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabold-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabold-webfont.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabolditalic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabolditalic-webfont.woff") format("woff");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-black-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-black-webfont.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-blackitalic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-blackitalic-webfont.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Backwards-compatible aliases
   --------------------------------------------------------------------------
   Kept only so existing rules elsewhere that say font-family:'SunwaySans Bold'
   keep working. Each one now declares its TRUE weight, so the right file is
   used no matter what font-weight the consuming rule asks for.

   For new code prefer:  font-family: var(--font);  font-weight: <300..900>;
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'SunwaySans Light';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-light-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans Regular';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-regular-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans Italic';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-italic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-italic-webfont.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans Medium';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-medium-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans Bold';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-bold-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans ExtraBold';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabold-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabold-webfont.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans ExtraBoldItalic';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabolditalic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-extrabolditalic-webfont.woff") format("woff");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans Black';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-black-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-black-webfont.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunwaySans BlackItalic';
  src: url("../fonts/SunwaySans_beta/sunwaysans_beta-blackitalic-webfont.woff2") format("woff2"),
       url("../fonts/SunwaySans_beta/sunwaysans_beta-blackitalic-webfont.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   Scoliosis Screening & Treatment — Sunway Medical Centre Damansara
   Stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base / reset
   3.  Layout helpers
   4.  Buttons, links & shared elements
   5.  Hero + topbar
   6.  What is Scoliosis
   7.  Signs & Symptoms
   8.  Diagnosis
   9.  Why Early Screening Matters
   10. Treatment Options
   11. Specialists
   12. Contact form
   13. Footer
   14. Responsive
   ========================================================================== */

/* ============================ 1. DESIGN TOKENS ============================ */
/* ==========================================================================
   Scoliosis Screening & Treatment — Sunway Medical Centre Damansara
   Stylesheet
   --------------------------------------------------------------------------
   Spacing scale: every margin / padding / gap / offset is a multiple of 5px.
   Body copy: 16px.
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base / reset
   3.  Layout helpers
   4.  Buttons, links & shared elements
   5.  Hero + topbar
   6.  What is Scoliosis
   7.  Signs & Symptoms
   8.  Diagnosis
   9.  Why Early Screening Matters
   10. Treatment Options
   11. Specialists
   12. Contact form
   13. Footer
   14. Responsive
   ========================================================================== */

/* ============================ 1. DESIGN TOKENS ============================ */
:root {
  --red:            #EC2227;
  --red-dark:       #b3141f;
  --gold:           #AC8C5E;
  --gold-dark:      #93763f;
  --gold-light:     #c2a678;

  --ink:            #555555;
  --ink-soft:       #555555;
  --ink-muted:      #555555;

  --line:           #e3e6e8;
  --bg:             #ffffff;
  --bg-soft:        #f4f5f6;
  --bg-cream:       #faf8f4;

  --shadow-sm:      0 2px 10px rgba(0, 0, 0, .06);
  --shadow-md:      0 8px 25px rgba(0, 0, 0, .10);
  --shadow-lg:      0 15px 50px rgba(0, 0, 0, .14);

  /* radii — also kept on the 5px scale */
  --radius-sm:      5px;
  --radius:         10px;
  --radius-lg:      15px;
  --radius-pill:    999px;

  /* type scale */
  --fs-body:        clamp(14px, 2.15vw, 16px);  
  --fs-xs:          clamp(12px, 1.9vw, 14px);   /* buttons, links, captions */
  --fs-2xs:         13px;
  --fs-3xs:         12px;

  /* layout */
  --container:      1200px;
  --gutter:         20px;
  --section-y:      90px;

  --font:           'SunwaySans Regular','OpenSans-Regular', sans-serif;
}

/* ============================== 2. BASE / RESET =========================== */

@media (min-width: 1000px) {
    .container-fluid {
        max-width: calc(100% - 120px);
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: calc(100% - 60px);
    }
}
@media (min-width: 1400px) {
    .container-fluid {
        max-width: calc(100% - 120px);
    }
}

@media (max-width: 575px) {
    .container {
        max-width: calc(100% - 30px);
    }
}
html {
  scroll-behavior: smooth;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

body, span, p, div{
    font-family: 'SunwaySans Medium', 'OpenSans-Medium', sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}


/* ============================ 3. LAYOUT HELPERS =========================== */


.section__title {
  font-size: clamp(22px, 3.0vw, 30px);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.section__title--light { color: #fff; }

.section__lead {
  max-width: 760px;
  margin: 10px auto 0;
  font-size: var(--fs-body);
  text-align: center;
}

.section__lead--light { color: rgba(255, 255, 255, .88); }

/* ======================= 4. BUTTONS / SHARED ELEMENTS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
  border-radius: 0;
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover,
.btn--red:focus-visible {
  background: #9f0000;
  color: #fff;
}

.btn--block { width: 100%; }

.bullets {
  display: grid;
  gap: 5px;
  margin-top: 15px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}

.bullets li {
  position: relative;
  padding-left: 15px;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.bullets strong {
  font-weight: 700;
  color: var(--ink);
}

.bullets--light { color: rgba(255, 255, 255, .9); }
.bullets--light li::before { background: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--red);
  transition: gap .25s ease;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

.link-arrow:hover { gap: 10px; }

/* ============================ 5. HERO + TOPBAR ============================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  color: #fff;
  z-index: 1;

}

.hero__bg{
    position: relative;
    aspect-ratio: 16 / 7;  
    max-height: 620px; 
}

.hero__bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__bg picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg img,
.signs__bg img,
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%);
}

/* --- topbar --- */
.topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding-block: 20px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__logo img {
  width: 135px;
  height: auto;
}

/* --- contact bar: ONE white pill split by a hairline -------------------- */
.contact-bar {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.contact-bar__item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  color: var(--ink);
}

/* the divider between the two halves */
.contact-bar__item + .contact-bar__item { border-left: 1px solid var(--line); }

/* the dropdown half is only a positioning context — the button carries the
   padding, so the whole hit area opens the menu */
.contact-bar__item--dropdown {
  position: relative;
  padding: 0;
}

.contact-bar > .contact-bar__item:not(.contact-bar__item--dropdown) {
    min-width: 0;
    padding: 10px 20px 10px 30px;
    gap: 10px;
    border-right: 1px solid #E5E5E5;
}
    
.contact-bar__toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 10px 30px 10px 20px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.contact-bar__icon {
  flex: none;
  width: 40px;
  height: 40px;
}

/* icon paths are relative to css/style.css */
.image_header3 {
  background: url(../images/icons/Accident.svg) no-repeat center;
  background-size: contain;
}

.image_header2 {
  background: url(../images/icons/general-line-01.svg) no-repeat center;
  background-size: contain;
}

.contact-bar__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-bar__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-bar__value {
font-size: 12px;
  color: var(--ink);
}

.contact-bar__caret {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  transition: transform .25s ease;
}

.contact-bar__toggle[aria-expanded="true"] .contact-bar__caret {
  transform: rotate(180deg);
}

/* --- general line dropdown --- */
.contact-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  /*min-width: 100%;*/
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.contact-menu[hidden] { display: none; }

.contact-menu li + li { border-top: 1px solid var(--line); }

.contact-menu a {
  display: block;
  padding: 15px 25px;
  font-size: var(--fs-xs);
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}

.contact-menu a:hover {
  background: var(--bg-soft);
  color: var(--red);
}


/* --- hero content --- */
.hero__inner {
    display: flex;
    flex: 1;
    align-items: center;
    padding-block: 60px 90px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 30px);
    transform: translateY(-50%);
    z-index: 2;
}

.hero__content { max-width: 46%; }

.hero__title {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  font-family:'SunwaySans ExtraBold';
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}

.hero__text {
  font-family:'SunwaySans Medium','OpenSans-Medium', sans-seri;
  margin-top: 20px;
  font-size: clamp(16px, 3.6vw, 20px);
  color: var(--ink);
  font-weight: 500;
}

.hero .btn { margin-top: 30px; }

/* ========================== 6. WHAT IS SCOLIOSIS ========================== */
.section--about {position: relative; z-index: 2; background-color: transparent; padding-top: 0; margin-top: -50px; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  /* room for the icons that straddle the top edge of each card */
  margin-top: 30px;
}

.type-card {
  position: relative;
  padding: 60px 40px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: box-shadow .3s ease, transform .3s ease;
}

.type-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
 
  margin-inline: auto;
}

.type-card__icon svg{
    width: 120px;
    height: auto;
}

.type-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid #EC2227;
  width: fit-content;
margin: 0 auto; 
}

.type-card__text {
  margin-top: 14px;
  font-size: var(--fs-body);
  color: var(--ink-soft);
  font-weight: 500;
}

.type-card__subtitle {
  margin-top: 20px;
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: left;
  color: var(--ink);
}

.type-card .bullets { text-align: left; padding-left: 15px;}

.type-card__note {
  margin-top: 20px;
  font-size: var(--fs-body);
  text-align: left;
  color: var(--ink-soft);
}

/* ========================== 7. SIGNS & SYMPTOMS =========================== */
.signs {
  position: relative;
  color: #fff;
  background-image: url('../images/scoliosis/signs-bg.webp');
  padding: 150px 0 100px;
  background-size: cover;
  background-position: center center;
}

.signs__inner {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(0, .12fr) minmax(0, .3fr);
  align-items: start;
  gap: 30px;
}

.signs__main    { grid-column: 1; }
.signs__inner > .advice-card { grid-column: 3; }

.signs__title {
  font-size: clamp(22px, 3.0vw, 30px);
  font-weight: 700;
  color: #fff;
}

.signs-panel {
  margin-top: 30px;
  padding: 30px 20px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.signs-panel__title {
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 700;
  text-align: center;
  color: #fff;
}

/* 8 tracks, every tile spans 2 → 4 per row. The 3 tiles on the second row
   are shifted one track right so they centre under the four above. */
.sign-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.sign {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 15px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: transparent;
  text-align: center;
  transition: background-color .25s ease, transform .25s ease;
}

.sign:nth-child(5) { grid-column: 2 / span 2; }
.sign:nth-child(6) { grid-column: 4 / span 2; }
.sign:nth-child(7) { grid-column: 6 / span 2; }

.sign__icon {
  flex: none;
  width: 40px;
  height: 40px;
}

.sign__icon img {
  width: 100%;
  height: 100%;
}

.sign__label {
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  font-size: var(--fs-xs);
  font-family: 'SunwaySans Regular','OpenSans-Regular', sans-serif;
}

.advice-card {
  padding: 30px;
  border-radius: 20px;
  background: var(--gold);
  border: 1px solid #EDDBC1;
}

.advice-card__title {
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 700;
  color: #fff;
}

.advice-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  font-size: var(--fs-body);
  color: #fff;
}

.advice-list li {
  position: relative;
  padding-left: 20px;
  color: #fff;
}

.advice-list li::before {
  content: "\00B7";
  position: absolute;
  left: 5px;
}

.advice-card__note {
  margin-top: 25px;
  font-size: var(--fs-body);
  color: #fff;
}

/* ============================== 8. DIAGNOSIS ============================== */
.section--diagnosis {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.wave{
    position: absolute;
    z-index: 0;   
}

.wave img{
    width: 100%;
}

.wave-1{
    bottom: 0%;
    left: 0;
    right: 0;
    transform: rotate(-2.58deg);
}

/* subtle decorative wash — swap for a real background image if preferred */
.section--diagnosis::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 55%;
  background: radial-gradient(120% 100% at 50% 100%,
              rgba(169, 139, 93, .10) 0%,
              rgba(169, 139, 93, 0) 60%);
  pointer-events: none;
}

.diagnosis-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
  margin: 30px auto 0;
}

.diagnosis-card {
  position: relative;
  grid-column: span 2;
  overflow: visible;
}

/* second row: two cards centred under the first three */
.diagnosis-card:nth-child(4) { grid-column: 2 / span 2; }
.diagnosis-card:nth-child(5) { grid-column: 4 / span 2; }

.diagnosis-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.diagnosis-card__caption {
     position: absolute;
    left: 50%;
    bottom: 15px;
    width: calc(100% - 30px);
    padding: 25px 15px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0px 8px 16px 0px #00000014, 
                0px 0px 4px 0px #0000000A;
}

.diagnosis-card__name {
  display: block;
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
}

.diagnosis-card__sub {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

/* ==================== 9. WHY EARLY SCREENING MATTERS ====================== */
.section--benefits { 
    background-color: #F9F9F9; 
    background-image: url("../images/scoliosis/why-screening.webp");
    background-repeat: no-repeat;
    background-position: 53% 100%;
    background-size: 30%;
    
}

.benefits {
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-top: 45px;
}

.benefits > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.benefits__col {
  display: grid;
  grid-auto-rows: 1fr;
  flex: 1;
  gap: 90px;
}


.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px 25px;
  border-bottom: 1px solid #CECECE;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px 25px;
  border-bottom: 1px solid #CECECE;
}

.benefit__icon {
  display: grid;
  place-items: center;
  flex: none;
}

.benefit__icon svg {
}

.benefit__label {
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 500;
  color: var(--ink);
}

/* ============================ 10. TREATMENT =============================== */
.section--treatment {
  background: var(--gold);
  color: #fff;
  position: relative;
  z-index: 0;
}

.wave.wave-2{
    z-index: -1;
}

.treatment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 35px;
  margin-top: 40px;
}

.treatment__media { margin: 0; }

.treatment__media img {
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  border-radius: 16px;
}

/* --- treatment options: two static blocks, NOT an accordion ---------------
   The white bar is only the heading. The copy underneath sits directly on the
   gold background, so it lives outside the white box, indented to line up. */
.treatment__options {
  display: grid;
  gap: 30px;
}

.topt__head {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 30px;
  border-radius: 16px;
  background: #fff;
}

.topt__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  width: 50px;
  height: 50px;
flex-shrink: 0;

}

.topt__icon svg {
    width: 40px;
    height: 40px;
    
}

.topt__title {
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
}

.topt__body {
  padding-inline: 25px;
  margin-top: 30px;
  color: #fff;
}

.topt__desc { font-size: var(--fs-body); }

.topt__list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  font-size: var(--fs-body);
}

.topt__list li {
  position: relative;
  padding-left: 20px;
  color: #fff;
  font-weight: 400;
  font-family: 'SunwaySans Regular','OpenSans-Regular', sans-serif;
}

.topt__list p, .topt__desc {
  color: #fff;
  font-weight: 400;
  font-family: 'SunwaySans Regular','OpenSans-Regular', sans-serif;
}

.topt__list li::before {
  content: "\00B7";
  position: absolute;
  left: 5px;
}

/* ============================ 11. SPECIALISTS ============================= */
.section--doctors { background: var(--bg); }

.wave-3{
    bottom: -23%;
    left: 0;
}

.doctor-grid{
    margin-top: 30px;
    border: 0;
}

.doctor-card {
  display: flex;
  align-items: center;
  overflow: hidden;               /* lets the photo sit flush to the card edge */
  border-radius: 16px;
  background: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.08),
            0px 0px 4px 0px rgba(0, 0, 0, 0.04);
  transition: box-shadow .3s ease, transform .3s ease;
}

/* min-height sets the card's floor; the photo still stretches if the text
   column ends up taller */
.doctor-card__photo {
  position: relative;
  min-height: 300px;
  width: 45%;
  background: var(--bg-soft);
}

.doctor-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 25px;
}

.doctor-card__name {
  font-size: clamp(18px, 3.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
}

.doctor-card__role {
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--gold);
}

.doctor-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;               /* pins the link to the bottom of the card */
  padding-top: 25px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--red);
  transition: gap .25s ease;
}

.doctor-card__link svg {
  width: 15px;
  height: 15px;
}

.doctor-card__link:hover { gap: 15px; }

.doctor-card__link:hover span{
    font-weight: 600; 
}

/* ============================== 12. CONTACT =============================== */
.contact {
  position: relative;
  background-image: url("../images/scoliosis/contact-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  
}

.contact__inner {
  display: flex;
  justify-content: flex-end;
}

.contact__form-wrap {
  width: 100%;
  max-width: 47%;
  padding: 40px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.contact__title {
font-size: clamp(22px, 3.0vw, 30px);
  color: var(--ink);
  text-align:center;
}

#scoliosisForm{
    margin-bottom: 0;    
}

.form { margin-top: 25px; }

.form__row + .form__row { margin-top: 15px; }

.form__row--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form__group label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #CECECE;
  transition: border-color .2s ease, background-color .2s ease;
}

.form__group textarea {
  min-height: 90px;
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
}

.form__select { position: relative; }

.form__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.form__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form .btn { margin-top: 25px; width: 100%; padding: 10px 30px; }

/* =============================== 13. FOOTER =============================== */
.footer { background: #fff; }

.footer__inner {
  padding-block: 25px 20px;
  text-align: center;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--ink);
}

.footer__links a:hover { color: var(--red); }

.footer__sep { color: var(--ink-muted); }

.footer__copy {
  margin-top: 10px;
  font-size: var(--fs-3xs);
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer__bar {
  padding-block: 10px;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.footer__bar p {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .3px;
}

/* ============================= 14. RESPONSIVE ============================= */

/* ---- <= 1199px ---- */
@media (max-width: 1199.98px) {
  :root { --section-y: 75px; }

  .benefits__col { gap: 60px; }
}

/* ---- <= 991px (tablet) ---- */
@media (max-width: 991.98px) {
  :root { --section-y: 65px; }

  .hero { min-height: 560px; }

  .hero__overlay {
    background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 30%);
  }

  .type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  
  .type-card__icon svg{
      width:90px;
      height: 90px;
  }

  .signs { padding-block: 80px; }

  /* the grid lives on .signs__inner now — and the pinned columns have to be
     released or the card is forced into an implicit 3rd track */
  .signs__inner { grid-template-columns: minmax(0, 1fr); }

  .signs__main,
  .signs__inner > .advice-card { grid-column: auto; }

  .diagnosis-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .diagnosis-card:nth-child(1),
  .diagnosis-card:nth-child(2),
  .diagnosis-card:nth-child(3),
  .diagnosis-card:nth-child(4) { grid-column: span 2; }

  .diagnosis-card:nth-child(5) { grid-column: 2 / span 2; }

  .benefits__col { gap: 20px; }

  .treatment { grid-template-columns: minmax(0, 1fr); }

  .contact__inner { justify-content: center; }

  .contact__form-wrap { max-width: 100%; }
}

/* ---- <= 767px (large phone) ---- */
@media (max-width: 767.98px) {
  .section{
      padding-block: 50px;
  }

  .topbar {
        position: static;
        padding: 15px 0 0;
        background: #fff;
        z-index: 10;
    }

    .topbar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;  
        padding-inline: 0;
    }

    /* Logo stays above */
    .topbar__logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .topbar__logo img {
        width: 140px;
        height: auto;
    }


    /* Contact bar sits BELOW logo, side by side */
    .contact-bar {
        display: flex;
        flex-direction: row;
        width: 100%;
        border-radius: 0;
        background: #fff;
        box-shadow: none;

        border-top: 1px solid #CECECE;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px -4px;

        overflow: visible;
        position: relative;
        z-index: 2;
    }

    .contact-bar__item {
        flex: 0 0 50%;
        width: 50%;
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 10px;
        padding: 15px 10px 15px 0;
    }
    
    .contact-bar > .contact-bar__item:not(.contact-bar__item--dropdown) {
        padding: 20px 10px 20px 15px;
        gap: 0;
        
    }

    /* divider between left & right */
    .contact-bar__item + .contact-bar__item {
        border-top: 0;
        border-left: 1px solid #E5E5E5;
    }

    .contact-bar__item--dropdown {
        padding: 0;
    }

    .contact-bar__toggle {
        width: 100%;
        min-height: 100%;
        padding: 20px;

        display: flex;
        align-items: center;
        gap: 0;
    }

    .contact-bar__icon {
        flex: 0 0 35px;
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .contact-bar__text {
        flex: 1;
        min-width: 0;
    }

    .contact-bar__label {
        font-size: 10px;
    }
    
    .contact-bar__label.general_line{
         font-size: 12px;
    }

    .contact-bar__value {
        margin-top: 3px;
        font-size: 12px;
    }

    .contact-bar__caret {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin-left: auto;
    }


    /* dropdown appears underneath General Line */
    .contact-menu {
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 200px;
        z-index: 50;
    }

    .contact-menu a {
        padding: 12px 10px;
        font-size: 11px;
        white-space: normal;
    }

  .hero {
      min-height: 620px; 
    overflow: hidden;
  }

  .hero__bg {
    aspect-ratio: auto; 
    max-height: none;
  }

  .hero__bg img { height: 100%; }

  /* z-index works here because these are flex items of .hero */
  .topbar {
    position: static;
    z-index: 3;
    padding-block: 20px 0;
  }

  .hero__inner {
    transform: none;
    top: 40px;
    z-index: 2;
    padding-block: 30px 50px;
  }

  .hero__content { max-width: 100%; text-align: center;}

  .hero__text { max-width: 100%; }

  .section--about {
    margin-top: 0;
    padding-top: var(--section-y);
  }

  /* ---------- SIGNS & SYMPTOMS: mobile layout ---------- */
  .signs {
    background-image: url("../images/scoliosis/signs-bg-mb.webp");
    background-position: 50%;
    background-size:  cover;          
    background-repeat: no-repeat;
    padding-bottom: 400px;
  }

  .signs__title { text-align: center; }

  .signs-panel__title { text-align: left; }

  .sign-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-top: 20px;
  }

  .sign,
  .sign:nth-child(5),
  .sign:nth-child(6),
  .sign:nth-child(7) {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .sign:hover {
    background: transparent;
    transform: none;
  }

  /* card drops below the panel and is pushed right so the photo shows
     through on the left */
  .signs__inner > .advice-card {
        position: absolute;
        bottom: 40px;
        right: 0;
        left: 40%;
        padding: 20px;
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
  }

  /* ---------- WHY EARLY SCREENING: mobile layout ---------- */
  /* 2 x 2 grid, dividers between rows, photo underneath */
  .section--benefits {
    background-image: url("../images/scoliosis/why-screening.webp");
    background-position: bottom center;
    background-size: 100% auto;
    min-height: 650px;
  }

      .benefits {
        align-items: flex-start;
        margin-top: 20px;
    }
    
    .section--benefits .benefits > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .benefits__col {
        gap: 0;
    }
    
    .benefit {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 100px;
        padding: 15px 10px;
        border-bottom: 1px solid #CECECE;
    }
    
    .benefit__icon {
        width: 50px;
        min-width: 50px;
        flex-shrink: 0;
    }
    
    .benefit__icon svg {
        width: 100%;
        height: auto;
    }
    
    .benefit__label {
        min-width: 0;
        font-size: var(--fs-xs);
        line-height: 1.4;
        overflow-wrap: break-word;
    }

  .diagnosis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        margin-top: 25px;
    }
    
    .diagnosis-card:nth-child(1),
    .diagnosis-card:nth-child(2),
    .diagnosis-card:nth-child(3),
    .diagnosis-card:nth-child(4),
    .diagnosis-card:nth-child(5) {
        grid-column: auto;
        min-width: 0;
    }
    
    .diagnosis-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .diagnosis-card__caption {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 12px 8px;
        border-radius: 10px;
    }
    
    .diagnosis-card__name {
        font-size: 15px;
        line-height: 1.2;
    }
    
    .diagnosis-card__sub {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.25;
    }
    
    /* 5th card centered on the last row */
    .diagnosis-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc((100% - 15px) / 2);
        justify-self: center;
    }

  .contact {
        background-image: url("../images/scoliosis/contact-bg-mb.webp");
        background-size: cover;
        background-position: bottom;
        background-repeat: no-repeat;
        min-height: 1150px;
    }

  .contact__form-wrap { padding: 30px; }

  .footer__links { flex-wrap: wrap; }
}

/* ---- <= 575px (small phone) ---- */
@media (max-width: 575.98px) {
    .section{
      padding-block: 40px;
  }
  
  .contact-menu{
      min-width: unset;
  }
  
  .signs{
      min-height: 1000px;
  }
  
  .topbar__logo img { width: 135px; }
    
    .hero__overlay{
        background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 10%);
        /*background: unset;*/
    }
    
    .hero__bg{
        max-height: 620px;
        aspect-ratio: 900 / 1400;
        background-position: bottom;
    }


  .hero__title { letter-spacing: 0; }

  .type-card { padding: 30px 20px; }

  .signs-panel { padding: 20px 20px 25px; }

  .advice-card { padding: 25px 20px; }

  /* reclaim the side padding — at 320px the columns are only 140px wide */
  .benefit { padding: 20px 0; }

  .diagnosis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        max-width: none;
    }

    .diagnosis-card__caption {
        bottom: 6px;
        width: calc(100% - 12px);
        padding: 10px 6px;
        border-radius: 8px;
    }

    .diagnosis-card__name {
        font-size: 14px;
        line-height: 1.15;
    }

    .diagnosis-card__sub {
        font-size: 11px;
        line-height: 1.15;
    }

    .diagnosis-card:nth-child(5) {
        width: calc((100% - 12px) / 2);
    }

    .doctor-grid .col-6{
        padding-inline: 10px;
    }

  /* photo on top, full-bleed, text underneath */
  .doctor-card {
      flex-direction: column;
        text-align: center;
        height: 100%;
  }
  
  .doctor-card__photo img{
      position: relative;
      
  }
    
  .doctor-card__photo { min-height: unset; width: 100%; }

  .doctor-card__info { align-items: center; padding: 20px 10px; }
  
  .doctor-card__name {
        line-height: 1.3;
        height: calc(1.3em * 3);
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        text-align: center;
        font-size: 14px;
    }
    
    /* Reserve exactly 3 lines for role */
    .doctor-card__role {
        margin-top: 5px;
        line-height: 1.4;
        height: calc(1.4em * 3);
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        text-align: center;
    }
    
    /* Always keep button at same bottom position */
    .doctor-card__link {
        margin-top: auto;
        padding-top: 20px;
    }

  .form__row--2 { grid-template-columns: minmax(0, 1fr); }
}

@media(max-width: 991px){
    #footer{
        margin-bottom: 0;
    }
}
/* ------------------------- Motion preferences ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
