/* ================================
   Oak Tree Antiques Contact Page
   Reworked elegant contact page
   Prefix: ota-contact-
================================ */

.wax-stamp {
    width: min(170px, 55vw);
    justify-self: center;
    display: block;
    margin: 0 auto 24px;
    filter: drop-shadow(0 14px 22px rgba(34, 17, 7, 0.18));
}

.ota-contact {
    --ota-contact-ink: #071f17;
    --ota-contact-green: #0e2a1e;
    --ota-contact-green-2: #123828;
    --ota-contact-green-3: #061b13;
    --ota-contact-gold: #b88645;
    --ota-contact-gold-2: #cfa260;
    --ota-contact-gold-soft: #e2b478;
    --ota-contact-paper: #f1e4c8;
    --ota-contact-paper-2: #f8eed8;
    --ota-contact-paper-3: #efe0c2;
    --ota-contact-stone: #bcb297;
    --ota-contact-mahogany: #4a230b;
    --ota-contact-walnut: #6f3c16;
    --ota-contact-text: #221107;
    --ota-contact-muted: #5a5041;
    --ota-contact-border: rgba(184, 134, 69, 0.34);
    --ota-contact-green-border: rgba(14, 42, 30, 0.14);
    --ota-contact-shadow: 0 22px 55px rgba(14, 42, 30, 0.14);
    --ota-contact-shadow-soft: 0 12px 32px rgba(34, 17, 7, 0.08);
    --ota-contact-serif: var(--site-font-heading, "Cinzel", Georgia, "Times New Roman", serif);
    --ota-contact-body: var(--site-font-body, "Cormorant Garamond", Georgia, "Times New Roman", serif);

    position: relative;
    color: var(--ota-contact-text);
    font-family: var(--ota-contact-body);
    background:
        radial-gradient(circle at 12% 0%, rgba(226, 180, 120, 0.25), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(14, 42, 30, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(248, 238, 216, 0.94), rgba(241, 228, 200, 0.96)),
        url("/assets/images/parchment_background.png");
    background-size: auto, auto, auto, cover;
    background-position: center;
    overflow: hidden;
}

.ota-contact *,
.ota-contact *::before,
.ota-contact *::after {
    box-sizing: border-box;
}

.ota-contact__shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ota-contact__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--ota-contact-gold);
    font-family: var(--ota-contact-serif);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.ota-contact__eyebrow::before,
.ota-contact__eyebrow::after {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
}

.ota-contact__title {
    margin: 10px 0 0;
    color: var(--ota-contact-mahogany);
    font-family: var(--ota-contact-serif);
    font-size: clamp(36px, 5.5vw, 68px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ota-contact__copy {
    color: var(--ota-contact-muted);
    line-height: 1.72;
    font-size: 16px;
}

/* Hero */

.ota-contact__hero {
    position: relative;
    isolation: isolate;
    min-height: 270px;
    padding: clamp(46px, 6vw, 76px) 0 clamp(76px, 7vw, 104px);
    border-bottom: 1px solid var(--ota-contact-border);
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:linear-gradient(45deg,rgba(255, 255, 255, 0.281),white),
        url("/assets/images/parchment_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ota-contact__hero::before,
.ota-contact__hero::after {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    width: min(145px, 13vw);
    border-top: 1px solid rgba(226, 180, 120, 0.54);
    border-bottom: 1px solid rgba(226, 180, 120, 0.54);
    opacity: 0.82;
    z-index: 1;
    pointer-events: none;
}

.ota-contact__hero::before {
    left: 28px;
    border-left: 1px solid rgba(226, 180, 120, 0.54);
}

.ota-contact__hero::after {
    right: 28px;
    border-right: 1px solid rgba(226, 180, 120, 0.54);
}

.ota-contact__hero .ota-contact__shell {
    z-index: 2;
}

.ota-contact__hero .ota-contact__eyebrow {
    color: var(--ota-contact-gold);
}

.ota-contact__hero .ota-contact__copy {
    max-width: 700px;
    margin: 18px auto 0;
    color: rgba(248, 238, 216, 0.88);
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--ota-contact-green);
}

/* Contact Section */

.ota-contact__section {
    position: relative;
    padding: 0 0 clamp(64px, 8vw, 92px);
    border-bottom: 1px solid var(--ota-contact-border);
}

.ota-contact__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: stretch;
    margin-top: -52px;
}

.ota-contact__info-card,
.ota-contact__form-card {
    position: relative;
    border: 1px solid rgba(184, 134, 69, 0.34);
    background:
        linear-gradient(180deg, rgba(248, 238, 216, 0.95), rgba(239, 224, 194, 0.90));
    box-shadow: var(--ota-contact-shadow);
    overflow: hidden;
}

.ota-contact__info-card::before,
.ota-contact__form-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(184, 134, 69, 0.18);
    pointer-events: none;
    z-index: 1;
}

.ota-contact__info-card {
    padding: 32px;
}

.ota-contact__card-inner,
.ota-contact__form-card > * {
    position: relative;
    z-index: 2;
}

.ota-contact__info-card h2,
.ota-contact__form-card h2 {
    margin: 10px 0 12px;
    color: var(--ota-contact-green);
    font-family: var(--ota-contact-serif);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: 0.10em;
    line-height: 1.15;
    text-transform: uppercase;
}

.ota-contact__info-card p {
    margin: 0;
}

.ota-contact__detail-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.ota-contact__detail {
    position: relative;
    padding: 16px 16px 16px 18px;
    border: 1px solid rgba(184, 134, 69, 0.24);
    background: rgba(255, 249, 236, 0.56);
}

.ota-contact__detail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--ota-contact-gold);
}

.ota-contact__detail strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ota-contact-green);
    font-family: var(--ota-contact-serif);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ota-contact__detail span,
.ota-contact__detail a {
    color: var(--ota-contact-muted);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.55;
}

.ota-contact__detail a:hover {
    color: var(--ota-contact-mahogany);
}

.ota-contact__note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 134, 69, 0.24);
    color: var(--ota-contact-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Form Card */

.ota-contact__form-card {
    padding: 32px;
}

.ota-contact__form-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 134, 69, 0.24);
}

.ota-contact__email-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(184, 134, 69, 0.42);
    background: rgba(255, 249, 236, 0.62);
    color: var(--ota-contact-green);
    font-family: var(--ota-contact-serif);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: 0.25s ease;
}

.ota-contact__email-pill:hover {
    background: var(--ota-contact-green);
    color: var(--ota-contact-paper-2);
}

.ota-contact__flash {
    margin-bottom: 16px;
    padding: 14px 15px;
    border: 1px solid rgba(122, 41, 30, 0.22);
    background: rgba(122, 41, 30, 0.10);
    color: #5a2118;
    font-size: 14px;
    line-height: 1.5;
}

.ota-contact__flash--success {
    border-color: rgba(14, 42, 30, 0.22);
    background: rgba(14, 42, 30, 0.08);
    color: var(--ota-contact-green);
}

.ota-contact__form {
    display: grid;
    gap: 18px;
}

.ota-contact__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ota-contact__field {
    display: grid;
    gap: 8px;
}

.ota-contact__field span {
    color: var(--ota-contact-green);
    font-family: var(--ota-contact-serif);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ota-contact__field input,
.ota-contact__field select,
.ota-contact__field textarea {
    width: 100%;
    border: 1px solid rgba(14, 42, 30, 0.18);
    background: rgba(255, 249, 236, 0.82);
    color: var(--ota-contact-ink);
    font-family: var(--ota-contact-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ota-contact__field input,
.ota-contact__field select {
    min-height: 50px;
    padding: 0 14px;
}

.ota-contact__field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ota-contact-green) 50%),
        linear-gradient(135deg, var(--ota-contact-green) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.ota-contact__field textarea {
    min-height: 172px;
    padding: 14px;
    resize: vertical;
}

.ota-contact__field input:focus,
.ota-contact__field select:focus,
.ota-contact__field textarea:focus {
    border-color: rgba(184, 134, 69, 0.72);
    background: rgba(255, 252, 244, 0.98);
    box-shadow: 0 0 0 3px rgba(184, 134, 69, 0.14);
}

.ota-contact__submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 4px;
}

.ota-contact__submit-note {
    color: var(--ota-contact-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ota-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    border: 1px solid var(--ota-contact-green);
    background: var(--ota-contact-green);
    color: var(--ota-contact-paper-2);
    font-family: var(--ota-contact-serif);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ota-contact__button:hover {
    background: var(--ota-contact-mahogany);
    border-color: var(--ota-contact-mahogany);
    color: var(--ota-contact-gold-soft);
    transform: translateY(-2px);
}

.ota-privacy-notice {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(184, 134, 69, 0.24);
    background: rgba(255, 249, 236, 0.62);
    color: var(--ota-contact-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ota-privacy-notice a {
    color: var(--ota-contact-green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(184, 134, 69, 0.55);
    text-underline-offset: 3px;
}

/* Backwards compatibility if the old header class is still used */
.ota-contact__header {
    position: relative;
    min-height: 270px;
    padding: clamp(46px, 6vw, 76px) 0 clamp(76px, 7vw, 104px);
    border-bottom: 1px solid var(--ota-contact-border);
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(6, 27, 19, 0.86), rgba(14, 42, 30, 0.62)),
        radial-gradient(circle at 78% 40%, rgba(184, 134, 69, 0.26), transparent 36%),
        url("/assets/images/bg-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ota-contact__header .ota-contact__title {
    color: var(--ota-contact-paper-2);
}

.ota-contact__header .ota-contact__copy {
    max-width: 700px;
    margin: 18px auto 0;
    color: rgba(248, 238, 216, 0.88);
}

@media (max-width: 980px) {
    .ota-contact__hero::before,
    .ota-contact__hero::after {
        display: none;
    }

    .ota-contact__layout {
        grid-template-columns: 1fr;
    }

    .ota-contact__form-intro {
        flex-direction: column;
    }

    .ota-contact__email-pill {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .ota-contact::after {
        inset: 10px;
    }

    .ota-contact__shell {
        width: min(100% - 26px, 1180px);
    }

    .ota-contact__hero,
    .ota-contact__header {
        min-height: 240px;
        padding: 48px 0 82px;
    }

    .ota-contact__section {
        padding-bottom: 56px;
    }

    .ota-contact__layout {
        margin-top: -46px;
    }

    .ota-contact__field-grid {
        grid-template-columns: 1fr;
    }

    .ota-contact__form-card,
    .ota-contact__info-card {
        padding: 22px;
    }

    .ota-contact__submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ota-contact__button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .ota-contact__shell {
        width: min(100% - 24px, 1180px);
    }

    .ota-contact__title {
        letter-spacing: 0.08em;
    }

    .ota-contact__info-card h2,
    .ota-contact__form-card h2 {
        font-size: 23px;
    }

    .ota-contact__eyebrow::before,
    .ota-contact__eyebrow::after {
        width: 24px;
    }
}
