/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Brand Colors
   =================================== */

:root {
    --brand-green: #2D8659;
    --brand-green-hover: #246b47;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f9f9f9;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ===================================
   Layout
   =================================== */

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

section {
    padding: 80px 0;
}

/* Mobile first - smaller padding on mobile */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    padding: 100px 0 120px;
    background-image: url('https://images.unsplash.com/photo-1607802347849-e0224ff66e47?w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 134, 89, 0.7) 0%,
        rgba(30, 90, 60, 0.5) 50%,
        rgba(20, 60, 40, 0.6) 100%
    );
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.app-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid #000000;
}

.app-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-button svg {
    flex-shrink: 0;
}

.app-button div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.button-small {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.button-large {
    font-size: 16px;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-button {
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================
   Section Titles
   =================================== */

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -40px auto 60px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 16px;
        margin: -20px auto 40px;
    }
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    background-color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    background-color: #f0f7f4;
    border-radius: 20px;
}

.step-title {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }
}

/* ===================================
   Why Maskan Section
   =================================== */

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

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    background-color: #f0f7f4;
    border-radius: 16px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature {
        padding: 32px 24px;
    }
}

/* ===================================
   Parallax Divider Section
   =================================== */

.parallax-divider {
    background-image: url('https://images.unsplash.com/photo-1634141914443-be7b7892abb2?w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.parallax-divider .parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.divider-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.divider-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.divider-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .parallax-divider {
        min-height: 280px;
    }

    .divider-content h2 {
        font-size: 32px;
    }

    .divider-content p {
        font-size: 18px;
    }
}

/* ===================================
   For Hosts Section
   =================================== */

.for-hosts {
    background-image: url('https://images.unsplash.com/photo-1721080987867-a5343db88774?w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
}

.for-hosts::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.88) 0%, rgba(36, 107, 71, 0.88) 100%);
}

.hosts-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.for-hosts .section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.hosts-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: #ffffff;
    color: var(--brand-green);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #ffffff;
}

.cta-button:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hosts-description {
        font-size: 16px;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================
   Final CTA Section
   =================================== */

.final-cta {
    background-color: var(--bg-light);
    text-align: center;
}

.cta-title {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

/* ===================================
   Utility Classes
   =================================== */

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Parallax mobile fallback - iOS/Android have issues with fixed backgrounds */
@media (max-width: 768px) {
    .hero,
    .parallax-divider,
    .for-hosts {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .app-buttons,
    .cta-button {
        display: none;
    }
}
