/*
 * Contact Page — Styles
 * Font sizes inherit from theme throughout.
 */

/* ── Tokens ──────────────────────────────────────── */
:root {
    --ct-green:      #3a4a35;
    --ct-gold:       #c9b97a;
    --ct-cream:      #f5f3f0;
    --ct-white:      #ffffff;
    --ct-text:       #3a3228;
    --ct-text-mid:   #6b5f50;
    --ct-text-muted: #9a8c6e;
    --ct-border:     #e0d8cc;
    --ct-px:         80px;
}

/* ── Wrapper breakout ────────────────────────────── */
.ct-page-template .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* ── Base ────────────────────────────────────────── */
.ct-page {
    background: var(--ct-cream);
    color: var(--ct-text);
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 80px;
}

.ct-eyebrow {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ct-text-muted);
    margin-bottom: 16px;
}

.ct-label {
    display: block;
    font-family: sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ct-text-muted);
    margin-bottom: 5px;
}

/* ── Hero ────────────────────────────────────────── */
.ct-hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 520px;
    width: 100%;
}

.ct-hero__text {
    background: var(--ct-white);
    padding: 80px var(--ct-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ct-hero__heading {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 22px;
}

.ct-hero__body p {
    color: var(--ct-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

.ct-hero__media {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.ct-hero__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* ── Showroom & contact info ─────────────────────── */
.ct-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
}

.ct-info__showroom {
    background: var(--ct-green);
    padding: 64px var(--ct-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-info__showroom-heading {
    font-weight: 400;
    color: #e8dfc8 !important;
    margin-bottom: 18px;
    line-height: 1.35;
}

.ct-info__showroom-body p {
    color: rgba(232, 223, 200, 0.65);
    line-height: 1.85;
    margin-bottom: 12px;
}

.ct-info__contact {
    background: var(--ct-white);
    padding: 64px var(--ct-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-width: 0;
}

.ct-info__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-info__value {
    color: var(--ct-text-mid);
    line-height: 1.6;
    text-decoration: none;
}

a.ct-info__value:hover {
    color: var(--ct-green);
}

/* ── Map ─────────────────────────────────────────── */
.ct-map {
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: var(--ct-border);
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Form section ────────────────────────────────── */
.ct-form-section {
    background: var(--ct-white);
    padding: 72px var(--ct-px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    border-top: 0.5px solid var(--ct-border);
}

.ct-form-section__intro {
    text-align: center;
    max-width: 800px;
}

.ct-form-section__heading {
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--ct-text);
}

.ct-form-section__sub {
    color: var(--ct-text-muted);
    line-height: 1.75;
    margin: 0;
}

.ct-form-section__form {
    width: 100%;
    max-width: 900px;
}

/* ── Responsive ──────────────────────────────────── */
@media ( max-width: 900px ) {
    :root { --ct-px: 40px; }
    .ct-map { height: 320px; }
}

@media ( max-width: 768px ) {
    :root { --ct-px: 20px; }

    .ct-page { gap: 0; padding-bottom: 0; }

    .ct-hero,
    .ct-info { grid-template-columns: 1fr; }

    .ct-hero__media { aspect-ratio: 4 / 3; }
    .ct-hero__text  { padding: 48px 20px; }

    .ct-info__showroom,
    .ct-info__contact { padding: 48px 20px; }

    .ct-map { height: 260px; }

    .ct-form-section { padding: 48px 20px; }
}

/* ── Contact info section title ──────────────────── */
.ct-info__title {
    font-weight: 400;
    color: #3a4b35 !important;
    margin-bottom: 32px;
    line-height: 1.35;
}

/* ── Email trigger ───────────────────────────────── */
.ct-email-trigger {
    cursor: pointer;
    border-bottom: 0.5px solid rgba(232, 223, 200, 0.4);
    padding-bottom: 2px;
}

/* ── Email form modal ────────────────────────────── */
.ct-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ct-modal[hidden] { display: none; }

.ct-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.72);
    cursor: pointer;
}

.ct-modal__box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 2px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    padding: 56px 48px;
    animation: ct-fadein 0.25s ease;
}

@keyframes ct-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9a8c6e;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.ct-modal__close:hover { color: #3a3228; }

.ct-modal__heading {
    font-weight: 400;
    margin-bottom: 8px;
    color: #3a3228;
}

.ct-modal__sub {
    color: #9a8c6e;
    margin-bottom: 32px;
    line-height: 1.7;
}