/* ==========================================================================
   EMMASA Electrical - Light Theme Design System (style.css)
   ========================================================================== */

:root {
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-soft: #f1f3f5;
    --border-light: #e9ecef;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --volt: #f59e0b;
    --volt-hover: #d97706;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Tell the browser this site is light-only. Without this, browsers on a
       dark-mode OS will silently render <select>, <input type="date">,
       scrollbars, and other native widgets with dark backgrounds even though
       every custom-styled element here is light. */
    color-scheme: light only;
}

html {
    color-scheme: light only;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    overflow-x: hidden;
    color-scheme: light only;
}

/* Belt-and-braces: keep every themed surface explicitly light regardless of
   OS/browser preference, and make sure dark-mode media queries can never
   sneak in later without being caught here. */
@media (prefers-color-scheme: dark) {
    body,
    .navbar-emmasa,
    .top-bar-modern,
    .footer-modern,
    .service-card-engineered,
    .team-card-modern,
    .testimonial-card-modern,
    .blog-card-modern,
    .form-card-modern,
    .contact-card-item,
    .bg-light,
    .bg-light-soft {
        background-color: var(--bg-light) !important;
        color: var(--text-dark) !important;
    }
}

h1, h2, h3, h4, h5, .brand-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.font-mono-spec {
    font-family: var(--font-mono);
}

/* --- Top Utility Bar --- */
.top-bar-modern {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.badge-live-pulse {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.social-links-minimal a {
    color: var(--text-muted);
    margin-left: 0.75rem;
    transition: color 0.2s;
}
.social-links-minimal a:hover {
    color: var(--volt);
}
.pulse-dot {
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Navbar --- */
.navbar-emmasa {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.9rem 0;
    transition: all 0.3s ease;
}
.brand-bolt-container {
    width: 38px;
    height: 38px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.brand-title {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
}
.brand-subtitle {
    display: block;
    font-size: 0.62rem;
    color: var(--volt);
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    font-weight: 700;
}
.navbar-emmasa .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    transition: color 0.2s ease;
}
.navbar-emmasa .nav-link:hover,
.navbar-emmasa .nav-link.active {
    color: var(--text-dark);
}

/* --- Volt Amber Buttons --- */
.btn-volt {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-volt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
}
.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
}
.btn-outline-dark:hover {
    background: var(--text-dark);
    color: #ffffff;
    border-color: var(--text-dark);
}

/* --- Hero Section & Spec Strip --- */
.hero-carousel-section {
    min-height: 560px;
    background: var(--bg-light);
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    height: 100%;
}
.carousel-item {
    height: 560px;
    position: relative;
}
.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}
.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--volt);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    margin-bottom: 1rem;
}
.spec-strip-wrapper {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}
.spec-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.spec-val {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}
.spec-unit {
    color: var(--volt);
    font-size: 1.2rem;
}

/* --- Section Styling & Cards --- */
.section-padded {
    padding: 5.5rem 0;
}
.bg-light-soft {
    background-color: var(--bg-soft);
}
.section-badge {
    display: inline-flex;
    align-items: center;
    color: var(--volt);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

/* --- Service Cards --- */
.service-card-engineered {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card-engineered:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.12);
}
.service-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--volt);
    font-size: 1.4rem;
}
.service-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.service-index-mono {
    font-family: var(--font-mono);
    color: var(--border-light);
    font-weight: 600;
    font-size: 1.2rem;
}
.service-price-hint {
    font-weight: 600;
}
.btn-link-animated {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.btn-link-animated:hover {
    color: var(--volt);
}
.btn-link-animated i {
    transition: transform 0.2s;
}
.btn-link-animated:hover i {
    transform: translateX(4px);
}

/* --- Team Cards --- */
.team-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}
.team-card-modern:hover {
    transform: translateY(-4px);
}
.team-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card-content {
    padding: 1.5rem;
}
.team-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.team-role {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Testimonial Cards --- */
.testimonial-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s;
}
.testimonial-card-modern:hover {
    transform: translateY(-4px);
}
.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
}
.author-avatar-initial {
    width: 44px;
    height: 44px;
    background: var(--volt);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.star-rating i {
    margin-right: 2px;
}

/* --- Blog Cards --- */
.blog-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}
.blog-card-modern:hover {
    transform: translateY(-4px);
}
.blog-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--volt);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
}
.blog-title {
    font-weight: 700;
}

/* --- Forms --- */
.form-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
}
.form-label-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.form-control-modern, .form-select-modern {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
}
.form-control-modern:focus, .form-select-modern:focus {
    background: #ffffff;
    border-color: var(--volt);
    color: var(--text-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
/* Keep browser autofill (Chrome/Safari) from repainting fields dark or
   mismatched on dark-mode systems */
.form-control-modern:-webkit-autofill,
.form-control-modern:-webkit-autofill:hover,
.form-control-modern:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-dark);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-light) inset;
    transition: background-color 5000s ease-in-out 0s;
}
.contact-card-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--volt);
}
.contact-value {
    font-weight: 600;
}

/* --- Footer --- */
.footer-modern {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
}
.footer-heading {
    font-weight: 700;
    font-size: 1.05rem;
}
.footer-nav-list li {
    margin-bottom: 0.5rem;
}
.footer-nav-list a,
.footer-contact-list li {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav-list a:hover {
    color: var(--text-dark);
}
.footer-contact-list li {
    margin-bottom: 0.6rem;
}
.social-btn {
    width: 38px;
    height: 38px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.social-btn:hover {
    background: var(--volt);
    color: #ffffff;
    border-color: var(--volt);
}
.footer-divider {
    border-color: var(--border-light);
}
.accreditation-pill {
    background: var(--bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

/* --- CTA Banner --- */
.cta-banner-section {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf4d6 100%);
}
.bg-warning-subtle {
    background-color: #fef9e7 !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-headline { font-size: 2.2rem; }
    .carousel-item { height: 500px; }
}
@media (max-width: 576px) {
    .hero-headline { font-size: 1.6rem; }
    .carousel-item { height: 420px; }
    .section-padded { padding: 3rem 0; }
}