/* =========================================================
   CONTACT PAGE CSS
   شركة الأمل لحلول التبريد
========================================================= */

:root {
    --bg-main: #06131b;
    --bg-secondary: #081a24;
    --bg-card: #0b202c;

    --blue: #20b8f5;
    --blue-dark: #087fae;

    --text-main: #ffffff;
    --text-secondary: #a8bac5;
    --text-muted: #718793;

    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.30);

    --container: 1200px;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    min-height: 85px;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: rgba(6, 19, 27, 0.96);
    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 150px;
    max-width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-phone span:first-child {
    font-size: 18px;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
    width: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 5%;

    background:
        radial-gradient(circle at 15% 50%,
            rgba(32, 184, 245, 0.12),
            transparent 35%),
        linear-gradient(135deg,
            #071923,
            #06131b);

    border-bottom: 1px solid var(--border);
}

.page-header-content {
    width: min(var(--container), 100%);
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.2;
    margin-bottom: 22px;
}

.page-header h1 span {
    color: var(--blue);
}

.page-header p {
    max-width: 700px;
    margin: auto;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2;
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    width: min(var(--container), 90%);
    margin: auto;
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* =========================================================
   CONTACT CARDS
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.contact-card {
    min-height: 150px;
    padding: 25px;

    display: flex;
    align-items: center;
    gap: 20px;

    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: var(--shadow);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(32, 184, 245, 0.45);
    background: #0d2532;
}

.contact-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(32, 184, 245, 0.10);
    border: 1px solid rgba(32, 184, 245, 0.18);

    color: var(--blue);
    font-size: 24px;
    font-weight: 800;
}

.contact-content {
    min-width: 0;
}

.contact-content span {
    display: block;
    color: var(--blue);
    font-size: 13px;
    margin-bottom: 5px;
}

.contact-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    word-break: break-word;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================================
   CTA
========================================================= */

.contact-cta {
    width: min(var(--container), 90%);
    margin: 0 auto 90px;

    padding: 65px 30px;

    text-align: center;

    border: 1px solid rgba(32, 184, 245, 0.18);
    border-radius: 25px;

    background:
        radial-gradient(circle at center,
            rgba(32, 184, 245, 0.10),
            transparent 60%),
        var(--bg-secondary);

    box-shadow: var(--shadow);
}

.cta-content {
    max-width: 750px;
    margin: auto;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button,
.cta-secondary {
    min-width: 170px;
    padding: 13px 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.cta-button {
    background: var(--blue);
    color: #031018;
}

.cta-button:hover {
    background: #54caf8;
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(32, 184, 245, 0.35);
}

.cta-secondary:hover {
    background: rgba(32, 184, 245, 0.08);
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #041018;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-container {
    width: min(var(--container), 90%);
    margin: auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 50px;
}

.footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 14px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer h3 {
    color: var(--text-main);
    font-size: 17px;
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px 5%;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE - 1050px
========================================================= */

@media (max-width: 1050px) {

    .navbar {
        gap: 18px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-phone {
        display: none;
    }

    .contact-grid {
        gap: 18px;
    }

    .footer-container {
        gap: 30px;
    }
}

/* =========================================================
   RESPONSIVE - 800px
========================================================= */

@media (max-width: 800px) {

    .navbar {
        min-height: 75px;
        padding: 10px 5%;
    }

    .logo img {
        width: 105px;
        max-width: none;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 5%;
        left: 5%;

        padding: 15px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        border: 1px solid var(--border);
        border-radius: 14px;

        background: #081a24;
        box-shadow: var(--shadow);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 13px 15px;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: rgba(32, 184, 245, 0.06);
    }

    .nav-links a::after {
        display: none;
    }

    .page-header {
        min-height: 330px;
        padding: 65px 5%;
    }

    .page-header h1 {
        font-size: 45px;
    }

    .page-header p {
        font-size: 14px;
    }

    .contact-section {
        width: 90%;
        padding: 65px 0;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 135px;
    }

    .contact-cta {
        width: 90%;
        margin-bottom: 65px;
        padding: 50px 25px;
    }

    .cta-content h2 {
        font-size: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   RESPONSIVE - 520px
========================================================= */

@media (max-width: 520px) {

    .navbar {
        min-height: 70px;
        padding: 8px 4%;
    }

    .logo img {
        width: 100px;
    }

    .page-header {
        min-height: 300px;
        padding: 55px 5%;
    }

    .page-header h1 {
        font-size: 34px;
    }

    .page-header p {
        font-size: 13px;
        line-height: 1.9;
    }

    .contact-section {
        width: 92%;
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 13px;
        line-height: 1.8;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        min-height: 120px;
        padding: 18px;
        gap: 14px;
        border-radius: 15px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
        font-size: 20px;
    }

    .contact-content span {
        font-size: 11px;
    }

    .contact-content h3 {
        font-size: 16px;
    }

    .contact-content p {
        font-size: 11px;
    }

    .contact-cta {
        width: 92%;
        padding: 40px 18px;
        margin-bottom: 50px;
        border-radius: 18px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 13px;
        line-height: 1.9;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button,
    .cta-secondary {
        width: 100%;
    }

    .footer-container {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
        text-align: center;
    }

    .footer-brand img {
        width: 125px;
    }

    .footer-brand p {
        margin: auto;
        font-size: 13px;
    }

    .footer-links,
    .footer-contact {
        align-items: center;
        text-align: center;
    }
}