/* ==========================================================================
   layout.css — header, navigation, hero, grids, footer, whatsapp dock
   ========================================================================== */

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(6, 43, 29, .08); }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--header-h);
  padding-block: .65rem;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 250px;
  max-width: 250px;
  text-decoration: none;
  flex: none;
}
.brand__photo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
  box-shadow: 0 2px 8px rgba(6, 43, 29, .16);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green-900);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.brand__tag {
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
}

/* header right cluster: the consultation number sits in the top right */
.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
}

.hotline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  line-height: 1;
}
.hotline__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  flex: none;
}
.hotline__icon svg { width: 16px; height: 16px; }
.hotline:hover .hotline__icon { background: var(--gold-500); color: var(--green-900); }
.hotline__label { font-size: .68rem; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .09em; display: block; margin-bottom: 3px; }
.hotline__num { display: block; }
.hotline__num b { font-weight: 800; letter-spacing: .02em; }
.hotline__num span { color: var(--ink-400); font-weight: 600; }

/* nav — the header carries no menu on a desktop screen; the small-screen
   menu button opens the panel below the header bar */
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: var(--radius-s);
  color: var(--ink-800);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.main-nav a:hover { background: var(--green-50); color: var(--green-700); }
.main-nav a[aria-current="page"] { color: var(--green-800); background: var(--gold-50); box-shadow: inset 0 -2px 0 var(--gold-500); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--green-900);
  color: #eaf2ee;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.8rem, 1rem + 3vw, 3.4rem);
  align-items: center;
  padding-block: clamp(2.8rem, 2rem + 4vw, 5.2rem);
}
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201, 166, 94, .16);
  border: 1px solid rgba(201, 166, 94, .42);
  color: var(--gold-300);
  border-radius: 999px;
  padding: .34rem .95rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__kicker svg { width: 14px; height: 14px; }
.hero__text { font-size: 1.1rem; color: #d3e2da; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201, 166, 94, .3);
}
.hero__badge {
  position: absolute; left: -14px; bottom: 24px;
  background: var(--white);
  color: var(--green-900);
  border-radius: var(--radius-m);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-l);
  font-size: .84rem; line-height: 1.45;
  max-width: 220px;
  border-left: 4px solid var(--gold-500);
}
.hero__badge b { display: block; font-size: 1.3rem; color: var(--green-700); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__trust div { font-size: .88rem; color: #bdd2c7; }
.hero__trust b { display: block; color: #fff; font-size: 1.18rem; font-family: var(--font-serif); }

/* ------------------------------------------------------ page banner */
.page-hero {
  background: var(--green-900);
  color: #e9f1ed;
  padding: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(201, 166, 94, .07);
}
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: .5rem; }
.page-hero__intro { color: #cfded6; max-width: 74ch; font-size: 1.06rem; }
.page-hero__inner { position: relative; z-index: 1; }

/* breadcrumbs */
.breadcrumbs { font-size: .84rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; margin: 0; color: #a9c2b5; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: #cfe0d7; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--gold-300); font-weight: 600; }

/* ------------------------------------------------------------ grids */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.8rem, 1rem + 3vw, 3.2rem); align-items: start; }
.split--left { grid-template-columns: 300px 1fr; }
/* a page whose sidebar is empty reads as one column */
.split--wide { grid-template-columns: minmax(0, 1fr); max-width: 78ch; }
.sticky-side { position: sticky; top: 18px; }
.sticky-side > .card:first-child { margin-top: 0 !important; }


/* ------------------------------------------------------------ footer */
.site-footer {
  background: var(--green-900);
  color: #b6c9bf;
  padding: clamp(2.6rem, 2rem + 3vw, 4rem) 0 0;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
}
.site-footer h3 {
  color: #fff; font-size: .98rem; font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b6c9bf; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold-600); }
.footer__brand b { color: #fff; font-family: var(--font-serif); font-size: 1.06rem; display: block; }
.footer__brand span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.footer__about { max-width: 42ch; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.2rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .84rem;
  color: #90a89c;
}
.footer__bottom a { color: #90a89c; }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* --------------------------------------------- whatsapp floating dock */
.wa-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wa-label {
  background: var(--white);
  color: var(--green-900);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: .5rem .95rem;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: var(--shadow-m);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.wa-dock:hover .wa-label, .wa-dock:focus-within .wa-label { opacity: 1; transform: translateX(0); }

.wa-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  text-decoration: none;
  position: relative;
  transition: transform .18s ease, background-color .18s ease;
}
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-btn:hover { background: var(--wa-dk); transform: scale(1.06); }
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .65; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* mobile call bar */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 88;
  background: var(--white);
  border-top: 1px solid var(--ink-200);
  padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(6, 43, 29, .1);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 700; font-size: .92rem;
}
.callbar .callbar__call { background: var(--green-700); color: #fff; }
.callbar .callbar__wa { background: var(--wa); color: #fff; }
.callbar svg { width: 17px; height: 17px; }

/* ==========================================================================
   The three-section header
   left: logo and trust points · centre: the gold call panel ·
   right: service heading, the number and six service links
   ========================================================================== */
.site-header {
  position: relative;
  background: #fff;
  border-top: 4px solid var(--gold-500);
  border-bottom: 1px solid var(--ink-200);
}
.site-header.is-stuck { box-shadow: none; }

.hdr {
  display: grid;
  grid-template-columns: 250px minmax(300px, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(.9rem, .5rem + 1.4vw, 1.8rem);
  padding-block: .7rem;
  min-height: 0;
}

/* 1 · the logo block and the trust points */
.hdr__brand { min-width: 0; }
.hdr__brand .brand { display: flex; align-items: center; gap: .6rem; width: 250px; max-width: 250px; overflow: hidden; }
.hdr__brand .brand__photo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold-500); object-fit: cover; flex: none; }
.hdr__brand .brand__name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--green-900); white-space: nowrap; letter-spacing: -.01em; }
.hdr__brand .brand__tag { font-size: .55rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.hdr__trust { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.hdr__trust li {
  font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  color: var(--green-700); background: var(--green-50);
  border: 1px solid #cfe3d9; border-radius: 999px;
  padding: .16rem .45rem; line-height: 1.5;
}

/* 2 · the gold panel */
.hdr__cta {
  background: var(--gold-50);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-m);
  padding: .5rem .7rem .55rem;
}
.hdr__cta-title {
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 800; line-height: 1.35;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--green-900); text-align: center; margin: 0 0 .45rem;
}
.hdr__cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.hdr__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .38rem;
  padding: .5rem .5rem; border-radius: var(--radius-s);
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none; line-height: 1.1; text-align: center;
  border: 1px solid transparent; transition: background-color .16s ease, color .16s ease;
}
.hdr__btn svg { width: 15px; height: 15px; flex: none; }
.hdr__btn--call { background: var(--green-800); color: #fff; border-color: var(--green-900); }
.hdr__btn--call:hover { background: var(--green-700); color: #fff; }
.hdr__btn--chat { background: #0f7a45; color: #fff; border-color: #0b6237; }
.hdr__btn--chat:hover { background: #0b6237; color: #fff; }

/* 3 · the service section, and the only place the number is shown */
.hdr__side { min-width: 0; text-align: right; }
.hdr__side-title {
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #8c2f22; margin: 0 0 .25rem; line-height: 1.3;
}
.hdr__side .hotline { justify-content: flex-start; flex-direction: row-reverse; gap: .45rem; margin-left: .5rem; }
.hdr__side .hotline__label { font-size: .6rem; letter-spacing: .07em; color: var(--ink-500); margin-bottom: 1px; }
.hdr__side .hotline__num { font-size: 1.08rem; color: var(--green-900); letter-spacing: .02em; }
.hdr__side .hotline__icon { width: 28px; height: 28px; background: #e8f6ee; color: #0f7a45; }
.hdr__side .hotline__icon svg { width: 16px; height: 16px; }
.hdr__side .hotline:hover .hotline__icon { background: #0f7a45; color: #fff; }

.hdr__serv { display: flex; justify-content: flex-end; gap: .1rem; list-style: none; margin: .4rem 0 0; padding: 0; }
.hdr__serv a {
  display: flex; flex-direction: column; align-items: center; gap: .12rem;
  width: 54px; padding: .26rem .1rem;
  text-decoration: none; border-radius: var(--radius-s);
  color: var(--ink-600);
  font-size: .58rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1.15; text-align: center;
  transition: color .16s ease, background-color .16s ease;
}
.hdr__serv-ic { width: 19px; height: 19px; color: var(--gold-700); }
.hdr__serv a:hover { color: var(--green-800); background: var(--gold-50); }

/* the menu button lives in the header row on small screens */
.hdr .nav-toggle { justify-self: end; }
@media (max-width: 1120px) {
  .hdr {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand side" "cta cta";
    row-gap: .55rem;
  }
  .hdr__brand { grid-area: brand; }
  .hdr__side { grid-area: side; }
  .hdr__cta { grid-area: cta; }
  .hdr__cta-title { font-size: .68rem; }
  .hdr__serv { display: none; }
  .hdr__cta-btns { grid-template-columns: 1fr 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .hdr {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand side toggle" "cta cta cta";
    align-items: center;
    column-gap: .6rem;
  }
  .hdr__brand .brand { width: auto; max-width: none; }
  .hdr__brand .brand__photo { width: 44px; height: 44px; }
  .hdr__brand .brand__name { font-size: .95rem; }
  .hdr__brand .brand__tag { font-size: .55rem; }
  .hdr__trust { display: none; }
  .hdr__side-title { display: none; }
  .hdr__side .hotline__label { display: none; }
  .hdr__side .hotline__num { font-size: .92rem; }
  .hdr__side .hotline__icon { display: none; }
  .hdr .nav-toggle { grid-area: toggle; }
}

@media (max-width: 560px) {
  .hdr__cta { padding: .45rem .5rem .5rem; }
  .hdr__cta-title { font-size: .6rem; letter-spacing: .03em; }
  .hdr__btn { font-size: .74rem; padding: .45rem .3rem; }
  .hdr__brand .brand__tag { display: none; }
}

/* the small screens: the logo block and the number share one line without
   either of them being cut off */
@media (max-width: 640px) {
  .hdr { column-gap: .45rem; padding-block: .5rem .55rem; }
  .hdr__brand .brand { gap: .45rem; }
  .hdr__brand .brand__photo { width: 40px; height: 40px; }
  .hdr__brand .brand__name { font-size: .9rem; }
  .hdr__side .hotline { margin-left: 0; }
  .hdr__side .hotline__num { font-size: .86rem; }
  .hdr .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .hdr__brand .brand__photo { width: 36px; height: 36px; }
  .hdr__brand .brand__name { font-size: .8rem; }
  .hdr__side .hotline__num { font-size: .78rem; }
  .hdr__btn { font-size: .7rem; }
}

/* ==========================================================================
   The header: three supplied banners, left to right, none of them a link
   ========================================================================== */
.site-header {
  position: relative;
  background: #fff;
  border-top: 3px solid var(--gold-500);
  border-bottom: 1px solid var(--ink-200);
}
.site-header.is-stuck { box-shadow: none; }

.hdr-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.5rem, .3rem + 1vw, 1.4rem);
  padding-block: .45rem;
}
.hdr-img { display: block; height: 92px; width: auto; max-width: 100%; }
.hdr-img--name { height: 96px; }

/* the menu button on its own line, small screens only */
.hdr-bar { display: none; border-top: 1px solid var(--ink-100); }
.hdr-bar__inner { display: flex; justify-content: flex-end; align-items: center; }
.hdr-bar .nav-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  width: auto; height: 38px; padding: 0 .7rem;
  border: 1.5px solid var(--ink-200); border-radius: var(--radius-s);
  background: #fff; color: var(--green-800); cursor: pointer;
}
.hdr-bar .nav-toggle__text { font-size: .84rem; font-weight: 700; }
.hdr-bar .nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .hdr-img { height: 76px; }
  .hdr-img--name { height: 80px; }
}

/* from here down all three banners stay on one row, scaled to fit */
@media (max-width: 900px) {
  .hdr-strip { gap: .5rem; }
  .hdr-img { height: 62px; }
  .hdr-img--name { height: 66px; }
  .hdr-bar { display: block; }
  .main-nav {
    display: none;
    background: #fff;
    padding: .4rem 0 .8rem;
    border-top: 1px solid var(--ink-100);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; list-style: none; margin: 0; padding: 0; }
  .main-nav a { display: block; padding: .7rem .8rem; font-size: 1rem; text-decoration: none; color: var(--ink-800); font-weight: 600; }
  .main-nav a[aria-current="page"] { background: var(--green-50); }
}

/* a phone: the three banners stack in the same order, each one full width,
   so nothing printed on them becomes too small to read */
@media (max-width: 660px) {
  .hdr-strip {
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding-block: .5rem;
  }
  .hdr-img, .hdr-img--name { height: auto; width: 100%; max-width: 430px; }
}

/* a link that is only for a screen reader */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
