/*
Theme Name: Koverga
Theme URI: https://example.com/koverga
Author: Custom
Description: Кастомна WordPress-тема психолога Валерії Коверги з інтеграцією ACF.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: koverga
*/

    @font-face {
      font-family: "LeoHand";
      src: local("LeoHand"), local("Leo Hand");
      font-display: swap;
    }

    :root {
      --paper: #ffffff;
      --paper-light: #f4eae8;
      --paper-deep: #ebebeb;
      --plum: #656565;
      --plum-soft: #656565;
      --sage: #98a8b6;
      --sage-deep: #656565;
      --sage-light: #c1ccd5;
      --sand: #e0d8d0;
      --taupe: #b4a297;
      --rose: #f3e6e4;
      --rose-deep: #ebccc6;
      --blue-pale: #d0d6dd;
      --gray: #c4c4c4;
      --line: rgba(101, 101, 101, .16);
      --white: #ffffff;
      --shadow: 0 22px 70px rgba(101, 101, 101, .12);
      --radius: 32px;
      --serif: "Forum", Georgia, serif;
      --sans: "Forum", Georgia, serif;
      --hand: "LeoHand", "Bad Script", cursive;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--plum);
      background: var(--paper);
      font-family: var(--sans);
      font-size: 18px;
      line-height: 1.58;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    body.menu-open { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button { color: inherit; }
    img { max-width: 100%; display: block; }
    :focus-visible { outline: 3px solid rgba(152, 168, 182, .72); outline-offset: 4px; }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 80;
      pointer-events: none;
      opacity: .12;
      background-image: radial-gradient(rgba(101,101,101,.20) .55px, transparent .55px);
      background-size: 5px 5px;
      mix-blend-mode: multiply;
    }
    .motion-cursor {
      position: fixed;
      z-index: 90;
      left: 0;
      top: 0;
      width: 22px;
      height: 22px;
      margin: -11px 0 0 -11px;
      border: 1px solid rgba(101,101,101,.48);
      border-radius: 50%;
      pointer-events: none;
      opacity: 0;
      transform: translate3d(-100px,-100px,0);
      transition: width .22s ease, height .22s ease, margin .22s ease, background .22s ease, opacity .22s ease;
      backdrop-filter: invert(.04);
    }
    .motion-cursor.active { opacity: 1; }
    .motion-cursor.hovering { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(152,168,182,.18); border-color: rgba(152,168,182,.58); }

    .container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
    .section { padding: 112px 0; position: relative; }
    .section-soft { background: var(--paper-light); }
    .section-sage { background: linear-gradient(135deg, #c1ccd5, #d0d6dd, #e0d8d0, #f3e6e4); background-size: 260% 260%; color: var(--plum); animation: sageBreath 16s ease-in-out infinite; }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 20px;
      font-size: 12px;
      line-height: 1;
      font-weight: 600;
      letter-spacing: .17em;
      text-transform: uppercase;
    }
    .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
    .section-head { max-width: 720px; margin-bottom: 56px; }
    .section-head.center { text-align: center; margin-inline: auto; }
    h1, h2, h3, p { margin-top: 0; }
    h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
    h1 { font-size: clamp(58px, 6.2vw, 100px); margin-bottom: 28px; }
    h2 { font-size: clamp(44px, 5vw, 72px); margin-bottom: 22px; }
    h3 { font-size: 32px; line-height: 1.08; }
    .lead { font-size: 19px; line-height: 1.7; color: var(--plum-soft); }
    .section-sage .lead { color: rgba(101,101,101,.82); }
    .muted { color: var(--plum-soft); }

    .btn {
      min-height: 54px;
      padding: 14px 25px;
      border: 1px solid transparent;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
      will-change: transform;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary { color: var(--white); background: var(--plum); box-shadow: 0 12px 30px rgba(101,101,101,.20); }
    .btn-primary:hover { background: var(--plum-soft); box-shadow: 0 16px 34px rgba(101,101,101,.28); }
    .btn-outline { border-color: rgba(101,101,101,.45); background: transparent; }
    .btn-outline:hover { border-color: var(--plum); background: rgba(255,255,255,.32); }
    .btn-light { color: var(--plum); background: var(--white); }
    .btn-light:hover { background: var(--paper); }
    .link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
    .link-arrow span { transition: transform .25s ease; }
    .link-arrow:hover span { transform: translateX(4px); }

    .site-header {
      height: 88px;
      display: flex;
      align-items: center;
      position: fixed;
      inset: 0 0 auto;
      z-index: 70;
      background: rgba(255,255,255,.84);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 8px 30px rgba(101,101,101,.08);
      backdrop-filter: blur(18px);
    }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
    .brand { font-family: var(--serif); font-size: 42px; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
    .nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
    .nav a { font-size: 14px; font-weight: 500; position: relative; }
    .nav a:not(.btn)::after { content: ""; position: absolute; inset: auto 0 -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
    .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
    .header-cta { margin-left: 12px; }
    .menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.35); cursor: pointer; }
    .menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 1.5px; background: var(--plum); margin: 5px auto; transition: transform .25s ease, opacity .25s ease; }

    .hero { min-height: 820px; padding: 156px 0 68px; display: flex; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      opacity: .24;
      background-image: linear-gradient(rgba(101,101,101,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(101,101,101,.07) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
    }
    .hero::after {
      content: "";
      position: absolute;
      z-index: -1;
      width: 620px;
      height: 620px;
      left: -280px;
      top: -240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(235,204,198,.58), rgba(235,204,198,0) 68%);
    }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); align-items: center; gap: 40px; }
    .hero-copy { position: relative; z-index: 2; max-width: 720px; }
    .hero-enter { animation: heroEnter .9s cubic-bezier(.22,1,.36,1) both; }
    .hero-art.hero-enter { animation-delay: .14s; }
    .hero-line { display: block; overflow: hidden; padding-bottom: .14em; }
    .hero-line:last-child { overflow: visible; padding-bottom: .38em; margin-bottom: -.14em; }
    .hero-line > span { display: block; animation: lineRise 1s cubic-bezier(.22,1,.36,1) both; }
    .hero-line:nth-child(2) > span { animation-delay: .08s; }
    .hero-line:nth-child(3) > span { animation-delay: .16s; }
    .hero-line em { color: var(--taupe); font-weight: 400; font-family: var(--serif); font-size: .88em; font-style: italic; }
    .hero-copy .lead { max-width: 560px; margin-bottom: 34px; }
    .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
    .hero-art { min-height: 610px; position: relative; display: grid; place-items: end center; transform-style: preserve-3d; perspective: 900px; }
    .arch {
      position: absolute;
      inset: 5% 3% 0 8%;
      border-radius: 48% 48% 0 0 / 34% 34% 0 0;
      background: linear-gradient(180deg, #c1ccd5 0%, #98a8b6 100%);
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(101,101,101,.07);
      transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
    }
    .arch::before {
      content: "";
      position: absolute;
      inset: 24% 14% 0;
      border-radius: 49% 49% 0 0 / 34% 34% 0 0;
      background: var(--paper-light);
    }
    .stem { position: absolute; width: 180px; height: 310px; right: 5%; bottom: 8%; opacity: .72; transform: rotate(-5deg); }
    .stem::before { content: ""; position: absolute; left: 88px; bottom: 0; width: 1px; height: 100%; background: var(--plum); transform: rotate(8deg); transform-origin: bottom; }
    .leaf { position: absolute; width: 58px; height: 26px; border: 1px solid var(--plum); border-radius: 100% 0 100% 0; background: transparent; }
    .leaf.l1 { left: 42px; top: 62px; transform: rotate(26deg); }
    .leaf.l2 { left: 94px; top: 116px; transform: rotate(-38deg) scale(.9); }
    .leaf.l3 { left: 24px; top: 168px; transform: rotate(35deg) scale(.8); }
    .leaf.l4 { left: 105px; top: 215px; transform: rotate(-34deg) scale(.72); }
    .hero-note { position: absolute; right: 5%; bottom: 4%; z-index: 3; width: 150px; font-family: var(--serif); font-size: 25px; line-height: 1.25; }
    @keyframes heroEnter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    @keyframes lineRise { from { transform: translateY(115%); } to { transform: translateY(0); } }

    .trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.22); }
    .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
    .trust-item { min-height: 118px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px; padding: 22px 24px; border-right: 1px solid var(--line); }
    .trust-item:last-child { border-right: 0; }
    .trust-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--sage); border-radius: 50%; color: var(--sage-deep); font-family: var(--serif); font-size: 24px; }
    .trust-item:hover .trust-icon { animation: iconBounce .55s cubic-bezier(.2,.8,.2,1); background: var(--sage); color: var(--white); }
    .trust-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
    .trust-item small { display: block; color: var(--plum-soft); line-height: 1.4; }

    .motion-marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--plum); color: var(--paper); padding: 18px 0; }
    .marquee-track { width: max-content; display: flex; align-items: center; animation: marquee 30s linear infinite; }
    .marquee-group { display: flex; align-items: center; white-space: nowrap; }
    .marquee-group span { display: inline-flex; align-items: center; gap: 22px; margin-right: 22px; font-family: var(--hand); font-size: 25px; }
    .marquee-group span::after { content: "✦"; font-family: var(--sans); font-size: 10px; color: var(--rose); }
    .motion-marquee:hover .marquee-track { animation-play-state: paused; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    @keyframes iconBounce { 50% { transform: translateY(-5px) rotate(8deg); } }

    .concerns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .concern-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.18); transition: transform .25s ease, background .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; transform-style: preserve-3d; }
    .concern-card::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(152,168,182,.24), transparent 70%); transition: opacity .3s ease; }
    .concern-card:hover { background: var(--paper-light); box-shadow: var(--shadow); }
    .concern-card:hover::before { opacity: 1; }
    .concern-card > * { position: relative; z-index: 1; transform: translateZ(18px); }
    .card-number { color: var(--sage-deep); font-size: 12px; letter-spacing: .12em; }
    .concern-card h3 { margin: 34px 0 12px; }
    .concern-card p { margin-bottom: 0; color: var(--plum-soft); font-size: 14px; }

    .about-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 8vw; align-items: center; }
    .about-visual { min-height: 610px; border-radius: var(--radius); background: var(--paper-deep); position: relative; overflow: hidden; transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease; }
    .about-visual:hover { transform: rotate(-1deg) scale(1.015); box-shadow: var(--shadow); }
    .about-visual .portrait-placeholder { position: absolute; inset: 14% 14% 0; border-radius: 50% 50% 0 0 / 32% 32% 0 0; background: var(--sage-light); border: 1px solid rgba(101,101,101,.12); }
    .about-visual .portrait-placeholder::before { content: "Фото психолога"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--plum-soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
    .about-visual::before, .about-visual::after { content: ""; position: absolute; border-radius: 50%; z-index: 2; }
    .about-visual::before { width: 190px; height: 190px; background: rgba(224,216,208,.9); left: -40px; bottom: 40px; }
    .about-visual::after { width: 130px; height: 130px; border: 1px solid var(--plum); right: 18px; top: 42px; opacity: .3; }
    .about-copy .lead { margin-bottom: 30px; }
    .about-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 15px; }
    .about-list li { padding-left: 30px; position: relative; }
    .about-list li::before { content: "✦"; position: absolute; left: 0; color: var(--sage-deep); }
    .about-bio { color: var(--plum-soft); line-height: 1.7; }
    .about-copy h3 { margin: 38px 0 14px; font-size: 36px; }

    .terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .term-card { min-height: 220px; padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); }
    .term-card:nth-child(2), .term-card:nth-child(5) { background: var(--paper-deep); }
    .term-card:nth-child(3), .term-card:nth-child(4) { background: var(--blue-pale); }
    .term-card span { display: block; margin-bottom: 26px; color: var(--taupe); font-family: var(--serif); font-size: 18px; }
    .term-card h3 { margin-bottom: 14px; font-size: 30px; }
    .term-card p { margin-bottom: 0; color: var(--plum-soft); line-height: 1.6; }

    .consultations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .consult-card { background: var(--paper-light); color: var(--plum); border-radius: 28px; padding: 32px; min-height: 440px; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
    .consult-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(101,101,101,.18); }
    .consult-card.featured { background: var(--plum); color: var(--white); transform: translateY(-16px); }
    .consult-card.featured:hover { transform: translateY(-26px); }
    .pill { width: fit-content; padding: 7px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .11em; opacity: .72; }
    .consult-card h3 { font-size: 38px; margin: 38px 0 18px; }
    .consult-card p { opacity: .76; }
    .consult-meta { margin: 14px 0 30px; display: grid; gap: 9px; font-size: 13px; }
    .consult-meta span { display: flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid currentColor; border-color: rgba(101,101,101,.16); }
    .featured .consult-meta span { border-color: rgba(255,255,255,.18); }
    .consult-card .link-arrow { margin-top: auto; }

    .steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
    .step { padding: 34px 28px; border-top: 1px solid rgba(101,101,101,.24); position: relative; }
    .step { transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s ease; }
    .step:hover { transform: translateY(-8px); background: rgba(255,255,255,.28); }
    .step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 56px; font-size: 12px; letter-spacing: .12em; opacity: .72; }
    .step::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); top: -4px; left: 0; }
    .step:hover::after { box-shadow: 0 0 0 9px rgba(101,101,101,.12); }
    .step h3 { font-size: 28px; }
    .step p { color: rgba(101,101,101,.80); font-size: 14px; margin-bottom: 0; }

    .programs-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
    .program-card { min-height: 500px; border-radius: var(--radius); position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .4s ease; }
    .program-card:hover { box-shadow: var(--shadow); }
    .program-card.large { background: var(--sage-light); }
    .program-card.small { background: var(--paper-deep); }
    .program-card::before { content: ""; width: 260px; height: 260px; border: 1px solid rgba(101,101,101,.25); border-radius: 50%; position: absolute; right: -60px; top: -40px; transition: transform .8s cubic-bezier(.22,1,.36,1); }
    .program-card::after { content: ""; width: 170px; height: 170px; background: rgba(224,216,208,.68); border-radius: 50%; position: absolute; right: 70px; top: 90px; transition: transform .8s cubic-bezier(.22,1,.36,1); }
    .program-card:hover::before { transform: translate(-28px, 22px) scale(1.08); }
    .program-card:hover::after { transform: translate(22px, -18px) scale(.92); }
    .program-card h3 { max-width: 490px; font-size: clamp(42px, 4vw, 62px); position: relative; z-index: 2; }
    .program-bottom { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
    .program-bottom p { max-width: 370px; margin-bottom: 0; }

    .articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .article { display: block; transition: transform .35s cubic-bezier(.22,1,.36,1); }
    .article:hover { transform: translateY(-9px); }
    .article-cover { aspect-ratio: 1.26; border-radius: 22px; overflow: hidden; background: var(--paper-deep); position: relative; margin-bottom: 22px; }
    .article-cover img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1), filter .35s ease; }
    .article-cover::before, .article-cover::after { content: ""; position: absolute; border-radius: 50%; transition: transform .5s ease; }
    .article-cover::before { width: 58%; aspect-ratio: 1; background: var(--sage-light); left: -7%; top: 18%; }
    .article-cover::after { width: 45%; aspect-ratio: 1; background: var(--rose); right: 4%; bottom: -14%; mix-blend-mode: multiply; }
    .article:nth-child(2) .article-cover::before { background: var(--sand); left: 23%; top: -15%; }
    .article:nth-child(2) .article-cover::after { background: var(--sage); right: -8%; bottom: 2%; }
    .article:nth-child(3) .article-cover::before { background: var(--sage); left: -2%; top: -18%; }
    .article:nth-child(3) .article-cover::after { background: var(--paper-light); border: 1px solid var(--plum); right: 9%; bottom: 7%; }
    .article:hover .article-cover::before { transform: translate(8px, -8px); }
    .article:hover .article-cover::after { transform: translate(-8px, 8px); }
    .article:hover .article-cover img { transform: scale(1.045); filter: saturate(.88); }
    .article-meta { display: flex; justify-content: space-between; color: var(--plum-soft); font-size: 12px; margin-bottom: 13px; }
    .article h3 { font-size: 30px; margin-bottom: 0; }

    .faq-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8vw; align-items: start; }
    .faq-list { border-top: 1px solid var(--line); }
    details { border-bottom: 1px solid var(--line); }
    summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; font-family: var(--serif); font-size: 27px; line-height: 1.16; position: relative; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--sans); font-size: 24px; font-weight: 300; transition: transform .25s ease; }
    details[open] summary::after { transform: rotate(45deg); }
    details p { padding: 0 48px 24px 0; color: var(--plum-soft); }
    details[open] p { animation: faqReveal .42s cubic-bezier(.22,1,.36,1) both; }
    @keyframes faqReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
    @keyframes sageBreath { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

    .booking { overflow: hidden; }
    .booking::before { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; right: -130px; top: -210px; }
    .booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: start; position: relative; z-index: 2; }
    .booking-copy h2 { font-size: clamp(52px, 6vw, 82px); }
    .booking-form { background: var(--paper-light); color: var(--plum); border-radius: var(--radius); padding: 34px; box-shadow: 0 20px 60px rgba(101,101,101,.14); }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .field { display: grid; gap: 8px; }
    .field.full { grid-column: 1 / -1; }
    .field label { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
    .field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(101,101,101,.22); background: var(--white); color: var(--plum); border-radius: 14px; padding: 14px 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
    .field textarea { min-height: 118px; resize: vertical; }
    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(152,168,182,.18); }
    .consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--plum-soft); }
    .consent input { margin-top: 4px; accent-color: var(--sage); }
    .form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
    .form-status { font-size: 13px; color: var(--sage-deep); min-height: 22px; }

    .footer { background: var(--plum); color: var(--paper); padding: 72px 0 30px; }
    .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; padding-bottom: 60px; }
    .footer .brand { display: inline-block; font-size: 46px; margin-bottom: 20px; }
    .footer p { color: rgba(255,255,255,.70); max-width: 430px; }
    .footer h4 { margin: 0 0 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
    .footer-links { display: grid; gap: 11px; color: rgba(255,255,255,.76); font-size: 14px; }
    .footer-links a:hover { color: var(--paper); }
    .footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.56); font-size: 11px; }
    .mobile-book { display: none; }

    [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }

    @media (max-width: 1050px) {
      .nav { gap: 20px; }
      .nav a { font-size: 13px; }
      .hero-grid { grid-template-columns: 1.1fr .9fr; }
      .hero-art { min-height: 560px; }
      .trust-grid { grid-template-columns: repeat(2, 1fr); }
      .trust-item:nth-child(2) { border-right: 0; }
      .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      .consultations-grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
      .consult-card, .consult-card.featured { min-height: 0; transform: none; }
      .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
      .programs-grid { grid-template-columns: 1fr; }
      .program-card { min-height: 420px; }
    }

    @media (max-width: 820px) {
      .motion-cursor { display: none; }
      .container { width: min(100% - 34px, 720px); }
      .section { padding: 82px 0; }
      .site-header { height: 76px; }
      .brand { font-size: 34px; }
      .menu-toggle { display: block; position: relative; z-index: 22; }
      .header-cta { display: none; }
      .nav {
        position: fixed; inset: 0; padding: 120px 26px 34px; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; transform: translateX(100%); transition: transform .35s ease; z-index: 21;
      }
      .nav a { font-family: var(--serif); font-size: 38px; }
      .nav.open { transform: none; }
      .menu-toggle.active span { opacity: 0; }
      .menu-toggle.active::before { transform: translateY(6.5px) rotate(45deg); }
      .menu-toggle.active::after { transform: translateY(-6.5px) rotate(-45deg); }
      .hero { min-height: auto; padding: 122px 0 0; }
      .hero-grid { grid-template-columns: 1fr; gap: 40px; }
      .hero-copy { max-width: 670px; }
      .hero-art { min-height: 500px; width: min(560px, 100%); margin-inline: auto; }
      .hero-note { right: 8%; }
      .concerns-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
      .about-grid, .faq-wrap, .booking-grid { grid-template-columns: 1fr; gap: 52px; }
      .about-visual { min-height: 540px; }
      .articles-grid .article:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); }
      .footer-grid { grid-template-columns: 1.3fr 1fr; }
      .footer-grid > div:first-child { grid-column: 1 / -1; }
    }

    @media (max-width: 560px) {
      body { font-size: 15px; }
      .container { width: calc(100% - 28px); }
      .section { padding: 68px 0; }
      h1 { font-size: clamp(49px, 15vw, 66px); }
      h2 { font-size: clamp(42px, 13vw, 56px); }
      .lead { font-size: 16px; }
      .hero-copy .lead { margin-bottom: 26px; }
      .hero-actions { align-items: stretch; flex-direction: column; }
      .hero-actions .btn { width: 100%; }
      .hero-art { min-height: 410px; }
      .arch { inset: 2% 0 0 0; }
      .stem { transform: scale(.72) rotate(-4deg); transform-origin: bottom right; right: 2%; }
      .hero-note { width: 100px; font-size: 18px; }
      .marquee-group span { font-size: 21px; }
      .trust-grid { grid-template-columns: 1fr; }
      .trust-item { min-height: 96px; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 8px; }
      .trust-item:last-child { border-bottom: 0; }
      .concerns-grid, .articles-grid { grid-template-columns: 1fr; }
      .concern-card { min-height: 210px; }
      .about-visual { min-height: 430px; }
      .steps { grid-template-columns: 1fr; }
      .step::before { margin-bottom: 28px; }
      .program-card { min-height: 440px; padding: 28px; }
      .program-bottom { align-items: flex-start; flex-direction: column; }
      .articles-grid .article:last-child { grid-column: auto; max-width: none; }
      .booking-form { padding: 24px 18px; }
      .form-grid { grid-template-columns: 1fr; }
      .field.full, .consent, .form-actions { grid-column: auto; }
      .form-actions { align-items: stretch; flex-direction: column; }
      .form-actions .btn { width: 100%; }
      .footer { padding-bottom: 92px; }
      .footer-grid { grid-template-columns: 1fr; gap: 36px; }
      .footer-grid > div:first-child { grid-column: auto; }
      .footer-bottom { flex-direction: column; }
      .mobile-book { display: none; }
    }

    /* Editorial concept — composed from the supplied visual references */
    body { background: var(--white); font-size: 17px; }
    .container { width: min(1280px, calc(100% - 64px)); }
    .section { padding: 128px 0; }
    .section-head { max-width: 830px; margin-bottom: 70px; }
    .section-head.center { max-width: 900px; }
    h1 { font-size: clamp(68px, 7.4vw, 116px); line-height: .88; letter-spacing: -.045em; }
    h2 { font-size: clamp(52px, 5.7vw, 82px); line-height: .94; letter-spacing: -.038em; }
    h3 { letter-spacing: -.025em; }
    .lead { color: rgba(101,101,101,.84); }
    .eyebrow { letter-spacing: .2em; font-size: 11px; }

    .site-header { height: 96px; }
    .site-header::after { content: ""; position: absolute; inset: auto 32px 0; height: 1px; background: rgba(101,101,101,.12); }
    .site-header.scrolled { height: 76px; background: rgba(255,255,255,.90); }
    .site-header.scrolled::after { inset-inline: 0; }
    .brand { font-size: 38px; letter-spacing: -.055em; }
    .nav { gap: 30px; }
    .nav a { font-size: 13px; letter-spacing: .035em; }
    .btn { min-height: 50px; padding-inline: 24px; letter-spacing: .035em; }
    .btn-primary { background: var(--sage-deep); }
    .btn-primary:hover { background: var(--sage); }

    .hero {
      min-height: 920px;
      padding: 150px 0 88px;
      background: linear-gradient(122deg, #ffffff 0%, #ffffff 48%, #d0d6dd 48.1%, #c1ccd5 100%);
      border-radius: 0 0 80px 80px;
    }
    .hero::before {
      opacity: .48;
      background-image: radial-gradient(circle at 15% 28%, rgba(243,230,228,.85) 0 14%, transparent 14.2%), radial-gradient(circle at 94% 90%, rgba(224,216,208,.82) 0 18%, transparent 18.2%);
      background-size: auto;
      mask-image: none;
    }
    .hero::after { width: 520px; height: 520px; left: -250px; top: 230px; opacity: .5; }
    .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); gap: 74px; }
    .hero-copy { max-width: 760px; padding-top: 18px; }
    .hero-copy h1 { font-size: clamp(56px, 4vw, 72px); }
    .hero-copy .eyebrow { margin-bottom: 28px; }
    .hero-copy .lead { max-width: 520px; font-size: 20px; line-height: 1.55; }
    .hero-line em { color: var(--sage-deep); font-size: .78em; }
    .hero-actions { margin-top: 8px; }
    .hero-art { min-height: 670px; }
    .arch {
      inset: 0 0 0 5%;
      border-radius: 48% 48% 28px 28px / 29% 29% 4% 4%;
      background: var(--blue-pale);
      box-shadow: 0 36px 90px rgba(101,101,101,.16);
    }
    .arch::before { inset: 0; z-index: 2; border-radius: inherit; background: linear-gradient(180deg, transparent 56%, rgba(101,101,101,.18) 100%); }
    .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.025); transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
    .hero:hover .arch img { transform: scale(1.07); }
    .stem { display: none; }
    .hero-note { right: 4%; bottom: 5%; width: 205px; padding: 18px 22px; border-radius: 999px; color: var(--white); background: rgba(101,101,101,.72); backdrop-filter: blur(12px); font-size: 21px; text-align: center; }

    .trust { border: 0; padding: 24px 0 34px; }
    .trust-grid { gap: 12px; }
    .trust-item { min-height: 132px; padding: 26px; border: 0; border-radius: 30px 30px 30px 8px; background: var(--paper-light); }
    .trust-item:nth-child(2) { background: var(--paper-deep); border-radius: 30px 8px 30px 30px; }
    .trust-item:nth-child(3) { background: var(--blue-pale); }
    .trust-item:nth-child(4) { background: var(--sand); border-radius: 8px 30px 30px 30px; }
    .trust-icon { background: rgba(255,255,255,.55); }
    .trust-item strong { font-size: 17px; font-weight: 400; }
    .trust-item small { font-size: 13px; }

    .motion-marquee { padding: 20px 0; background: var(--white); color: var(--plum); border-block: 1px solid var(--line); }
    .marquee-group span { font-size: 29px; }
    .marquee-group span::after { color: var(--sage); }

    #concerns { overflow: hidden; }
    #concerns .section-head { margin-inline: auto; text-align: center; }
    #concerns .section-head .eyebrow { justify-content: center; }
    .concerns-grid { gap: 16px; }
    .concern-card { min-height: 300px; padding: 34px; border: 0; border-radius: 42px 42px 42px 10px; background: var(--paper-light); }
    .concern-card:nth-child(2), .concern-card:nth-child(5) { transform: translateY(30px); background: var(--paper-deep); border-radius: 42px 10px 42px 42px; }
    .concern-card:nth-child(3), .concern-card:nth-child(4) { background: var(--blue-pale); }
    .concern-card:nth-child(6) { background: var(--sand); }
    .concern-card:hover { background: var(--sage-light); }
    .concern-card h3 { font-size: 37px; margin-bottom: 16px; }
    .concern-card p { font-size: 15px; line-height: 1.55; }
    .card-number { font-family: var(--serif); font-size: 18px; }

    #about { background: var(--white); }
    .about-grid { grid-template-columns: 1.02fr .98fr; gap: 8vw; }
    .about-visual { min-height: 720px; border-radius: 48% 48% 18px 18px / 28% 28% 3% 3%; background: var(--blue-pale); box-shadow: var(--shadow); }
    .about-visual .portrait-placeholder { inset: 0; border: 0; border-radius: inherit; overflow: hidden; background: var(--blue-pale); }
    .about-visual .portrait-placeholder::before { display: none; }
    .about-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s cubic-bezier(.22,1,.36,1); }
    .about-visual:hover img { transform: scale(1.05); }
    .about-visual::before { width: 220px; height: 220px; background: var(--rose-deep); opacity: .78; }
    .about-visual::after { width: 160px; height: 160px; border-color: var(--white); right: 30px; top: 62px; opacity: .62; }
    .about-copy h2 { max-width: 660px; }
    .about-list { gap: 0; border-top: 1px solid var(--line); }
    .about-list li { padding: 17px 0 17px 34px; border-bottom: 1px solid var(--line); }

    #consultations.section-sage { background: var(--paper-light); color: var(--plum); animation: none; }
    #consultations .section-head { max-width: 930px; }
    .consultations-grid { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: service; }
    .consult-card, .consult-card.featured {
      min-height: 0;
      padding: 46px 30px;
      border-radius: 0;
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: 88px minmax(260px,.85fr) minmax(260px,1fr) 170px;
      grid-template-rows: auto auto 1fr;
      gap: 8px 36px;
      align-items: start;
      background: transparent;
      color: var(--plum);
      transform: none;
      box-shadow: none;
    }
    .consult-card::before { counter-increment: service; content: "0" counter(service); grid-column: 1; grid-row: 1 / 4; font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--taupe); }
    .consult-card .pill { grid-column: 2; grid-row: 1; }
    .consult-card h3 { grid-column: 2; grid-row: 2; margin: 16px 0 0; font-size: 48px; }
    .consult-card > p { grid-column: 3; grid-row: 1 / 2; margin: 0; line-height: 1.55; }
    .consult-card .consult-meta { grid-column: 3; grid-row: 2 / 4; width: 100%; margin: 10px 0 0; }
    .consult-card .link-arrow { grid-column: 4; grid-row: 1 / 4; align-self: center; justify-self: end; }
    .featured .consult-meta span { border-color: var(--line); }
    .consult-card:hover, .consult-card.featured:hover { transform: translateX(10px); box-shadow: none; }

    #process.section-sage { background: var(--sage-light); color: var(--plum); animation: none; border-radius: 76px; }
    #process .section-head { margin-inline: auto; text-align: center; }
    #process .section-head .eyebrow { justify-content: center; }
    .steps { gap: 12px; }
    .step { min-height: 310px; padding: 34px; border: 0; border-radius: 46% 46% 28px 28px / 25% 25% 5% 5%; background: rgba(255,255,255,.62); }
    .step:nth-child(even) { margin-top: 32px; background: rgba(244,234,232,.78); }
    .step::before { margin-bottom: 64px; font-family: var(--serif); font-size: 18px; }
    .step::after { top: 35px; left: auto; right: 34px; background: var(--sage); }
    .step:hover { background: var(--white); }
    .step h3 { font-size: 31px; }

    #programs .section-head { max-width: 960px; }
    .programs-grid { grid-template-columns: 1.18fr .82fr; }
    .program-card { min-height: 560px; padding: 48px; border-radius: 50px 50px 50px 12px; }
    .program-card.large { background: var(--blue-pale); }
    .program-card.small { background: var(--sand); border-radius: 50px 12px 50px 50px; }
    .program-card::after { background: var(--rose-deep); }

    #articles { background: var(--paper-light); }
    .articles-grid { gap: 18px; }
    .article-cover { aspect-ratio: .95; border-radius: 44% 44% 22px 22px / 24% 24% 4% 4%; }
    .article:nth-child(2) { margin-top: 54px; }
    .article h3 { font-size: 34px; }

    #faq .section-head { position: sticky; top: 120px; }
    summary { font-size: 30px; padding-block: 30px; }

    .booking { margin: 0 24px 24px; border-radius: 76px; background: var(--sage); color: var(--white); }
    .booking .lead { color: rgba(255,255,255,.82); }
    .booking-form { background: rgba(255,255,255,.92); box-shadow: 0 32px 80px rgba(101,101,101,.18); }
    .field input, .field select, .field textarea { background: rgba(255,255,255,.76); }
    .footer { border-radius: 64px 64px 0 0; }

    @media (max-width: 1050px) {
      .container { width: min(100% - 44px, 920px); }
      .hero { min-height: auto; }
      .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
      .hero-art { min-height: 570px; }
      .trust-grid { grid-template-columns: repeat(2, 1fr); }
      .consult-card, .consult-card.featured { grid-template-columns: 70px 1fr 1fr; }
      .consult-card .link-arrow { grid-column: 2 / 4; grid-row: 4; justify-self: start; margin-top: 22px; }
      .about-visual { min-height: 620px; }
      .terms-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 820px) {
      .container { width: min(100% - 34px, 720px); }
      .section { padding: 92px 0; }
      .site-header::after { inset-inline: 18px; }
      .hero { padding-top: 126px; background: linear-gradient(162deg, #ffffff 0 51%, #d0d6dd 51.2% 100%); border-radius: 0 0 50px 50px; }
      .hero-grid { grid-template-columns: 1fr; gap: 54px; }
      .hero-art { min-height: 620px; width: min(600px,100%); }
      .trust { padding-top: 18px; }
      .concerns-grid { grid-template-columns: repeat(2,1fr); }
      .concern-card:nth-child(2), .concern-card:nth-child(5) { transform: none; }
      .about-grid { grid-template-columns: 1fr; }
      .about-visual { min-height: 680px; max-width: 600px; }
      .consult-card, .consult-card.featured { grid-template-columns: 64px 1fr; padding-inline: 10px; }
      .consult-card > p, .consult-card .consult-meta { grid-column: 2; }
      .consult-card > p { grid-row: 3; margin-top: 20px; }
      .consult-card .consult-meta { grid-row: 4; }
      .consult-card .link-arrow { grid-column: 2; grid-row: 5; }
      .steps { grid-template-columns: repeat(2,1fr); }
      .programs-grid { grid-template-columns: 1fr; }
      #faq .section-head { position: static; }
      .booking { margin-inline: 12px; border-radius: 54px; }
    }

    @media (max-width: 560px) {
      body { font-size: 16px; }
      .container { width: calc(100% - 28px); }
      .section { padding: 76px 0; }
      h1 { font-size: clamp(54px, 16.8vw, 76px); }
      h2 { font-size: clamp(46px, 13vw, 62px); }
      .hero { padding: 112px 0 32px; }
      .hero-copy h1 { font-size: clamp(48px, 14vw, 64px); }
      .hero-copy .lead { font-size: 17px; }
      .hero-art { min-height: 460px; }
      .arch { inset-inline: 0; }
      .hero-note { width: 158px; font-size: 17px; padding: 13px 16px; }
      .trust-grid, .concerns-grid { grid-template-columns: 1fr; }
      .trust-item { min-height: 106px; }
      .concern-card { min-height: 230px; }
      .about-visual { min-height: 500px; }
      .terms-grid { grid-template-columns: 1fr; }
      .consult-card, .consult-card.featured { grid-template-columns: 52px 1fr; column-gap: 16px; padding-block: 34px; }
      .consult-card::before { font-size: 40px; }
      .consult-card h3 { font-size: 38px; }
      #process.section-sage { border-radius: 44px; }
      .steps { grid-template-columns: 1fr; }
      .step, .step:nth-child(even) { min-height: 260px; margin-top: 0; }
      .program-card { min-height: 480px; padding: 30px; }
      .article:nth-child(2) { margin-top: 0; }
      .booking { margin: 0 8px 8px; border-radius: 44px; }
      .footer { border-radius: 42px 42px 0 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
      [data-reveal] { opacity: 1; transform: none; }
      .motion-cursor { display: none; }
      .marquee-track { animation: none; }
      .hero-line > span { transform: none; }
    }
  
.hp-field{position:absolute!important;left:-9999px!important;opacity:0!important}.article-meta span:first-child a{color:inherit}.wp-post-image{width:100%;height:100%;object-fit:cover}

/* Mobile stability fixes */
.eyebrow { font-size: 13px; }
.btn { font-size: 15px; }
.pill { font-size: 12px; }
.consent { font-size: 13px; }
.form-status { font-size: 14px; }
.footer h4 { font-size: 13px; }
.footer-links { font-size: 15px; }
.footer-bottom { font-size: 13px; }

html.menu-open,
body.menu-open { overflow: hidden; overscroll-behavior: contain; }

@media (max-width: 820px) {
  .site-header,
  .site-header.scrolled {
    height: 76px;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner { height: 100%; }
  .menu-toggle { flex: 0 0 48px; width: 48px; height: 48px; background: var(--white); touch-action: manipulation; }
  .nav {
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    padding: 112px max(28px, calc((100vw - 720px) / 2)) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition: transform 240ms ease-out, visibility 0s linear 240ms;
  }
  .nav.open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }
  .nav a { width: 100%; font-size: clamp(32px, 9vw, 42px); line-height: 1.12; }
  .nav a::after { display: none; }

  .hero-enter,
  .hero-line > span { animation: none; }
  .section-sage,
  .marquee-track { animation-play-state: paused; }
  [data-reveal],
  [data-reveal].visible { opacity: 1; filter: none; transform: none; transition: none; }

  body { font-size: 18px; line-height: 1.62; }
  .eyebrow { font-size: 13px; line-height: 1.2; }
  .lead { font-size: 19px; }
  .btn { min-height: 56px; font-size: 16px; }
  .trust-item strong { font-size: 19px; }
  .trust-item small { font-size: 15px; line-height: 1.4; }
  .concern-card p { font-size: 17px; }
  .pill { font-size: 13px; }
  .field label { font-size: 15px; }
  .field input, .field select, .field textarea { font-size: 17px; }
  .consent { font-size: 14px; line-height: 1.45; }
  .form-status, .footer-bottom { font-size: 14px; }
  .footer h4 { font-size: 14px; }
  .footer-links { font-size: 16px; }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .concern-card:hover,
  .consult-card:hover,
  .consult-card.featured:hover,
  .step:hover,
  .program-card:hover,
  .article:hover,
  .about-visual:hover,
  .about-visual:hover img,
  .hero:hover .arch img { transform: none; }
  .trust-item:hover .trust-icon { animation: none; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .section { padding-block: 72px; }
  .hero-copy .lead { font-size: 19px; }
  .trust-item { padding-inline: 20px; }
  .hero-note { font-size: 18px; }
}
