/* ============================================================
   SUFI SAINTS — contact.css (Contact Page)
   Aesthetic: Mystical Islamic Art · Deep Jewel Tones · Gold Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ================= CSS VARIABLES ================= */

:root {
    --deep-navy:    #0a1628;
    --royal-blue:   #0d2246;
    --midnight:     #050e1f;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
    --gold-pale:    #f5e6b8;
    --cream:        #fdf6e3;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a4a6a;
    --white:        #ffffff;
    --shadow-gold:  0 4px 24px rgba(201,168,76,0.18);
    --shadow-deep:  0 8px 40px rgba(5,14,31,0.35);
    --border-gold:  1px solid rgba(201,168,76,0.35);
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    28px;
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--midnight);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(201,168,76,0.15);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 20px,
        rgba(201,168,76,0.03) 20px, rgba(201,168,76,0.03) 40px
    );
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2), var(--shadow-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: rotate(5deg);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.5);
}

.heading-title {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(201,168,76,0.5);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.navbar li { list-style: none; }

.navbar a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.08);
    text-shadow: 0 0 12px rgba(201,168,76,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
}

.hamburger:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
}

/* ================= MAIN ================= */

main { flex: 1; }

/* ================= CONTACT SECTION ================= */

.contact-section {
    padding: 60px 40px;
    max-width: 1000px;
    margin: 50px auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '✦  ✦  ✦';
    display: block;
    color: var(--gold);
    letter-spacing: 14px;
    font-size: 0.85rem;
    opacity: 0.55;
    margin-bottom: 20px;
}

.contact-section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-section > p {
    color: var(--text-mid);
    font-style: italic;
    margin-bottom: 40px;
}

/* ================= CONTACT LAYOUT ================= */

.contact-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.contact-image {
    flex: 1;
    min-width: 220px;
    max-width: 42%;
    text-align: center;
}

.contact-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius-md);
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: var(--shadow-deep), var(--shadow-gold);
    transition: var(--transition);
}

.contact-image img:hover {
    box-shadow: var(--shadow-deep), 0 0 0 4px rgba(201,168,76,0.3);
    transform: scale(1.02);
}

.contact-form-container {
    flex: 1;
    min-width: 260px;
    max-width: 52%;
}

/* ================= CONTACT FORM ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form label {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: var(--royal-blue);
    letter-spacing: 1px;
    margin-bottom: 6px;
    margin-top: 16px;
    display: block;
    font-weight: 600;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: #fdfaf3;
    border: var(--border-gold);
    border-radius: var(--radius-sm);
    font-family: 'Lora', serif;
    font-size: 0.97rem;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    margin-bottom: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    font-family: 'Lora', serif;
}

/* SUBMIT BUTTON */
.contact-form .btn-submit {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--royal-blue), #1a3a6b);
    color: var(--gold-light);
    border: 2px solid rgba(201,168,76,0.5);
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.contact-form .btn-submit:hover {
    background: linear-gradient(135deg, #1a3a6b, #002855);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    letter-spacing: 3px;
}

.contact-form .btn-submit:hover::before {
    opacity: 1;
}

.contact-form .btn-submit:active {
    transform: translateY(0);
}

/* ================= FOOTER ================= */

footer {
    background: linear-gradient(180deg, var(--midnight) 0%, #020914 100%);
    color: var(--gold-pale);
    border-top: 2px solid var(--gold);
    position: relative;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 50px;
    padding: 50px;
    align-items: flex-start;
}

/* FOOTER SECTION */
.footer-section {
    min-width: 0;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.footer-section p,
.footer-section ul {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
}

/* NAVIGATION */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(201,168,76,0.85);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

/* STORE LIST */
.store-list {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    gap: 25px;
    align-items: flex-start;
}

.store-list h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-light);
    line-height: 1.2;
    margin: 0;
}

.store-list p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 18px 10px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    margin: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .store-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .store-list h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .footer-content {
        padding: 40px 25px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul,
    .store-list p {
        font-size: 0.9rem;
    }

    .store-list h1 {
        font-size: 1.8rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}
/* ================= MOBILE ================= */

@media screen and (max-width: 768px) {
    .heading-title { font-size: 1.1rem; }

    .hamburger { display: flex; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .navbar {
        width: 100%;
        background: var(--midnight);
        border-top: 1px solid rgba(201,168,76,0.3);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .navbar li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(201,168,76,0.1);
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border: none;
        font-size: 0.85rem;
    }

    .contact-section {
        padding: 40px 22px;
        margin: 24px 12px;
        border-radius: var(--radius-md);
    }

    .contact-section h2 { font-size: 1.6rem; }

    .contact-container {
        flex-direction: column;
        gap: 28px;
    }

    .contact-image,
    .contact-form-container {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }

    .contact-image img {
        max-width: 85%;
        margin: 0 auto;
        display: block;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px 20px;
    }

    .store-list { gap: 20px; flex-wrap: wrap; }
    .store img { width: 56px; height: 56px; }
}

@media screen and (max-width: 480px) {
    .logo { width: 46px; height: 46px; }
    .heading-title { font-size: 0.95rem; }

    .contact-section h2 { font-size: 1.3rem; }
    .contact-section { padding: 30px 16px; margin: 16px 10px; }

    .contact-form .btn-submit {
        font-size: 0.8rem;
        padding: 12px 24px;
        letter-spacing: 1.5px;
    }

    .footer-bottom { font-size: 0.72rem; }
    .store img { width: 48px; height: 48px; }
}
