/* ==================================================
   SRI SHYAM SERVICES
   Industrial DG Generator Website
================================================== */

:root {
    --black: #0b0b0b;
    --black-2: #111111;
    --dark: #171717;
    --yellow: #f5c400;
    --yellow-light: #ffd52e;
    --white: #ffffff;
    --off-white: #f6f6f4;
    --gray: #9b9b9b;
    --gray-dark: #5f5f5f;
    --border: #292929;
    --green: #20c66b;
    --danger: #e63946;
    --max-width: 1180px;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0,0,0,.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--white);
    color: #171717;
    line-height: 1.6;
}

body::selection {
    background: var(--yellow);
    color: var(--black);
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(92%, var(--max-width));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-yellow {
    background: var(--yellow);
    color: var(--black);
}

.section-head {
    max-width: 720px;
    margin-bottom: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8d7200;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 12px;
}

.section-dark .eyebrow {
    color: var(--yellow);
}

h1, h2, h3, h4 {
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.035em;
}

h3 {
    font-size: 1.25rem;
}

.section-head p,
.lead {
    margin-top: 16px;
    color: var(--gray-dark);
    font-size: 1.05rem;
}

.section-dark .section-head p,
.section-dark .lead {
    color: #bcbcbc;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,11,11,.97);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: box-shadow .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
}

.brand-text strong {
    display: block;
    font-size: 1rem;
    letter-spacing: .04em;
}

.brand-text span {
    color: var(--yellow);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 10px 13px;
    color: #ddd;
    font-size: .92rem;
    font-weight: 700;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--yellow);
    background: rgba(245,196,0,.08);
}

.menu-toggle {
    display: none;
    border: 1px solid #333;
    background: transparent;
    color: white;
    padding: 9px 11px;
    border-radius: 8px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--yellow-light);
}

.btn-dark {
    background: var(--black);
    color: white;
}

.btn-outline {
    border-color: rgba(255,255,255,.25);
    color: white;
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-white {
    background: white;
    color: var(--black);
}

.btn-whatsapp {
    background: var(--green);
    color: white;
}

/* Hero */
.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.82) 52%, rgba(0,0,0,.6) 100%),
        radial-gradient(circle at 80% 35%, rgba(245,196,0,.22), transparent 30%),
        #0b0b0b;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border: 70px solid rgba(245,196,0,.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 790px;
    padding: 80px 0;
}

.hero .eyebrow {
    color: var(--yellow);
}

.hero h1 span {
    color: var(--yellow);
}

.hero p {
    max-width: 700px;
    margin: 24px 0 30px;
    color: #d3d3d3;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 45px;
}

.hero-meta div {
    border-left: 2px solid var(--yellow);
    padding-left: 12px;
}

.hero-meta strong {
    display: block;
    font-size: 1.2rem;
}

.hero-meta span {
    display: block;
    color: #999;
    font-size: .8rem;
}

/* Cards */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 7px 28px rgba(0,0,0,.04);
}

.card-dark {
    background: #151515;
    border-color: #292929;
    color: white;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 5px;
    background: var(--yellow);
    top: 0;
    left: 28px;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--black);
    border-radius: 10px;
    font-weight: 900;
    margin-bottom: 20px;
}

.service-card p,
.card p {
    margin-top: 10px;
    color: var(--gray-dark);
    font-size: .94rem;
}

.card-dark p {
    color: #b7b7b7;
}

.service-link {
    display: inline-block;
    margin-top: 18px;
    color: #806600;
    font-weight: 800;
    font-size: .88rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
}

.stat {
    padding: 30px;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--Black);
    font-size: 2rem;
}

.stat span {
    color: #0e0d0d;
    font-size: .85rem;
}

/* Split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    font-weight: 900;
    font-size: .75rem;
}

.visual-box {
    min-height: 390px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(245,196,0,.16), transparent 55%),
        repeating-linear-gradient(135deg, #151515 0 10px, #191919 10px 20px);
    border: 1px solid #292929;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.visual-box .machine-mark {
    text-align: center;
    padding: 30px;
}

.machine-mark .big {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
}

.machine-mark p {
    color: white;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .75rem;
}

/* Brands */
.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-pill {
    border: 1px solid #333;
    background: #151515;
    color: #ddd;
    padding: 11px 15px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .86rem;
}

/* Areas */
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: .86rem;
    font-weight: 700;
}

/* CTA */
.cta {
    padding: 65px 0;
    background: var(--yellow);
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cta h2 {
    max-width: 700px;
}

.cta p {
    margin-top: 10px;
    max-width: 650px;
}

/* Forms */
.form-wrap {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 30px;
    align-items: start;
}

.form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 800;
    font-size: .82rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: #fbfbfb;
    border-radius: 8px;
    padding: 12px 13px;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245,196,0,.14);
}

.field textarea {
    min-height: 125px;
    resize: vertical;
}

.required {
    color: #b10000;
}

.form-note {
    margin-top: 13px;
    color: #777;
    font-size: .78rem;
}

.form-success {
    display: none;
    margin-bottom: 18px;
    padding: 13px 15px;
    background: #eafff2;
    border: 1px solid #b7efcc;
    border-radius: 8px;
    color: #155b32;
    font-size: .88rem;
}

.form-success.show {
    display: block;
}

/* FAQ */
.faq {
    max-width: 850px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 0;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0 35px 20px 0;
    color: #666;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */
.site-footer {
    background: #080808;
    color: white;
    padding: 65px 0 25px;
}

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

.footer-brand p {
    max-width: 420px;
    color: #999;
    margin-top: 15px;
}

.footer-col h4 {
    color: var(--yellow);
    margin-bottom: 15px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: .9rem;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #252525;
    margin-top: 45px;
    padding-top: 20px;
    color: #777;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Floating WhatsApp */
.whatsapp-float {
    /* position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    font-weight: 900;
    font-size: .8rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease; */
    position: fixed;
    right: 28px;
    bottom: 24px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Page hero */
.page-hero {
    padding: 90px 0;
    background: var(--black);
    color: white;
}

.page-hero p {
    max-width: 720px;
    color: #bbb;
    margin-top: 18px;
}

/* Responsive */
@media (max-width: 950px) {
    .site-nav {
        position: absolute;
        left: 4%;
        right: 4%;
        top: calc(100% + 1px);
        background: #0e0e0e;
        border: 1px solid #282828;
        border-radius: 0 0 12px 12px;
        padding: 10px;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .split,
    .form-wrap {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .section {
        padding: 65px 0;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand-text strong {
        font-size: .9rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero-meta {
        gap: 18px;
        margin-top: 32px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 22px 15px;
    }

    .stat strong {
        font-size: 1.5rem;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .form-card {
        padding: 22px;
    }

    .whatsapp-float {
       width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }
     .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}


/* ==================================================
   CLIENT / ORGANIZATION LOGO MARQUEE
   Fixed-size cards + seamless left-to-right animation
================================================== */

.client-marquee {
    --client-gap: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 8px 0 18px;
    display: none;
}

.client-marquee.has-clients {
    display: block;
}

.client-marquee::before,
.client-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.client-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.client-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.client-track {
    width: max-content;
    display: flex;
    align-items: stretch;
    animation: clientsMoveRight 32s linear infinite;
    will-change: transform;
}

.client-logo-set {
    display: flex;
    align-items: stretch;
    gap: var(--client-gap);
    padding-right: var(--client-gap);
    flex: 0 0 auto;
}

/*
  Each card has a fixed width and height.
  Therefore adding/removing organizations will
  not change the card dimensions or break the grid.
*/
.client-logo-card {
    width: 222px;
    min-width: 222px;
    height: 158px;
    padding: 11px;
    box-sizing: border-box;
    border: 1px solid #dedede;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f7f7f4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.client-logo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 196, 0, .85);
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.client-logo-box {
    width: 198px;
    height: 100px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 7px;
    border: 1px solid #e6e6e2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 10px rgba(0,0,0,.04);
}

 .client-logo-box img {
    width: 55%;
    height: 80%;
    max-width: 100%;
    max-height: 100%; 

    object-fit: contain;
    object-position: center center;
    margin: 0;
    padding: 2px;
} 

.client-logo-box .client-logo-image {
    transform: scale(var(--client-logo-scale, 1));
    transition: transform .2s ease;
}

.client-logo-box .client-placeholder-logo {
    object-fit: cover;
    padding: 0;
}

.client-fallback {
    max-width: 160px;
    color: #222;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.client-name {
    width: 100%;
    min-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: #252525;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.client-logo-card--fallback .client-name {
    display: none;
}

@keyframes clientsMoveRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause when user points at the organization strip */
.client-marquee:hover .client-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .client-track {
        animation: none;
        transform: translateX(0);
    }
}

@media (max-width: 650px) {
    .client-marquee::before,
    .client-marquee::after {
        width: 35px;
    }

    .client-track {
        animation-duration: 27s;
    }

    .client-marquee {
        --client-gap: 12px;
    }

    .client-logo-card {
        width: 175px;
        min-width: 175px;
        height: 135px;
        padding: 10px;
    }

    .client-logo-box {
        width: 155px;
        height: 78px;
        padding: 6px;
    }

    .client-fallback {
        max-width: 125px;
        font-size: .82rem;
    }

    .client-name {
        font-size: .68rem;
    }
}
