
/* =========================================================
   CONTACT PAGE
   EALATHU THIRUCHENTHUR MURUGAN TEMPLE
========================================================= */

.contact-page {
    --maroon: #641b29;
    --deep-maroon: #3c101b;
    --gold: #c39a4d;
    --light-gold: #ead5a3;
    --cream: #fffaf1;
    --text: #49343a;
    font-family: 'Noto Sans Tamil', sans-serif;
    color: var(--text);
    overflow: hidden;
}

.contact-page * {
    box-sizing: border-box;
}

.contact-container {
    width: min(1160px, 90%);
    margin: auto;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    min-height: 370px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    background:
        linear-gradient(rgba(48, 9, 18, .83), rgba(48, 9, 18, .88)),
        url('../images/home/temple-main.jpg') center 45% / cover;
    color: white;
}

.contact-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        radial-gradient(circle, #e9c77f 1px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
}

.contact-hero-overlay {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(222, 185, 112, .35);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.contact-hero-symbol {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-eyebrow {
    color: var(--light-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-hero h1 {
    font-family: 'Noto Serif Tamil', serif;
    font-size: clamp(34px, 5vw, 55px);
    font-weight: 800;
    margin: 15px 0 5px;
    color: #fff;
}

.contact-hero-english {
    color: var(--light-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
}

.contact-hero-line {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 22px auto;
}

.contact-hero-content p {
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,.85);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.contact-section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.contact-section-heading > span {
    color: #a17b38;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-section-heading h2 {
    font-family: 'Noto Serif Tamil', serif;
    color: var(--deep-maroon);
    font-size: clamp(23px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.7;
    margin: 12px 0;
}

.contact-section-heading h2 strong {
    color: #ae8238;
}

.contact-heading-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.contact-heading-decoration i {
    width: 45px;
    height: 1px;
    background: var(--gold);
}

.contact-heading-decoration b {
    color: var(--gold);
    font-size: 18px;
}

.contact-section-heading p {
    font-size: 13px;
    line-height: 2;
    color: #88777b;
}


/* =========================================================
   WEBSITE CREDITS
========================================================= */

.website-credits {
    padding: 85px 0 95px;
    background:
        radial-gradient(circle at 5% 15%, rgba(195,154,77,.09), transparent 280px),
        #fffdf8;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    max-width: 900px;
    margin: auto;
}


/* CREDIT CARD */

.credit-card {
    position: relative;
    background: #fff;
    border: 1px solid #eadfc9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(62, 24, 32, .07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.credit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(62, 24, 32, .13);
}


/* IMAGE AREA */

.credit-image-area {
    height: 310px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(135deg, #521522, #8c3c35);
}

.developer-card .credit-image-area {
    background:
        linear-gradient(135deg, #30202b, #67434a);
}

.credit-image-decoration {
    position: absolute;
    width: 245px;
    height: 245px;
    border: 1px solid rgba(232, 199, 132, .55);
    border-radius: 50%;
    outline: 1px solid rgba(232, 199, 132, .2);
    outline-offset: 10px;
}

.credit-image-area img {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border: 5px solid rgba(255,255,255,.9);
    border-radius: 100px 100px 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.credit-image-placeholder {
    display: none;
    position: absolute;
    z-index: 2;
    width: 190px;
    height: 220px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--light-gold);
    border-radius: 100px 100px 15px 15px;
    background: rgba(255,255,255,.08);
    color: var(--light-gold);
    font-size: 50px;
}

.credit-number {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: rgba(255,255,255,.65);
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: bold;
}


/* CREDIT CONTENT */

.credit-content {
    padding: 30px 27px 22px;
    text-align: center;
}

.credit-role {
    display: inline-block;
    color: #a47b38;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.credit-content h3 {
    color: var(--deep-maroon);
    font-family: 'Noto Serif Tamil', serif;
    font-size: 23px;
    font-weight: 800;
    margin: 13px 0;
    overflow-wrap: anywhere;
}

.credit-gold-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 18px auto;
}

.credit-content p {
    color: #807175;
    font-size: 13px;
    line-height: 2;
    min-height: 80px;
}

.credit-bottom {
    border-top: 1px solid #eee6d9;
    margin-top: 22px;
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-bottom span {
    color: #9a7c48;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.credit-bottom b {
    color: var(--gold);
    font-size: 18px;
}


/* =========================================================
   TEMPLE CONTACT
========================================================= */

.temple-contact-section {
    padding: 85px 0;
    background: #f8f2e8;
}

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

.temple-contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #eaddc6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: .3s ease;
}

.temple-contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(61, 24, 31, .07);
}

.temple-contact-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f7edd9;
    color: var(--maroon);
    font-size: 23px;
}

.temple-contact-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.temple-contact-info span {
    color: #a17b38;
    font-size: 11px;
    font-weight: 800;
}

.temple-contact-info strong {
    color: #4c2630;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.temple-contact-arrow {
    color: var(--gold);
    font-size: 20px;
}


/* =========================================================
   SOCIAL MEDIA
========================================================= */

.contact-social-area {
    margin-top: 60px;
    text-align: center;
}

.contact-social-area > span {
    color: #a17b38;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-social-area h3 {
    font-family: 'Noto Serif Tamil', serif;
    font-size: 23px;
    color: var(--deep-maroon);
    margin: 12px 0 25px;
}

.contact-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: .3s ease;
}

.contact-social:hover {
    transform: translateY(-4px);
}

.contact-social span {
    font-size: 19px;
    font-weight: 800;
}

.facebook {
    background: #2454a0;
}

.whatsapp {
    background: #168b57;
}


/* =========================================================
   FINAL MESSAGE
========================================================= */

.contact-final-message {
    position: relative;
    padding: 65px 20px;
    text-align: center;
    color: white;
    background:
        linear-gradient(rgba(48, 9, 18, .91), rgba(48, 9, 18, .94)),
        url('../images/home/temple-main.jpg') center / cover;
}

.final-message-inner {
    max-width: 750px;
    margin: auto;
}

.final-message-symbol {
    color: var(--light-gold);
    font-size: 42px;
    margin-bottom: 15px;
}

.final-message-inner > span {
    color: var(--light-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.final-message-inner h2 {
    font-family: 'Noto Serif Tamil', serif;
    font-size: clamp(20px, 4vw, 30px);
    line-height: 1.9;
    margin: 18px 0;
}

.final-message-inner p {
    color: var(--light-gold);
    font-size: 14px;
    font-weight: 700;
}


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

@media (max-width: 768px) {

    .contact-hero {
        min-height: 320px;
        padding: 60px 20px;
    }

    .contact-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .website-credits,
    .temple-contact-section {
        padding: 65px 0;
    }

    .credits-grid {
        grid-template-columns: 1fr;
        max-width: 430px;
        gap: 25px;
    }

    .credit-image-area {
        height: 290px;
    }

    .credit-content p {
        min-height: auto;
    }

    .temple-contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-section-heading {
        margin-bottom: 35px;
    }

}

@media (max-width: 480px) {

    .contact-container {
        width: 92%;
    }

    .contact-hero {
        min-height: 290px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }

    .credit-image-area {
        height: 270px;
    }

    .credit-content {
        padding: 25px 20px 20px;
    }

    .credit-content h3 {
        font-size: 20px;
    }

    .temple-contact-card {
        padding: 17px;
        gap: 12px;
    }

    .temple-contact-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .temple-contact-info strong {
        font-size: 12px;
    }

    .contact-social {
        width: 100%;
        justify-content: center;
    }

    .contact-final-message {
        padding: 50px 20px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .credit-card,
    .temple-contact-card,
    .contact-social {
        transition: none;
    }

}


/* =========================================================
   WEBSITE SPONSOR & DEVELOPER
   COMPACT HORIZONTAL DESIGN
   ONLY THESE TWO CARDS ARE SMALL
========================================================= */

.website-credits .credits-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 15px;
}

/* Compact Card */

.website-credits .credit-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    border-radius: 12px;
}

/* Compact Image Area */

.website-credits .credit-image-area {
    width: 145px;
    min-width: 145px;
    height: 165px;
    flex-shrink: 0;
}

/* Compact Photo */

.website-credits .credit-image-area img {
    width: 100px;
    height: 120px;
    border-width: 3px;
    border-radius: 60px 60px 10px 10px;
}

/* Compact Placeholder */

.website-credits .credit-image-placeholder {
    width: 100px;
    height: 120px;
    font-size: 30px;
    border-radius: 60px 60px 10px 10px;
}

/* Compact Image Decoration */

.website-credits .credit-image-decoration {
    width: 115px;
    height: 115px;
}

/* Compact Number */

.website-credits .credit-number {
    font-size: 20px;
    bottom: 7px;
    right: 10px;
}

/* Compact Content */

.website-credits .credit-content {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    text-align: left;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Role */

.website-credits .credit-role {
    font-size: 9px;
    letter-spacing: 1px;
}

/* Name */

.website-credits .credit-content h3 {
    font-size: 18px;
    margin: 7px 0;
}

/* Gold Line */

.website-credits .credit-gold-line {
    width: 35px;
    margin: 8px 0;
}

/* Description */

.website-credits .credit-content p {
    font-size: 11px;
    line-height: 1.8;
    min-height: auto;
    margin: 0;
}

/* Bottom */

.website-credits .credit-bottom {
    margin-top: 10px;
    padding-top: 9px;
}

.website-credits .credit-bottom span {
    font-size: 8px;
}


/* =========================================================
   COMPACT CREDITS - MOBILE
========================================================= */

@media (max-width: 480px) {

    .website-credits .credits-grid {
        max-width: 100%;
        gap: 12px;
    }

    .website-credits .credit-card {
        flex-direction: row;
    }

    .website-credits .credit-image-area {
        width: 110px;
        min-width: 110px;
        height: 150px;
    }

    .website-credits .credit-image-area img {
        width: 78px;
        height: 100px;
    }

    .website-credits .credit-image-placeholder {
        width: 78px;
        height: 100px;
        font-size: 25px;
    }

    .website-credits .credit-image-decoration {
        width: 90px;
        height: 90px;
    }

    .website-credits .credit-content {
        padding: 10px 12px;
    }

    .website-credits .credit-role {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .website-credits .credit-content h3 {
        font-size: 14px;
        margin: 5px 0;
    }

    .website-credits .credit-content p {
        font-size: 10px;
        line-height: 1.7;
    }

    .website-credits .credit-bottom {
        margin-top: 7px;
        padding-top: 7px;
    }

    .website-credits .credit-bottom span {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .website-credits .credit-card {
        transition: none;
    }

}
