/* ========================================
   Creative Blinds & Drapes - Main Stylesheet
   Modern, Clean, Responsive Design
   ======================================== */

/* === CSS RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-teal: #7abd3c;
    --primary-teal-dark: #289C3F;
    --warm-cream: #f8f1e9;
    --warm-beige: #e6d9c6;
    --text-dark: #181510;
    --text-gray: #3f3d3d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #d4d4d4;
    
    /* Fonts */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 50px 20px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
    border-color: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 145, 158, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-secondary:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn-quote {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-quote:hover {
    background-color: var(--primary-teal-dark);
    transform: translateY(-1px);
}

/* === HEADER === */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Top Bar */
.header-top {
    background-color: var(--warm-cream);
    border-bottom: 1px solid var(--warm-beige);
    padding: 10px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.header-phone {
    color: var(--primary-teal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-phone:hover {
    color: var(--primary-teal-dark);
}

.separator {
    color: var(--border-color);
}

/* Header Main */
.header-main {
    padding: 5px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo a {
    display: block;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.logo .tagline {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 400;
    margin: 0;
}

/* Navigation */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-teal);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-teal);
}

.nav-menu .cta-nav {
    margin-left: 10px;
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Toggle Active State (X icon) */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--warm-cream);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* === SECTIONS === */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Alternate Section Backgrounds */
section.bg-cream {
    background-color: var(--warm-cream);
}

section.bg-light {
    background-color: var(--light-gray);
}

/* === GRID LAYOUTS === */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* === CARDS === */
.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--warm-beige);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 18px;
}

.card-link {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--primary-teal-dark);
    gap: 8px;
}

/* === FEATURES / BENEFITS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--warm-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-teal);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.95rem;
}

/* === TESTIMONIALS === */
.testimonial {
    background-color: var(--white);
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-teal);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-teal);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--warm-cream);
    border-color: var(--warm-cream);
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: 60px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-teal);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--primary-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    /* Header adjustments */
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .tagline {
        font-size: 0.75rem;
    }
    
    /* Show Mobile Toggle */
    .mobile-toggle {
        display: flex;
    }
    
    /* Mobile Navigation - Hidden by Default, Slide from Right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 48%;
        height: auto;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        margin: 0;
    }
    
    /* Mobile Navigation - Active State */
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--light-gray);
        padding: 0;
    }
    
    .nav-menu li a {
        padding: 15px 10px;
        display: block;
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu .cta-nav {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-menu .cta-nav a {
        display: block;
        text-align: center;
    }
    
    /* Hero */
    .hero-slider {
        height: 450px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .nav-menu {
        width: 48%;
        height: auto;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }