/* ============================================================
   Contact us page.
   Oak-brown ground (matches gallery / bookings), white cards
   with dark text and an oak-accent heading rule (matches the
   home "What we do" / review cards).
   ============================================================ */

.page-contact {
    background-color: #6b4423;   /* oak brown */
}

.contact-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.contact-page__head {
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}
.contact-page__head h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}
.contact-page__head p {
    margin: 0 auto;
    max-width: 52ch;
    color: #f0e4d6;
}

/* ---------- Shared card ---------- */
.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.6rem 1.5rem 1.75rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* Even vertical spacing between the page's blocks, whatever their height.
   The details card can grow as long as it likes and the next block always
   sits 1.5rem below it. */
.contact-page > * + * {
    margin-top: 1.5rem;
}
.contact-card h2 {
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    font-size: 1.15rem;
    color: #5a3b28;
    border-bottom: 2px solid #c8a27c;
}
.contact-card p {
    color: #3f3a35;
    line-height: 1.6;
}
.contact-card ul {
    margin: 0.5rem 0 0;
    padding-left: 1.3rem;
    color: #3f3a35;
    line-height: 1.6;
}
.contact-card li { margin-bottom: 0.3rem; }

/* ---------- Top row: details + map ---------- */
.contact-top {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-details__photo {
    width: 100%;
    /* Matches the source photo's own proportions (301x413) so the box is
       always the same shape as the image, at every screen width - a fixed
       max-height instead made the box a different shape (and so a
       different crop) at each breakpoint. */
    aspect-ratio: 301 / 413;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #e9e0d6;
}
.contact-details__intro {
    margin: 1rem 0 0.5rem;
    font-size: 0.97rem;
}

.contact-details__list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.contact-details__list li {
    display: flex;
    gap: 0.9rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.97rem;
    color: #3f3a35;
    line-height: 1.5;
}
.contact-details__label {
    flex: 0 0 4.5rem;
    font-weight: 700;
    color: #6b6b6b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.15rem;
}
.contact-details__list a {
    color: #8b4b07;
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}
.contact-details__list a:hover { text-decoration: underline; }

.contact-details__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.contact-details__social a {
    color: #8b4b07;
    font-size: 0.9rem;
    text-decoration: underline;
}
.contact-details__trust {
    margin: 1.1rem 0 0;
    font-size: 0.85rem;
    color: #6b6b6b;
}

/* ---------- Map ---------- */
.contact-map {
    height: 380px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #e9e0d6;
}
.contact-map-card__note {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: #6b6b6b !important;
}
/* the "what we do" badge - too small to read in the footer, so it gets
   shown properly here (also fills the gap this card otherwise leaves
   below the shorter map on wide screens) */
.contact-map-card__logo {
    display: block;
    width: 100%;
    margin: 1.3rem auto 0;
}
/* keep Leaflet controls under the site header */
.leaflet-pane,
.leaflet-top,
.leaflet-bottom { z-index: 5; }

/* ---------- Enquiry form ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.contact-form__field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #3f3a35;
}
.contact-form__field input,
.contact-form__field textarea {
    font: inherit;
    padding: 0.6rem 0.7rem;
    border: 1px solid #c7bdb1;
    border-radius: 6px;
    background: #fdfbf9;
    width: 100%;
}
.contact-form__field textarea { resize: vertical; }
.contact-form__field.is-invalid input,
.contact-form__field.is-invalid textarea {
    border-color: #a4291f;
}
.contact-form__error {
    font-size: 0.83rem;
    color: #a4291f;
}
.contact-form__errors {
    background: #fbe6e6;
    border: 1px solid #e0b1b1;
    color: #8a1f1f;
    border-radius: 6px;
    padding: 0.7rem 1rem;
}
.contact-form__privacy-note {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin: -0.5rem 0 0;
}
.contact-form__privacy-note a { color: #6a4423; }

.contact-form__submit {
    align-self: flex-start;
    font: inherit;
    padding: 0.7rem 1.5rem;
    border: 1px solid #8b4b07;
    border-radius: 7px;
    background: #8b4b07;
    color: #fff;
    cursor: pointer;
}
.contact-form__submit:hover { background: #733d05; }
.contact-form__submit:focus-visible {
    outline: 3px solid #ffd8a8;
    outline-offset: 2px;
}

/* honeypot - present in the DOM, invisible to people */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
/* tablet: the photo + details side-by-side columns become one stack */
@media (max-width: 820px) {
    .contact-top { grid-template-columns: 1fr; }
}
/* small phones: full-width submit button */
@media (max-width: 520px) {
    .contact-form__submit { align-self: stretch; text-align: center; }
}
