/* =========================================================
   DANDY INVESTMENTS (PVT) LTD
   MASTER RESPONSIVE STYLESHEET
   ========================================================= */

/* ---------- GOOGLE FONT ---------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');


/* ---------- DESIGN VARIABLES ---------- */

:root {
    --navy: #002366;
    --navy-dark: #00143d;
    --blue: #0057b8;
    --blue-light: #0b78e3;

    --gold: #f5b700;
    --gold-light: #ffd45c;

    --red: #d90000;
    --red-dark: #a90000;

    --green: #25d366;

    --white: #ffffff;
    --light: #f5f7fb;
    --lighter: #fafcff;

    --text: #222831;
    --muted: #667085;
    --border: #e4e8ef;

    --shadow-sm: 0 4px 12px rgba(0, 35, 102, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 35, 102, 0.12);
    --shadow-lg: 0 18px 45px rgba(0, 35, 102, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container: 1200px;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    font-family: 'Inter', Arial, sans-serif;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #f5f7fb 100%
        );

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-left: auto;
    margin-right: auto;
}


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

header {
    position: sticky;
    top: 0;

    width: 100%;

    z-index: 1000;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy) 55%,
            var(--blue)
        );

    color: var(--white);

    border-bottom: 3px solid var(--gold);

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.15);
}


/* Header inner wrapper */

.header-inner {
    width: min(100% - 40px, var(--container));

    min-height: 105px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


/*
   IMPORTANT:
   Fixed dimensions prevent the logo from randomly
   becoming larger on laptop screens.
*/

.logo img {
    width: 78px !important;
    height: 78px !important;

    min-width: 78px;
    max-width: 78px;

    object-fit: contain;

    background: #ffffff;

    padding: 4px;

    border-radius: 12px;

    border: 2px solid rgba(255,255,255,0.8);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.18);
}


.logo h1 {
    margin: 0;

    font-family: 'Poppins', sans-serif;

    font-size: clamp(19px, 2vw, 27px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: 0.3px;

    color: var(--white);
}


.company-tagline {
    margin: 7px 0 0;

    font-size: clamp(11px, 1.2vw, 14px);

    line-height: 1.4;

    color: rgba(255,255,255,0.92);

    font-weight: 500;
}


.company-motto {
    margin: 4px 0 0;

    font-size: 12px;

    color: #ff4b4b;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    flex: 1;

    display: flex;

    justify-content: flex-end;
}


nav ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 4px;
}


nav ul li {
    position: relative;
}


nav ul li a {
    display: block;

    padding: 10px 12px;

    color: var(--white);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    border-radius: 8px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


nav ul li a:hover {
    background: rgba(255,255,255,0.13);

    color: var(--gold-light);

    transform: translateY(-1px);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown {
    position: absolute;

    top: calc(100% + 10px);

    left: 0;

    min-width: 220px;

    padding: 10px;

    margin: 0;

    background: var(--white);

    border-radius: 12px;

    box-shadow: var(--shadow-lg);

    border: 1px solid var(--border);

    display: none;

    z-index: 2000;
}


nav ul li:hover > .dropdown {
    display: block;
}


.dropdown li {
    width: 100%;
}


.dropdown a {
    color: var(--navy);

    padding: 10px 12px;

    border-radius: 7px;
}


.dropdown a:hover {
    background: #eef5ff;

    color: var(--blue);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 10px;

    background: rgba(255,255,255,0.1);

    color: var(--white);

    font-size: 21px;
}


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

.hero {
    position: relative;

    width: 100%;

    min-height: 470px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 70px 20px;

    background:
        linear-gradient(
            135deg,
            rgba(0,35,102,0.97),
            rgba(0,87,184,0.90)
        );

    overflow: hidden;
}


/* Decorative background */

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(245,183,0,0.12);

    top: -180px;
    right: -120px;
}


.hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    bottom: -160px;
    left: -80px;
}


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

.hero-card {
    position: relative;

    z-index: 2;

    width: min(100%, 760px);

    background: var(--white);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-lg);

    border: 1px solid rgba(255,255,255,0.7);

    animation: heroEntrance 0.8s ease both;
}


.hero-card img {
    width: 100%;

    max-height: 420px;

    object-fit: cover;
}


.hero-caption {
    position: relative;

    padding: 25px;

    text-align: center;
}


.hero-caption h2 {
    margin: 0 0 8px;

    color: var(--navy);

    font-family: 'Poppins', sans-serif;

    font-size: clamp(23px, 3vw, 34px);

    font-weight: 800;
}


.hero-caption p {
    margin: 0;

    color: var(--muted);

    font-size: 16px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 6px 12px;

    margin: 12px 4px 0;

    border-radius: 50px;

    color: var(--white);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.badge.hot {
    background: var(--red);

    animation: pulseBadge 1.8s infinite;
}


.badge.sale {
    background: var(--gold);

    color: #161616;

    animation: saleFlash 1.2s infinite;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section {
    width: min(100% - 40px, var(--container));

    margin: 35px auto;

    padding: 50px 40px;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    border: 1px solid rgba(228,232,239,0.8);
}


section h2 {
    margin: 0 0 30px;

    text-align: center;

    font-family: 'Poppins', sans-serif;

    color: var(--navy);

    font-size: clamp(25px, 3vw, 34px);

    font-weight: 800;
}


section h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 4px;

    margin: 10px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold)
        );
}


/* =========================================================
   PROMOTIONS
   ========================================================= */

.promotions {
    text-align: center;
}


.promo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(230px, 1fr)
        );

    gap: 24px;
}


.promo-card {
    position: relative;

    background: var(--white);

    border-radius: var(--radius-md);

    padding: 18px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.promo-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-md);

    border-color: #b8d4f7;
}


.promo-card img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 10px;
}


.promo-caption {
    margin: 15px 0 5px;

    color: var(--text);

    font-size: 14px;
}


.promo-caption strong {
    color: var(--red);
}


.text-only {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f6ff
        );
}


.text-only h3 {
    margin: 0 0 10px;

    color: var(--blue);

    font-family: 'Poppins', sans-serif;

    font-size: 21px;
}


.text-only p {
    margin: 0;

    color: var(--red);

    font-size: 19px;

    font-weight: 800;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-page {
    text-align: center;
}


.product-list {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 18px;
}


.product-item {
    position: relative;

    padding: 20px;

    width: 100%;

    min-height: 90px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7faff
        );

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    font-size: 15px;

    text-align: left;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.product-item::before {
    content: "";

    width: 5px;

    position: absolute;

    left: 0;
    top: 15px;
    bottom: 15px;

    border-radius: 0 5px 5px 0;

    background:
        linear-gradient(
            var(--blue),
            var(--gold)
        );
}


.product-item:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   QUOTATION
   ========================================================= */

.quotation-section {
    width: min(100% - 40px, 760px);

    margin: 40px auto;

    padding: 45px;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);

    border: 1px solid var(--border);
}


.quote-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.quote-form label {
    color: var(--navy);

    font-size: 14px;

    font-weight: 700;
}


.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d5dbe5;

    border-radius: 9px;

    background: #fbfcff;

    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(0,87,184,0.10);

    background: var(--white);
}


.quote-form select[multiple] {
    min-height: 160px;
}


.submit-btn,
.btn-red {
    width: 100%;

    padding: 13px 20px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color: var(--white);

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.submit-btn:hover,
.btn-red:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(217,0,0,0.25);
}


/* =========================================================
   EXECUTIVES
   ========================================================= */

.executives {
    text-align: center;
}


.executive-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 25px;
}


.exec-card {
    position: relative;

    padding: 28px 20px;

    background: var(--white);

    border-radius: var(--radius-lg);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.exec-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--gold),
            var(--red)
        );
}


.exec-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-lg);
}


.exec-card img {
    width: 130px !important;

    height: 130px !important;

    max-width: 130px;

    margin: 0 auto 15px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid var(--white);

    outline: 4px solid var(--blue);

    animation:
        executiveFloat 4s ease-in-out infinite;

    transition:
        transform 0.4s ease,
        outline-color 0.3s ease;
}


.exec-card:hover img {
    transform:
        scale(1.08)
        rotate(3deg);

    outline-color: var(--gold);
}


.exec-card h3 {
    margin: 5px 0;

    color: var(--navy);

    font-family: 'Poppins', sans-serif;

    font-size: 19px;

    font-weight: 800;
}


.exec-role {
    color: var(--blue) !important;

    font-weight: 700;
}


.exec-card p {
    margin: 5px 0;

    font-size: 13px;

    color: var(--muted);
}


.exec-card a {
    color: var(--blue);

    text-decoration: none;
}


.exec-card a:hover {
    color: var(--red);

    text-decoration: underline;
}


.exec-badge {
    position: absolute;

    top: 16px;
    right: 16px;

    padding: 5px 9px;

    border-radius: 50px;

    background: var(--gold);

    color: #111;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp-container {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 3000;

    display: flex;

    align-items: center;

    gap: 9px;
}


.whatsapp-text {
    padding: 8px 13px;

    border-radius: 20px;

    background: var(--green);

    color: var(--white);

    font-size: 13px;

    font-weight: 600;

    box-shadow: var(--shadow-sm);

    opacity: 0;

    transform: translateX(10px);

    transition: 0.3s ease;
}


.whatsapp-container:hover .whatsapp-text {
    opacity: 1;

    transform: translateX(0);
}


.whatsapp-float {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: var(--white);

    font-size: 28px;

    text-decoration: none;

    box-shadow:
        0 5px 20px rgba(37,211,102,0.35);

    animation: whatsappPulse 2.5s infinite;
}


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

footer {
    margin-top: 60px;

    padding: 45px 20px 25px;

    background:
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );

    color: var(--white);

    text-align: center;

    border-top: 4px solid var(--gold);
}


footer p {
    margin: 5px 0;

    color: rgba(255,255,255,0.82);

    font-size: 13px;
}


/* =========================================================
   PAGE LOADER
   ========================================================= */

#loader {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--navy);
}


.spinner {
    width: 48px;
    height: 48px;

    border: 4px solid rgba(255,255,255,0.25);

    border-top-color: var(--gold);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes executiveFloat {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.035) rotate(1deg);
    }
}


@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(217,0,0,0.5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(217,0,0,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217,0,0,0);
    }
}


@keyframes saleFlash {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.04);
    }
}


@keyframes whatsappPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,0.5);
    }

    70% {
        box-shadow:
            0 0 0 14px rgba(37,211,102,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,0);
    }
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1000px) {

    .header-inner {
        gap: 15px;
    }

    nav ul {
        gap: 0;
    }

    nav ul li a {
        padding: 9px 8px;

        font-size: 12px;
    }

    .logo img {
        width: 70px !important;
        height: 70px !important;

        min-width: 70px;
        max-width: 70px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .container {
        width: min(100% - 24px, var(--container));
    }


    header {
        position: sticky;
    }


    .header-inner {
        width: calc(100% - 24px);

        min-height: auto;

        padding: 12px 0;

        flex-wrap: wrap;
    }


    .logo {
        width: calc(100% - 58px);

        gap: 10px;

        justify-content: flex-start;

        text-align: left;
    }


    .logo img {
        width: 62px !important;
        height: 62px !important;

        min-width: 62px;
        max-width: 62px;
    }


    .logo h1 {
        font-size: 18px;
    }


    .company-tagline {
        font-size: 10px;

        line-height: 1.35;
    }


    .company-motto {
        font-size: 10px;

        letter-spacing: 1px;
    }


    .menu-toggle {
        display: flex;

        align-items: center;

        justify-content: center;
    }


    nav {
        width: 100%;

        flex: 0 0 100%;

        display: none;

        margin-top: 12px;
    }


    nav.active {
        display: block;
    }


    nav ul {
        width: 100%;

        flex-direction: column;

        gap: 3px;

        padding: 8px;

        background: rgba(0,0,0,0.15);

        border-radius: 12px;
    }


    nav ul li {
        width: 100%;
    }


    nav ul li a {
        width: 100%;

        padding: 11px;

        text-align: center;

        font-size: 14px;
    }


    .dropdown {
        position: static;

        width: 100%;

        margin-top: 4px;

        box-shadow: none;
    }


    section {
        width: calc(100% - 24px);

        margin: 20px auto;

        padding: 32px 18px;

        border-radius: 15px;
    }


    .hero {
        min-height: auto;

        padding: 35px 12px;
    }


    .hero-card {
        width: 100%;
    }


    .hero-caption {
        padding: 20px 15px;
    }


    .hero-caption h2 {
        font-size: 23px;
    }


    .promo-grid,
    .product-list,
    .executive-grid {
        grid-template-columns: 1fr;
    }


    .quotation-section {
        width: calc(100% - 24px);

        padding: 28px 18px;
    }


    .whatsapp-container {
        right: 14px;

        bottom: 14px;
    }


    .whatsapp-text {
        display: none;
    }


    .whatsapp-float {
        width: 54px;
        height: 54px;

        font-size: 25px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .logo img {
        width: 55px !important;
        height: 55px !important;

        min-width: 55px;
        max-width: 55px;
    }


    .logo h1 {
        font-size: 16px;
    }


    .company-tagline {
        font-size: 9px;
    }


    .company-motto {
        font-size: 9px;
    }


    section {
        padding: 25px 14px;
    }


    .hero-caption h2 {
        font-size: 20px;
    }


    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   ACTIVE NAV LINK (added for unified navigation)
   ========================================================= */

nav ul li a.active {
    background: rgba(255,255,255,0.18);
    color: var(--gold-light);
}


/* =========================================================
   DARK MODE TOGGLE BUTTON (added)
   ========================================================= */

.dark-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-left: 8px;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;

    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 19px;

    transition: background 0.25s ease, transform 0.25s ease;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}


/* =========================================================
   DARK MODE THEME (added)
   ========================================================= */

body.dark {
    background: linear-gradient(180deg, #0d1117 0%, #111826 100%);
    color: #dfe3ea;
}

body.dark section,
body.dark .quotation-section,
body.dark .exec-card,
body.dark .promo-card,
body.dark .product-item,
body.dark .text-only,
body.dark .hero-card {
    background: #161c27;
    border-color: #262e3d;
    color: #dfe3ea;
}

body.dark section h2,
body.dark .hero-caption h2,
body.dark .exec-card h3 {
    color: var(--gold-light);
}

body.dark .dropdown {
    background: #1b2230;
    border-color: #2b3444;
}

body.dark .dropdown a {
    color: #dfe3ea;
}

body.dark .dropdown a:hover {
    background: #232c3c;
    color: var(--gold-light);
}

body.dark .quote-form input,
body.dark .quote-form select,
body.dark .quote-form textarea {
    background: #0f141d;
    border-color: #2b3444;
    color: #dfe3ea;
}

body.dark .quote-form label {
    color: var(--gold-light);
}

body.dark .product-item {
    background: linear-gradient(135deg, #161c27, #131924);
}

body.dark .muted,
body.dark .exec-card p,
body.dark .hero-caption p {
    color: #9aa4b5;
}

body.dark footer {
    background: linear-gradient(135deg, #05070c, #0d1117);
}
