/* ==========================================================================
   Dr. Date Clinic — site design system (Design 4, approved)
   Primary is the logo's own gold (#e48a00); every supporting tone is a shade
   of it plus warm neutrals. Nothing outside the logo's palette.
   ========================================================================== */

:root {
  /* ---- Design 4 tokens ---- */
  --brand: #e48a00;
  --brand-dk: #b16b00;
  --brand-deep: #774800;
  --brand-soft: #fff6e8;
  --brand-card: #fbeed6;
  --brand-line: #f3e3c9;

  --ink: #1a1408;
  --ink-2: #3a3226;
  --body: #6d6558;
  --line: #e9e3d8;
  --white: #fff;

  --display: "Plus Jakarta Sans", "Poppins", system-ui, sans-serif;
  --text: "Inter", "Roboto", system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* ---- Legacy aliases ----
     blog.css was written against the previous token names. Mapping them here
     keeps the blog rendering correctly on the new palette without touching it. */
  --gold: var(--brand);
  --gold-dk: var(--brand-dk);
  --gold-line: var(--brand-line);
  --cream-2: var(--brand-soft);
  --cream-line: var(--line);

  --ink-900: #1a1408;
  --ink-800: #241b0c;
  --ink-700: #2e2310;
  --ink-line: rgba(228, 138, 0, .18);
  --on-dark-mute: #b3a994;
  --on-light: var(--ink);
  --on-light-mute: var(--body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}
p { margin: 0 0 1rem; }
a { color: var(--brand-dk); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--brand-soft); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dk); }

.accent { color: var(--brand); }

/* ---------------- shared section furniture ---------------- */
.sec { padding: 96px 0; position: relative; }
@media (max-width: 767.98px) { .sec { padding: 60px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  color: var(--brand-dk); margin-bottom: 1rem;
}
.eyebrow::before {
  content: "\f0d0";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: .62rem;
}
.sec-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .8rem; }
.sec-lead { font-size: .98rem; color: var(--body); max-width: 620px; }

/* ---------------- buttons ---------------- */
.btn4 {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: .85rem; font-weight: 600;
  padding: .9rem 1.6rem; border-radius: 40px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all .35s var(--ease);
}
.btn4 i { font-size: .78em; transition: transform .35s var(--ease); }
.btn4:hover i { transform: translateX(4px); }
.btn4 i.fa-left { margin: 0; }
.btn4:hover i.fa-left { transform: none; }

.btn4-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(228,138,0,.3); }
.btn4-brand:hover { background: var(--brand-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(228,138,0,.4); }
.btn4-ink { background: var(--ink); color: #fff; }
.btn4-ink:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn4-out { border-color: var(--brand-line); color: var(--ink); background: #fff; }
.btn4-out:hover { border-color: var(--brand); color: var(--brand-dk); transform: translateY(-2px); }
.btn4-light { background: #fff; color: var(--brand-dk); }
.btn4-light:hover { background: var(--brand-soft); color: var(--brand-deep); transform: translateY(-2px); }
.btn4-sm { padding: .68rem 1.2rem; font-size: .78rem; }

/* ---------------- header ---------------- */
.hdr4 {
  position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.hdr4 .navbar { padding: .55rem 0; }
.hdr4 .navbar-brand { flex: 0 0 auto; padding: 0; margin: 0; }
.hdr4 .navbar-brand img { height: 46px; width: auto; max-width: none; }

.nav4 { gap: .1rem; }
.nav4 .nav-link {
  font-family: var(--display); font-size: .85rem; font-weight: 500;
  color: var(--ink-2); padding: .55rem .8rem !important; position: relative;
  white-space: nowrap;
}
.nav4 .nav-link:hover, .nav4 .nav-item.active .nav-link { color: var(--brand-dk); }
.nav4 .nav-item.active .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.navbar-toggler {
  border: 1px solid var(--brand-line); border-radius: 10px;
  color: var(--brand-dk); padding: .4rem .65rem; box-shadow: none !important;
  background: var(--brand-soft);
}
.navbar-toggler i { display: block; width: 1.15rem; transition: transform .35s var(--ease); }
.navbar-toggler.is-open { background: var(--brand); border-color: var(--brand); color: #fff; }
.navbar-toggler.is-open i { transform: rotate(90deg); }

/* Nine top-level items with labels like "Gender Reassignment" do not fit a
   992px bar, so the nav collapses to the burger below 1200px instead. */
@media (max-width: 1399.98px) { .nav4 .nav-link { font-size: .8rem; padding: .55rem .5rem !important; } }
@media (max-width: 1199.98px) {
  .navbar-collapse {
    border-top: 1px solid var(--line); margin-top: .5rem; padding: .6rem 0 1rem;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .nav4 .nav-link { padding: .7rem .2rem !important; border-bottom: 1px solid var(--line); }
  .nav4 .nav-item.active .nav-link::after { display: none; }
  .hdr4-cta { display: none; }
}

/* ---------------- footer ---------------- */
.ftr4 { background: var(--brand-soft); padding: 60px 0 0; margin-top: 90px; }

/* ---------------- back to top ---------------- */
.totop {
  position: fixed; right: 22px; bottom: 26px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 10px 26px rgba(228,138,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .4s var(--ease); z-index: 1030;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); color: #fff; }
@media (max-width: 767.98px) { .totop { right: 14px; bottom: 16px; width: 42px; height: 42px; } }

/* ---------------- reveal ---------------- */
[data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-rv].seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The floating back-to-top button sits over the last footer line on a phone —
   give that line room to clear it. */
@media (max-width: 767.98px) {
}

/* ---------------- navigation dropdowns ---------------- */
.nav4 .nav-item.has-sub { position: relative; }
.nav4-toggle {
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.nav4-toggle i { font-size: .62rem; color: var(--brand); transition: transform .3s var(--ease); }
.nav4 .nav-item.has-sub.open > .nav4-toggle i { transform: rotate(180deg); }

@media (min-width: 1200px) {
  .nav4-sub {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
    min-width: 250px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: 0 22px 54px rgba(26,20,8,.16);
    padding: 10px; z-index: 40;
    opacity: 0; visibility: hidden; transition: all .28s var(--ease);
  }
  /* A hover target bridging the gap, so the panel survives the trip down to it */
  .nav4 .nav-item.has-sub:hover > .nav4-sub::before {
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  }
  .nav4 .nav-item.has-sub:hover > .nav4-sub,
  .nav4 .nav-item.has-sub:focus-within > .nav4-sub,
  .nav4 .nav-item.has-sub.open > .nav4-sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  /* Long lists run in columns rather than off the bottom of the screen.
     The columns hold whole groups, so a heading never parts from its links. */
  .nav4-sub-wide { min-width: 520px; }
  .nav4-sub-wide .nav4-sub-grid { columns: 2; }
  .nav4-sub-wide.nav4-sub-xl { min-width: 740px; }
  .nav4-sub-wide.nav4-sub-xl .nav4-sub-grid { columns: 3; }
}

/* Columns, not a grid: the groups pack up the columns instead of lining up
   in rows, and break-inside keeps each heading with its own links. */
.nav4-sub-grid { column-gap: 1.2rem; }
/* A heading must never part from its own links, so that group stays whole.
   A run of links with no heading is free to flow, which is what lets a long
   ungrouped menu fill both columns instead of stacking in one. */
.nav4-group-headed { break-inside: avoid; page-break-inside: avoid; }
.nav4-group li { break-inside: avoid; }
.nav4-sub ul { display: block; }
.nav4-group + .nav4-group .nav4-sub-head { margin-top: .4rem; }
.nav4-sub a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  font-family: var(--text); font-size: .82rem; color: var(--ink-2); line-height: 1.4;
}
.nav4-sub a:hover { background: var(--brand-soft); color: var(--brand-dk); }
.nav4-sub a.current { background: var(--brand); color: #fff; font-weight: 600; }

@media (max-width: 1199.98px) {
  .nav4-toggle { width: 100%; justify-content: space-between; }
  .nav4-sub { display: none; padding: .2rem 0 .6rem .6rem; }
  .nav4 .nav-item.has-sub.open > .nav4-sub { display: block; }
  .nav4-sub a { padding: .45rem .6rem; font-size: .84rem; }
}

/* The live menu groups its dropdown under labels that are not links */
.nav4-sub-head {
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dk);
  padding: .7rem .7rem .3rem; margin-top: .2rem;
}
.nav4-sub li:first-child.nav4-sub-head { margin-top: 0; padding-top: .3rem; }

/* ======================================================================
   Added with the blueprint build: the footer services column, the
   floating call/WhatsApp buttons and the form consent line.
   ====================================================================== */

/* ---------------- footer: Our Services column ---------------- */

/* ---------------- floating call / WhatsApp ---------------- */
.floatbtns {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.floatbtn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}
.floatbtn:hover { transform: translateY(-2px); color: #fff; }
.floatbtn-wa { background: #25d366; }
.floatbtn-call { background: var(--brand); }

@media (max-width: 575.98px) {
  .floatbtns { right: 12px; bottom: 74px; }
  .floatbtn { width: 46px; height: 46px; font-size: 1.12rem; }
}

/* The back-to-top button shares that corner, so it sits below them. */
.totop { z-index: 1039; }

/* ---------------- form consent line ---------------- */
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--body);
}
.ct-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.ct-consent a { color: var(--brand-dk); text-decoration: underline; }

/* ---------------- page gallery block ---------------- */
.pgal { margin-top: 42px; }
.pgal h2 {
  font-family: var(--head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 0 0 8px;
}
.pgal-note {
  font-size: .9rem;
  color: var(--body);
  margin: 0 0 20px;
}
.pgal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.pgal-ba {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.pgal-ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.pgal-ba-pair figure { margin: 0; position: relative; }
.pgal-ba-pair img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.pgal-ba-pair figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  color: #fff;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 10px 7px;
  text-align: center;
}
.pgal-ba-label {
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.pgal-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.pgal-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pgal-img figcaption { padding: 11px 14px; font-size: .9rem; }

/* ---------------- cookie consent banner ----------------
   Sits above the floating call buttons and leaves room for them on a phone. */
.ddc-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1060;
  background: var(--ink-900, #1a1408);
  color: #ece7df;
  border-top: 1px solid var(--brand-line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}
.ddc-consent[hidden] { display: none; }
.ddc-consent-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ddc-consent-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--on-dark-mute, #b3a994);
}
.ddc-consent-text a { color: var(--brand); text-decoration: underline; }
.ddc-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ddc-consent-btn {
  appearance: none;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #1a1308;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ddc-consent-btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.ddc-consent-ghost { background: transparent; color: #ece7df; border-color: rgba(236, 231, 223, .35); }
.ddc-consent-ghost:hover { background: rgba(236, 231, 223, .1); border-color: #ece7df; color: #fff; }

@media (max-width: 575.98px) {
  .ddc-consent-inner { padding: 14px 16px; gap: 13px; }
  .ddc-consent-actions { width: 100%; }
  .ddc-consent-btn { flex: 1; padding: 11px 12px; }
}

/* ======================================================================
   Footer — vertical columns.

   Replaces the earlier horizontal arrangement: the services ran as one wide
   six-across row and the links as a row of pills, which left long names
   wrapping awkwardly mid-row. Each block is now its own column with its
   links stacked, which is what a footer of this size reads best as.

   Colours: this footer sits on --brand-soft (#fff6e8), a LIGHT background,
   so the on-dark tones the first version inherited gave 2.17:1 — about half
   what WCAG AA asks of body text. Everything here is measured against that
   cream with tools/contrast.php: text 5.37:1, headings 7.23:1, icons 3.94:1.
   ====================================================================== */

.ftr4-grid {
  display: grid;
  gap: 38px 40px;
  padding: 10px 0 44px;
  align-items: start;
}

/* The brand column carries more weight than the link columns. */
.ftr4-grid-4 { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
.ftr4-grid-3 { grid-template-columns: 1.5fr 1fr 1.3fr; }
.ftr4-grid-2 { grid-template-columns: 1.5fr 1.3fr; }
.ftr4-grid-1 { grid-template-columns: minmax(0, 1fr); }

.ftr4-col { min-width: 0; }

.ftr4-head {
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 18px;
}

.ftr4-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ftr4-list a,
.ftr4-list span {
  color: var(--body);
  font-size: .93rem;
  line-height: 1.5;
  text-decoration: none;
}
.ftr4-list a:hover { color: var(--brand-deep); }

/* Contact rows put the icon in its own track so wrapped text stays aligned
   under itself rather than under the icon. */
.ftr4-contact li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.ftr4-contact i {
  color: var(--brand-dk);
  font-size: .82rem;
  margin-top: 5px;
}

/* ---------------- brand column ---------------- */
.ftr4-logo { margin-bottom: 16px; }
.ftr4-logo img { max-width: 155px; height: auto; display: block; }
.ftr4-logo small {
  display: block;
  margin-top: 9px;
  font-size: .82rem;
  color: var(--body);
}
.ftr4-about {
  margin: 0 0 20px;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 34ch;
}

.ftr4-social { display: flex; gap: 10px; }
.ftr4-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  color: var(--brand-dk);
  font-size: .92rem;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.ftr4-social a:hover { background: var(--brand); color: #1a1308; }

/* ---------------- bottom bar ---------------- */
.ftr4-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--ink-line);
  font-size: .88rem;
  color: var(--body);
}
.ftr4-bot a { color: var(--body); text-decoration: none; }
.ftr4-bot a:hover { color: var(--brand-deep); }
.ftr4-privacy { text-decoration: underline; }

/* ---------------- responsive ---------------- */
@media (max-width: 991.98px) {
  .ftr4-grid-4,
  .ftr4-grid-3 { grid-template-columns: 1fr 1fr; }
  .ftr4-grid-4 .ftr4-col-brand,
  .ftr4-grid-3 .ftr4-col-brand { grid-column: 1 / -1; }
  .ftr4-about { max-width: none; }
}

@media (max-width: 575.98px) {
  .ftr4-grid,
  .ftr4-grid-2,
  .ftr4-grid-3,
  .ftr4-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ftr4-bot { justify-content: flex-start; }
}
