/* Qalbun Care: lightweight, responsive, and framework-free */
:root {
  --berry: #8f126b;
  --berry-dark: #541044;
  --berry-light: #f5e8f1;
  --rose: #c65a97;
  --ink: #241d23;
  --muted: #695f67;
  --cream: #fbf8f5;
  --white: #fff;
  --line: #e8dde4;
  --shadow: 0 24px 60px rgba(84, 16, 68, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 1rem/1.7 Arial, Helvetica, sans-serif; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.045em; }
h3 { font-size: 1.6rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.eyebrow { margin-bottom: 18px; color: var(--berry); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: white; background: var(--berry-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; padding: 14px 0; border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.scrolled { background: rgba(251,248,245,.94); border-color: var(--line); backdrop-filter: blur(16px); }
.nav-wrap, .primary-nav { display: flex; align-items: center; }
.nav-wrap { justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem Georgia, serif; text-decoration: none; }
.brand img { width: 145px; height: auto; object-fit: contain; }
.primary-nav { gap: 28px; }
.primary-nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:not(.button):hover, .primary-nav a:not(.button):focus-visible { color: var(--berry); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.nav-toggle span:not(.sr-only) { width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 1px solid var(--berry); border-radius: 100px; color: white; background: var(--berry); font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { background: var(--berry-dark); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 18px; }
.button-ghost { color: var(--berry-dark); background: transparent; border-color: rgba(84,16,68,.3); }
.button-light { color: var(--berry-dark); background: white; border-color: white; }

.hero { position: relative; min-height: 820px; padding: 170px 0 100px; overflow: hidden; background: linear-gradient(145deg, #fdf9f7 20%, #f4e4ef); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-text { max-width: 680px; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; font-weight: 700; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--berry); }
.hero-card { padding: 52px 36px; border: 1px solid rgba(255,255,255,.75); border-radius: 180px 180px var(--radius) var(--radius); color: white; background: linear-gradient(160deg, var(--berry), var(--berry-dark)); box-shadow: var(--shadow); text-align: center; }
.heart-mark { width: 115px; margin: 0 auto 45px; }
.heart-mark svg { fill: none; stroke: #f7cbe6; stroke-width: 2; }
.quote { font: 400 2rem/1.25 Georgia, serif; }
.quote-note { margin: 0; color: #efd7e8; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .4; }
.hero-orb-one { width: 450px; height: 450px; top: -180px; right: -100px; background: #e4a9cb; }
.hero-orb-two { width: 300px; height: 300px; bottom: -160px; left: -100px; background: #ead0a8; }

.section-heading { max-width: 720px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 22px; }
.section-heading > p:last-child, .split-heading > p { color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; max-width: none; align-items: end; }
.card-grid { display: grid; gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.value-card, .service-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); transition: .25s; }
.value-card:hover, .service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card .icon { display: grid; width: 50px; height: 50px; margin-bottom: 48px; border-radius: 50%; place-items: center; color: white; background: var(--berry); font-size: .76rem; font-weight: 800; }
.value-card p, .service-card p { margin-bottom: 0; color: var(--muted); }
.services { background: white; }
.service-card { min-height: 310px; display: flex; flex-direction: column; }
.service-tag { align-self: start; margin-bottom: 34px; padding: 5px 11px; border-radius: 100px; color: var(--berry); background: var(--berry-light); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-card a { margin-top: auto; padding-top: 30px; color: var(--berry); font-size: .88rem; font-weight: 800; text-decoration: none; }
.service-card a span { display: inline-block; transition: transform .2s; }
.service-card a:hover span { transform: translateX(5px); }
.pricing-note { margin: 30px 0 0; color: var(--muted); text-align: center; }
.pricing-note a { color: var(--berry); font-weight: 700; }

.counsellor { color: white; background: var(--berry-dark); }
.counsellor-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.profile-panel { padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.profile-initials { display: grid; width: 130px; height: 130px; margin-bottom: 45px; border-radius: 50%; place-items: center; color: var(--berry-dark); background: #f2d6e7; font: 700 2.5rem Georgia, serif; }
.profile-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,.15); }
.profile-details { padding: 45px; }
.profile-panel .eyebrow, .profile-copy .eyebrow { color: #e5a8cc; }
.profile-panel h2 { margin-bottom: 15px; font-size: 3rem; }
.credential { color: #ead4e3; font-weight: 700; }
.credential span { font-size: .78rem; letter-spacing: .08em; }
.profile-facts { margin: 30px 0 0; padding: 25px 0 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.profile-facts li { margin: 9px 0; color: #dbc6d5; font-size: .88rem; }
.profile-facts li::before { content: "•"; margin-right: 9px; color: #e5a8cc; }
.profile-copy h2 { margin-bottom: 30px; }
.profile-copy > p:not(.eyebrow) { color: #dbcbd6; }
blockquote { margin: 34px 0 0; padding-left: 25px; border-left: 2px solid #e5a8cc; color: white; font: 400 1.35rem/1.6 Georgia, serif; }

.process { background: #f4e7ef; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 75px 1fr; gap: 28px; max-width: 860px; padding: 35px 0; border-top: 1px solid #d9c4d1; }
.steps li:last-child { border-bottom: 1px solid #d9c4d1; }
.steps span { display: grid; width: 52px; height: 52px; border-radius: 50%; place-items: center; color: white; background: var(--berry); font-weight: 800; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

.cta { padding: 80px 0; background: white; }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; padding: 65px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, var(--berry), var(--berry-dark)); box-shadow: var(--shadow); }
.cta-inner .eyebrow { color: #efc2de; }
.cta-inner h2 { margin-bottom: 20px; font-size: clamp(2.3rem, 4vw, 4rem); }
.cta-inner p:last-child { margin-bottom: 0; color: #e7cfe0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.text-link { color: white; font-size: .9rem; font-weight: 700; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }

.site-footer { padding: 75px 0 25px; color: #d4c7d0; background: #21121e; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 45px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand { color: white; font: 700 2rem Georgia, serif; text-decoration: none; }
.footer-grid h2 { margin-bottom: 14px; color: white; font: 700 .8rem Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { margin: 0; color: #bfaeba; font-size: .86rem; text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #d586b5; outline-offset: 4px; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-grid, .counsellor-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .card-grid.three { grid-template-columns: 1fr; }
  .counsellor-grid { gap: 35px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 73px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px; }
  .primary-nav .button { margin-top: 8px; }
  .nav-open .nav-toggle span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(3) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 65px 0; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.2rem); }
  h2 { font-size: 2.55rem; }
  .brand img { width: 125px; }
  .hero { padding: 125px 0 65px; }
  .hero-grid { gap: 45px; }
  .hero-card { padding: 48px 28px; }
  .quote { font-size: 1.7rem; }
  .hero-actions .button { width: 100%; }
  .split-heading, .card-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .split-heading { gap: 5px; }
  .value-card, .service-card, .profile-panel { padding: 28px; }
  .service-card { min-height: 290px; }
  .steps li { grid-template-columns: 52px 1fr; gap: 16px; }
  .steps span { width: 44px; height: 44px; }
  .cta-inner { padding: 38px 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
