/* ==========================================================================
   Dr. Ritu Bagga — theme layer on top of Bootstrap 5.3
   Loaded AFTER vendor/bootstrap/bootstrap.min.css.

   1. Theme tokens: change colours and fonts here (and only here).
   2. Bootstrap overrides: Bootstrap's own CSS variables, set to our tokens.
   3. Custom pieces Bootstrap does not provide (arch photo frame, hero reveal,
      overlapping service cards, photo placeholders, dark photo bands).
   ========================================================================== */

/* ---------- 1 + 2. Tokens and Bootstrap variable overrides ---------- */
:root,
[data-bs-theme="light"] {
  /* Our palette */
  --linen: #FFFFFF;        /* page background */
  --bone: #FDF1F1;         /* raised surfaces: cards, form */
  --sand: #F3D3D4;         /* placeholders, input borders */
  --umber: #2E1517;        /* main text */
  --umber-soft: #7A5253;   /* secondary text */
  --madder: #AF1D23;       /* buttons (bone text on top) */
  --madder-deep: #8F171C;  /* text links */
  --moss: #7C1318;         /* dark bands */
  --moss-light: #F3D3D4;   /* secondary text on moss */
  --line: rgba(46, 21, 23, 0.16);

  /* Fonts */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Vertical rhythm between page sections */
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* Bootstrap variables pointed at our tokens */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: #2E1517;
  --bs-body-color-rgb: 46, 21, 23;
  --bs-body-bg: #FFFFFF;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-heading-color: #2E1517;
  --bs-secondary-color: #7A5253;
  --bs-tertiary-bg: #FDF1F1;
  --bs-tertiary-bg-rgb: 255, 242, 245;
  --bs-light-rgb: 255, 242, 245;
  --bs-primary: #AF1D23;
  --bs-primary-rgb: 175, 29, 35;
  --bs-link-color: #8F171C;
  --bs-link-color-rgb: 143, 23, 28;
  --bs-link-hover-color: #2E1517;
  --bs-link-hover-color-rgb: 46, 21, 23;
  --bs-border-color: rgba(46, 21, 23, 0.16);
  --bs-border-radius: 0.875rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-focus-ring-color: rgba(175, 29, 35, 0.3);
}

body { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; } /* keeps anchor targets clear of the sticky header */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin-bottom: 1rem; }
h2, .h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); margin-bottom: 1rem; }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; }
p { max-width: 62ch; }
.lead { font-size: 1.2rem; font-weight: 400; color: var(--umber-soft); }

a { text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--madder); outline-offset: 3px; }

.skip-link:focus {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 2000;
  background: var(--umber); color: var(--bone); padding: 0.6rem 1rem; border-radius: 8px;
}

/* Buttons */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-border-width: 1.5px;
}
.btn-sm { --bs-btn-padding-x: 1.2rem; --bs-btn-padding-y: 0.6rem; --bs-btn-font-size: 0.95rem; }
.btn-primary {
  --bs-btn-color: #FDF1F1; --bs-btn-bg: #AF1D23; --bs-btn-border-color: #AF1D23;
  --bs-btn-hover-color: #FDF1F1; --bs-btn-hover-bg: #8F171C; --bs-btn-hover-border-color: #8F171C;
  --bs-btn-active-color: #FDF1F1; --bs-btn-active-bg: #6C1014; --bs-btn-active-border-color: #6C1014;
  --bs-btn-disabled-color: #FDF1F1; --bs-btn-disabled-bg: #AF1D23; --bs-btn-disabled-border-color: #AF1D23;
  --bs-btn-focus-shadow-rgb: 165, 82, 58;
}
.btn-outline-dark {
  --bs-btn-color: #2E1517; --bs-btn-border-color: #2E1517;
  --bs-btn-hover-color: #FDF1F1; --bs-btn-hover-bg: #2E1517; --bs-btn-hover-border-color: #2E1517;
  --bs-btn-active-color: #FDF1F1; --bs-btn-active-bg: #2E1517; --bs-btn-active-border-color: #2E1517;
  --bs-btn-focus-shadow-rgb: 47, 38, 32;
}
.btn-light {
  --bs-btn-color: #7C1318; --bs-btn-bg: #FDF1F1; --bs-btn-border-color: #FDF1F1;
  --bs-btn-hover-color: #7C1318; --bs-btn-hover-bg: #F3D3D4; --bs-btn-hover-border-color: #F3D3D4;
  --bs-btn-active-color: #7C1318; --bs-btn-active-bg: #F3D3D4; --bs-btn-active-border-color: #F3D3D4;
}

/* Navbar */
.site-header {
  z-index: 1030; /* above page content, below the mobile skip link */
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  --bs-navbar-padding-y: 0.7rem;
  --bs-navbar-color: #2E1517;
  --bs-navbar-hover-color: #2E1517;
  --bs-navbar-active-color: #2E1517;
  --bs-navbar-toggler-border-color: #2E1517;
  --bs-navbar-toggler-focus-width: 0.2rem;
}
.navbar-brand { line-height: 1.15; margin-right: 1rem; }
.brand__name { display: block; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.01em; color: var(--umber); }
.brand__role { display: block; font-size: 0.82rem; color: var(--umber-soft); }
.navbar-nav .nav-link {
  font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.navbar-nav .nav-link:hover { border-bottom-color: var(--sand); }
.navbar-nav .nav-link.active { border-bottom-color: var(--madder); }
.navbar-toggler { border-radius: 999px; padding: 0.4rem 0.8rem; }
@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-nav .nav-link { margin-inline: 0.8rem; padding: 0.4rem 0; }
}
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: 0.5rem 0 1.25rem; }
  .navbar-nav .nav-link { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .navbar-nav .nav-link.active { border-bottom-color: var(--madder); }
  .navbar-collapse .btn { margin-top: 1rem; width: 100%; }
}

/* Cards, list groups, forms */
.card {
  --bs-card-bg: #FDF1F1;
  --bs-card-border-color: rgba(46, 21, 23, 0.16);
  --bs-card-border-radius: 0.875rem;
  --bs-card-inner-border-radius: 0.875rem;
}
.list-group {
  --bs-list-group-bg: transparent;
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-border-color: rgba(46, 21, 23, 0.16);
  --bs-list-group-item-padding-x: 0;
  --bs-list-group-item-padding-y: 1rem;
}
.list-ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.form-control, .form-select {
  background-color: var(--linen);
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  color: var(--umber);
}
.form-control:focus, .form-select:focus {
  background-color: var(--linen);
  border-color: var(--madder);
  box-shadow: 0 0 0 0.25rem rgba(175, 29, 35, 0.25);
}
.form-label { font-weight: 600; font-size: 0.97rem; }
.form-check-input:checked { background-color: var(--madder); border-color: var(--madder); }
.form-check-input:focus { border-color: var(--madder); box-shadow: 0 0 0 0.25rem rgba(175, 29, 35, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; font-weight: 500; }
.alert-success { --bs-alert-bg: #E2F0E4; --bs-alert-color: #1E5B2E; --bs-alert-border-color: #B7DDBE; }
.alert-danger  { --bs-alert-bg: #F8D7DA; --bs-alert-color: #842029; --bs-alert-border-color: #F1AEB5; }

/* ---------- 3. Custom pieces ---------- */

/* Page sections */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--bone { background: var(--bone); }
.sticky-offset { top: 6.5rem; z-index: 1; } /* Bootstrap's sticky-lg-top is z-index 1020, the same as the header, so it painted over it. Keep columns below the header. */

/* Extra aspect ratios (Bootstrap ships 1x1, 4x3, 16x9, 21x9) */
.ratio-4x5 { --bs-aspect-ratio: 125%; }
.ratio-3x2 { --bs-aspect-ratio: 66.6667%; }
.ratio-21x8 { --bs-aspect-ratio: 38.0952%; }
@media (min-width: 992px) {
  .ratio-lg-4x3 { --bs-aspect-ratio: 75%; }
  .ratio-lg-4x5 { --bs-aspect-ratio: 125%; }
  .ratio-lg-21x8 { --bs-aspect-ratio: 38.0952%; }
}

/* Photos. Every photo sits in a Bootstrap .ratio box. The .photo layer shows a
   styled placeholder, and the <img> covers it once it loads. */
.photo {
  background: linear-gradient(160deg, #FBE4E4 0%, #E9B5B7 100%);
  border-radius: inherit;
  overflow: hidden;
  display: grid; place-items: center; text-align: center;
  color: var(--umber-soft); font-size: 0.9rem; padding: 1rem;
}
.photo::after { content: attr(data-label); max-width: 22ch; }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; font-size: 0; color: transparent; }
.photo--missing .photo__img { display: none; }

/* The arch frame: signature shape for Dr. Ritu's own portraits */
.arch-frame { position: relative; width: min(calc(100% - 20px), 440px); margin-inline: auto; } /* 20px leaves room for the offset outline */
.arch-frame::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1.5px solid var(--madder); border-radius: 999px 999px 1.25rem 1.25rem;
}
.photo-arch { border-radius: 999px 999px 1.25rem 1.25rem; position: relative; z-index: 1; }

/* Home: hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1.15; max-width: 22ch; margin-bottom: 1.5rem; }
.hero .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero .line + .line { margin-top: 0.4em; }
.hero__sub { font-size: 1.12rem; }

@keyframes rise-line { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero .line > span { display: block; animation: rise-line 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .line:nth-child(2) > span { animation-delay: 0.18s; }
.hero__rest { animation: fade-in 0.9s ease 0.55s both; }
.hero__art { animation: fade-in 1.1s ease 0.3s both; }

/* Home: recognise, approach, pillars */
.recognise__close { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 40ch; }
.recognise__close p { margin-bottom: 0.9rem; }
.recognise__close p:first-child, .recognise__close p:last-child { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; }
.recognise__close p:nth-child(2) { color: var(--umber-soft); font-size: 1.15rem; }
.approach__note { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.pillar { border-top: 1.5px solid var(--umber); padding-top: 1.5rem; height: 100%; }
.pillar__icon { width: 2.75rem; height: 2.75rem; color: var(--madder-deep); margin-bottom: 1rem; }
.pillar p { color: var(--umber-soft); margin: 0; }

/* Dark bands, optionally with a photo behind a moss tint (set --photo inline) */
.band-moss { background: var(--moss); color: var(--bone); }
.band-moss h2, .band-moss h3 { color: var(--bone); }
.band-moss .text-soft { color: var(--moss-light); }
.has-photo {
  background-image: linear-gradient(rgba(124, 19, 24, 0.84), rgba(124, 19, 24, 0.84)), var(--photo);
  background-size: cover; background-position: center;
}
.big-question { text-align: center; padding-block: clamp(5rem, 11vw, 9rem); }
.big-question p { max-width: 22ch; margin-inline: auto; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.18; letter-spacing: -0.012em; text-wrap: balance; }
.big-question .from { color: var(--moss-light); margin-bottom: 1.5rem; }
.final-cta { text-align: center; padding-block: clamp(4.5rem, 9vw, 7rem); }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta p { margin-inline: auto; color: var(--moss-light); }

/* Home: services preview (cards overlap the banner photo) */
.services-head p { margin-inline: auto; color: var(--umber-soft); }
.service-cards { margin-top: -2rem; padding-inline: 1rem; position: relative; z-index: 2; }
@media (min-width: 992px) { .service-cards { margin-top: -5.5rem; padding-inline: 2rem; } }
.service-card { text-align: center; box-shadow: 0 10px 30px rgba(46, 21, 23, 0.1); }
.service-card .card-body { display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1.5rem 1.5rem; }
.service-card__icon { width: 3rem; height: 3rem; background: var(--umber); color: var(--bone); border-radius: 10px; display: grid; place-items: center; margin-top: -3.2rem; margin-bottom: 1.1rem; }
.service-card__icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--umber-soft); font-size: 0.98rem; margin-bottom: 1.25rem; }
.service-card .text-link { margin-top: auto; }
.text-link { font-weight: 600; }

/* Quotes and small lists */
.pull-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; font-style: italic; border-left: 3px solid var(--madder); padding-left: 1.25rem; margin: 1.5rem 0; max-width: 44ch; }
.tick-list, .question-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.tick-list li, .question-list li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; }
.tick-list li::before, .question-list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 0.7rem; height: 1.5px; background: var(--madder); }

/* Inner pages */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { font-size: 1.2rem; color: var(--umber-soft); }
.visually-quiet { color: var(--umber-soft); }

.credentials { padding-block: 2rem; border-block: 1px solid var(--line); margin: 0; }
.credentials li { font-size: 0.98rem; line-height: 1.45; }
.credentials strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.2rem; }
.closing-line { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; max-width: 30ch; }
.closing-line span { display: block; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.mission p { color: var(--moss-light); font-size: 1.2rem; }
.mission .mission__lead { color: var(--bone); font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; max-width: 34ch; }

/* Services page */
.tagline { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--umber-soft); }
.topic { border-top: 1px solid var(--line); padding-top: 1.1rem; height: 100%; }
.topic h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; margin-bottom: 0.25rem; }
.topic p { margin: 0; color: var(--umber-soft); font-size: 1rem; }
.programme-list h3 { margin-bottom: 0.35rem; }
.programme-list p { margin: 0; color: var(--umber-soft); }
.disclaimer { max-width: 760px; margin-inline: auto; border: 1.5px solid var(--sand); }
.disclaimer h2 { font-size: 1.5rem; }

/* Journal */
.filters .btn { --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: 0.4rem; --bs-btn-font-weight: 500; --bs-btn-font-size: 0.97rem; --bs-btn-border-color: rgba(46, 21, 23, 0.2); }
.post-card .card { background: transparent; border: 0; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--umber); text-decoration: none; }
.post-card h3 a:hover { color: var(--madder-deep); text-decoration: underline; }
.post-card__meta { font-size: 0.9rem; color: var(--umber-soft); margin-bottom: 0.4rem; }
.post-card p.excerpt { color: var(--umber-soft); font-size: 1rem; }
.article__head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.article__body p { max-width: none; font-size: 1.12rem; line-height: 1.8; }
.article__body h2 { font-size: 1.7rem; margin-top: 2.25rem; }
.article__body blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--madder); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.4; }

/* Contact */
.contact-copy .quiet { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; }
.contact-copy .quiet span { display: block; }

/* Footer */
.site-footer { background: var(--umber); color: var(--sand); padding-block: 4rem 2rem; font-size: 0.97rem; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--bone); margin-bottom: 0.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--bone); margin-bottom: 0.75rem; }
.site-footer li { padding: 0.2rem 0; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 211, 212, 0.25); font-size: 0.9rem; }
.footer-base p { max-width: none; margin-bottom: 0.4rem; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .line > span, .hero__rest, .hero__art { animation: none; }
}

/* Floating WhatsApp button (all pages). Uses WhatsApp's own green so it is recognised. */
.whatsapp-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { color: #fff; transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
@media (min-width: 992px) { .whatsapp-fab { right: 1.75rem; bottom: 1.75rem; width: 3.75rem; height: 3.75rem; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-fab { transition: none; } }

/* ==========================================================================
   Ease & Evolve logo (header, footer)
   ========================================================================== */
.navbar-brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__logo { height: 52px; width: auto; flex: none; }
.brand__text { display: block; }
.brand__wordmark { display: block; height: 24px; width: auto; margin-bottom: 0.2rem; }
@media (max-width: 575.98px) { .brand__logo { height: 44px; } .brand__wordmark { height: 19px; } }
@media (max-width: 359.98px) { .brand__logo { height: 38px; } .brand__wordmark { height: 17px; } .brand__role { font-size: 0.72rem; } .navbar-brand { gap: 0.5rem; margin-right: 0.5rem; } }
.footer-logo { display: block; width: 170px; height: auto; margin-bottom: 1rem; }
