/* =============================================
   Aspen Home Remodeling - Landing Page Styles
   Design Tokens from DESIGN.md
   ============================================= */

:root {
    /* Palette from DESIGN.md */
    --primary: #164289;
    --primary-dark: #0F2C5C;
    --accent: #00A3E0;
    --surface: #FFFFFF;
    --bg-light: #FDFDFD;
    --border: #DADBDD;
    --text-muted: #606266;
    --text-primary: #303133;
    
    --success: #67C23A;
    --warning: #E6A23C;
    --danger: #F56C6C;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;

    /* Radius & Shadows */
    --radius-aspen: 7px;
    --shadow-aspen: 0 4px 12px rgba(0, 0, 0, 0.17);

    /* Typography */
    --font-heading: 'Exo', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,162,60,0.5); }
    50%       { box-shadow: 0 0 20px 8px rgba(230,162,60,0.2); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.animate-fade-up   { animation: fadeInUp   0.7s ease both; }
.animate-fade-left { animation: fadeInLeft  0.7s ease both; }
.animate-fade-right{ animation: fadeInRight 0.7s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* =============================================
   Section Images
   ============================================= */
.img-placeholder {
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-aspen);
}

.section-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--radius-aspen);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}
.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    box-shadow: var(--shadow-aspen);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--surface);
    box-shadow: var(--shadow-aspen);
}
.btn-accent:hover {
    background-color: #008CBE;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,163,224,0.35);
}

/* =============================================
   Header
   ============================================= */
header {
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-3) 0;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-placeholder {
    width: 200px;
    height: 60px;
}

.header-contact { display: flex; align-items: center; gap: var(--space-4); }
.btn-tel {
    background-color: var(--warning);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-aspen);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(230, 162, 60, 0.3);
    transition: all 0.3s ease;
}
.btn-tel:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(230, 162, 60, 0.45);
    background-color: #d4922e;
}

/* =============================================
   Hero
   ============================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--surface);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('aspen-roof-hero-01.jpg') center center / cover no-repeat;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,44,92,0.55) 0%,
        rgba(15,44,92,0.30) 50%,
        rgba(0,0,0,0.60) 100%
    );
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
    padding: 120px 1rem 100px;
}
.hero h1 {
    color: var(--surface);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: var(--space-4);
    text-shadow: 0 3px 12px rgba(0,0,0,0.55);
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-6);
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
    font-weight: 500;
}
.trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #fff;
}

/* CTA btn pulse */
.btn-cta-hero {
    animation: pulse-glow 2.5s infinite;
}

/* =============================================
   Generic Sections
   ============================================= */
section {
    padding: 90px 0;
}
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: var(--space-8);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* =============================================
   Problem & Solution Sections
   ============================================= */
.bg-light { background-color: var(--surface); }
.bg-alt   { background: linear-gradient(135deg, #f8faff 0%, #edf2fb 100%); }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.problem-list { list-style: none; }
.problem-list li {
    font-size: 1.05rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.problem-list li .icon-danger {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(245,108,108,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.solution-list { list-style: none; }
.solution-list li {
    font-size: 1.05rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.solution-list li .icon-ok {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(103,194,58,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--success);
    font-size: 14px;
    font-weight: 700;
}

/* =============================================
   Why Choose Aspen Cards
   ============================================= */
.section-why { background: linear-gradient(160deg, var(--primary-dark) 0%, #1a3a70 100%); }
.section-why .section-title { color: #fff; }
.section-why .section-title::after { background: var(--accent); }
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 34px 24px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}
.card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(0,163,224,0.2), rgba(22,66,137,0.3));
    color: var(--accent);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 16px rgba(0,163,224,0.2);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #fff; }
.card p  { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.6; }

/* =============================================
   Offer Banner
   ============================================= */
.offer-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--surface);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.offer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.offer-banner h2 {
    color: var(--surface);
    font-size: 2.6rem;
    margin-bottom: var(--space-4);
    position: relative;
}
.offer-banner .offer-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    position: relative;
}
.offer-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 20px 28px;
    min-width: 160px;
}
.offer-item .oi-icon { font-size: 2rem; margin-bottom: 8px; }
.offer-item p { font-size: 0.95rem; font-weight: 600; color: #fff; margin: 0; }

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    text-align: center;
    background: linear-gradient(160deg, #0d1f3c 0%, var(--primary-dark) 100%);
    color: var(--surface);
    padding: 90px 0;
}
.cta-section h2 {
    color: var(--surface);
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.cta-section .sub { color: rgba(255,255,255,0.6); margin-bottom: 40px; font-size: 1.1rem; }
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: linear-gradient(160deg, #060f1e 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: var(--space-6) 0;
    font-size: 0.88rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .section-img { height: 260px; }
    header .btn-tel { display: none; }
    .hero-content { padding: 80px 1rem 70px; }
    .mobile-sticky {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--warning);
        color: #fff;
        text-align: center;
        padding: 16px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.15rem;
        text-decoration: none;
        z-index: 1000;
        text-transform: uppercase;
        display: block;
        letter-spacing: 0.5px;
    }
    body { padding-bottom: 64px; }
    .offer-items { flex-direction: column; align-items: center; }
}
@media (min-width: 769px) {
    .mobile-sticky { display: none; }
}
