/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables defined in design-system.css */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Global link reset - no purple visited state */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit !important;
}

a:link {
    color: inherit;
}

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

/* Navigation */
.nav {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

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

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text) !important;
    text-decoration: none;
}

.logo:visited {
    color: var(--color-text) !important;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text-light);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

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

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

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--color-bg);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--color-text-light);
}

/* Hero */
.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 28px;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited {
    background: var(--color-text);
    color: #FFFFFF !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: #000000;
    color: #FFFFFF !important;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

.btn-large {
    padding: 20px 40px;
    font-size: 16px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--color-bg-gray);
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 64px;
    text-align: center;
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 4px; /* Space for hover animation */
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.process-step p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    padding: 4px; /* Space for hover animation */
}

.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.pricing-header {
    padding: 32px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.pricing-body {
    padding: 32px;
}

.pricing-option {
    text-align: center;
    padding: 24px 0;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.option-price {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.option-note {
    font-size: 14px;
    color: var(--color-text-light);
}

.pricing-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0 32px;
}

.pricing-note {
    text-align: center;
    font-size: 15px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Why Housler */
.why-description {
    text-align: center;
    font-size: 20px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text);
}

/* CTA Section */
.section-cta {
    background: var(--color-bg-gray);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.contact-item a {
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-contact-value a {
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contact-value a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* Legacy footer classes for backwards compatibility */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-text-light);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
}

/* Mobile Swipe Container */
.swipe-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    margin: 0 -24px;
    padding: 0 24px;
}

.swipe-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.swipe-wrapper {
    display: flex;
    gap: 16px;
}

.swipe-item {
    flex: 0 0 85%; /* 85% width shows peek of next item */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Scroll hint - hidden, swipe should be intuitive */
.scroll-hint {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid,
    .process-timeline,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 48px;
    }

    .section-title,
    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 60px 0;
    }

    .section-title,
    .cta-content h2 {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
    }

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

    .footer-contacts {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Enable swipe mode for mobile */
    .mobile-swipe .services-grid,
    .mobile-swipe .process-timeline,
    .mobile-swipe .pricing-grid {
        display: flex;
        gap: 16px;
        grid-template-columns: none;
    }

    .mobile-swipe .service-card,
    .mobile-swipe .process-step,
    .mobile-swipe .pricing-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    .mobile-swipe .scroll-hint {
        display: block;
    }

    /* Contact grid stays 1-column on mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title,
    .cta-content h2 {
        font-size: 24px;
    }

    .mobile-swipe .service-card,
    .mobile-swipe .process-step,
    .mobile-swipe .pricing-card {
        flex: 0 0 90%; /* Slightly larger on small phones */
    }

    .container {
        padding: 0 20px;
    }

    .swipe-container {
        margin: 0 -20px;
        padding: 0 20px;
    }
}

/* Calculator Promo Section */
.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
}

.calc-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 32px;
    margin-bottom: 64px;
    justify-content: center;
}

.calc-promo-grid .service-card {
    padding: 32px 28px;
}

.calc-step-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.calc-promo-action {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

.calc-promo-hint {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: var(--spacing-xl);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.product-description {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.product-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text);
}

.product-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 400;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.product-link:hover {
    gap: 10px;
}

.product-badge {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 968px) {
    .calc-promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .calc-promo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
}
