/********** Sunrise Electrical Ltd — Design Tokens **********/
:root {
    --sunrise-orange: #FF4B1F;
    --sunrise-orange-dark: #E03D14;
    --sunrise-amber: #FFA630;
    --ink: #1C1712;
    --ink-soft: #3A322A;
    --paper: #FBF7F1;
    --paper-dim: #F2EAE0;
    --line: rgba(28, 23, 18, 0.12);

    /* Bootstrap 5.3 variable overrides */
    --bs-primary: var(--sunrise-orange);
    --bs-primary-rgb: 255, 75, 31;
    --bs-dark: var(--ink);
    --bs-dark-rgb: 28, 23, 18;
    --bs-light: var(--paper);
    --bs-light-rgb: 251, 247, 241;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-link-color: var(--sunrise-orange);
    --bs-link-hover-color: var(--sunrise-orange-dark);
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

a { text-decoration: none; }

.eyebrow {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--sunrise-orange);
}

/*** Buttons ***/
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-radius: 3px;
    transition: .3s;
}

.btn-primary {
    background: var(--sunrise-orange);
    border-color: var(--sunrise-orange);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--sunrise-orange-dark);
    border-color: var(--sunrise-orange-dark);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--ink);
}

.btn-call {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}

.btn-call:hover {
    background: var(--sunrise-orange);
    border-color: var(--sunrise-orange);
    color: #fff;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 52px; height: 52px; }

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease-out, visibility 0s linear .4s;
    z-index: 99999;
    background: var(--paper);
}
#spinner.show {
    transition: opacity .4s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Topbar ***/
.topbar {
    background: var(--ink);
    color: var(--paper);
}
.topbar a { color: var(--paper); }
.topbar small { color: var(--paper-dim); }

/*** Navbar ***/
.navbar {
    background: var(--paper) !important;
}
.navbar .navbar-brand img {
    height: 52px;
}
.navbar .navbar-nav .nav-link {
    margin-right: 34px;
    padding: 28px 0;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .3px;
    outline: none;
    border-bottom: 3px solid transparent;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--sunrise-orange);
    border-bottom: 3px solid var(--sunrise-orange);
}
.navbar-phone-cta {
    display: flex;
    align-items: center;
}
.navbar-phone-cta .phone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sunrise-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.navbar-phone-cta .phone-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-soft);
    display: block;
}
.navbar-phone-cta .phone-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    display: block;
}
.navbar-phone-cta:hover .phone-number { color: var(--sunrise-orange); }

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; border-bottom: none; }
    .navbar .navbar-nav { border-top: 1px solid var(--line); }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block; border: none; margin-top: 0; top: 150%;
        opacity: 0; visibility: hidden; transition: .3s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%; visibility: visible; transition: .3s; opacity: 1;
    }
}

/*** Hero ***/
.hero {
    position: relative;
    background: radial-gradient(120% 140% at 15% 0%, #2A231B 0%, var(--ink) 55%, #120E0A 100%);
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 160px;
}
.hero .hero-copy { position: relative; z-index: 2; }
.hero h1 {
    color: #fff;
    line-height: 1.05;
}
.hero h1 .accent { color: var(--sunrise-orange); }
.hero p.lead {
    color: rgba(255,255,255,.78);
    max-width: 46ch;
}
.hero-rays {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 620px;
    height: 620px;
    opacity: .9;
    z-index: 2;
    pointer-events: none;
}
.hero-arc {
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    line-height: 0;
    z-index: 2;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
}
.hero-badge i { color: var(--sunrise-amber); }

/*** Hero carousel ***/
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}
.hero .carousel-item { transition: opacity 1.4s ease, transform 6s ease; }
.hero .carousel-item.active .hero-slide-img { transform: scale(1.08); }
.hero-slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20,16,12,.92) 10%, rgba(20,16,12,.72) 45%, rgba(28,23,18,.35) 100%);
    z-index: 1;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
    z-index: 3;
    width: 6%;
    opacity: 1;
}
.hero-nav-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: .3s;
}
.hero .carousel-control-prev:hover .hero-nav-icon,
.hero .carousel-control-next:hover .hero-nav-icon {
    background: var(--sunrise-orange);
    border-color: var(--sunrise-orange);
}
.hero-indicators {
    z-index: 3;
    right: 40px;
    left: auto;
    bottom: 30px;
    width: auto;
    margin: 0;
    gap: 8px;
}
.hero-indicators button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    opacity: 1;
}
.hero-indicators button.active { background: var(--sunrise-orange); }

/*** Floating photos ***/
.float-photo-wrap {
    position: relative;
    min-height: 420px;
}
.float-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
    width: 100%;
    height: 420px;
}
.float-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.float-badge {
    position: absolute;
    top: 24px;
    left: -18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0,0,0,.16);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .3px;
}
.float-badge i { color: var(--sunrise-orange); font-size: 18px; }
.float-card {
    position: absolute;
    bottom: 24px;
    right: -18px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0,0,0,.25);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.float-card i { color: var(--sunrise-orange); font-size: 22px; }
.float-card strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.float-card a { color: var(--sunrise-amber); font-size: 13px; font-weight: 600; }

@media (max-width: 991.98px) {
    .float-badge, .float-card { position: static; margin-top: 14px; width: fit-content; }
    .float-photo-wrap { min-height: auto; }
}

@media (prefers-reduced-motion: no-preference) {
    .float-anim { animation: floatY 4.5s ease-in-out infinite; }
    .float-anim-slow { animation: floatY 6s ease-in-out infinite; animation-delay: .4s; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/*** Gallery marquee slider ***/
.gallery-section { background: var(--paper-dim); overflow: hidden; }
.gallery-track-wrap {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
    display: flex;
    width: max-content;
    gap: 20px;
    padding: 6px 0;
}
@media (prefers-reduced-motion: no-preference) {
    .gallery-track { animation: gallerySlide 38s linear infinite; }
    .gallery-track-wrap:hover .gallery-track { animation-play-state: paused; }
}
@keyframes gallerySlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/*** Trust strip ***/
.trust-strip {
    background: var(--paper-dim);
    border-bottom: 1px solid var(--line);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 34px 0;
}
.trust-item .icon-wrap {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--ink);
    color: var(--sunrise-orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.trust-item h3 { font-size: 17px; margin-bottom: 2px; }
.trust-item span { color: var(--ink-soft); font-size: 14px; }

/*** About ***/
.about-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}
.about-panel svg { width: 100%; max-width: 320px; }
.about-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.about-list li:last-child { border-bottom: none; }
.about-list i { color: var(--sunrise-orange); margin-top: 4px; }

/*** Services ***/
.service-category {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 34px;
    height: 100%;
    background: #fff;
    transition: border-color .3s, transform .3s;
}
.service-category:hover {
    border-color: var(--sunrise-orange);
}
.service-category .cat-icon {
    width: 54px; height: 54px; border-radius: 10px;
    background: var(--paper-dim);
    color: var(--sunrise-orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.service-category ul { list-style: none; padding: 0; margin: 0; }
.service-category ul li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--line);
}
.service-category ul li:last-child { border-bottom: none; }
.service-category ul li i { color: var(--sunrise-orange); font-size: 12px; margin-top: 6px; }

/*** Divider ***/
.section-divider {
    display: block;
    width: 100%;
    height: 46px;
}

/*** CTA band ***/
.cta-band {
    background: linear-gradient(100deg, var(--sunrise-orange) 0%, var(--sunrise-orange-dark) 100%);
    color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-light { color: var(--ink); }

/*** Contact ***/
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 36px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon-wrap {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--paper-dim);
    color: var(--sunrise-orange);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.map-frame {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 320px;
}
.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: 4px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sunrise-orange);
    box-shadow: 0 0 0 .2rem rgba(255,75,31,.15);
}

/*** Footer ***/
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.75);
}
.footer h3 { color: #fff; }
.footer img.footer-logo { height: 46px; margin-bottom: 18px; }
.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.75);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .5px;
    transition: .3s;
}
.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--sunrise-orange);
}
.footer .btn.btn-link:hover { color: var(--sunrise-orange); letter-spacing: 1.5px; }
.footer .copyright {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
}
.footer .copyright a { color: var(--sunrise-orange); }
.footer .copyright a:hover { color: #fff; }

/*** Motion: one deliberate hero reveal only ***/
@media (prefers-reduced-motion: no-preference) {
    .hero-reveal {
        animation: heroFade .9s ease-out both;
    }
    .hero-reveal.delay-1 { animation-delay: .12s; }
    .hero-reveal.delay-2 { animation-delay: .24s; }
}
@keyframes heroFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/*** Focus visibility ***/
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--sunrise-orange);
    outline-offset: 2px;
}
