:root {
    --background: #f8f3ea;
    --paper: #fffdf9;
    --ink: #29251f;
    --muted: #756d62;
    --line: rgba(41, 37, 31, .14);
    --accent: #aa604a;
    --dark: #29251f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "DM Sans", "Noto Kufi Arabic", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 249, .96);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-style: italic;
}

.brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: .15em;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);
    font-size: 12px;
}

.main-nav a:hover,
.main-nav .active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-button {
    padding: 10px 14px;
    border: 1px solid var(--ink);
    font-size: 11px;
}

.language-button:hover {
    background: var(--dark);
    color: #fff;
}

.mobile-menu {
    display: none;
}

.contact-page {
    padding: 72px 0 85px;
}

.page-heading {
    max-width: 690px;
    margin: 0 auto 48px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0 0 15px;
    font-family: "Playfair Display", "Noto Kufi Arabic", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
}

.page-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.contact-layout {
    display: grid;
    grid-template-columns: .85fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.contact-details,
.contact-form-card {
    padding: 31px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.contact-card {
    display: flex;
    gap: 13px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.contact-card:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    color: var(--accent);
}

.contact-card small,
.contact-card strong,
.contact-card a,
.contact-card p {
    display: block;
}

.contact-card small {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
}

.contact-card a,
.contact-card strong {
    font-size: 13px;
    font-weight: 700;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.contact-form-card h2 {
    margin: 0 0 25px;
    font-family: "Playfair Display", "Noto Kufi Arabic", serif;
    font-size: 29px;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.form-group {
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.form-group input {
    height: 45px;
    padding: 0 12px;
}

.form-group textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.send-button {
    margin-top: 22px;
    padding: 13px 20px;
    border: 0;
    background: var(--dark);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.send-button:hover {
    background: var(--accent);
}

.message {
    margin-bottom: 19px;
    padding: 13px;
    font-size: 11px;
    line-height: 1.8;
}

.success-message {
    border: 1px solid #b8d9bd;
    background: #eff8f0;
    color: #286137;
}

.error-message {
    border: 1px solid #e8c0b9;
    background: #fdf0ed;
    color: #8a3b2c;
}

.spam-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.site-footer {
    padding: 23px 0;
    border-top: 1px solid var(--line);
    background: #eee5d8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 11px;
}

.footer-content a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .main-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: relative;
    }

    .mobile-menu summary {
        padding: 8px 11px;
        border: 1px solid var(--ink);
        cursor: pointer;
        list-style: none;
        font-size: 15px;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 180px;
        padding: 8px;
        border: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 12px 28px rgba(41, 37, 31, .12);
    }

    .mobile-menu nav a {
        display: block;
        padding: 11px;
        font-size: 12px;
    }

    .contact-page {
        padding: 48px 0 60px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .brand small {
        display: none;
    }

    .header-content {
        min-height: 70px;
    }

    .contact-details,
    .contact-form-card {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}