/* ========================================
   Solar Panel Cleaning South Africa - Styles
   Professional, Modern, SEO-Optimized Design
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-dark);
}

strong {
    font-weight: 700;
    color: var(--text-dark);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.text-white {
    color: var(--bg-white) !important;
}

.text-center {
    text-align: center;
}

/* === HEADER === */
#header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .cta-link {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.nav-links .cta-link:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    padding: 5rem 0;
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--bg-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.hero-cta {
    margin-top: 3rem;
}

.primary-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    border: 3px solid var(--primary-color);
}

.primary-cta:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-subtext {
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* === CONTENT GRIDS === */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.content-text h3 {
    margin-top: 2rem;
    color: var(--text-dark);
}

.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* === LISTS === */
.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.7;
    color: var(--text-medium);
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 900;
}

/* === INFO BOXES === */
.info-box {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.info-box.highlight {
    border-left: 4px solid var(--primary-color);
    background-color: #fffbeb;
}

.info-box.success {
    border-left: 4px solid var(--accent-color);
    background-color: #f0fdf4;
}

.info-box.warning {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.sidebar-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

/* === BUTTONS === */
.button-primary,
.button-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-primary.large,
.button-primary.extra-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.button-primary.extra-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

/* === EQUIPMENT SECTION === */
.section-intro {
    font-size: 1.125rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-medium);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.equipment-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.equipment-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.equipment-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.equipment-card p {
    margin-bottom: 1.5rem;
}

/* === CTA BOX === */
.cta-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 4rem;
    box-shadow: var(--shadow-xl);
}

.cta-box h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* === BENEFITS SECTION === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.benefit-card h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* === BEST PRACTICES SECTION === */
.practices-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.practice-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.practice-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.equipment-link-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    color: var(--bg-white);
    text-align: center;
}

.equipment-link-box h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.equipment-link-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

/* === REGIONAL SECTION === */
.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.region-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
}

.region-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* === FAQ SECTION === */
.faq-container {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-item {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* === FINAL CTA SECTION === */
.cta-buttons {
    margin: 2rem 0;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.95;
}

/* === FOOTER === */
#footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-keywords {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .content-grid,
    .practices-layout {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar,
    .practice-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .primary-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .equipment-grid,
    .benefits-grid,
    .regional-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* === VISUAL SHOWCASE SECTION === */
.bg-gradient-subtle {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.showcase-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.showcase-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.showcase-caption {
    padding: 1.5rem;
}

.showcase-caption h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.showcase-caption p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0;
}

.showcase-cta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(14, 165, 233, 0.2);
}

.showcase-cta .lead {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* === GENERAL IMAGE STYLES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print styles */
@media print {
    header,
    footer,
    .hero-cta,
    .cta-box,
    .nav-links {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
