
/* =========================================================
   NOYAN SANAT — CONTACT PAGE
   Premium dark contact directory
   All content is rendered from WordPress editor.
========================================================= */

.contact-page-content {
    --contact-bg: #0B1422;
    --contact-surface: #111E30;
    --contact-card: #17283E;
    --contact-card-hover: #1C3049;
    --contact-gold: #F5AD25;
    --contact-gold-light: #FFD078;
    --contact-text: #F4F6F9;
    --contact-muted: #C0CBD9;
    --contact-line: rgba(255,255,255,.12);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(42px, 6vw, 88px);

    background:
        radial-gradient(
            ellipse at 82% 12%,
            rgba(245,173,37,.07),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #0B1422 0%,
            #0E1929 55%,
            #0A1320 100%
        );
}

.contact-page-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .13;

    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

    background-size: 46px 46px;

    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* Main layout */

.contact-page-content .inner-content-grid {
    display: grid;
    grid-template-columns: minmax(120px, .24fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.contact-page-content .inner-side {
    position: sticky;
    top: 120px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding-top: 12px;
    color: rgba(255,255,255,.42);
}

.contact-page-content .inner-side span {
    color: var(--contact-gold);
    font-size: 13px;
    letter-spacing: .2em;
}

.contact-page-content .inner-side b {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 700;
}

.contact-page-content .contact-page-main {
    min-width: 0;
}

/* Main content panel */

.contact-page-content .contact-prose {
    direction: rtl;
    max-width: 100%;
    margin: 0;
    padding: clamp(22px, 4vw, 48px);

    color: var(--contact-text);

    background:
        linear-gradient(
            145deg,
            rgba(21,36,58,.97),
            rgba(11,20,34,.98)
        );

    border: 1px solid var(--contact-line);
    border-radius: 18px;

    box-shadow: 0 28px 70px rgba(0,0,0,.24);

    line-height: 2;
    box-sizing: border-box;
}

.contact-page-content .contact-prose > h1:first-child {
    display: none;
}

/* Intro */

.contact-page-content .contact-prose > p:first-of-type {
    margin: 0 0 clamp(34px, 5vw, 58px);
    padding: 22px 26px;

    color: #E8EDF4 !important;

    background:
        linear-gradient(
            100deg,
            rgba(245,173,37,.09),
            rgba(255,255,255,.025)
        ) !important;

    border: 1px solid rgba(245,173,37,.2);
    border-right: 3px solid var(--contact-gold);
    border-radius: 10px;

    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 2.15;
}

/* Headings */

.contact-page-content .contact-prose h2 {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: clamp(38px, 5vw, 58px) 0 18px;
    padding: 0 0 15px;

    color: var(--contact-text) !important;

    border-bottom: 1px solid var(--contact-line);

    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.7;
}

.contact-page-content .contact-prose h2::before {
    content: "";
    flex: 0 0 5px;

    width: 5px;
    height: 25px;

    border-radius: 4px;
    background: var(--contact-gold);

    box-shadow: 0 0 18px rgba(245,173,37,.28);
}

/* Paragraphs */

.contact-page-content .contact-prose p {
    margin: 12px 0 18px;

    color: var(--contact-muted) !important;

    font-size: 14px;
    line-height: 2.2;
}

/* General links */

.contact-page-content .contact-prose a {
    color: var(--contact-gold-light) !important;
    font-weight: 750;
    text-decoration: none !important;
    text-underline-offset: 5px;

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

.contact-page-content .contact-prose a:hover {
    color: #FFFFFF !important;
}

/* =========================================================
   CONTACT DIRECTORY
   The second H2 is "راه‌های ارتباطی".
   Its following UL contains contact groups and details.
========================================================= */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;

    margin: 22px 0 38px !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    list-style: none !important;
}

/* Reset inherited theme list styles */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li {
    position: relative;

    display: flex !important;
    align-items: center;

    min-width: 0;
    min-height: 66px;

    margin: 0 !important;
    padding: 15px 19px !important;

    color: var(--contact-text) !important;

    background:
        linear-gradient(
            135deg,
            #192B42,
            #142338
        ) !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 11px !important;

    box-shadow:
        0 7px 20px rgba(0,0,0,.13),
        inset 0 1px 0 rgba(255,255,255,.025) !important;

    font-size: 14px;
    line-height: 1.9;

    overflow-wrap: anywhere;

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

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:hover {
    background:
        linear-gradient(
            135deg,
            #203650,
            #192B42
        ) !important;

    border-color: rgba(245,173,37,.38) !important;
    transform: translateY(-2px);
}

/* Category headers */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:has(> strong) {
    grid-column: 1 / -1;

    min-height: 45px;
    margin-top: 13px !important;
    padding: 10px 17px !important;

    color: var(--contact-gold-light) !important;

    background:
        linear-gradient(
            90deg,
            rgba(245,173,37,.12),
            rgba(245,173,37,.045)
        ) !important;

    border: 1px solid rgba(245,173,37,.22) !important;
    border-right: 3px solid var(--contact-gold) !important;
    border-radius: 8px !important;

    box-shadow: none !important;

    font-size: 13px;
    font-weight: 800;
}

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li > strong {
    color: var(--contact-gold-light) !important;
    font-weight: 850;
}

/* Phone cards */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:has(a[href^="tel:"]) {
    justify-content: space-between;
}

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    direction: ltr;
    unicode-bidi: isolate;

    color: #FFD078 !important;

    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 850;
    letter-spacing: .025em;
}

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href^="tel:"]::before {
    content: "";

    flex: 0 0 8px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--contact-gold);
    box-shadow: 0 0 0 4px rgba(245,173,37,.13);
}

/* Address row */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:nth-child(9) {
    grid-column: 1 / -1;

    min-height: 76px;

    color: #E2EAF3 !important;
    line-height: 2.2;
}

/* Map row */

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:nth-child(11) {
    grid-column: 1 / -1;

    min-height: 58px;

    background:
        linear-gradient(
            100deg,
            rgba(245,173,37,.10),
            rgba(245,173,37,.035)
        ) !important;

    border-color: rgba(245,173,37,.22) !important;
}

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href*="maps.app.goo.gl"],
.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href*="google.com/maps"] {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--contact-gold-light) !important;
    font-weight: 800;
}

.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href*="maps.app.goo.gl"]::after,
.contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href*="google.com/maps"]::after {
    content: "↗";
    font-size: 17px;
}

/* =========================================================
   PROJECT INFORMATION CHECKLIST
========================================================= */

.contact-page-content .contact-prose h2:nth-of-type(4) + p + ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    margin: 22px 0 35px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    list-style: none !important;
}

.contact-page-content .contact-prose h2:nth-of-type(4) + p + ul > li {
    position: relative;

    display: flex !important;
    align-items: center;

    min-height: 58px;

    margin: 0 !important;
    padding: 12px 42px 12px 16px !important;

    color: #DCE5EF !important;

    background: #17283E !important;

    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 9px !important;

    box-shadow: none !important;

    font-size: 13px;
    line-height: 1.9;
}

.contact-page-content .contact-prose h2:nth-of-type(4) + p + ul > li::before {
    content: "";

    position: absolute;
    top: 50%;
    right: 18px;

    width: 9px;
    height: 9px;

    border: 1.5px solid var(--contact-gold);
    border-radius: 2px;

    transform: translateY(-50%) rotate(45deg);
}

/* =========================================================
   FORM — applies only if a real form is rendered
========================================================= */

.contact-page-content .contact-prose form {
    margin: 22px 0 30px;
    padding: clamp(18px, 3vw, 30px);

    background: #101D2E;
    border: 1px solid var(--contact-line);
    border-radius: 12px;
}

.contact-page-content .contact-prose input,
.contact-page-content .contact-prose textarea,
.contact-page-content .contact-prose select {
    width: 100%;
    max-width: 100%;

    padding: 12px 14px;

    color: #FFFFFF !important;
    background: #0B1727 !important;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;

    font: inherit;
    box-sizing: border-box;
}

.contact-page-content .contact-prose input:focus,
.contact-page-content .contact-prose textarea:focus,
.contact-page-content .contact-prose select:focus {
    outline: 2px solid rgba(245,173,37,.25);
    border-color: var(--contact-gold);
}

.contact-page-content .contact-prose textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-page-content .contact-prose button,
.contact-page-content .contact-prose input[type="submit"] {
    width: auto;
    min-width: 150px;

    padding: 12px 24px;

    color: #161B23 !important;
    background: var(--contact-gold) !important;

    border: 1px solid var(--contact-gold);
    border-radius: 7px;

    font: inherit;
    font-weight: 850;

    cursor: pointer;
}

/* Services button */

.contact-page-content .contact-prose > p:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 8px;
    padding: 13px 24px;

    color: #161B23 !important;
    background: var(--contact-gold) !important;

    border: 1px solid var(--contact-gold);
    border-radius: 8px;

    font-size: 14px;
    font-weight: 850;
}

.contact-page-content .contact-prose > p:last-child a:hover {
    color: #111827 !important;
    background: #FFD078 !important;
    text-decoration: none !important;
}

/* Tablet */

@media (max-width: 900px) {
    .contact-page-content .inner-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-page-content .inner-side {
        position: static;

        flex-direction: row;
        align-items: center;

        gap: 12px;
        padding: 0;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .contact-page-content {
        padding-block: 34px;
    }

    .contact-page-content .contact-prose {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .contact-page-content .contact-prose > p:first-of-type {
        padding: 16px;
        font-size: 13px;
    }

    .contact-page-content .contact-prose h2 {
        margin-top: 34px;
        font-size: 19px;
    }

    .contact-page-content .contact-prose h2:nth-of-type(2) + ul {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .contact-page-content .contact-prose h2:nth-of-type(2) + ul > li {
        min-height: 56px;
        padding: 12px 15px !important;
        font-size: 13px;
    }

    .contact-page-content .contact-prose h2:nth-of-type(2) + ul > li:has(> strong) {
        min-height: 43px;
    }

    .contact-page-content .contact-prose h2:nth-of-type(2) + ul > li a[href^="tel:"] {
        font-size: 15px;
    }

    .contact-page-content .contact-prose h2:nth-of-type(4) + p + ul {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .contact-page-content .contact-prose h2:nth-of-type(4) + p + ul > li {
        min-height: 50px;
    }

    .contact-page-content .contact-prose > p:last-child a {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-page-content .contact-prose button,
    .contact-page-content .contact-prose input[type="submit"] {
        width: 100%;
    }
}

/* Reduced motion */

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