/* =============================================================
   STYLE.CSS — Sun Crew Energy Website
   Main stylesheet — mobile-first component design
   ============================================================= */

/* ── Google Fonts linked in HTML ── */

/* =====================================================================
   BASE & RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark-2);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; transition: var(--transition-fast); }

/* Brand text selection + accessible focus ring (premium polish) */
::selection { background: var(--primary); color: var(--secondary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }

/* =====================================================================
   TYPOGRAPHY UTILITIES
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--black-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header { margin-bottom: 3.5rem; }

.divider {
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin: 1rem 0;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(233,180,30,0.35);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--secondary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}
.btn-dark:hover {
    background: var(--dark-2);
    color: white;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: white;
}
.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.btn-light {
    background: white;
    border-color: white;
    color: var(--secondary);
    font-weight: 700;
}
.btn-light:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.45);
    color: white;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.btn-lg { padding: 0.9375rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.60) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    padding: 0 1.5rem;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled,
.navbar.always-dark {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 800;
    font-size: 1.1875rem;
    color: white !important;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-brand img {
    /* Ensure logo stays sharp and doesn't stretch */
    max-height: 42px;
    width: auto;
    display: block;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    color: white;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: var(--dark-2) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(233,180,30,0.12);
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0.375rem;
    color: var(--dark);
    background: transparent;
    line-height: 1;
}
.navbar-toggler:focus { box-shadow: none; outline: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,23,42,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 26px;
    height: 26px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(1.6);
        -webkit-backdrop-filter: blur(20px) saturate(1.6);
        border-radius: var(--radius-lg);
        padding: 1rem 1.25rem 1.5rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(0,0,0,0.07);
        box-shadow: var(--shadow-lg);
    }
    .navbar-nav .nav-link { padding: 0.75rem 1rem !important; }
    .navbar-nav .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/Picture11.jpg');
    background-size: cover;
    background-position: center;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* Reduced-motion / no-video fallback: show the poster image instead */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Directional scrim: dark behind the text (left), fading to near-clear
       over the rest of the video so the footage stays visible. */
    background: linear-gradient(
        90deg,
        rgba(14, 34, 56, 0.82) 0%,
        rgba(14, 34, 56, 0.42) 48%,
        rgba(14, 34, 56, 0.10) 100%
    );
}

/* Signature gold sun-path arc + warm glow (brand motif) */
.hero-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -140px;
    top: -180px;
    background: radial-gradient(circle, rgba(233,180,30,0.20) 0%, transparent 64%);
    pointer-events: none;
    z-index: 1;
}
.hero-arc {
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: min(1500px, 150%);
    aspect-ratio: 1561 / 190;
    transform: translateX(-50%);
    background: url('../images/logo/suncrew-arc.png') center bottom / contain no-repeat;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--navbar-h);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233,180,30,0.14);
    border: 1px solid var(--primary-border);
    color: var(--primary-hover);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255,255,255,0.72);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}
.hero-stat-number .suffix { color: var(--primary); font-size: 1.35rem; }

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-float-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
}
.hero-float-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.hero-float-text strong { display: block; font-weight: 700; color: var(--dark); font-size: 1.0625rem; }
.hero-float-text small  { color: var(--black-500); font-size: 0.8125rem; }

/* =====================================================================
   BRANDS MARQUEE
   ===================================================================== */
.brands-section {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.875rem 0;
    overflow: hidden;
}

.brands-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding: 0 2rem;
    flex-shrink: 0;
}

.brands-marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 28s linear infinite;
    width: max-content;
}
.brands-marquee:hover { animation-play-state: paused; }

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

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.brand-item:hover { color: var(--gray-600); }
.brand-item i { color: var(--primary); font-size: 1.125rem; }

/* =====================================================================
   SERVICES SECTION
   ===================================================================== */
.services-section {
    padding: var(--section-py) 0;
    background: var(--light);
}

.service-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}
.service-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.9375rem;
    color: var(--black-500);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* =====================================================================
   SECTOR CARDS (Who We Power)
   ===================================================================== */
.sector-card {
    transition: var(--transition);
}
.sector-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg);
}

/* =====================================================================
   PROCESS SECTION
   ===================================================================== */
.process-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.process-step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.process-number {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.875rem; color: var(--black-500); line-height: 1.65; margin: 0; }

/* =====================================================================
   PROJECTS SECTION
   ===================================================================== */
.projects-section {
    padding: var(--section-py) 0;
    background: var(--light);
}

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}
.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: transparent;
}
.project-card:hover::before { transform: scaleX(1); }

.project-card-img-wrapper { overflow: hidden; }
.project-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card-img { transform: scale(1.06); }

.project-card-body { padding: 1.375rem; flex: 1; display: flex; flex-direction: column; }

.project-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-card-body h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--black-500);
    margin-bottom: 0.625rem;
}
.project-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

.project-card-body p { font-size: 0.875rem; color: var(--black-500); margin: 0; line-height: 1.6; }

/* =====================================================================
   WHY CHOOSE US
   ===================================================================== */
.why-us-section {
    padding: var(--section-py) 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.why-us-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,180,30,0.07) 0%, transparent 70%);
    pointer-events: none;
}
/* Brand symbol watermark (solar-panel mark) */
.why-us-section::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 360px; height: 293px;
    background: url('../images/logo/suncrew-symbol.png') left bottom / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.why-us-image-wrapper { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.why-us-image-wrapper img { width: 100%; height: 480px; object-fit: cover; }

.why-us-stats-overlay {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.125rem 1.375rem;
    backdrop-filter: blur(12px);
    text-align: center;
}
.why-us-stats-overlay .stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.why-us-stats-overlay .stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.25rem;
}

.why-us-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.625rem;
}
.why-us-feature:last-of-type { margin-bottom: 0; }

.why-us-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(233,180,30,0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
    border: 1px solid rgba(233,180,30,0.2);
}

.why-us-feature-text h4 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.why-us-feature-text p  { font-size: 0.875rem; color: rgba(255,255,255,0.58); margin: 0; line-height: 1.65; }

/* =====================================================================
   ABOUT PREVIEW
   ===================================================================== */
.about-preview-section { padding: var(--section-py) 0; }

.about-preview-image { border-radius: var(--radius-xl); overflow: hidden; }
.about-preview-image img { width: 100%; height: 420px; object-fit: cover; }

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-stat-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.125rem;
    text-align: center;
    transition: var(--transition-fast);
}
.about-stat-box:hover {
    border-color: var(--primary-border);
    background: var(--primary-light);
}
.about-stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.about-stat-box .stat-label {
    font-size: 0.8125rem;
    color: var(--black-500);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* =====================================================================
   FOUNDERS
   ===================================================================== */
.founders-section { padding: var(--section-py) 0; background: var(--gray-50); }

.founder-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.founder-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.founder-card-img { width: 100%; height: 320px; object-fit: cover; object-position: top center; }

.founder-card-body { padding: 1.5rem; }
.founder-card-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }

.founder-role { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }

.founder-card-body p { font-size: 0.9375rem; color: var(--black-500); line-height: 1.65; margin-bottom: 1.125rem; }

.founder-social { display: flex; gap: 0.625rem; }
.founder-social a {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-500);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.founder-social a:hover { background: var(--primary); color: white; }

/* =====================================================================
   MISSION & VISION
   ===================================================================== */
.mission-vision-section { padding: var(--section-py) 0; }

.mv-card {
    background: var(--dark);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mv-card::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(233,180,30,0.05);
}

.mv-card-icon {
    width: 54px;
    height: 54px;
    background: rgba(233,180,30,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.mv-card h3 { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.mv-card p  { color: rgba(255,255,255,0.62); line-height: 1.8; font-size: 0.9375rem; margin: 0; }

.values-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
}
.values-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }

.value-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.value-item:last-child { border-bottom: none; padding-bottom: 0; }
.value-item i    { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.value-item span { font-weight: 600; color: var(--dark); font-size: 0.9375rem; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-section { padding: var(--section-py) 0; background: var(--gray-50); }

.faq-accordion .accordion-item {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    background: white;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
    border-radius: var(--radius-lg) !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: white;
    border-bottom: 1px solid var(--gray-200);
}
.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E9B41E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    font-size: 0.9375rem;
    color: var(--black-500);
    line-height: 1.75;
    padding: 1.25rem 1.5rem;
    background: white;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */
.cta-section {
    padding: var(--section-py) 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    pointer-events: none;
}
.cta-section .section-title   { color: white; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.88); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.72);
    padding: 4.5rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1875rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
    color: rgba(255,255,255,0.55);
}

.footer-social { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}
.footer-social a:hover { background: var(--primary); color: var(--secondary); }

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.38);
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.58);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a i { font-size: 0.75rem; opacity: 0.5; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}
.footer-contact-item i { color: var(--primary); font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; }
.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255,255,255,0.58);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition-fast);
    line-height: 1.5;
}
.footer-contact-item a:hover { color: var(--primary); }

.footer-divider { border-color: rgba(255,255,255,0.07); margin: 2.5rem 0 1.5rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-bottom p    { font-size: 0.875rem; color: rgba(255,255,255,0.38); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--primary); }

/* =====================================================================
   WHATSAPP FLOATING BUTTON
   ===================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 999;
    width: 56px; height: 56px;
    background: var(--whatsapp);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.625rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(37,211,102,0.3);
    animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem; left: 2rem;
    z-index: 999;
    width: 44px; height: 44px;
    background: var(--dark-2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { background: var(--primary); color: white; }

/* =====================================================================
   PAGE HERO (inner pages)
   ===================================================================== */
.page-hero {
    background: var(--dark);
    padding: calc(var(--navbar-h) + 3.5rem) 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233,180,30,0.07) 0%, transparent 55%);
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -150%;
    width: 200%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(233,180,30,0.40);
    pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: rgba(255,255,255,0.62);
    font-size: 1.0625rem;
    max-width: 650px;
    line-height: 1.75;
    margin: 0;
}

.breadcrumb { margin-bottom: 1rem; background: none; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }
.breadcrumb-item a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--primary); font-size: 0.875rem; font-weight: 500; }

/* =====================================================================
   ABOUT PAGE — VALUE CARDS
   ===================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}
.value-card:hover { border-color: var(--primary-border); background: var(--primary-light); }
.value-card i    { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.625rem; display: block; }
.value-card h4   { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.value-card p    { font-size: 0.875rem; color: var(--black-500); margin: 0; line-height: 1.6; }

/* =====================================================================
   SERVICES PAGE — FULL CARDS
   ===================================================================== */
.service-card-full {
    display: flex;
    gap: 1.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}
.service-card-full:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}
.service-card-full:last-child { margin-bottom: 0; }

.service-card-full-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.service-card-full-text h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card-full-text p  { color: var(--black-500); line-height: 1.7; margin: 0; }

/* =====================================================================
   PROJECTS PAGE — FILTER TABS
   ===================================================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 0.5625rem 1.375rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.contact-info-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.625rem;
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    text-decoration: none;
}
.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.contact-info-text p {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.45;
}

.contact-form-wrapper {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-label { font-weight: 600; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.form-label .required { color: var(--primary); margin-left: 0.125rem; }

.form-control,
.form-select {
    font-family: var(--font);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233,180,30,0.12);
    outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid,
.form-select.is-invalid { border-color: #ef4444 !important; }
.form-control.is-valid,
.form-select.is-valid  { border-color: var(--success) !important; }
.invalid-feedback { font-size: 0.8125rem; color: #ef4444; margin-top: 0.375rem; }

/* =====================================================================
   THANK YOU PAGE
   ===================================================================== */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gray-50);
    padding: calc(var(--navbar-h) + 3rem) 0 3rem;
}

.thank-you-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: rgba(16,185,129,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    margin: 0 auto 1.5rem;
}

.thank-you-card h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.thank-you-card p  { color: var(--black-500); line-height: 1.75; margin-bottom: 2rem; font-size: 1rem; }

/* =====================================================================
   ANIMATION UTILITIES
   ===================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Motion engine (GSAP) ── */
/* When the JS engine is active, GSAP drives inline styles directly,
   so the CSS transition is disabled to avoid double-smoothing. */
html.has-motion .fade-in { transition: none; }
/* SplitType word reveal: clip words so they slide up from baseline */
html.has-motion .section-title .word { display: inline-block; will-change: transform, opacity; }

/* Ensure Bootstrap overrides don't break our custom text colors */
.text-primary { color: var(--primary) !important; }

/* =====================================================================
   PREMIUM POLISH PASS
   Duotone icons · gold-glow card hovers · button press states ·
   arc dividers · equipment partners · testimonials · savings band ·
   parallax/magnetic motion support
   ===================================================================== */

/* ── Duotone icon treatment (service / mv / why-us / sector icons) ── */
.service-icon,
.mv-card-icon,
.why-us-feature-icon {
    background: linear-gradient(145deg, rgba(233,180,30,0.18), rgba(233,180,30,0.05));
    box-shadow: inset 0 0 0 1px rgba(233,180,30,0.20), 0 6px 16px rgba(233,180,30,0.10);
    position: relative;
}
.service-card:hover .service-icon {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    box-shadow: 0 10px 24px rgba(233,180,30,0.40);
    transform: translateY(-2px) rotate(-3deg);
}

/* ── Gold-glow card hovers (premium lift) ── */
.service-card:hover,
.project-card:hover,
.mv-card:hover,
.founder-card:hover,
.values-card:hover {
    box-shadow: 0 18px 44px rgba(22,48,79,0.13),
                0 0 0 1px rgba(233,180,30,0.28),
                0 12px 30px rgba(233,180,30,0.12);
}

/* ── Button press / active micro-interactions ── */
.btn { will-change: transform; }
.btn-primary { box-shadow: 0 4px 14px rgba(233,180,30,0.22); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-lg { padding: 0.85rem 2rem; }

/* ── Reusable gold arc divider (sun-path motif) ── */
.arc-divider {
    position: relative;
    height: 0;
    overflow: visible;
    pointer-events: none;
}
.arc-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -60px;
    width: 120%;
    aspect-ratio: 6 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(233,180,30,0.45);
    box-shadow: 0 -2px 40px rgba(233,180,30,0.10);
}

/* ── Equipment Partners band ── */
.partners-section {
    padding: 3.25rem 0;
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}
.partners-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1.75rem;
}
.partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.75rem;
}
.partner-mark {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--gray-300);
    transition: var(--transition);
    text-decoration: none;
    user-select: none;
}
.partner-mark span { font-weight: 400; }
.partner-mark:hover { color: var(--secondary); transform: translateY(-2px); }

/* ── Testimonials section ── */
.testimonials-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}
.testimonial-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem 2rem;
    height: 100%;
    position: relative;
    transition: var(--transition);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(233,180,30,0.22);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(22,48,79,0.13),
                0 0 0 1px rgba(233,180,30,0.28);
}
.testimonial-stars {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.testimonial-quote {
    color: var(--gray-600);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    background: linear-gradient(145deg, var(--primary-hover), var(--primary));
    box-shadow: 0 6px 16px rgba(233,180,30,0.30);
}
.testimonial-author h4 {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--black-500);
}

/* ── Free savings-estimate band ── */
.savings-section { padding: var(--section-py) 0; background: var(--light); }
.savings-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, var(--dark) 0%, var(--secondary) 55%, var(--dark-3) 100%);
    color: #fff;
    padding: 3.25rem;
}
.savings-band::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1.5px solid rgba(233,180,30,0.40);
    box-shadow: 0 0 80px rgba(233,180,30,0.18) inset;
    pointer-events: none;
}
.savings-band .section-badge {
    background: rgba(233,180,30,0.18);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
}
.savings-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}
.savings-band p {
    color: rgba(255,255,255,0.78);
    font-size: 1.0125rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.savings-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.65rem;
}
.savings-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
}
.savings-points i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

/* ── Motion support: parallax & magnetic ── */
.hero-bg { will-change: transform; }
html.has-motion .btn-magnetic { will-change: transform; }

/* Respect reduced motion for all new flourishes */
@media (prefers-reduced-motion: reduce) {
    .btn:active,
    .service-card:hover .service-icon,
    .partner-mark:hover,
    .testimonial-card:hover { transform: none; }
}

/* ── Keep centered section titles on a single line on large screens ── */
/* Scoped to .text-center headers: these are full-width centered blocks,
   so a one-line title overflows its column symmetrically and stays
   within the container — never colliding with an adjacent element. */
@media (min-width: 1200px) {
    .text-center .section-title { white-space: nowrap; }
}

/* ============================================================
   SERVICES CAROUSEL — mobile-first manual sector rail
   ============================================================ */
.services-carousel-section {
    padding: var(--section-py) 0;
    background: var(--gray-50);
    overflow: hidden;
}
.services-rail-wrap { position: relative; margin-top: 2.5rem; }

.services-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.services-rail::-webkit-scrollbar { display: none; }
.services-rail:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius);
}

/* Option A — premium image-overlay cards */
.service-slide {
    position: relative;
    flex: 0 0 auto;
    width: clamp(270px, 82vw, 340px);
    height: 440px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 34, 56, 0.14);
    transition: transform .35s ease, box-shadow .35s ease;
    isolation: isolate;
}
.service-slide:hover,
.service-slide:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(14, 34, 56, 0.24);
}

/* Full-bleed image */
.service-slide-img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.service-slide-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .6s ease;
}
.service-slide:hover .service-slide-img img,
.service-slide:focus-within .service-slide-img img { transform: scale(1.08); }

/* Gradient scrim for text legibility */
.service-slide-img::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(14, 34, 56, 0.10) 0%,
        rgba(14, 34, 56, 0.35) 42%,
        rgba(14, 34, 56, 0.88) 100%);
    transition: background .35s ease;
}
.service-slide:hover .service-slide-img::after,
.service-slide:focus-within .service-slide-img::after {
    background: linear-gradient(180deg,
        rgba(14, 34, 56, 0.25) 0%,
        rgba(14, 34, 56, 0.55) 45%,
        rgba(14, 34, 56, 0.94) 100%);
}

/* Text overlaid on image */
.service-slide-body {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem 1.35rem 1.5rem;
    color: #fff;
}
.service-slide-tag {
    display: inline-block; align-self: flex-start;
    font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--secondary); background: var(--primary);
    padding: .28rem .65rem; border-radius: var(--radius-full); margin-bottom: .7rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.service-slide-body h3 {
    font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 .4rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.service-slide-headline {
    font-size: .9375rem; font-weight: 600; color: var(--primary-hover); margin: 0 0 .5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
/* Copy revealed on hover/focus (desktop); always shown on touch */
.service-slide-copy {
    font-size: .8125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9);
    margin: 0; max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .4s ease, opacity .35s ease, margin .35s ease;
}
.service-slide:hover .service-slide-copy,
.service-slide:focus-within .service-slide-copy {
    max-height: 9rem; opacity: 1; margin: 0 0 .9rem;
}
.service-slide-link {
    font-size: .8125rem; font-weight: 700; color: #fff;
    text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
    margin-top: .85rem;
}
.service-slide-link i { transition: transform .25s ease; }
.service-slide-link:hover { color: var(--primary); }
.service-slide-link:hover i { transform: translateX(4px); }

/* Touch devices (no hover): reveal copy by default */
@media (hover: none) {
    .service-slide-copy { max-height: 9rem; opacity: 1; margin: 0 0 .9rem; }
}

/* Prev / next arrows */
.rail-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--gray-200); background: #fff; color: var(--secondary);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(14, 34, 56, 0.12);
    cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.rail-arrow:hover { background: var(--secondary); color: #fff; }
.rail-arrow:disabled { opacity: 0; pointer-events: none; }
.rail-arrow:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rail-prev { left: -6px; }
.rail-next { right: -6px; }

/* Progress dots */
.services-rail-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.services-rail-dots button {
    width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none;
    background: var(--gray-300); cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.services-rail-dots button.active { background: var(--primary); width: 26px; border-radius: var(--radius-full); }
.services-rail-dots button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 575.98px) {
    .rail-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .services-rail { scroll-behavior: auto; }
    .service-slide,
    .service-slide-img img,
    .service-slide-copy { transition: none; }
}

/* ============================================================
   BLOG — listing + article
   ============================================================ */
.blog-featured-card {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 34, 56, 0.08);
}
.blog-featured-img { position: relative; min-height: 340px; }
.blog-featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured-flag {
    position: absolute; top: 1rem; left: 1rem; z-index: 1;
    font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--secondary); background: var(--primary);
    padding: .3rem .7rem; border-radius: var(--radius-full);
}
.blog-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { font-size: 1.65rem; font-weight: 700; color: var(--secondary); margin: .5rem 0 .85rem; line-height: 1.25; }
.blog-featured-body p { color: var(--black-500); font-size: .95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .8125rem; color: var(--gray-400); }
.blog-meta i { color: var(--primary); }
@media (max-width: 767.98px) {
    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-img { min-height: 220px; }
    .blog-featured-body { padding: 1.75rem; }
}

.blog-card .project-card-body { display: flex; flex-direction: column; }
.blog-readtime { font-size: .75rem; color: var(--gray-400); display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.blog-readtime i { color: var(--primary); }
.blog-excerpt { color: var(--black-500); font-size: .875rem; line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.read-more { font-weight: 700; font-size: .8125rem; color: var(--secondary); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.read-more i { transition: transform .25s ease; }
.read-more:hover { color: var(--primary-dark); }
.read-more:hover i { transform: translateX(4px); }

/* Single article */
.article-content { max-width: 760px; margin: 0 auto; }
.article-content > p { color: var(--gray-700); font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.35rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin: 2.5rem 0 1rem; }
.article-lead { font-size: 1.15rem !important; color: var(--secondary) !important; font-weight: 500; }
.article-content ul { margin: 0 0 1.6rem; padding-left: 0; list-style: none; }
.article-content ul li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--gray-700); line-height: 1.7; }
.article-content ul li::before { content: "\2022"; position: absolute; left: .35rem; color: var(--primary); font-weight: 700; }
.article-figure { margin: 0 0 2.25rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgba(14, 34, 56, 0.10); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-callout {
    background: var(--gray-50); border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 1.6rem;
    color: var(--gray-700); font-size: .95rem; line-height: 1.7;
}
.article-callout strong { color: var(--secondary); }
