@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #216c5e;
    --primary-dark: #174d44;
    --accent: #e5b95d;
    --ink: #162724;
    --muted: #63726f;
    --surface: #ffffff;
    --background: #f4f8f6;
    --border: #dce7e3;
    --danger: #9d302f;
    --success: #176b4c;
    --shadow: 0 24px 70px rgba(24, 75, 65, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-content,
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    object-fit: contain;
}

.home-link {
    color: var(--primary);
    font-weight: 700;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 150px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.contact-hero::before,
.contact-hero::after {
    position: absolute;
    content: '';
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.contact-hero::before {
    width: 360px;
    height: 360px;
    top: -190px;
    left: -80px;
}

.contact-hero::after {
    width: 180px;
    height: 180px;
    right: 8%;
    bottom: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
}

.hero-content p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.contact-section {
    position: relative;
    z-index: 1;
    margin-top: -78px;
    padding-bottom: 90px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: start;
}

.contact-details,
.form-card {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-details {
    padding: 42px 36px;
}

.contact-details h2,
.form-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.3;
}

.section-intro,
.form-heading p {
    color: var(--muted);
}

.details-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.detail-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.detail-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.detail-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: #e9f3f0;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.whatsapp-icon {
    color: #167a50;
}

.detail-card small,
.detail-card strong {
    display: block;
}

.detail-card small {
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-card strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.form-card {
    padding: 42px;
}

.form-heading {
    margin-bottom: 26px;
}

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

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fbfdfc;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.field select {
    height: 52px;
    padding: 0 14px;
}

.field textarea {
    min-height: 145px;
    padding: 13px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(33, 108, 94, 0.11);
}

.field-hint,
.privacy-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.privacy-note {
    display: inline-block;
    margin: 0 14px 0 0;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 13px;
}

.alert ul {
    margin: 7px 0 0;
    padding-right: 20px;
}

.alert-success {
    border-color: #b8dfce;
    background: #eaf8f2;
    color: var(--success);
}

.alert-error {
    border-color: #efc1bf;
    background: #fff0ef;
    color: var(--danger);
}

.bot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.92rem;
}

footer a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-details,
    .form-card {
        padding: 30px 24px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1140px);
    }

    .contact-hero {
        padding: 60px 0 125px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-button {
        width: 100%;
    }

    .privacy-note {
        display: block;
        margin: 10px 0 0;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
