/* ============================================
   CHARGED SERVICES - HOMEPAGE STYLES
   Styles specific to index.html only.
   Requires shared.css to be loaded first.
   ============================================ */

h1 {text-transform: lowercase;}
h2 {text-transform: lowercase;}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex; align-items: flex-end;
    padding: 0 40px 80px;
    position: relative;
    overflow: hidden;
}
.hero-backdrop {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 70% 30%, rgba(201,0,0,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(190,233,0,0.03) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(10,10,12,0.75), rgba(10,10,12,0.88)),
        var(--hero-img, url('/assets/images/hero/hero-1.webp'));
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center;
}
/* Grid pattern overlay */
.hero-backdrop::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}
/* Noise texture */
.hero-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative; z-index: 1;
    max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--highlight);
    margin-bottom: 28px;
    padding: 6px 16px 6px 12px;
    background: var(--highlight-glow);
    border: 1px solid rgba(190,233,0,0.18);
    border-radius: 100px;
}
.hero-eyebrow .dot {
    width: 7px; height: 7px;
    background: var(--highlight);
    border-radius: 50%;
    animation: blink 2.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 820px;
    text-transform: lowercase;
}
.hero h1 em {
    font-style: normal;
    font-weight: 400;
    font-style: italic;
    color: var(--highlight);
    text-transform: lowercase;
}
.hero-desc {
    margin-top: 28px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.75;
    font-weight: 300;
}
.hero-actions {
    display: flex; gap: 14px;
    margin-top: 44px;
    flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
    position: absolute; bottom: 28px; left: 50%;
    transform: translateX(-50%); z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted);
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-cue .bar {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scroll-bar 2s infinite;
}
@keyframes scroll-bar {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services { background: var(--bg-panel); border-top: 1px solid var(--border); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}
.services-grid a {
    display: flex;
    color: inherit;
    text-decoration: none;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    cursor: default;
    width: 100%;
}
.service-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px; height: 52px;
    background: var(--accent-glow);
    border: 1px solid rgba(201,0,0,0.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s, border-color 0.3s;
}
.service-card:hover .service-icon {
    background: var(--accent-glow-strong);
    border-color: rgba(201,0,0,0.35);
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--highlight); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 {
    font-size: 1.15rem; font-weight: 400;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}
.service-partner {
    margin-top: 20px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.service-partner .dot {
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================
   ABOUT / INTRO
   ============================================ */
.about { border-top: 1px solid var(--border); }
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s;
}
.about-stat:hover { border-color: var(--border-hover); }
.about-stat .num {
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--highlight);
    line-height: 1;
}
.about-stat .label {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   WHY US
   ============================================ */
.why { background: var(--bg-panel); border-top: 1px solid var(--border); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 56px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex; gap: 20px;
    transition: border-color 0.3s;
}
.why-card:hover { border-color: var(--border-hover); }
.why-num {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 1;
    line-height: 1;
    flex-shrink: 0;
}
.why-card h3 {
    font-size: 1.05rem; font-weight: 400;
    margin-bottom: 8px;
}
.why-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   SECTORS (Residential / Commercial)
   ============================================ */
.sectors { border-top: 1px solid var(--border); }
.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 56px;
}
.sector-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.sector-card:hover { border-color: var(--border-hover); }
.sector-card::after {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s;
}
.sector-card:hover::after { opacity: 1; }

.sector-card .sector-icon {
    width: 56px; height: 56px;
    background: var(--accent-glow);
    border: 1px solid rgba(201,0,0,0.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
}
.sector-card .sector-icon svg { width: 26px; height: 26px; stroke: var(--highlight); fill: none; stroke-width: 1.5; }
.sector-card h3 {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.sector-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 300;
}
.sector-list {
    margin-top: 20px;
    list-style: none;
}
.sector-list li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
}
.sector-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    text-align: center;
}
.cta-section .section-heading { max-width: 600px; margin: 0 auto; }
.cta-section .section-sub { max-width: 480px; margin: 16px auto 0; }
.cta-actions {
    margin-top: 40px;
    display: flex; gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-phone {
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.cta-phone a {
    color: var(--highlight);
    font-weight: 600;
    transition: color 0.2s;
}
.cta-phone a:hover { color: #d4ff1a; }

/* ============================================
   PARTNER CAROUSEL
   ============================================ */
.partners { background: var(--bg-panel); border-top: 1px solid var(--border); }
.carousel-wrapper {
    position: relative;
    margin-top: 56px;
}
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.partner-card {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.partner-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.partner-logo-area {
    width: 100%; height: 80px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}
.partner-logo-area img {
    max-height: 48px;
    max-width: 80%;
    object-fit: contain;
}
.partner-placeholder-text {
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.partner-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.partner-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}
.partner-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
    background: var(--highlight-glow);
    border: 1px solid rgba(190,233,0,0.15);
    border-radius: 100px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    z-index: 2;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.carousel-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

/* ============================================
   PROJECTS CAROUSEL
   ============================================ */
.projects { background: var(--bg-panel); border-top: 1px solid var(--border); }
.project-card {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.project-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.project-card:hover .project-img img {
    transform: scale(1.04);
}
.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.project-body {
    padding: 24px 24px 28px;
}
.project-body h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.project-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}
.project-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
}
.project-location::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}
.projects-cta {
    margin-top: 40px;
    text-align: center;
}
.projects-cta .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--highlight);
    transition: gap 0.25s;
}
.projects-cta .link-arrow:hover { gap: 14px; }
.projects-cta .link-arrow svg { width: 16px; height: 16px; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews { border-top: 1px solid var(--border); }



/* ============================================
   RESPONSIVE - HOMEPAGE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-card { flex: 0 0 calc(50% - 8px); }
    .project-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 860px) {
    .hero { padding: 0 24px 60px; }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { order: -1; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .sectors-grid { grid-template-columns: 1fr; }
    .partner-card { flex: 0 0 calc(80% - 8px); }
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }
    .project-card { flex: 0 0 calc(80% - 8px); }
}
@media (max-width: 560px) {
    .partner-card { flex: 0 0 90%; }
    .about-visual { grid-template-columns: 1fr 1fr; }
    .project-card { flex: 0 0 90%; }
}