
/* ==========================================================
   THE ONLY BAKER — CONTACT US PAGE
========================================================== */

.tob-contact-page {
    --contact-brown: #432819;
    --contact-accent: #a46b42;
    --contact-muted: #806c5d;
    --contact-cream: #fffaf3;

    background: var(--contact-cream);
    color: var(--contact-brown);
    overflow: clip;
}

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

.tob-contact-container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

/* ==========================================================
   HERO SECTION
========================================================== */

.tob-contact-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 540px;
    padding: 115px 0;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #f3e3d0 0%,
        #fffaf3 55%,
        #f6e9da 100%
    );

    text-align: center;
}

.tob-contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.tob-contact-eyebrow {
    display: inline-block;
    color: var(--contact-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.tob-contact-hero h1 {
    margin: 22px 0;
    color: var(--contact-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.tob-contact-hero h1 em {
    display: block;
    color: var(--contact-accent);
    font-weight: 400;
}

.tob-contact-hero p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: var(--contact-muted);
    font-size: 16px;
    line-height: 1.9;
}

/* ==========================================================
   BUTTON
========================================================== */

.tob-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    padding: 16px 28px;

    border: 1px solid var(--contact-brown);
    border-radius: 4px;

    background: var(--contact-brown);
    color: #ffffff !important;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

@media (hover: hover) {
    .tob-contact-btn:hover {
        background: var(--contact-accent);
        border-color: var(--contact-accent);
        transform: translateY(-3px);
    }
}

.tob-contact-btn:focus-visible {
    outline: 3px solid var(--contact-accent);
    outline-offset: 4px;
}

/* ==========================================================
   DECORATIVE ELEMENT
========================================================== */

.tob-contact-hero-decoration {
    position: absolute;
    right: 8%;
    bottom: 55px;

    color: rgba(164, 107, 66, 0.18);
    font-size: 110px;

    pointer-events: none;
    user-select: none;
}

/* ==========================================================
   MOBILE RESPONSIVE
========================================================== */

@media (max-width: 700px) {

    .tob-contact-container {
        width: calc(100% - 32px);
    }

    .tob-contact-hero {
        min-height: 440px;
        padding: 85px 0;
    }

    .tob-contact-hero h1 {
        font-size: clamp(40px, 9vw, 55px);
        letter-spacing: -1px;
    }

    .tob-contact-hero p {
        font-size: 14px;
        line-height: 1.8;
    }

    .tob-contact-hero-decoration {
        right: 5%;
        bottom: 20px;
        font-size: 70px;
    }
}

@media (max-width: 420px) {

    .tob-contact-hero {
        padding: 75px 0;
    }

    .tob-contact-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .tob-contact-btn {
        transition: none;
    }

    .tob-contact-btn:hover {
        transform: none;
    }
}



/* ==========================================================
   CONTACT US — FORM + INFORMATION
========================================================== */

.tob-contact-main {
    padding: 110px 0 120px;
    background: #fffdf9;
    scroll-margin-top: 90px;
}

.tob-contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(45px, 6vw, 100px);
}

/* ==========================================================
   LEFT — CONTACT INFORMATION
========================================================== */

.tob-contact-info {
    padding-top: 30px;
    min-width: 0;
}

.tob-contact-info h2 {
    margin: 20px 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #432819;
}

.tob-contact-info h2 em {
    display: block;
    color: #a46b42;
    font-weight: 400;
}

.tob-contact-info-intro {
    max-width: 460px;
    margin: 0 0 45px;
    color: #806c5d;
    font-size: 15px;
    line-height: 1.9;
}

.tob-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tob-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tob-contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f5e9dc;
    color: #a46b42;
    font-size: 25px;
}

.tob-contact-info-item h3 {
    margin: 0 0 7px;
    color: #432819;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}

.tob-contact-info-item p {
    margin: 0 0 8px;
    color: #806c5d;
    font-size: 13px;
    line-height: 1.7;
}

.tob-contact-info-pending {
    display: block;
    color: #a46b42;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.tob-contact-info-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    padding: 22px 24px;
    border-left: 3px solid #a46b42;
    background: #f8f1e8;
}

.tob-contact-info-note span {
    color: #a46b42;
    font-size: 23px;
}

.tob-contact-info-note p {
    margin: 0;
    color: #654632;
    font-family: Georgia, serif;
    font-size: 17px;
    font-style: italic;
}

/* ==========================================================
   RIGHT — FORM CARD
========================================================== */

.tob-contact-form-card {
    min-width: 0;
    padding: clamp(25px, 4vw, 48px);
    background: #fffaf3;
    border: 1px solid #eadfd2;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(67, 40, 25, 0.05);
}

.tob-contact-form-heading {
    margin-bottom: 35px;
}

.tob-contact-form-heading h2 {
    margin: 16px 0;
    color: #432819;
    font-family: Georgia, serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
}

.tob-contact-form-heading h2 em {
    color: #a46b42;
    font-weight: 400;
}

.tob-contact-form-heading p {
    max-width: 420px;
    margin: 0;
    color: #806c5d;
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================
   FORM FIELDS
========================================================== */

.tob-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tob-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tob-contact-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
}

.tob-contact-field label {
    color: #432819;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tob-contact-field label > span:not(.tob-contact-optional) {
    color: #a46b42;
}

.tob-contact-optional {
    color: #998777;
    font-size: 11px;
    font-weight: 400;
}

.tob-contact-field input,
.tob-contact-field select,
.tob-contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #e3d4c5;
    border-radius: 4px;
    outline: none;
    background: #fffdf9;
    color: #432819;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tob-contact-field input,
.tob-contact-field select {
    min-height: 52px;
}

.tob-contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.tob-contact-field input::placeholder,
.tob-contact-field textarea::placeholder {
    color: #a59688;
}

.tob-contact-field input:focus,
.tob-contact-field select:focus,
.tob-contact-field textarea:focus {
    border-color: #a46b42;
    box-shadow: 0 0 0 3px rgba(164, 107, 66, 0.12);
}

.tob-contact-field select {
    cursor: pointer;
}

/* ==========================================================
   FORM FOOTER
========================================================== */

.tob-contact-form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.tob-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 54px;
    padding: 16px 28px;
    border: 1px solid #432819;
    border-radius: 4px;
    background: #432819;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

@media (hover: hover) {
    .tob-contact-submit:hover {
        background: #a46b42;
        border-color: #a46b42;
        transform: translateY(-3px);
    }
}

.tob-contact-submit:focus-visible {
    outline: 3px solid #a46b42;
    outline-offset: 4px;
}

.tob-contact-form-footer > p {
    margin: 0;
    color: #998777;
    font-size: 12px;
}

.tob-contact-form-footer > p span {
    margin-right: 5px;
    color: #a46b42;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {
    .tob-contact-main {
        padding: 85px 0;
    }

    .tob-contact-main-grid {
        gap: 35px;
    }

    .tob-contact-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .tob-contact-main {
        padding: 65px 0;
    }

    .tob-contact-main-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .tob-contact-info {
        padding-top: 0;
    }

    .tob-contact-info h2 {
        font-size: clamp(36px, 8vw, 46px);
        letter-spacing: -1px;
    }

    .tob-contact-info-intro {
        font-size: 14px;
        margin-bottom: 35px;
    }

    .tob-contact-info-list {
        gap: 26px;
    }

    .tob-contact-info-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .tob-contact-form-card {
        padding: 28px 20px;
    }

    .tob-contact-form-heading h2 {
        font-size: 34px;
    }

    .tob-contact-form-row {
        gap: 24px;
    }

    .tob-contact-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tob-contact-submit,
    .tob-contact-field input,
    .tob-contact-field select,
    .tob-contact-field textarea {
        transition: none;
    }

    .tob-contact-submit:hover {
        transform: none;
    }
}



/* ==========================================================
   CONTACT US — BUSINESS HOURS & LOCATION
========================================================== */

.tob-contact-visit {
    padding: 115px 0 120px;
    background: #f8f1e8;
    scroll-margin-top: 90px;
}

/* SECTION HEADING */

.tob-contact-visit-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.tob-contact-visit-heading h2 {
    margin: 20px 0;
    color: #432819;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.tob-contact-visit-heading h2 em {
    display: block;
    color: #a46b42;
    font-weight: 400;
}

.tob-contact-visit-heading > p {
    max-width: 570px;
    margin: 0 auto;
    color: #806c5d;
    font-size: 15px;
    line-height: 1.9;
}

/* INFORMATION CARDS */

.tob-contact-visit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.tob-contact-visit-card {
    min-width: 0;
    padding: 45px 42px;
    background: #fffdf9;
    border: 1px solid #e9dccc;
    border-radius: 10px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

@media (hover: hover) {
    .tob-contact-visit-card:hover {
        transform: translateY(-6px);
        border-color: #d9b99b;
        box-shadow: 0 20px 50px rgba(67, 40, 25, 0.08);
    }
}

.tob-contact-visit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    border-radius: 50%;
    background: #f5e9dc;
    color: #a46b42;
    font-size: 34px;
}

.tob-contact-visit-label {
    display: inline-block;
    color: #a46b42;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tob-contact-visit-card h3 {
    margin: 15px 0 18px;
    color: #432819;
    font-family: Georgia, serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
}

.tob-contact-visit-card h3 em {
    color: #a46b42;
    font-weight: 400;
}

.tob-contact-visit-description {
    max-width: 430px;
    margin: 0 0 30px;
    color: #806c5d;
    font-size: 14px;
    line-height: 1.85;
}

/* PENDING DETAILS */

.tob-contact-hours-pending,
.tob-contact-location-pending {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border: 1px solid #eadbca;
    border-radius: 6px;
    background: #fffaf3;
}

.tob-contact-hours-pending > span,
.tob-contact-location-pending > span {
    color: #a46b42;
    font-size: 22px;
    line-height: 1;
}

.tob-contact-hours-pending p,
.tob-contact-location-pending p {
    margin: 0;
    color: #654632;
    font-family: Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}

.tob-contact-visit-small {
    margin: 24px 0 0;
    color: #998777;
    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================================
   MAP SECTION
========================================================== */

.tob-contact-map-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 50px;
    margin-top: 75px;
    padding-top: 65px;
    border-top: 1px solid #dfcebd;
}

.tob-contact-map-info h3 {
    margin: 20px 0;
    color: #432819;
    font-family: Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
}

.tob-contact-map-info h3 em {
    display: block;
    color: #a46b42;
    font-weight: 400;
}

.tob-contact-map-info p {
    max-width: 420px;
    margin: 0;
    color: #806c5d;
    font-size: 14px;
    line-height: 1.9;
}

/* MAP PLACEHOLDER */

.tob-contact-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 370px;
    padding: 35px;
    border: 1px solid #e1cfba;
    border-radius: 10px;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 250, 243, 0.8),
            transparent 65%
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 42px,
            rgba(164, 107, 66, 0.06) 43px
        ),
        repeating-linear-gradient(
            90deg,
            #eadcc9,
            #eadcc9 42px,
            #e3d1bc 43px
        );
    text-align: center;
}

.tob-contact-map-placeholder-content {
    padding: 30px 40px;
    border: 1px solid rgba(164, 107, 66, 0.16);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.93);
    box-shadow: 0 12px 35px rgba(67, 40, 25, 0.06);
}

.tob-contact-map-pin {
    display: block;
    margin-bottom: 15px;
    color: #a46b42;
    font-size: 55px;
    line-height: 1;
}

.tob-contact-map-placeholder-content strong {
    display: block;
    color: #432819;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
}

.tob-contact-map-placeholder-content p {
    margin: 12px 0 0;
    color: #806c5d;
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .tob-contact-visit {
        padding: 85px 0;
    }

    .tob-contact-visit-card {
        padding: 35px 28px;
    }

    .tob-contact-map-section {
        gap: 30px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .tob-contact-visit {
        padding: 65px 0;
    }

    .tob-contact-visit-heading {
        margin-bottom: 35px;
    }

    .tob-contact-visit-heading h2 {
        font-size: clamp(36px, 8vw, 46px);
        letter-spacing: -1px;
    }

    .tob-contact-visit-heading > p {
        font-size: 14px;
    }

    .tob-contact-visit-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tob-contact-visit-card {
        padding: 32px 25px;
    }

    .tob-contact-visit-card h3 {
        font-size: 34px;
    }

    .tob-contact-map-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
        padding-top: 45px;
    }

    .tob-contact-map-placeholder {
        min-height: 300px;
        padding: 20px;
    }

    .tob-contact-map-placeholder-content {
        padding: 25px;
    }
}

@media (max-width: 420px) {

    .tob-contact-visit-card {
        padding: 28px 20px;
    }

    .tob-contact-hours-pending,
    .tob-contact-location-pending {
        padding: 18px;
    }

    .tob-contact-map-placeholder {
        min-height: 270px;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .tob-contact-visit-card {
        transition: none;
    }

    .tob-contact-visit-card:hover {
        transform: none;
    }
}



/* ==========================================================
   CONTACT FORM — SUCCESS / ERROR ALERTS
========================================================== */

.tob-contact-alert {
    margin-bottom: 25px;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.8;
}

.tob-contact-alert-success {
    background: #edf7ee;
    border-color: #c4e5ca;
    color: #285b35;
}

.tob-contact-alert-error {
    background: #fff1ee;
    border-color: #edc6bd;
    color: #963e2e;
}

.tob-contact-alert strong {
    display: block;
    margin-bottom: 8px;
}

.tob-contact-alert ul {
    margin: 0;
    padding-left: 20px;
}

.tob-contact-alert li + li {
    margin-top: 4px;
}



/* ==========================================================
   CONTACT PAGE — FINAL POLISH
========================================================== */

.tob-contact-page {
    isolation: isolate;
}

.tob-contact-page section {
    position: relative;
}

.tob-contact-page a,
.tob-contact-page button {
    -webkit-tap-highlight-color: transparent;
}

/* Better anchor positioning */

#contact-form,
#visit-us {
    scroll-margin-top: 100px;
}

/* Prevent horizontal overflow */

.tob-contact-main-grid,
.tob-contact-visit-grid,
.tob-contact-map-section {
    min-width: 0;
}

.tob-contact-main-grid > *,
.tob-contact-visit-grid > *,
.tob-contact-map-section > * {
    min-width: 0;
}

/* Form input improvements */

.tob-contact-field input,
.tob-contact-field select,
.tob-contact-field textarea {
    font-family: inherit;
}

.tob-contact-field textarea {
    overflow-wrap: anywhere;
}

/* Loading button */

.tob-contact-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.tob-contact-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tob-contact-spin 0.75s linear infinite;
}

@keyframes tob-contact-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alerts */

.tob-contact-alert {
    scroll-margin-top: 120px;
}

.tob-contact-alert:focus {
    outline: none;
}

/* Consistent transitions */

@media (hover: hover) {

    .tob-contact-info-item:hover
    .tob-contact-info-icon {
        background: #ead7c2;
    }

    .tob-contact-map-placeholder:hover {
        border-color: #cda681;
    }

}

/* Tablet */

@media (max-width: 1024px) {

    .tob-contact-main-grid {
        gap: 35px;
    }

    .tob-contact-form-card {
        padding: 30px;
    }

}

/* Mobile */

@media (max-width: 700px) {

    .tob-contact-hero {
        min-height: 420px;
    }

    .tob-contact-main-grid,
    .tob-contact-visit-grid,
    .tob-contact-map-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .tob-contact-form-card {
        padding: 26px 20px;
    }

    .tob-contact-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tob-contact-field input,
    .tob-contact-field select,
    .tob-contact-field textarea {
        font-size: 16px;
    }

    .tob-contact-info-item {
        gap: 15px;
    }

    .tob-contact-visit-heading h2 {
        overflow-wrap: break-word;
    }

    .tob-contact-map-placeholder {
        min-height: 280px;
    }

}

/* Very small devices */

@media (max-width: 360px) {

    .tob-contact-container {
        width: calc(100% - 24px);
    }

    .tob-contact-form-card {
        padding: 22px 16px;
    }

    .tob-contact-info-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .tob-contact-spinner {
        animation: none;
    }

}


.tob-contact-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



