/* 
 * Carlina Home Remodeling - Modern SaaS/Glassmorphism Theme
 * Color Palette: Deep Navy (#0f172a), Electric Blue (#3b82f6), Soft White (#f8fafc)
 */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { color: var(--gray); margin-bottom: 1.5rem; font-size: 1.05rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.btn-primary, .btn-secondary, .btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-glow {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo span { color: var(--primary); }

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

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

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.9rem;
}

.trust-item i { color: var(--primary); margin-right: 8px; }

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Stats Section */
.stats-section { padding: 4rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card { text-align: center; }
.stat-card h3 { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; }

/* Services Grid */
.services-section { padding: 6rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Process Timeline */
.process-section { padding: 6rem 0; background: rgba(255,255,255,0.02); }
.timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-item .number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: -1;
}

/* Article Content Styling */
.content-section { padding: 6rem 0; }
.article-container { max-width: 800px; }

.article-container h2 { margin-top: 3rem; color: white; }
.article-container h3 { margin-top: 2rem; color: var(--light); }
.article-container p { margin-bottom: 1.5rem; }

.intro-text { font-size: 1.2rem; color: var(--light); border-left: 3px solid var(--primary); padding-left: 1.5rem; margin-bottom: 3rem; }

.callout-box, .warning-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.warning-box {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.callout-box h4, .warning-box h4 { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }

.feature-list li, .checklist li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

.comparison-table { overflow-x: auto; margin: 2rem 0; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}
.comparison-table th { color: var(--primary); }

/* FAQ Accordion */
.faq-section { padding: 6rem 0; }
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
.accordion-header.active::after { content: '-'; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content p { padding-bottom: 1.5rem; }

/* Testimonials */
.testimonials-section { padding: 6rem 0; background: rgba(255,255,255,0.02); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.stars { color: #fbbf24; margin-bottom: 1rem; }
.client-info { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.initials {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.client-info span { display: block; font-size: 0.8rem; color: var(--gray); }

/* Contact Section */
.contact-section { padding: 6rem 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.info-item { display: flex; gap: 1rem; margin: 1.5rem 0; align-items: flex-start; }
.info-item i { color: var(--primary); margin-top: 5px; }
.info-item a:hover { color: var(--primary); }

.map-btn { margin-top: 2rem; width: 100%; gap: 10px; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    margin-bottom: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width { width: 100%; }

/* Footer */
.site-footer { padding: 4rem 0 0; border-top: 1px solid var(--glass-border); background: var(--dark); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 { color: white; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.copyright {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .timeline { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    h1 { font-size: 2.5rem; }
}