/* Contact page — premium editorial system aligned with the rest of the site */
:root {
    --maxw: 1280px;
    --ct-forest: #1d4a38;
    --ct-forest-deep: #143a2c;
    --ct-cream: #f8f5ef;
    --ct-ivory: #fffdf9;
    --ct-sage: #e8f2ed;
    --ct-gold: #896936;
    --ct-muted: #6b6860;
    --ct-border: rgba(29, 74, 56, 0.12);
    --ct-section-space: clamp(4.75rem, 7vw, 7rem);
    --ct-shadow: 0 24px 70px -42px rgba(25, 50, 39, 0.36);
    --ct-shadow-hover: 0 34px 82px -42px rgba(25, 50, 39, 0.5);
}

.route-contact,
.contact-page {
    overflow: clip;
    background: var(--ct-ivory);
    color: var(--ink);
}

.ct-shell {
    width: min(100%, var(--maxw));
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
    z-index: 2;
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.contact-page h1 {
    margin: 0 0 1.15rem;
    font-size: clamp(2.75rem, 4.1vw, 4.15rem);
    line-height: 0.98;
}

.contact-page h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(2.15rem, 3.2vw, 3.35rem);
    line-height: 1.07;
}

.contact-page h3 {
    font-size: clamp(1.35rem, 1.9vw, 1.75rem);
    line-height: 1.12;
}

.contact-page .eyebrow {
    margin-bottom: 1rem;
    color: var(--ct-gold);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.contact-page .btn {
    min-height: 48px;
    justify-content: center;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.contact-page .btn:hover {
    transform: translateY(-2px);
}

.route-contact .inner-heading,
.route-contact .inner-interactive,
.route-contact .inner-visual {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

.route-contact .inner-motion-line,
.route-contact .inner-morph,
.route-contact .inner-card-glow {
    display: none !important;
}

.ct-section {
    position: relative;
    padding-block: var(--ct-section-space);
}

#discovery-call {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.ct-transition {
    position: absolute;
    right: -5%;
    bottom: -1px;
    left: -5%;
    z-index: 3;
    pointer-events: none;
}

/* Hero */
.ct-hero {
    min-height: clamp(500px, 62svh, 560px);
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(3.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 86% 16%, rgba(245, 237, 216, 0.76), transparent 25rem),
        linear-gradient(135deg, var(--ct-ivory), var(--ct-cream));
}

.ct-hero__glow {
    position: absolute;
    left: -11rem;
    bottom: -14rem;
    width: 33rem;
    aspect-ratio: 1;
    border: 1px solid rgba(29, 74, 56, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.ct-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    color: var(--ct-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-breadcrumb a {
    position: relative;
    color: var(--ct-forest);
}

.ct-breadcrumb a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: var(--ct-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
}

.ct-breadcrumb a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ct-hero__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: center;
}

.ct-hero__copy {
    grid-column: 1 / span 6;
    position: relative;
    z-index: 3;
}

.ct-hero__lead {
    max-width: 610px;
    margin: 0;
    color: var(--ct-forest);
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    line-height: 1.52;
}

.ct-hero__body {
    max-width: 590px;
    margin: 0.75rem 0 0;
    color: var(--ct-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.ct-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.4rem;
    margin-top: 2rem;
}

.ct-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    padding-block: 0.6rem;
    color: var(--ct-forest);
    font-size: 0.9rem;
    font-weight: 500;
}

.ct-text-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.ct-text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ct-hero__visual {
    grid-column: 8 / -1;
    position: relative;
    width: min(100%, 560px);
    margin: 0 0 0 auto;
}

.ct-hero__visual::before {
    content: "";
    position: absolute;
    inset: -1.2rem 2.5rem 2.2rem -1.2rem;
    z-index: -1;
    border-radius: 50% 50% 22px 22px / 24% 24% 22px 22px;
    background: rgba(210, 226, 215, 0.62);
    transform: rotate(-2.5deg);
}

.ct-hero__image {
    overflow: hidden;
    height: clamp(320px, 29vw, 380px);
    aspect-ratio: auto;
    border: 6px solid rgba(255, 255, 255, 0.76);
    border-radius: 50% 50% 22px 22px / 24% 24% 22px 22px;
    background: var(--ct-sage);
    box-shadow: var(--ct-shadow);
}

.ct-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ct-hero__visual:hover img {
    transform: scale(1.025);
}

.ct-hero__note {
    position: absolute;
    right: -1.25rem;
    bottom: -1.4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    width: min(325px, 82%);
    padding: 1rem 1.15rem;
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 20px 50px -28px rgba(29, 74, 56, 0.5);
    backdrop-filter: blur(12px);
}

.ct-hero__note > span {
    color: var(--ct-gold);
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 0.8;
}

.ct-hero__note p {
    margin: 0;
    color: var(--ct-forest);
    font-family: var(--serif);
    font-size: 0.96rem;
    line-height: 1.35;
}

.ct-transition--hero {
    height: clamp(38px, 5vw, 68px);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--ct-sage);
    transform: translateY(52%);
}

/* Enquiry section */
.ct-enquiry {
    padding-top: calc(var(--ct-section-space) + 0.75rem);
    background:
        radial-gradient(circle at 5% 15%, rgba(232, 242, 237, 0.72), transparent 22rem),
        radial-gradient(circle at 96% 78%, rgba(245, 237, 216, 0.72), transparent 22rem),
        var(--ct-ivory);
}

.ct-enquiry__dots {
    position: absolute;
    top: 7rem;
    right: 2%;
    width: 245px;
    height: 210px;
    opacity: 0.045;
    background-image: radial-gradient(var(--ct-forest) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.ct-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ct-heading {
    max-width: 780px;
}

.ct-heading-row > p {
    max-width: 540px;
    margin: 0;
    justify-self: end;
    color: var(--ct-muted);
    line-height: 1.75;
}

.ct-enquiry__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: stretch;
}

.ct-guidance {
    min-height: 720px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--ct-forest);
    box-shadow: var(--ct-shadow);
}

.ct-guidance__image {
    min-height: 240px;
    background:
        linear-gradient(180deg, rgba(20, 58, 44, 0.02), rgba(20, 58, 44, 0.38)),
        url("../images/contact-process-v1.jpg") center / cover no-repeat;
}

.ct-guidance__content {
    flex: 1;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    position: relative;
}

.ct-guidance__content::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -65px;
    width: 160px;
    aspect-ratio: 1;
    border: 1px solid rgba(245, 237, 216, 0.11);
    border-radius: 50%;
}

.ct-guidance .eyebrow {
    color: var(--gold-light);
}

.ct-guidance h3 {
    margin: 0 0 1.4rem;
    color: var(--ct-ivory);
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.ct-guidance ol {
    position: relative;
    z-index: 2;
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-guidance li {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-guidance li > span {
    color: var(--ct-gold);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.ct-guidance li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ct-ivory);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
}

.ct-guidance li p {
    margin: 0;
    color: rgba(255, 253, 249, 0.66);
    font-size: 0.82rem;
    line-height: 1.6;
}

.ct-public-contact {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 253, 249, 0.72);
    font-size: 0.82rem;
}

.ct-public-contact p {
    margin: 0 0 0.3rem;
    color: var(--gold-light);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-public-contact a {
    color: var(--ct-ivory);
}

.ct-form-card {
    min-height: 720px;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4.5vw, 4rem);
    border: 1px solid var(--ct-border);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--ct-shadow);
}

.ct-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 2rem;
    left: 2rem;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--ct-gold), var(--ct-forest));
}

.ct-form-card__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ct-form-card__number {
    display: grid;
    width: 48px;
    aspect-ratio: 1;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--ct-sage);
    color: var(--ct-forest);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.ct-form-card__heading p {
    margin: 0 0 0.2rem;
    color: var(--ct-gold);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-form-card__heading h3 {
    margin: 0;
    font-size: clamp(1.7rem, 2.7vw, 2.35rem);
}

.route-contact .hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.ct-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ct-field {
    margin-bottom: 1rem;
}

.ct-field label {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--ct-forest);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-field label span {
    color: var(--ct-gold);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    border: 1px solid rgba(29, 74, 56, 0.16);
    border-radius: 12px;
    background: var(--ct-cream);
    color: var(--ink);
    font: inherit;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.ct-field input,
.ct-field select {
    min-height: 54px;
    padding: 0.75rem 0.9rem;
}

.ct-field textarea {
    min-height: 160px;
    padding: 0.85rem 0.9rem;
    resize: vertical;
}

.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover {
    border-color: rgba(176, 141, 87, 0.5);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: 0;
    border-color: var(--ct-gold);
    background: var(--ct-ivory);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

.ct-field input[aria-invalid="true"],
.ct-field textarea[aria-invalid="true"] {
    border-color: #a45f50;
    box-shadow: 0 0 0 3px rgba(164, 95, 80, 0.1);
}

.route-contact .consent-field {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin: 1rem 0 1.25rem;
    color: var(--ct-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.route-contact .consent-field input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    margin-top: 0.17rem;
    accent-color: var(--ct-forest);
}

.route-contact button[aria-busy="true"] {
    opacity: 0.72;
    cursor: wait;
}

.ct-form-card .btn[type="submit"] {
    min-width: 200px;
}

.route-contact #contact-status {
    display: none;
    margin: 1rem 0 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.route-contact #contact-status:not(:empty) {
    display: block;
}

.route-contact #contact-status.is-error {
    border-color: rgba(164, 95, 80, 0.28);
    background: #f6e9e4;
    color: #74483f;
}

.route-contact #contact-status.is-success {
    border-color: rgba(29, 74, 56, 0.2);
    background: var(--ct-sage);
    color: var(--ct-forest);
}

/* Final guidance section */
.ct-next {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(5.5rem, 10vw, 9rem);
    text-align: center;
    background: linear-gradient(90deg, rgba(29, 74, 56, 0.97), rgba(29, 74, 56, 0.79));
    color: var(--ct-sage);
}

.ct-next::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -5%;
    left: -5%;
    height: clamp(38px, 5vw, 68px);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: var(--ct-ivory);
    transform: translateY(-50%);
}

.ct-next__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 70vw);
    aspect-ratio: 1;
    border: 1px solid rgba(245, 237, 216, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 237, 216, 0.055), transparent 67%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ct-next .eyebrow {
    color: var(--gold-light);
}

.ct-next h2 {
    max-width: 860px;
    margin-inline: auto;
    color: var(--ct-ivory);
}

.ct-next p {
    max-width: 680px;
    margin: 1.5rem auto 0;
    color: rgba(255, 253, 249, 0.74);
    line-height: 1.75;
}

.ct-next__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 980px) {
    .ct-hero {
        min-height: auto;
    }

    .ct-hero__copy {
        grid-column: 1 / span 7;
    }

    .ct-hero__visual {
        grid-column: 8 / -1;
    }

    .ct-enquiry__grid {
        grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    }
}

@media (max-width: 800px) {
    .ct-hero {
        padding-top: 1.5rem;
    }

    .ct-hero__grid,
    .ct-heading-row,
    .ct-enquiry__grid {
        grid-template-columns: 1fr;
    }

    .ct-hero__copy,
    .ct-hero__visual {
        grid-column: 1;
    }

    .ct-hero__copy {
        max-width: 690px;
    }

    .ct-hero__visual {
        width: min(92%, 580px);
        margin: 1.5rem auto 0;
    }

    .ct-heading-row {
        gap: 2rem;
    }

    .ct-heading-row > p {
        justify-self: start;
    }

    .ct-guidance,
    .ct-form-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .contact-page h1 {
        font-size: clamp(2.5rem, 11vw, 3.45rem);
    }

    .ct-hero__image {
        height: 260px;
    }

    .contact-page h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .ct-hero__actions,
    .ct-next__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ct-hero__actions .btn,
    .ct-next__actions .btn {
        width: 100%;
    }

    .ct-text-link {
        align-self: flex-start;
    }

    .ct-hero__visual {
        width: calc(100% - 8px);
    }

    .ct-hero__note {
        right: -0.6rem;
        width: min(300px, 88%);
    }

    .ct-guidance__image {
        min-height: 210px;
    }

    .ct-form-card {
        padding: 1.5rem;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ct-form-card .btn[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
