/* Purpose: Contact page (Figma 54:1212). Business Hours band, Reach Us (methods + form).
   Hero + Showrooms reuse .about-* styles from about.css. Mobile-first. */

/* ============================================================
   BUSINESS HOURS band — Figma 54:1504
   ============================================================ */
.contact-hours {
    background: #f5edd4;
    padding: var(--space-6) 0;
}
.contact-hours__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}
.contact-hours__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}
.contact-hours__line {
    font-family: var(--font-display);
    font-weight: var(--weight-light);
    font-size: clamp(1.5rem, 3vw, 2rem);   /* 24 → 32px */
    line-height: 1.25;
    color: var(--color-primary);
    /* Figma: lining (uppercase-height) figures, not Cormorant's default old-style. */
    font-feature-settings: "lnum" 1, "pnum" 1;
    font-variant-numeric: lining-nums proportional-nums;
    margin: 0;
}
.contact-hours__time { font-style: italic; }
.contact-hours__note {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.57;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================
   REACH US — Figma 54:1722
   ============================================================ */
.contact-reach {
    background: var(--color-bg);
    padding: var(--space-16) 0;
}
.contact-reach__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}
.contact-reach__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}
.contact-reach__eyebrow { justify-content: flex-start; }
.contact-reach__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(2rem, 4.5vw, 3.375rem);   /* 32 → 54px */
    line-height: 1.15;
    color: var(--color-primary);
    text-transform: capitalize;   /* Figma: "Talk To A Real Person Any Time." */
    margin: 0;
}
.contact-reach__sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.45;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 800px;
}

.contact-reach__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

/* ---- Contact methods (left) ---- */
.contact-methods {
    flex: 1 1 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Spread the rows so the left column fills the same height as the form card (Figma). */
    justify-content: space-between;
}
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    border-bottom: 1px solid #dedfe2;
}
.contact-methods .contact-method:first-child { padding-top: 0; }
.contact-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-full);
    color: var(--color-gold);
    flex: 0 0 auto;
}
.contact-method__icon svg,
.contact-method__icon .icon { width: 18px; height: 18px; }
.contact-method__copy { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.contact-method__label {
    font-family: var(--font-eyebrow);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.contact-method__value {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 24px;
    line-height: 1.33;
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-word;
}
a.contact-method__value:hover { color: var(--color-gold); }
.contact-method__note {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.57;
    color: var(--color-text-muted);
}

/* ---- Contact form (right) ---- */
.contact-form-card {
    flex: 0 0 auto;
    background: var(--color-bg);
    border: 1px solid #e7e8eb;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.contact-form-card__head { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form-card__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 24px;
    line-height: 1.33;
    color: var(--color-primary);
    margin: 0;
}
.contact-form-card__accent { font-style: italic; }
.contact-form-card__sub {
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 14px;
    line-height: 1.57;
    color: var(--color-text-muted);
    margin: 0;
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form__row { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form__field { display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 0; min-width: 0; }
.contact-form__label {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text);
}
.contact-form__input {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background: #fafaf6;
    border: 1px solid #e2e4e3;
    border-radius: 0;
    padding: 12px;
    width: 100%;
    transition: border-color var(--duration-base) var(--ease-out);
}
.contact-form__input::placeholder { color: #757575; }
.contact-form__input:focus-visible {
    outline: none;
    border-color: var(--color-gold);
}
.contact-form__textarea { min-height: 140px; resize: vertical; }

/* Honeypot — off-screen, not display:none (so bots still see it). */
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form__submit {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-on-navy);
    background: var(--color-primary);
    border: none;
    padding: 14px 12px;
    cursor: pointer;
    transition: background var(--duration-base) var(--ease-out);
}
.contact-form__submit:hover { background: var(--color-primary-dark); }
.contact-form__submit:disabled { opacity: 0.6; cursor: default; }

.contact-form__status {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.contact-form__status.is-success { color: #1f7a4d; }
.contact-form__status.is-error   { color: var(--color-error); }

/* ---- Contact Form 7 (form #8, same as live) styled to the Figma card ---- */
.contact-form--cf7 .wpcf7-form,
.contact-form--cf7 .contact-us-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form--cf7 .row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.contact-form--cf7 .row > [class*="col-"] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.contact-form--cf7 .row > .col-sm-12 { flex-basis: 100%; }
.contact-form--cf7 label {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text);
    display: block;
}
.contact-form--cf7 .wpcf7-form-control-wrap { display: block; }
.contact-form--cf7 input.wpcf7-form-control:not([type="submit"]),
.contact-form--cf7 textarea.wpcf7-form-control {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background: #fafaf6;
    border: 1px solid #e2e4e3;
    border-radius: 0;
    padding: 12px;
    width: 100%;
}
.contact-form--cf7 input.wpcf7-form-control::placeholder,
.contact-form--cf7 textarea.wpcf7-form-control::placeholder { color: #757575; }
.contact-form--cf7 input.wpcf7-form-control:focus-visible,
.contact-form--cf7 textarea.wpcf7-form-control:focus-visible { outline: none; border-color: var(--color-gold); }
.contact-form--cf7 textarea.wpcf7-form-control { height: 160px; min-height: 120px; resize: vertical; }
.contact-form--cf7 .button { width: 100%; position: relative; }
.contact-form--cf7 input[type="submit"],
.contact-form--cf7 .wpcf7-submit {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--color-on-navy);
    background: var(--color-primary);
    border: none;
    border-radius: 0;
    padding: 14px 12px;
    width: 100%;
    cursor: pointer;
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
}
.contact-form--cf7 input[type="submit"]:hover,
.contact-form--cf7 input[type="submit"]:focus-visible {
    background: var(--color-gold);
    color: var(--color-primary);
}
.contact-form--cf7 input[type="submit"]:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.contact-form--cf7 input[type="submit"]:active { transform: translateY(1px); }
/* Spinner sits below the submit and reserves ~40px of dead space — take it out of flow,
   pin it to the right edge of the button so it doesn't add height. */
.contact-form--cf7 .wpcf7-spinner {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
.contact-form--cf7 .wpcf7-response-output {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    margin: var(--space-2) 0 0 !important;
    padding: 10px 12px !important;
}
.contact-form--cf7 .wpcf7-not-valid-tip {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-error);
    margin-top: 4px;
}

/* ---- Mobile (< 600px): stack everything, trim section padding to match Home ---- */
@media (max-width: 599px) {
    .contact-hours { padding: var(--space-8) 0; }
    .contact-reach { padding: var(--space-10) 0; }         /* 40px like Home sections */
    .contact-reach__inner { gap: var(--space-8); }
    .contact-reach__body { gap: var(--space-8); }
    /* Paired form fields (First/Last, Email/Phone) stack for breathing room. */
    .contact-form--cf7 .row { flex-direction: column; gap: var(--space-4); }
    .contact-form-card { padding: var(--space-5); }
    .contact-method { padding: var(--space-5) 0; }
    /* No forced spread when stacked — keep rows naturally packed. */
    .contact-methods { justify-content: flex-start; gap: var(--space-2); }
}

@media (min-width: 600px) {
    .contact-form__row { flex-direction: row; }
}
@media (min-width: 1024px) {
    .contact-reach__body { flex-direction: row; align-items: stretch; gap: var(--space-16); }
    .contact-methods { flex: 1 1 0; }
    .contact-form-card { flex: 0 0 46%; max-width: 560px; }
}
