/* Dr H N Roy Mental Clinic - static, mobile-first, SEO-friendly design */
:root {
  --ink: #142126;
  --muted: #5b6970;
  --line: #dce7e2;
  --bg: #f6f9f7;
  --soft: #eaf5ef;
  --soft-2: #fff8ef;
  --brand: #0f6f63;
  --brand-dark: #083d38;
  --accent: #b85b2b;
  --gold: #d9a441;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(10, 34, 38, 0.12);
  --shadow-soft: 0 10px 28px rgba(10, 34, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(234, 245, 239, 0.65), rgba(246, 249, 247, 0) 420px),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  left: 8px;
}

.topbar {
  background: var(--brand-dark);
  color: var(--white);
  font-size: 0.92rem;
}

.topbar__inner,
.header__inner,
.section,
.footer__inner,
.hero__inner {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 231, 226, 0.9);
  box-shadow: 0 8px 24px rgba(10, 34, 38, 0.05);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.25;
}

.menu-toggle {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.15rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  padding: 10px 16px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav.is-open {
  display: grid;
}

.nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav a:last-child {
  border-bottom: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.16), transparent 32rem),
    linear-gradient(135deg, #edf8f1 0%, #ffffff 48%, #f5fbff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -36px -10%;
  height: 90px;
  background: var(--bg);
  transform: skewY(-2deg);
  transform-origin: left;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: 34px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 10vw, 4.25rem);
}

h2 {
  font-size: clamp(1.55rem, 6vw, 2.45rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.hero__image {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero__image::after {
  content: "Actual clinic photo";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 61, 56, 0.86);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 111, 99, 0.18);
}

.button:hover {
  color: var(--white);
  background: var(--brand-dark);
}

.button--light {
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: var(--shadow-soft);
}

.button--light:hover {
  color: var(--white);
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(184, 91, 43, 0.2);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hero .trust-strip {
  margin-top: 0;
}

.trust-strip div,
.card,
.doctor,
.notice,
.faq-item,
.review {
  border: 1px solid rgba(220, 231, 226, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  padding: 14px;
}

.trust-strip strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.28rem;
  line-height: 1.1;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 48px 0;
}

.section--white {
  background: var(--white);
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1140px) / 2));
  padding-right: max(16px, calc((100% - 1140px) / 2));
}

.section__header {
  max-width: 790px;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--two,
.grid--three {
  grid-template-columns: 1fr;
}

.card,
.doctor,
.faq-item,
.review,
.notice {
  padding: 22px;
}

.card h3,
.doctor h3,
.notice h3 {
  color: var(--brand-dark);
}

.card a,
.notice a,
.faq-item a {
  font-weight: 800;
}

.card ul,
.notice ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.card li,
.notice li {
  margin-bottom: 6px;
}

.content-flow {
  display: grid;
  gap: 18px;
}

.content-flow h2 {
  margin-top: 8px;
}

.content-flow h3 {
  color: var(--brand-dark);
  margin-top: 4px;
}

.info-panel {
  padding: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--soft-2);
  box-shadow: var(--shadow-soft);
}

.review-note,
.safety-note {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.toc-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.byline {
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-answer {
  padding: 22px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  box-shadow: var(--shadow-soft);
}

.quick-answer h2 {
  font-size: 1.25rem;
}

.facts-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.facts-list li {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.facts-list strong {
  color: var(--brand-dark);
}

.meta-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.meta-list li {
  padding-left: 20px;
  position: relative;
}

.meta-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.72em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 111, 99, 0.13), rgba(255, 248, 239, 0.86)),
    var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, 0.58);
}

.page-hero .section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.page-hero__photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.page-hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.cta-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1140px) / 2));
  padding-right: max(16px, calc((100% - 1140px) / 2));
  background:
    linear-gradient(135deg, rgba(8, 61, 56, 0.96), rgba(15, 111, 99, 0.94)),
    var(--brand-dark);
  color: var(--white);
}

.cta-band .section__header {
  margin-bottom: 0;
}

.cta-band h2,
.cta-band p,
.cta-band a {
  color: var(--white);
}

.cta-band .button--light {
  color: var(--brand-dark);
}

.footer {
  padding: 42px 0 86px;
  color: #d9e8e5;
  background: #082622;
}

.footer a {
  color: var(--white);
}

.footer__inner {
  display: grid;
  gap: 24px;
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 8px;
}

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(23, 33, 43, 0.14);
  backdrop-filter: blur(10px);
}

.sticky-actions a {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.sticky-actions a:last-child {
  border-right: 0;
}

.icon {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

@media (min-width: 680px) {
  .grid--two {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--three {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav a {
    min-height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 999px;
    font-size: 0.94rem;
  }

  .nav a:hover {
    background: var(--soft);
    color: var(--brand-dark);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    min-height: 650px;
    padding: 48px 0 76px;
  }

  .hero__image img {
    aspect-ratio: 16 / 11;
  }

  .hero .trust-strip {
    grid-column: 1 / -1;
  }

  .actions {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }

  .card,
  .doctor,
  .faq-item,
  .review,
  .notice {
    min-height: 100%;
  }

  .footer {
    padding-bottom: 42px;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .page-hero .section {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .sticky-actions {
    display: none;
  }
}
