/* ================================
   SUNSET PARK SOLAR - MAIN STYLESHEET
   Modern, Accessible, Responsive Design
   ================================ */

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

:root {
    /* Color Scheme */
    --color-primary: #F57C00;
    --color-primary-dark: #E65100;
    --color-primary-light: #FF8F00;
    --color-secondary: #FFA726;
    --color-accent: #FF6F00;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-footer-bg: rgba(255, 255, 255, 0.95);
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    --transition-base: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ================================
   ACCESSIBILITY
   ================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 0;
}

*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ================================
   HEADER SECTION
   ================================ */
.header {
    background: var(--color-footer-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .header-container {
        padding: 0 clamp(2rem, 5vw, 100px);
    }
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 40px);
    flex-shrink: 0;
}

.sunset-park-logo {
    display: flex;
    align-items: center;
}

.sps-logo {
    height: clamp(40px, 5vw, 60px);
    width: auto;
}

.divider {
    width: 2px;
    height: clamp(40px, 5vw, 60px);
    background: #ddd;
}

.uprose-section {
    display: flex;
    align-items: center;
}

.uprose-logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 30px);
    flex-wrap: wrap;
}

.uprose-logo-img {
    height: clamp(35px, 4vw, 50px);
    width: auto;
}

.x-text {
    color: var(--color-primary);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    margin: 0 clamp(0.5rem, 1.5vw, 20px);
}

.wp-logo-img {
    height: clamp(40px, 4.5vw, 55px);
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 50px);
    flex-wrap: wrap;
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--color-primary-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.nav-enroll {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(245, 124, 0, 0.3);
}

.nav-enroll:hover,
.nav-enroll:focus {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    /* When menu is open, prevent body scroll */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
        justify-content: center;
        align-items: center;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1.5rem 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.nav-enroll {
        margin: 1rem auto;
        border-radius: 8px;
        width: calc(100% - 2rem);
        max-width: 300px;
        display: block;
    }
    
    /* Ensure header stays above menu */
    .header {
        z-index: 1001;
    }
}

/* ================================
   LANGUAGE SELECTION BAR
   ================================ */
.language-bar {
    background: var(--color-primary);
    padding: 12px 0;
    border-bottom: 3px solid var(--color-primary-light);
}

.language-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 40px);
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .language-container {
        padding: 0 clamp(2rem, 5vw, 100px);
    }
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 6px;
    transition: var(--transition-base);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
}

/* ================================
   ENROLLMENT UPDATE BANNER
   ================================ */
.enrollment-update {
    background: var(--color-primary-light);
    padding: 14px 0;
    position: relative;
}

.enrollment-update::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-secondary) 50%, var(--color-primary-light) 100%);
}

.update-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

@media (min-width: 1200px) {
    .update-container {
        padding: 0 clamp(2rem, 5vw, 100px);
    }
}

.update-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-base);
}

.update-content:hover,
.update-content:focus {
    opacity: 0.9;
}

.update-text {
    color: white;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.update-arrow {
    color: white;
    font-size: 14px;
    transition: transform var(--transition-base);
}

.update-content:hover .update-arrow {
    transform: translateX(3px);
}

/* ================================
   MAIN CONTENT AREA
   ================================ */
.main-content {
    min-height: calc(100vh - 400px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    position: relative;
    min-height: clamp(300px, 50vh, 500px);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 30%, var(--color-secondary) 70%, #FFAB40 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
}

.sunflower-garland {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

.garland-decoration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    text-align: center;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
}

@media (min-width: 1200px) {
    .hero-container {
        padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 20px);
    }
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 25px);
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    color: white;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: clamp(1.5rem, 4vw, 35px);
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 40px);
    border: none;
    border-radius: 8px;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
    min-width: clamp(150px, 20vw, 180px);
    text-align: center;
    font-family: var(--font-family);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 3px solid white;
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-primary:focus {
    background: white;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--color-accent);
    border: 3px solid white;
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ================================
   BENEFITS SECTION
   ================================ */
.benefits-section {
    background: white;
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    overflow: visible;
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
    position: relative;
}

@media (min-width: 1200px) {
    .benefits-container {
        padding: 0 clamp(1rem, 5vw, 20px);
    }
}

.benefits-intro {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    padding: 15px 8px;
}

.benefits-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight-orange {
    color: var(--color-primary);
    font-weight: 800;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    position: relative;
    margin: 0;
}

.sunflower-decoration {
    display: none; /* Hidden on mobile, shown on larger screens */
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: auto 1fr 1fr 1fr auto;
        gap: 0;
        margin: 0 -25px;
    }
    
    .sunflower-decoration {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 200px;
        height: 350px;
        position: relative;
        top: -90px;
    }
    
    .sunflower-decoration.left {
        margin-left: -25px;
    }
    
    .sunflower-decoration.right {
        margin-right: -25px;
    }
    
    .sunflower-img {
        width: 100%;
        height: 350%;
        max-width: 290px;
        object-fit: contain;
    }
    
    .sunflower-decoration.right .sunflower-img {
        transform: scaleX(-1);
    }
}

.benefit-item {
    text-align: center;
    padding: 2px;
    margin: 0;
    transition: transform var(--transition-base);
}

.benefit-item:hover {
    transform: translateY(-2px);
}

.benefit-icon {
    width: clamp(100px, 15vw, 158px);
    height: clamp(100px, 15vw, 158px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.6);
}

.benefit-title {
    color: var(--color-primary-dark);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.3;
    max-width: 250px;
    margin: 0 auto;
}

/* ================================
   COMMUNITY SECTION
   ================================ */
.community-section {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #263238 0%, #37474F 50%, #455A64 100%);
    overflow: hidden;
}

.community-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.community-bg-image {
    position: absolute;
    top: -60%;
    left: 0;
    width: 100%;
    height: 250%;
    z-index: 0;
}

.community-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.3;
    transform: scale(1.15);
}

.community-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1200px) {
    .community-container {
        padding: 0 clamp(1rem, 5vw, 20px);
    }
}

.community-title {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ================================
   VALUE PROPOSITION SECTION
   ================================ */
.value-prop-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.value-prop-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

@media (min-width: 1200px) {
    .value-prop-container {
        padding: 0 clamp(1rem, 5vw, 20px);
    }
}

.value-prop-title {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.value-prop-title .highlight-orange {
    color: #FFF3E0;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 8px;
    border-radius: 4px;
}

/* ================================
   FOOTER SECTION
   ================================ */
.footer {
    background: var(--color-footer-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1200px) {
    .footer-container {
        padding: 0 clamp(1rem, 5vw, 20px);
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: clamp(40px, 5vw, 50px);
    width: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-contact {
    margin: 0;
}

.footer-email {
    margin: 0;
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--color-text-light);
}

.footer-email a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.footer-email a:hover,
.footer-email a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;
}

.footer-copyright p {
    font-size: clamp(11px, 1.5vw, 12px);
    color: #999;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
}

/* ================================
   RTL SUPPORT
   ================================ */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .logo-section,
[dir="rtl"] .main-nav,
[dir="rtl"] .language-container,
[dir="rtl"] .hero-buttons,
[dir="rtl"] .footer-content {
    direction: rtl;
}

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

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .language-bar,
    .mobile-menu-toggle,
    .main-nav,
    .hero-buttons {
        display: none;
    }
    
    .header {
        position: static;
        box-shadow: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

