/* Filename: styles.css */
/**
 * Aurevia Solar - Modern Vibrant UI/UX
 * Theme: Solar Tech Professional
 */

:root {
    --primary: #2563eb;      /* Vibrant Blue */
    --primary-dark: #1e40af;
    --secondary: #fbbf24;    /* Solar Amber */
    --accent: #10b981;       /* Energy Green */
    --dark: #0f172a;         /* Midnight Blue-Grey */
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav — Fully Professional & Premium Glassmorphism */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.navbar {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Brand Lockup */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.brand-lockup:hover { transform: translateY(-1px); }
.brand-logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
    transition: transform 0.3s ease;
}
.brand-lockup:hover .brand-logo-img { transform: scale(1.05); }
.brand-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}
.brand-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.22rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 3px;
}
.brand-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f59e0b;
    text-transform: uppercase;
}

/* Agency Back Badge */
.nav-agency-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.nav-agency-badge:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Primary Nav Menu */
.nav-center-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}
.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}
.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 700;
}

/* Language Segmented Control */
.lang-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.04);
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    font-size: 0.72rem;
    font-weight: 700;
    gap: 2px;
    flex-shrink: 0;
}
.lang-btn {
    padding: 3px 8px;
    border-radius: 999px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}
.lang-btn:hover {
    color: #0f172a;
}
.lang-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Action Group */
.nav-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.btn-crm-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-crm-pill:hover {
    background: #fde68a;
    color: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.btn-quote-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 999px;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-quote-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    filter: brightness(1.05);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    padding: 8px 9px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    transition: all 0.2s ease;
}
.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-nav-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.12);
    animation: fadeInDown 0.25s ease-out forwards;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-menu.open {
    display: block;
}
.mobile-nav-agency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 1rem;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}
.mobile-lang-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
}
.mobile-lang-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}
.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 1040px) {
    .nav-center-group, .lang-selector, .nav-agency-badge, .btn-crm-pill { display: none; }
    .mobile-nav-toggle { display: flex; }
    .site-header { padding: 0.25rem 0; }
    .navbar { height: 64px; }
}

@media (max-width: 520px) {
    .brand-title { font-size: 1.05rem; }
    .brand-tag { font-size: 0.55rem; }
    .btn-quote-cta span { display: none; }
    .btn-quote-cta { padding: 7px 12px; font-size: 0.78rem; }
}

/* Standard Buttons */
.btn {
    padding: 0.8rem 1.8rem; border-radius: 12px; font-weight: 700;
    transition: var(--transition); display: inline-flex; align-items: center;
    gap: 10px; cursor: pointer; text-decoration: none; border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--dark); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3); }

/* Hero Slider */
.hero-slider {
    position: relative; height: 100vh; width: 100%; overflow: hidden;
    background: var(--dark);
}
.slider-track {
    display: flex; height: 100%; width: 300%; /* Adjust based on slide count */
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
.slide {
    width: 33.333%; height: 100%; position: relative;
    background-size: cover; background-position: center;
}
.slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), transparent);
}
.slide-content {
    position: relative; z-index: 10; height: 100%; display: flex;
    flex-direction: column; justify-content: center; color: white;
}
.slide-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.slide-text { font-size: 1.25rem; max-width: 600px; margin-bottom: 2.5rem; opacity: 0.9; }

/* Slider Controls */
.slider-nav {
    position: absolute; bottom: 40px; right: 40px; z-index: 20;
    display: flex; gap: 15px;
}
.slider-arrow {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* Calculator Section */
.section-padding { padding: 100px 0; }
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px; padding: 60px;
}
.colorful-card {
    background: white; border-radius: 24px; padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}
.colorful-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }

/* table */ 
table th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
    text-align: left;
    unicode-bidi: isolate;
}


/* Footer */
.site-footer { background: var(--dark); color: white; padding: 80px 0 40px; }
.footer-heading { color: var(--secondary); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .slide-content { text-align: center; align-items: center; }
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figcaption {
  margin-top: .75rem;
  font-size: .95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0B3C5D;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: .25rem .75rem;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ******************************************* */

/* ===== SIMPLE GALLERY ===== */

/* ================================================== */
/* FINAL GALLERY FIX — 2 CARDS PER ROW (DESKTOP)       */
/* ================================================== */

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Desktop: force exactly 2 columns */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure gallery cards behave correctly */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Smooth zoom */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay visibility */
.gallery-item:hover .overlay {
    opacity: 1;
}

/* ================================================== */
/* FIX: FORCE GALLERY TEXT OVERLAY VISIBILITY          */
/* ================================================== */

/* Ensure card has predictable height */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Image must sit below overlay */
.gallery-item img {
    display: block;
    position: relative;
    z-index: 1;
}

/* Overlay layer */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.2)
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;

    transition: opacity 0.4s ease;
}

/* SHOW overlay on hover */
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Text clarity */
.gallery-item .overlay h3,
.gallery-item .overlay p {
    color: #ffffff;
    margin: 0;
}

.gallery-item .overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.gallery-item .overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mobile: always visible (no hover) */
@media (max-width: 768px) {
    .gallery-item .overlay {
        opacity: 1;
    }
}

/* ===== WhatsApp Floating Button ===== */
/* ===== WhatsApp Floating Button (LIVE-SAFE) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999; /* higher than header */
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== Toast Notification (FIXED LIVE ISSUE) ===== */
.toast {
    display: none; /* IMPORTANT */
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--dark);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9998;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
