/* ============================================================
   Tosstech Water Solutions — Custom CSS
   Complements Tailwind utilities
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1B2430;
    background: #F6F8FA;
    overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

/* ── Hero Slideshow ─────────────────────────────────────── */
.hero-slideshow {
    position: relative;
    height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroFade 40s infinite;
    transition: opacity 1s ease-in-out;
}

.hero-slide:first-child {
    opacity: 1;
    animation-delay: 0s !important;
}

.hero-slide-placeholder,
.hero-slide--transparent {
    background: linear-gradient(135deg, #0d4a73, #1a6ea0);
}

.hero-slide--transparent img {
    object-fit: contain;
    padding: 32px;
}

@keyframes heroFade {
    0%     { opacity: 1; }
    22.5%  { opacity: 1; }
    25%    { opacity: 0; }
    97.5%  { opacity: 0; }
    100%   { opacity: 1; }
}

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    animation: dotActive 40s infinite;
}

@keyframes dotActive {
    0%     { background: #fff; transform: scale(1.3); }
    22.5%  { background: #fff; transform: scale(1.3); }
    25%    { background: rgba(255,255,255,0.35); transform: scale(1); }
    97.5%  { background: rgba(255,255,255,0.35); transform: scale(1); }
    100%   { background: #fff; transform: scale(1.3); }
}

/* ── Why Choose Us Gallery ──────────────────────────────── */
/* ── Why Split Section (full-width) ────────────────────── */
.why-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 660px;
    width: 100%;
}

.why-split-image {
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.why-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 9s ease;
    filter: contrast(1.15) brightness(1.06) saturate(1.35);
    transform: scale(1.04);
}

.why-split-section:hover .why-split-img {
    transform: scale(1.08);
}

.why-split-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 60, 93, 0.88) 0%,
        rgba(11, 60, 93, 0.25) 40%,
        transparent 65%
    );
}

.why-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 60, 93, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
}

.why-image-stats {
    position: absolute;
    bottom: 28px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
}

.why-stat-chip {
    flex: 1;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    color: #fff;
}

.why-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #3DD9C5;
    line-height: 1;
}

.why-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.why-split-content {
    background: #0B3C5D;
    display: flex;
    align-items: center;
    padding: 80px 64px;
}

.why-split-inner {
    width: 100%;
    max-width: 540px;
}

@media (max-width: 1280px) {
    .why-split-content { padding: 60px 44px; }
}

@media (max-width: 1024px) {
    .why-split-section { grid-template-columns: 1fr; }
    .why-split-image   { min-height: 420px; }
    .why-split-content { padding: 60px 32px; }
    .why-split-inner   { max-width: 100%; }
}

/* ── Trusted By Client Bar ──────────────────────────────── */
.clients-bar {
    background: #fff;
    border-top: 1px solid #eef1f4;
    border-bottom: 1px solid #eef1f4;
    padding: 18px 0;
}

.clients-bar__label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b0b7c3;
    margin-bottom: 14px;
}

.clients-bar__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.clients-bar__item {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-right: 1px solid #eef1f4;
}

.clients-bar__item:last-child {
    border-right: none;
}

.clients-bar__logo {
    height: 44px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.clients-bar__item:hover .clients-bar__logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item.open {
    box-shadow: 0 8px 30px rgba(11,60,93,0.10);
    border-color: #3DD9C5;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.faq-toggle:hover span {
    color: #1DA1F2;
}

/* ── Footer Logo ────────────────────────────────────────── */
.footer-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 1px 4px rgba(255,255,255,0.15));
}

/* ── Announcement Bar ───────────────────────────────────── */
@keyframes annSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.announcement-bar {
    background: linear-gradient(90deg, #0B3C5D 0%, #0d5c87 50%, #0B3C5D 100%);
    border-bottom: 1px solid rgba(61, 217, 197, 0.3);
    position: relative;
    overflow: hidden;
    animation: annSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 200px,
        rgba(61, 217, 197, 0.04) 200px,
        rgba(61, 217, 197, 0.04) 201px
    );
    pointer-events: none;
}

@keyframes annShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.announcement-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 25%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    animation: annShimmer 3.5s ease-in-out 0.8s infinite;
    pointer-events: none;
}

.announcement-bar.hidden {
    display: none;
}

.announcement-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.announcement-badge {
    background: #3DD9C5;
    color: #0B3C5D;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.announcement-text strong {
    color: #fff;
    font-weight: 700;
}

.announcement-link {
    color: #3DD9C5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.announcement-link:hover { color: #fff; }

.announcement-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    position: absolute;
    right: 24px;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 640px) {
    .announcement-badge { display: none; }
    .announcement-text { font-size: 12.5px; }
    .announcement-close { right: 12px; }
    .announcement-inner { padding: 10px 44px 10px 16px; }
}

/* ── Full-Width Header ──────────────────────────────────── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(11, 60, 93, 0.13);
}

/* Full-bleed inner container — padding only, no max-width */
.header-inner {
    width: 100%;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .header-inner { padding: 0 3rem; }
}

@media (min-width: 1280px) {
    .header-inner { padding: 0 4rem; }
}

/* Top info bar */
.header-topbar {
    background: #0B3C5D;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

/* Main nav bar */
.header-mainnav {
    background: #fff;
    border-bottom: 3px solid #3DD9C5;
    position: relative;
}

/* ── Services Mega Menu ─────────────────────────────────── */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 60, 93, 0.14);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.megamenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 20px;
    padding-bottom: 16px;
}

.megamenu-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.18s ease;
}

.megamenu-card:hover {
    background: #f0f8ff;
}

.megamenu-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0B3C5D;
    transition: background 0.18s ease, color 0.18s ease;
}

.megamenu-card:hover .megamenu-icon {
    background: #3DD9C5;
    color: #fff;
}

.megamenu-title {
    font-weight: 600;
    font-size: 14px;
    color: #0B3C5D;
    line-height: 1.3;
}

.megamenu-desc {
    font-size: 12.5px;
    color: #6b7a8d;
    margin-top: 3px;
    line-height: 1.45;
}

.megamenu-footer {
    border-top: 1px solid #eef1f4;
    padding-top: 12px;
    padding-bottom: 14px;
    display: flex;
    justify-content: flex-end;
}

.megamenu-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0B3C5D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.megamenu-footer-link:hover { color: #3DD9C5; }

/* Chevron rotates when mega menu is open */
.megamenu-chevron {
    transition: transform 0.22s ease;
}
.megamenu-open .megamenu-chevron {
    transform: rotate(180deg);
}


/* ── Navigation ─────────────────────────────────────────── */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #1B2430;
    transition: color 0.25s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #3DD9C5;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active { color: #0B3C5D; }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Site Logo ──────────────────────────────────────────── */
.site-logo {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    /* trim the built-in white padding from the PNG */
    mix-blend-mode: multiply;
    filter: brightness(0.85) contrast(1.2) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-sm {
    padding: 9px 20px !important;
    font-size: 13px !important;
    gap: 6px !important;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0B3C5D;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: 2px solid #0B3C5D;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0B3C5D;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #0B3C5D;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #0B3C5D;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 60, 93, 0.25);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0B3C5D;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    cursor: pointer;
    text-decoration: none;
}

.btn-white:hover {
    background: #3DD9C5;
    border-color: #3DD9C5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 217, 197, 0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #25D366;
    cursor: pointer;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1eb858;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* ── Section Headings ───────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3DD9C5;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: #3DD9C5;
    border-radius: 2px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0B3C5D;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-subheading {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.75;
    max-width: 600px;
}

/* ── Cards ──────────────────────────────────────────────── */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #e8ecf0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0B3C5D, #3DD9C5);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(11, 60, 93, 0.12);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #E8F4FD, #D1F2EE);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #0B3C5D, #1DA1F2);
    transform: scale(1.1) rotate(5deg);
}

/* ── Project Cards ──────────────────────────────────────── */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(11, 60, 93, 0.08);
    transition: all 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(11, 60, 93, 0.15);
}

.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 4px 30px rgba(11, 60, 93, 0.08);
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 50px rgba(11, 60, 93, 0.14);
    border-color: #3DD9C5;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: #0B3C5D;
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 100px;
}

/* ── Hero image slideshow ───────────────────────────────── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    animation: heroImageFade 25s infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: backwards;
    filter: contrast(1.18) brightness(1.06) saturate(1.45);
    will-change: opacity, transform;
}

.hero-slide-1 { animation-delay: 0s;  }
.hero-slide-2 { animation-delay: 5s;  }
.hero-slide-3 { animation-delay: 10s; }
.hero-slide-4 { animation-delay: 15s; }
.hero-slide-5 { animation-delay: 20s; }

@keyframes heroImageFade {
    0%   { opacity: 0; transform: scale(1.06); }
    6%   { opacity: 1; transform: scale(1.04); }
    20%  { opacity: 1; transform: scale(1.0);  }
    26%  { opacity: 0; transform: scale(1.0);  }
    100% { opacity: 0; transform: scale(1.06); }
}

/* Overlay only behind the text column — image stays clean on the right */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(11, 60, 93, 0.94) 0%,
        rgba(11, 60, 93, 0.94) 42%,
        rgba(11, 60, 93, 0.45) 60%,
        transparent 72%
    );
}

@media (max-width: 1024px) {
    .hero-gradient-overlay {
        background: linear-gradient(
            to bottom,
            rgba(11, 60, 93, 0.92) 0%,
            rgba(11, 60, 93, 0.80) 65%,
            rgba(11, 60, 93, 0.5) 100%
        );
    }
}

.hero-bg-pattern { display: none; }

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    line-height: 0;
    z-index: 5;
}

/* ── Hero text cycler ───────────────────────────────────── */
.hero-animated-text {
    display: inline-block;
    background-image: linear-gradient(90deg, #3DD9C5, #1DA1F2, #3DD9C5, #1DA1F2);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: heroGradientFlow 5s ease-in-out infinite, heroGlowPulse 3s ease-in-out infinite;
}

/* Fade-out state (text leaving) */
.hero-animated-text.hero-text-out {
    opacity: 0;
    transform: translateY(-18px);
}

/* Fade-in state (new text entering) */
.hero-animated-text.hero-text-in {
    opacity: 0;
    transform: translateY(18px);
    transition: none;
}

@keyframes heroGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes heroGlowPulse {
    0%, 100% { filter: brightness(1)   drop-shadow(0 0 0px  rgba(61, 217, 197, 0)); }
    50%       { filter: brightness(1.2) drop-shadow(0 0 18px rgba(61, 217, 197, 0.45)); }
}

/* ── Hero content layout ────────────────────────────────── */
.hero-content-grid .text-white {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.hero-subtext {
    font-size: 1.1rem;
}

/* ── Hero stats ─────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px 24px;
    width: fit-content;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 20px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
    margin: 4px 0;
}

/* ── Hero mobile ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-gradient-overlay {
        background: linear-gradient(
            to bottom,
            rgba(11, 60, 93, 0.92) 0%,
            rgba(11, 60, 93, 0.85) 60%,
            rgba(11, 60, 93, 0.75) 100%
        );
    }

    .hero-slide {
        background-position: center center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-subtext { font-size: 1rem; }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        gap: 0;
    }

    .hero-stat {
        padding: 4px 12px;
        flex: 1;
        align-items: center;
    }

    .hero-stat:first-child { padding-left: 12px; }

    .hero-stat-num { font-size: 1.4rem; }

    .hero-stat-label {
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: rgba(255,255,255,0.12);
        border-radius: 16px;
        overflow: hidden;
        padding: 0;
        width: 100%;
    }

    .hero-stat {
        background: rgba(11, 60, 93, 0.6);
        padding: 14px 16px;
        align-items: flex-start;
    }

    .hero-stat:first-child { padding-left: 16px; }

    .hero-stat-divider { display: none; }

    .hero-stat-label { white-space: normal; font-size: 11px; }
}

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
    background: #fff;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid #e8ecf0;
}

.trust-item:last-child { border-right: none; }

.trust-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E8F4FD, #D1F2EE);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.trust-text { min-width: 0; }

.trust-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #0B3C5D;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-sub {
    color: #6b7280;
    font-size: 11.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet: 2×2 grid */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item {
        padding: 18px 20px;
        border-right: 1px solid #e8ecf0;
        border-bottom: 1px solid #e8ecf0;
    }

    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(3) { border-bottom: none; }
    .trust-item:nth-child(4) { border-right: none; border-bottom: none; }
}

/* Mobile: stack vertically */
@media (max-width: 420px) {
    .trust-grid { grid-template-columns: 1fr; }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid #e8ecf0;
        padding: 14px 16px;
    }

    .trust-item:last-child { border-bottom: none; }

    .trust-label { font-size: 13px; white-space: normal; }
    .trust-sub   { font-size: 11px; white-space: normal; }
}

/* ── Why Tosstech ───────────────────────────────────────── */
.why-card {
    background: linear-gradient(135deg, #0B3C5D, #0d4f74);
    border-radius: 24px;
    padding: 44px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.why-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(61,217,197,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.why-card:hover { transform: translateY(-6px); }

/* ── Industries ─────────────────────────────────────────── */
.industry-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    cursor: default;
}

.industry-card:hover {
    border-color: #3DD9C5;
    box-shadow: 0 8px 30px rgba(61, 217, 197, 0.15);
    transform: translateY(-4px);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0B3C5D 0%, #1DA1F2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #08111a;
    color: #7a9aad;
    border-top: 3px solid #3DD9C5;
}

/* ── Footer main body ───────────────────────────────────── */
.footer-body {
    padding-top: 96px;
    padding-bottom: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 72px;
}

/* Brand column */
.footer-brand-text {
    color: #647e8e;
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 290px;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 24px;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 22px;
}

.footer-stat-num {
    color: #3DD9C5;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.footer-stat-label {
    color: #526878;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.footer-stat-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.07);
}

/* Social icons */
.footer-social {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #526878;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social:hover {
    background: #3DD9C5;
    color: #fff;
    border-color: #3DD9C5;
}

/* Nav columns */
.footer-widget-title {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-link {
    color: #647e8e;
    text-decoration: none;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3DD9C5;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.footer-link:hover {
    color: #3DD9C5;
    padding-left: 4px;
}

.footer-link:hover::before { opacity: 1; }

/* Contact column */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #647e8e;
    font-size: 13.5px;
    line-height: 1.6;
    text-decoration: none;
}

.footer-contact-link { transition: color 0.2s; }
.footer-contact-link:hover { color: #3DD9C5; }

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(61,217,197,0.08);
    border: 1px solid rgba(61,217,197,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3DD9C5;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Footer bottom bar ──────────────────────────────────── */
.footer-bottom {
    padding-top: 28px;
    padding-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: #3d5566;
}

.footer-copy a {
    color: #526878;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-copy a:hover { color: #3DD9C5; }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #3d5566;
}

.footer-bottom-links a {
    color: #526878;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #3DD9C5; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-stats { width: 100%; justify-content: space-around; }
    .footer-stat { flex: 1; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-body { padding-top: 48px; padding-bottom: 40px; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-brand-text { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Forms ──────────────────────────────────────────────── */
.form-field {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #dde3ea;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1B2430;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-field:focus {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.12);
}

.form-field::placeholder { color: #9aaab6; }

/* ── Dividers ───────────────────────────────────────────── */
.gradient-divider {
    height: 3px;
    background: linear-gradient(90deg, #0B3C5D, #3DD9C5, #1DA1F2);
    border: none;
}

/* ── Scroll Reveal animations ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive Nav ─────────────────────────────────────── */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(11,60,93,0.15);
    border-top: 1px solid #e8ecf0;
    z-index: 999;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1B2430;
    border-bottom: 1px solid #f0f3f6;
    transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #0B3C5D; }

/* ── WhatsApp Float Button ──────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.65); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 18px;
        right: 16px;
        box-shadow: 0 3px 14px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }
}

/* ── Testimonial Slider ─────────────────────────────────── */
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    background: #0B3C5D;
    width: 24px;
    border-radius: 4px;
}

/* ── Page Hero ──────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0B3C5D 0%, #1a6491 100%);
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: #F6F8FA;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Service Page Hero ──────────────────────────────────── */
.service-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 76px;
}

/* ── Blog ───────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 60, 93, 0.06);
    transition: all 0.35s ease;
    border: 1px solid #e8ecf0;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(11, 60, 93, 0.12);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img { transform: scale(1.05); }

/* ── Tag / Badge ────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-aqua { background: #d1f2ee; color: #0b6b60; }
.badge-blue { background: #dbeeff; color: #0d5591; }

/* ── Number stats ───────────────────────────────────────── */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1;
    color: #0B3C5D;
}

/* ── Utilities ──────────────────────────────────────────── */
.max-section { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }

@media (max-width: 768px) {
    .section-pad { padding: 70px 0; }
}

/* ── Policy / Terms pages ───────────────────────────────── */
.policy-section { padding-bottom: 8px; }

.policy-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0B3C5D;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f4fd;
}

.policy-text {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-list li {
    padding-left: 20px;
    position: relative;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3DD9C5;
    flex-shrink: 0;
}

.policy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #edf7ff;
    border-left: 3px solid #3DD9C5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.65;
}

.policy-intro {
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

/* ── Cookie Consent Banner ──────────────────────────────── */
@keyframes cookieSlideUp {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 48px);
    max-width: 780px;
    background: #0d1e2e;
    border: 1px solid rgba(61, 217, 197, 0.25);
    border-radius: 20px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(61, 217, 197, 0.08);
    z-index: 99999;
    animation: cookieSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.cookie-banner.cookie-hidden {
    display: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    background: rgba(61, 217, 197, 0.1);
    border: 1px solid rgba(61, 217, 197, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3DD9C5;
    flex-shrink: 0;
}

.cookie-content {
    flex: 1;
    min-width: 200px;
}

.cookie-title {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cookie-text {
    color: #647e8e;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.cookie-text strong { color: #8aa5b5; }

.cookie-link {
    color: #3DD9C5;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cookie-link:hover { color: #fff; }

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #7a9aad;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.cookie-btn-decline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cookie-btn-accept {
    background: #3DD9C5;
    border: none;
    color: #0B3C5D;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cookie-btn-accept:hover {
    background: #2fc4b2;
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 80px; /* clear WhatsApp float button */
        width: calc(100% - 24px);
        left: 12px;
        transform: none;
        border-radius: 16px;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 16px;
        gap: 14px;
    }
    .cookie-icon { display: none; }
    .cookie-content { min-width: 0; width: 100%; }
    .cookie-text { font-size: 12.5px; }
    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cookie-btn-decline,
    .cookie-btn-accept {
        width: 100%;
        text-align: center;
        padding: 11px 12px;
    }
}
