/* =========================================================
   RAJAN INTERIOR & EXTERIORS
   PREMIUM RESPONSIVE STYLE
   English + Tamil | Mobile Optimized
   ========================================================= */

/* =========================
   GENERAL
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================
   HEADER
   ========================= */

header {
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}


/* =========================
   NAVIGATION
   ========================= */

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #c5a059;
}


/* =========================
   LANGUAGE BUTTONS
   ========================= */

.lang-switch {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lang-switch button {
    background: #333;
    color: #fff;
    border: 1px solid #c5a059;
    padding: 6px 11px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s ease;
}

.lang-switch button:hover,
.lang-switch button.active {
    background: #c5a059;
    color: #000;
}


/* =========================
   HERO
   ========================= */

.hero {
    background:
        linear-gradient(
            rgba(0,0,0,0.48),
            rgba(0,0,0,0.62)
        ),
        url('images/hero-bg.jpg')
        no-repeat center center / cover;

    min-height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #fff;

    padding: 40px 20px;

    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 850px;
}

.hero-content h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
    color: #d4af37;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: clamp(13px, 2vw, 17px);
    margin-bottom: 28px;
    letter-spacing: 1.5px;
}

.hero-btn {
    display: inline-block;
    background: #c5a059;
    color: #000;
    padding: 13px 26px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(0,0,0,0.25);
}

.hero-btn:hover {
    transform: translateY(-2px);
    background: #d4af37;
}


/* =========================
   SECTIONS
   ========================= */

section {
    padding: 65px 5%;
    text-align: center;
}

section h2 {
    margin-bottom: 35px;
    color: #1a252f;
    font-size: clamp(25px, 4vw, 34px);
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #c5a059;
    margin: 10px auto 0;
    border-radius: 5px;
}


/* =========================
   ABOUT
   ========================= */

#about p {
    max-width: 850px;
    margin: auto;
    font-size: 16px;
    color: #555;
}


/* =========================
   SERVICES
   ========================= */

.services-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 22px;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   CLICKABLE SERVICE CARDS
   ========================= */

.service-card {
    cursor: pointer;
    touch-action: manipulation;
}

.service-card:active {
    transform: scale(0.98);
}
.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 25px rgba(0,0,0,0.14);
}

.service-card i {
    font-size: 34px;
    color: #c5a059;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 18px;
    color: #222;
}


/* =========================
   MATERIALS
   ========================= */

.materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}


.material-card {
    background: #fff;
    padding: 14px;
    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0,0,0,0.14);
}

.material-card img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    border-radius: 7px;
    margin-bottom: 12px;
}

.material-card h3 {
    font-size: 18px;
    color: #222;
}


/* =========================
   GALLERY TABS
   ========================= */

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;

    max-width: 1000px;
    margin: 0 auto 30px;
}

.tab-btn {
    background: #fff;
    color: #333;

    border: 1px solid #c5a059;

    padding: 9px 16px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #c5a059;
    color: #000;
}


/* =========================
   GALLERY GRID
   ========================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 18px;

    max-width: 1250px;
    margin: auto;
}

.gallery-grid img {
    width: 100%;
    height: 210px;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.025);

    box-shadow:
        0 8px 22px rgba(0,0,0,0.18);
}


/* =========================
   CONTACT
   ========================= */

.contact-container {
    display: flex;

    flex-wrap: wrap;

    gap: 35px;

    justify-content: center;

    align-items: center;

    max-width: 1150px;

    margin: auto;
}

.contact-info {
    text-align: left;
    flex: 1 1 350px;
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 15px;
}

.contact-info i {
    color: #c5a059;
    width: 25px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #c5a059;
}

.map-container {
    flex: 1 1 450px;
}

.map-container iframe {
    width: 100%;
    min-height: 280px;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}


/* =========================
   WHATSAPP
   ========================= */

.whatsapp-float {
    position: fixed;

    bottom: 20px;
    right: 20px;

    background: #25d366;
    color: white;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    border-radius: 50%;

    box-shadow:
        2px 4px 12px rgba(0,0,0,0.25);

    z-index: 1000;

    text-decoration: none;

    transition:
        transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}


/* =========================
   FOOTER
   ========================= */

footer {
    background: #111;
    color: #fff;

    padding: 20px 15px;

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   IMAGE LIGHTBOX
   ========================================================= */

#image-modal {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.92);

    align-items: center;
    justify-content: center;

    z-index: 10000;

    padding: 20px;
}

#image-modal .modal-content {
    position: relative;

    max-width: 95%;
    max-height: 95%;

    display: flex;

    align-items: center;
    justify-content: center;
}

#image-modal #modal-img {
    max-width: 100%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 5px 30px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;

    top: -45px;
    right: 0;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #fff;
    color: #111;

    font-size: 28px;

    line-height: 35px;

    cursor: pointer;

    z-index: 10001;
}

.modal-close:hover {
    background: #c5a059;
}


/* =========================================================
   TAMIL FONT
   ========================================================= */

/* =========================
   TAMIL LANGUAGE TYPOGRAPHY
   ========================= */

html[lang="ta"] body {
    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        "Latha",
        sans-serif;

    letter-spacing: 0;
}

/* Tamil headings */
html[lang="ta"] section h2 {
    line-height: 1.45;
    letter-spacing: 0;
}

/* Tamil Hero */
html[lang="ta"] .hero-content h1 {
    line-height: 1.45;
    letter-spacing: 0;
}

html[lang="ta"] .hero-content p {
    line-height: 1.8;
    letter-spacing: 0;
}

/* Tamil service / material / gallery buttons */
html[lang="ta"] .service-card h3,
html[lang="ta"] .material-card h3,
html[lang="ta"] .tab-btn {
    line-height: 1.5;
    letter-spacing: 0;
}

/* =========================================================
   MOBILE — 768px
   ========================================================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;

        gap: 10px;

        padding: 12px 12px;
    }

    .site-logo {
        height: 42px;
        max-width: 145px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        width: 100%;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 7px 13px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .lang-switch {
        justify-content: center;
    }

    .lang-switch button {
        padding: 5px 10px;
        font-size: 12px;
    }


    /* HERO */

    .hero {
        min-height: 58vh;

        padding:
            45px 18px;
    }

    .hero-content h1 {
        font-size: 27px;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: 1px;
    }

    .hero-btn {
        padding: 11px 20px;
        font-size: 13px;
    }


    /* SECTIONS */

    section {
        padding:
            45px 15px;
    }

    section h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }


    /* ABOUT */

    #about p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .service-card {
        min-height: 125px;

        padding: 20px 10px;
    }

    .service-card i {
        font-size: 27px;
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 14px;
    }


    /* MATERIALS */

    .materials-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .material-card {
        padding: 9px;
    }

    .material-card img {
        height: 135px;
    }

    .material-card h3 {
        font-size: 14px;
        padding-bottom: 4px;
    }


    /* GALLERY BUTTONS */

    .gallery-tabs {
        gap: 7px;

        margin-bottom: 22px;
    }

    .tab-btn {
        padding: 8px 10px;

        font-size: 12px;

        flex: 0 0 auto;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .gallery-grid img {
        height: 145px;
        border-radius: 6px;
    }


    /* CONTACT */

    .contact-container {
        gap: 22px;
    }

    .contact-info {
        text-align: center;
        width: 100%;
    }

    .contact-info p {
        font-size: 13px;
        line-height: 1.7;
    }

    .map-container {
        width: 100%;
    }

    .map-container iframe {
        min-height: 230px;
    }


    /* WHATSAPP */

    .whatsapp-float {
        width: 52px;
        height: 52px;

        bottom: 15px;
        right: 15px;

        font-size: 27px;
    }


    /* LIGHTBOX */

    #image-modal {
        padding: 12px;
    }

    #image-modal #modal-img {
        max-width: 96vw;
        max-height: 82vh;
    }

    .modal-close {
        top: -42px;
        right: 0;
    }
}


/* =========================================================
   VERY SMALL PHONES — 400px
   ========================================================= */

@media (max-width: 400px) {

    nav ul {
        gap: 6px 9px;
    }

    nav ul li a {
        font-size: 11px;
    }

    .hero {
        min-height: 55vh;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .services-grid,
    .materials-grid {
        gap: 9px;
    }

    .service-card h3,
    .material-card h3 {
        font-size: 13px;
    }

    .gallery-grid img {
        height: 125px;
    }
}
/* =====================================================
   RAJAN INTERIOR
   DESKTOP NAVIGATION - ENGLISH & TAMIL FIX
   Mobile CSS is not affected
   ===================================================== */

@media (min-width: 769px) {

    header {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 4%;
        gap: 25px;
    }

    /* Logo */
    header .logo {
        flex: 0 0 170px;
        display: flex;
        align-items: center;
    }

    header .site-logo {
        width: 170px;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Navigation */
    header nav {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    header nav ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(14px, 1.8vw, 28px);
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    header nav ul li {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    header nav ul li a {
        display: block;
        white-space: nowrap;
        padding: 8px 0;
        font-size: 16px;
        line-height: 1.4;
        text-decoration: none;
    }

    /* Tamil navigation */
    html[lang="ta"] header nav ul {
        gap: clamp(10px, 1.2vw, 20px);
    }

    html[lang="ta"] header nav ul li a {
        font-family:
            "Noto Sans Tamil",
            "Nirmala UI",
            "Latha",
            sans-serif;

        font-size: 15px;
        line-height: 1.5;
        letter-spacing: 0;
        white-space: nowrap;
    }

    /* Language buttons */
    header .lang-switch {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    header .lang-switch button {
        white-space: nowrap;
        font-size: 15px;
        padding: 8px 13px;
        line-height: 1.4;
    }
}
@media (max-width: 768px) {

    html[lang="ta"] .hero-content h1 {
        font-size: 23px;
    }

    html[lang="ta"] .hero-content p {
        font-size: 11px;
    }

    html[lang="ta"] section h2 {
        font-size: 24px;
    }

    html[lang="ta"] .service-card h3,
    html[lang="ta"] .material-card h3,
    html[lang="ta"] .tab-btn {
        font-size: 13px;
    }
}