/* ========================
   STYLE.CSS
   Layout & Components
   ======================== */

/* --- Layout --- */

.content-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.narrow-wrap {
    max-width: var(--narrow-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Nav --- */

.site-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.pop-frame {
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

.pop-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -12px;
    right: -8px;
    bottom: -10px;
    border: 2px dashed var(--border-medium);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0.45;
}

.site-nav .brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    font-weight: bold;
}

.site-nav .brand a {
    color: inherit;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.site-nav a {
    color: var(--nav-link);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--nav-link-hover);
}

.site-nav a.active {
    color: var(--nav-link-active);
}

/* --- Hero --- */

.hero {
    background: var(--bg-hero);
    color: var(--text-on-dark);
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .content-wrap {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

/* --- Sections --- */

.section {
    padding: var(--space-lg) 0;
}

.section-alt {
    background: var(--bg-surface-alt);
}

.section h2 {
    margin-bottom: var(--space-md);
}

.section p {
    margin-bottom: var(--space-sm);
}

/* --- Feature Grid --- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--button-bg);
    color: var(--button-text);
}

.btn-primary:hover {
    background: var(--button-hover);
    color: var(--button-text);
}

.btn-subscribe {
    background: var(--subscribe-bg);
    color: var(--subscribe-text);
}

.btn-subscribe:hover {
    background: var(--subscribe-hover);
    color: var(--subscribe-text);
}

/* --- Pricing Block --- */

.pricing-block {
    background: var(--bg-surface);
    border: 2px solid var(--brand-primary);
    border-radius: 10px;
    padding: var(--space-lg);
    text-align: center;
    max-width: 500px;
    margin: var(--space-md) auto;
}

.pricing-block .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin: var(--space-sm) 0;
}

.pricing-block .price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Services List --- */

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.service-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.service-item h3 {
    margin-bottom: var(--space-xs);
}

/* --- Case Study --- */

.case-study-highlight {
    background: var(--bg-surface);
    border-left: 4px solid var(--brand-accent);
    border-radius: 10px;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

/* --- Contact Form Placeholder --- */

.contact-placeholder {
    background: var(--bg-surface);
    border: 1px dashed var(--border-medium);
    border-radius: 10px;
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
}

/* --- Footer --- */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
}

.site-footer a {
    color: var(--footer-link);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer-col h4 {
    color: var(--footer-text);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p, .footer-col a {
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Decorative SVG Elements --- */

.deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated .content-wrap {
    position: relative;
    z-index: 1;
}

/* --- Feature Row (icon + text) --- */

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    color: var(--brand-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    margin-bottom: var(--space-xs);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .site-nav .content-wrap {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .site-nav ul {
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-grid,
    .services-list {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .hero {
        padding: var(--space-lg) 0;
    }

    .deco {
        display: none;
    }
}
