/* ============================================================
   Sophie's Oral Hygiene Care (.com)
   Rebuilt to match the Figma design "Home – 2.0"
   (original 2021 design by WebMarketers)
   Palette: deep indigo/navy + red accent + white
   ============================================================ */

:root {
  --navy: #1f1577;
  --navy-dark: #151053;
  --indigo: #23048e;
  --indigo-dark: #1f1577;
  --red: #c1121f;
  --ink: #141b2c;
  --muted: #3a4451;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #e5e5ee;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(21, 16, 83, 0.14);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-alt: "Work Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.45rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.6rem;
}
.eyebrow--center { text-align: center; }
.section-title { text-align: center; margin-bottom: 2.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}
.btn--primary:hover { filter: brightness(1.1); color: #fff; }
.btn--light {
  background: #fff;
  color: var(--navy);
}
.btn--light:hover { background: var(--bg-alt); }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--navy-dark);
  text-align: center;
  padding: 0.45rem 1rem;
}
.notice-bar a {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
}
.notice-bar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.6rem;
}
.brand__logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
}
.main-nav ul a:hover { color: var(--indigo); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.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); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .header-phone { margin-top: 0.85rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero__curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}
.hero__content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero__content h1 span { font-weight: 300; color: rgba(255, 255, 255, 0.85); }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 5.5rem 0;
}
.page-hero__curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  max-width: 46rem;
}
.page-hero__lead {
  font-family: var(--font-alt);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Small feature cards (About) ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(21, 16, 83, 0.06);
}
.feature-card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Credential list (About / Sophie) ---------- */
.credential-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.credential-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.credential-list .credential-list__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
}
.credential-list strong { display: block; font-weight: 600; }
.credential-list span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Condition chips (Health) ---------- */
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
}
.chip-row li {
  border: 1.5px solid var(--indigo);
  color: var(--navy);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: #fff;
}
.chip-row li.is-active { background: var(--indigo); color: #fff; }

/* ---------- Partner cards (Health) ---------- */
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.partner-card h3 { text-transform: lowercase; font-size: 1.2rem; color: var(--navy); }
.partner-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Location cards ---------- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(21, 16, 83, 0.06);
}
.location-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 0.35rem;
}
.location-card h3 { margin-bottom: 0.75rem; }
.location-card address { font-style: normal; color: var(--muted); margin-bottom: 0.75rem; }
.location-card__contact { font-size: 0.95rem; }
.location-card__contact a { display: block; text-decoration: none; }

/* ---------- Wide band section title ---------- */
.band-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 60rem;
  margin: 0 auto 1rem;
}

.hero__photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 200px 0 0 200px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 3rem; }
  .hero__photo img { border-radius: 100px 0 0 100px; height: 260px; }
}

/* ---------- Symptoms ---------- */
.symptoms__row {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
}
.symptoms__row li {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Services (tabs) ---------- */
.services__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.services__list-title {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.services__list { list-style: none; margin: 0; padding: 0; }
.services__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.services__list button:hover { color: var(--ink); background: #fff; }
.services__list button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(21, 16, 83, 0.1);
}
.services__arrow {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.services__list button[aria-selected="true"] .services__arrow { opacity: 1; }

.services__photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.service-panel[hidden] { display: none; }
.service-panel.is-active { animation: fadeUp 0.35s ease; }
.service-panel p { color: var(--muted); max-width: 46rem; }
.service-panel .btn { margin-top: 0.5rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .services__layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.cta-band h2 { color: #fff; font-weight: 400; margin-bottom: 2rem; }

/* ---------- Testimonials ---------- */
.testimonials__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}
.testimonials__intro h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.testimonials__nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.round-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.round-btn:hover { background: var(--navy); color: #fff; }

.testimonials__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testimonials__viewport::-webkit-scrollbar { display: none; }
.testimonials__track {
  display: flex;
  gap: 1.5rem;
}
.tst-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(21, 16, 83, 0.06);
}
.tst-card header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.tst-card__avatar {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
}
.tst-card strong { display: block; font-size: 0.85rem; letter-spacing: 0.04em; }
.tst-card header span:not(.tst-card__avatar) { font-size: 0.8rem; color: var(--muted); }
.tst-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 900px) {
  .testimonials__layout { grid-template-columns: 1fr; }
  .tst-card { flex-basis: calc(50% - 0.75rem); }
}
@media (max-width: 600px) {
  .tst-card { flex-basis: 100%; }
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 3.5rem;
  text-align: center;
}
.contact-card h2 { font-size: 1.6rem; margin-bottom: 1.75rem; }
.contact-card__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 0.9rem;
}
.contact-card textarea { resize: vertical; margin-bottom: 1.5rem; }
.contact-card input:focus,
.contact-card textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.contact-card input.is-invalid { border-color: var(--red); }
.contact-card__status { margin: 1rem 0 0; font-size: 0.9rem; font-weight: 600; }
.contact-card__status.is-error { color: var(--red); }
.contact-card__status.is-ok { color: var(--navy); }

@media (max-width: 760px) {
  .contact-card { padding: 2rem 1.5rem; }
  .contact-card__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
}
.site-footer__bottom p { margin: 0; }

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