/* ============================================================
   Gestalt therapist promo — warm & soulful palette
   Earthy tones: ochre · olive · terracotta · cream
   ============================================================ */

:root {
    /* Palette */
    --cream:        #faf6ef;
    --cream-deep:   #f1e9da;
    --sand:         #e8dcc4;
    --terracotta:   #c87856;
    --terracotta-d: #a85e3f;
    --olive:        #6b6a4a;
    --olive-d:      #4d4c33;
    --ink:          #2e2a23;
    --ink-soft:     #5c554a;
    --muted:        #706754;
    --white:        #ffffff;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container:    1120px;
    --radius:       18px;
    --radius-sm:    12px;
    --shadow-sm:    0 2px 12px rgba(74, 60, 40, 0.06);
    --shadow:       0 10px 40px rgba(74, 60, 40, 0.10);
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------- Reset ------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------------------- Layout helpers ------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: 760px; }

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--cream-deep);
}

.section-head {
    margin-bottom: 56px;
    max-width: 640px;
}

.section-head.center,
.section-head .center { margin-inline: auto; }

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 14px;
}

.eyebrow.center { text-align: center; }

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-title.center { text-align: center; }

.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.lead.center { text-align: center; }

.center { text-align: center; }

/* ------------------- Buttons ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    background: var(--terracotta);
    border-radius: 100px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(200, 120, 86, 0.25);
}

.btn:hover {
    background: var(--terracotta-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 120, 86, 0.35);
}

/* Disabled submit button: during an in-flight request and after a successful
   submit (the form is not idempotent — locking prevents duplicate leads). */
.btn:disabled {
    background: var(--muted);
    cursor: default;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

.btn-ghost {
    background: transparent;
    color: var(--olive-d);
    border: 1.5px solid var(--sand);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--cream-deep);
    color: var(--ink);
    border-color: var(--terracotta);
    box-shadow: none;
}

.btn-small {
    padding: 10px 22px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
    padding: 17px;
    font-size: 17px;
}

/* ------------------- Header / Nav ------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 239, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--sand);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo-mark {
    color: var(--terracotta);
    font-size: 1.8rem;
    line-height: 0;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-size: 15px;
    color: var(--ink-soft);
    transition: color var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta);
    transition: width var(--transition);
}

.nav a:hover { color: var(--terracotta); }
.nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------- Hero ------------------- */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(200, 120, 86, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 12px 0 24px;
    color: var(--ink);
}

.hero-heart {
    display: inline-block;
    width: 0.55em;
    height: auto;
    color: var(--terracotta);
    vertical-align: 0.12em;
    margin-left: 0.12em;
    transform: rotate(-6deg);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-meta li {
    font-size: 14px;
    color: var(--muted);
    position: relative;
    padding-left: 18px;
}

.hero-meta li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-size: 24px;
    line-height: 1;
    top: -2px;
}

/* Hero photo */
.hero-photo {
    position: relative;
}

.photo-frame {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--sand), var(--cream-deep));
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
    transition: transform var(--transition);
}

.photo-frame:hover { transform: rotate(0deg); }

.photo-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-note {
    position: absolute;
    bottom: -28px;
    left: -28px;
    background: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--olive-d);
    max-width: 280px;
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
}

/* ------------------- Cards (approach) ------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--terracotta);
    margin-bottom: 18px;
}

.card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* ------------------- Topics ------------------- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.topic {
    background: var(--cream);
    border: 1px solid var(--sand);
    border-radius: var(--radius-sm);
    padding: 24px 22px;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    position: relative;
    padding-left: 42px;
}

.topic::before {
    content: '·';
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--terracotta);
    font-size: 28px;
    line-height: 1;
}

.topic:hover {
    border-color: var(--terracotta);
    background: var(--white);
    transform: translateY(-2px);
}

.topics-note {
    text-align: center;
    margin-top: 36px;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Two-column split: looping video on the left, heading + grid on the right.
   Stacks to a single column below 960px (see RESPONSIVE). */
.topics-split {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 56px;
    align-items: center;
}

.topics-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 464 / 848;
    /* Portrait video taller than the content column — keep it readable. */
    max-height: 560px;
    justify-self: center;
    width: 100%;
}

.topics-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------- Steps ------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 8px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--terracotta);
    opacity: 0.6;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.step h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--ink-soft);
    font-size: 0.96rem;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -18px;
    width: 20px;
    height: 1px;
    background: var(--sand);
}

/* ------------------- Credentials ------------------- */
.creds {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.creds li {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--sand);
}

.creds li:last-child { border-bottom: none; padding-bottom: 0; }

.cred-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.cred-logo-link {
    display: block;
    line-height: 0;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.cred-logo-link:hover {
    opacity: 0.7;
}

.cred-body { min-width: 0; }

.cred-name {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.cred-period {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--terracotta);
    white-space: nowrap;
    text-align: right;
}

.creds p { color: var(--ink-soft); margin-top: 2px; }

/* ------------------- Price ------------------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.price-card--featured {
    border-color: var(--terracotta);
    box-shadow: var(--shadow);
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 32px;
    background: var(--terracotta);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 100px;
}

.price-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.price-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 44px;
}

.price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1;
}

.price span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}

.price-feats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--cream-deep);
}

.price-feats li {
    font-size: 0.95rem;
    color: var(--ink-soft);
    padding-left: 24px;
    position: relative;
}

.price-feats li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-weight: 600;
}

/* ------------------- Certificates gallery ------------------- */
.certs-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 40px;
}

/* Horizontal scroll rail of document thumbnails (one row, scroll left↔right). */
.certs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    /* Padding so focus outlines & edge shadows aren't clipped. */
    padding: 6px 4px 18px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--sand) transparent;
}

/* Each tile is a <button> — clickable, keyboard-focusable, opens the lightbox. */
.cert-item {
    flex: 0 0 auto;            /* don't shrink; keep natural width in the rail */
    width: 210px;              /* fixed card width → predictable row height */
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.cert-thumb-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    /* Fixed height row: every card aligns despite mixed doc orientations. */
    height: 280px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.cert-item:hover .cert-thumb-wrap,
.cert-item:focus-visible .cert-thumb-wrap {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.cert-item:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.cert-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-caption {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
    text-align: center;
}

/* ------------------- Lightbox (<dialog>) ------------------- */
.lightbox {
    /* Reset the native <dialog> chrome. */
    border: none;
    padding: 0;
    background: transparent;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    inset: 0;
    color: var(--cream);
}

.lightbox::backdrop {
    background: rgba(46, 42, 35, 0.88);
}

.lightbox-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 14px;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 78dvh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.lightbox-counter {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: rgba(250, 246, 239, 0.7);
}

/* Round controls (prev / next / close). */
.lightbox-btn {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(250, 246, 239, 0.14);
    color: var(--cream);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    background: rgba(250, 246, 239, 0.28);
}

.lightbox-btn:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ------------------- FAQ ------------------- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--cream-deep);
    border-radius: var(--radius-sm);
    padding: 4px 24px;
    transition: background var(--transition);
}

.faq-item[open] {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--terracotta);
    font-weight: 300;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    color: var(--ink-soft);
    padding: 0 0 20px;
    max-width: 640px;
}

/* ------------------- Contact ------------------- */
.section-cta {
    background: var(--olive-d);
    color: var(--cream);
}

.section-cta .eyebrow { color: var(--terracotta); }
.section-cta .section-title { color: var(--cream); }
.section-cta .lead { color: rgba(250, 246, 239, 0.8); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.contact-list li {
    font-size: 1.05rem;
    color: var(--cream);
}

.contact-list span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.55);
    margin-bottom: 4px;
}

.contact-list a {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: rgba(250, 246, 239, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.contact-list a:hover {
    text-decoration-color: var(--cream);
}

/* --- QR codes for messengers --- */
.contact-qr-title {
    margin-top: 32px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.55);
}

.contact-qr {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.qr-item img {
    width: 120px;
    height: 120px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.qr-item:hover img {
    transform: scale(1.04);
}

.qr-item span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(250, 246, 239, 0.85);
}

.contact-form {
    background: var(--cream);
    color: var(--ink);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative; /* anchor for the success overlay (.form-success) */
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
}

.optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 120, 86, 0.12);
}

.form-hint {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.form-hint.success {
    color: var(--olive);
    font-weight: 500;
}

/* Success overlay (T0011): shown over the form for ~4s after a successful submit.
   Absolute within .contact-form (position:relative above). Hidden via opacity +
   pointer-events (NOT display:none / visibility:hidden — those break the
   aria-live announcement). .is-visible is toggled from script.js.
   Animations respect prefers-reduced-motion via the global media-query at the
   bottom of this file. WCAG AA (measured): --ink/#fff 14.3:1, --muted/#fff 5.6:1;
   the white ✓ glyph on --success (#2f7d5b) is 5.0:1 — large graphics (≥3:1). */
.form-success {
    --success: #2f7d5b; /* green marker — local token (no green in :root palette) */
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* Scrim: ink at 55% dims the form fields underneath the card. */
    background: rgba(46, 42, 35, 0.55);
    /* Match the form's rounded corners so the scrim sits flush. */
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: opacity 0.25s var(--transition), transform 0.25s var(--transition);
}

.form-success.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.form-success__card {
    background: var(--white);
    color: var(--ink);
    padding: 28px 32px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 360px;
}

.form-success__mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.form-success__title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--ink);
}

.form-success__subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Honeypot field: visually hidden, still in DOM and POST body. Moved off-screen
   rather than display:none, because some bots skip display:none fields. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------------- Footer ------------------- */
.site-footer {
    position: relative;
    background: var(--ink);
    color: rgba(250, 246, 239, 0.7);
    padding: 48px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(250, 246, 239, 0.7);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--terracotta); }

.footer-copy {
    font-size: 0.82rem;
    line-height: 1.3;
    color: rgba(250, 246, 239, 0.4);
    margin-top: 8px;
}

.footer-credit {
    position: absolute;
    right: clamp(20px, 5vw, 80px);
    bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-decoration: none;
    line-height: 1.15;
    transition: opacity var(--transition);
}

.footer-credit:hover {
    opacity: 0.75;
}

.footer-credit-label {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.35);
}

.footer-credit .p43 {
    font-size: 0.82rem;
}

/* --- Plate43 wordmark per brand book --- */
.p43 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0;
}

.p43-num {
    font-style: italic;
    color: #c8763a;
}

/* ------------------- Reveal animation ------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-photo { max-width: 380px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .topics-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Stacked layout: video first, then heading + grid. Center the portrait clip. */
    .topics-media {
        max-height: none;
        max-width: 320px;
    }
    .topics-content { text-align: center; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .step:nth-child(2)::after { display: none; }
    .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
    .section { padding: 72px 0; }
    .hero { padding: 48px 0 72px; }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--cream);
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--sand);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 90;
    }
    .nav.open { transform: translateY(0); }
    .nav a {
        padding: 12px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--cream-deep);
    }
    .nav a::after { display: none; }

    .header-cta { display: none; }
    .menu-toggle { display: flex; }

    .photo-note {
        position: static;
        margin-top: 24px;
        max-width: none;
    }

    .creds li {
        grid-template-columns: 40px 1fr auto;
        gap: 14px;
    }

    .cred-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .cards { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none !important; }
    .hero-actions .btn { width: 100%; }
    .contact-form { padding: 28px 22px; }
    /* On small screens: narrower cards so the next card peeks in (scroll affordance). */
    .cert-item { width: 170px; }
    .cert-thumb-wrap { height: 230px; }
}

@media (max-width: 380px) {
    .cert-item { width: 150px; }
    .cert-thumb-wrap { height: 200px; }
}

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