/* ============================================
   SolarSquare — Custom Design System
   Bootstrap replace + branded styles
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --green:        #16a34a;
    --green-dark:   #15803d;
    --green-light:  #22c55e;
    --green-pale:   #f0fdf4;
    --green-mid:    #dcfce7;
    --green-border: #bbf7d0;
    --sun:          #f59e0b;
    --sun-pale:     #fffbeb;
    --navy:         #0f172a;
    --navy-2:       #1e293b;
    --text:         #0f172a;
    --text-2:       #374151;
    --text-3:       #64748b;
    --text-4:       #94a3b8;
    --border:       #e2e8f0;
    --border-2:     #f1f5f9;
    --white:        #ffffff;
    --bg:           #f8fafc;
    --radius:       12px;
    --radius-lg:    18px;
    --shadow:       0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:    0 12px 48px rgba(0,0,0,0.12);
    --transition:   all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
}

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; }

/* ===== TOPBAR ===== */
.ss-topbar {
    background: var(--navy);
    padding: 9px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
.ss-topbar a { color: rgba(255,255,255,0.65); text-decoration: none; }
.ss-topbar a:hover { color: var(--green-light); }
.ss-topbar i { color: var(--green-light); }

/* ===== NAVBAR ===== */
.ss-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
    padding: 0;
    transition: box-shadow 0.2s;
}
.ss-navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.1); }

.ss-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 0;
    text-decoration: none;
    border-right: 1px solid var(--border-2);
    margin-right: 8px;
    flex-shrink: 0;
}
.ss-brand .brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}
.ss-brand .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.ss-brand .brand-name span { color: var(--green); }

/* Nav links */
.ss-nav .nav-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-2) !important;
    padding: 20px 13px !important;
    position: relative;
    transition: color 0.15s !important;
    white-space: nowrap;
}
.ss-nav .nav-link:hover,
.ss-nav .nav-link.active { color: var(--green) !important; }
.ss-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 13px; right: 13px;
    height: 3px;
    background: var(--green);
    border-radius: 2px 2px 0 0;
}
.ss-nav .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    margin-left: 5px;
    vertical-align: 0;
}

/* Dropdown */
.ss-nav .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
    margin-top: 0;
    animation: dropIn 0.15s ease;
}
@keyframes dropIn {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.ss-nav .dropdown-item {
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.12s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.ss-nav .dropdown-item:hover { background: var(--green-pale); color: var(--green); }
.ss-nav .dropdown-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-4);
    padding: 6px 14px 4px;
}

/* City Presence Dropdown */
.presence-dropdown { min-width: 380px !important; padding: 16px !important; }
.city-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.city-chip {
    padding: 7px 10px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-2);
    text-align: center; text-decoration: none; transition: all 0.12s;
}
.city-chip:hover { background: var(--green-pale); border-color: var(--green-border); color: var(--green); }
.city-more {
    grid-column: 1/-1; text-align: center;
    font-size: 12px; color: var(--green); font-weight: 600;
    padding: 6px; text-decoration: none;
}

/* CTA Button */
.btn-ss-cta {
    background: var(--green);
    color: white !important;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-ss-cta:hover {
    background: var(--green-dark);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.35);
}

/* Mobile Nav */
@media (max-width: 991px) {
    .ss-brand { border-right: none; padding: 12px 0; margin-right: 0; }
    .ss-nav .nav-link { padding: 11px 4px !important; }
    .ss-nav .nav-link.active::after { display: none; }
    .ss-nav .dropdown-menu { box-shadow: none; border: none; background: var(--bg); border-radius: 8px; margin: 4px 0; animation: none; }
    .presence-dropdown { min-width: auto !important; padding: 12px !important; }
    .city-grid { grid-template-columns: repeat(2,1fr); }
    .btn-ss-cta { margin: 14px 0 4px; width: 100%; justify-content: center; }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 60px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(22,163,74,0.15) 0%, transparent 60%);
}
.page-header h1 { font-size: clamp(28px,5vw,48px); color: white; margin-bottom: 12px; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; }
.breadcrumb-item a:hover { color: var(--green-light); }
.breadcrumb-item.active { color: rgba(255,255,255,0.5); font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ===== SECTION HELPERS ===== */
.ss-section { padding: 72px 0; }
.ss-section-alt { background: var(--bg); }
.ss-section-dark { background: var(--navy); }
.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 8px;
}
.section-title {
    font-size: clamp(24px,4vw,36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.section-title.light { color: white; }
.section-sub { font-size: 15px; color: var(--text-3); max-width: 580px; }

/* ===== BUTTONS ===== */
.btn-ss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.btn-ss-primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.btn-ss-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22,163,74,0.35);
}
.btn-ss-outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-ss-outline:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}
.btn-ss-white {
    background: white;
    color: var(--green);
    border-color: white;
}
.btn-ss-white:hover {
    background: var(--green-pale);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-ss-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.35);
}
.btn-ss-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}
.btn-ss-lg { padding: 15px 32px; font-size: 15px; border-radius: 14px; }
.btn-ss-sm { padding: 8px 16px; font-size: 12px; border-radius: 8px; }

/* ===== CARDS ===== */
.ss-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.ss-card:hover {
    border-color: var(--green-border);
    box-shadow: 0 8px 32px rgba(22,163,74,0.1);
    transform: translateY(-4px);
}
.ss-card-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--green);
}
.ss-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ss-card-desc { font-size: 14px; color: var(--text-3); line-height: 1.7; }

/* Service Card */
.service-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.service-item:hover {
    border-color: var(--green-border);
    box-shadow: 0 12px 40px rgba(22,163,74,0.12);
    transform: translateY(-5px);
}
.service-item img {
    width: 100%; height: 200px; object-fit: cover;
    display: block; transition: transform 0.4s ease;
}
.service-item:hover img { transform: scale(1.04); }
.service-item-body { padding: 24px; }
.service-icon-wrap {
    width: 48px; height: 48px;
    background: var(--green);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px;
    margin-bottom: 14px;
}
.service-item h4 { font-size: 18px; margin-bottom: 10px; }
.service-item p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.service-item a.read-more {
    font-size: 13px; font-weight: 700; color: var(--green);
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
}
.service-item a.read-more:hover { gap: 10px; }

/* Stats Card */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--green-border); box-shadow: var(--shadow); }
.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-lbl { font-size: 13px; color: var(--text-3); font-weight: 500; }
.stat-icon-wrap {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 16px;
    color: var(--green);
}

/* ===== HERO CAROUSEL (no jQuery needed) ===== */
.ss-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}
.ss-hero-slide {
    display: none;
    position: relative;
    min-height: 520px;
}
.ss-hero-slide.active { display: flex; align-items: center; }
.ss-hero-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.35;
}
.ss-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}
.ss-hero-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    color: white; font-weight: 800;
    line-height: 1.15; margin-bottom: 18px;
}
.ss-hero-content h1 span { color: var(--green-light); }
.ss-hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero dots */
.hero-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer; transition: all 0.2s;
    border: none; padding: 0;
}
.hero-dot.active { width: 24px; border-radius: 4px; background: var(--green-light); }

/* ===== TESTIMONIAL ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 20px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--green-border); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--sun); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-av {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--green); display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 15px; color: white;
    flex-shrink: 0; object-fit: cover;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testimonial-meta { font-size: 12px; color: var(--text-4); }

/* ===== TEAM ===== */
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}
.team-card:hover { border-color: var(--green-border); box-shadow: 0 12px 40px rgba(22,163,74,0.1); transform: translateY(-5px); }
.team-img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-av-wrap {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--green); display: flex; align-items: center;
    justify-content: center; font-size: 28px; font-weight: 800;
    color: white; margin: 24px auto 16px;
}
.team-body { padding: 0 20px 24px; }
.team-name { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.team-desig { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--green-pale); display: flex; align-items: center;
    justify-content: center; color: var(--green); font-size: 14px;
    transition: var(--transition);
}
.team-social a:hover { background: var(--green); color: white; }

/* ===== FEATURE ICONS ===== */
.feature-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--green); flex-shrink: 0;
}
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.feature-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }

/* ===== GALLERY / PROJECT ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.5);
    display: flex; align-items: flex-end;
    padding: 16px; opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { color: white; font-size: 13px; font-weight: 700; }

/* ===== FOOTER ===== */
.ss-footer {
    background: var(--navy);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}
.ss-footer h5 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.ss-footer p { color: rgba(255,255,255,0.6); line-height: 1.8; }
.ss-footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.ss-footer a:hover { color: var(--green-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { display: flex; align-items: center; gap: 8px; }
.footer-links li a::before { content: "→"; color: var(--green-light); font-size: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: rgba(255,255,255,0.65);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--green); border-color: var(--green); color: white; }
.footer-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.footer-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-newsletter input {
    width: 100%; padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    color: white; font-family: inherit; font-size: 13px;
    outline: none; margin-bottom: 10px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--green); }
.footer-newsletter button {
    width: 100%; padding: 11px;
    background: var(--green); border: none;
    border-radius: 9px; color: white;
    font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    transition: var(--transition);
}
.footer-newsletter button:hover { background: var(--green-dark); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    border: none; cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(22,163,74,0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}
.back-to-top:hover { background: var(--green-dark); color: white; transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* ===== FORM ===== */
.ss-form-ctrl {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; font-family: inherit;
    color: var(--text); background: var(--white);
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 14px;
}
.ss-form-ctrl:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.ss-form-ctrl::placeholder { color: var(--text-4); }

/* ===== BADGES / TAGS ===== */
.ss-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 30px;
    font-size: 12px; font-weight: 700;
}
.ss-badge-green { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-border); }
.ss-badge-sun { background: var(--sun-pale); color: #b45309; border: 1px solid #fde68a; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 20px; padding: 52px 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 28px; font-weight: 800; color: white; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0; }
@media (max-width: 767px) {
    .cta-banner { padding: 32px 24px; text-align: center; justify-content: center; }
}

/* ===== UTILITIES ===== */
.text-green { color: var(--green) !important; }
.bg-green-pale { background: var(--green-pale) !important; }
.border-green { border-color: var(--green-border) !important; }
.rounded-ss { border-radius: var(--radius) !important; }
.rounded-ss-lg { border-radius: var(--radius-lg) !important; }

/* Page transition */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ss-section { padding: 48px 0; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-ss { justify-content: center; }
    .cta-banner { flex-direction: column; }
    .stat-num { font-size: 32px; }
}
@media (max-width: 576px) {
    .ss-hero-content { padding: 60px 0; }
    .ss-hero-content h1 { font-size: 28px; }
    h2.section-title { font-size: 24px; }
}
