/**
 * It's Handled - Main Stylesheet
 * ==============================
 * A clean, modern design system for digital estate services.
 *
 * Contents:
 * 1. CSS Variables (Design Tokens)
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout (Container, Grid, Flexbox)
 * 5. Header & Navigation
 * 6. Cards & Surfaces
 * 7. Buttons
 * 8. Forms
 * 9. Badges & Alerts
 * 10. Section Backgrounds
 * 11. Decorative Elements
 * 12. Footer
 * 13. Animations
 * 14. Utility Classes
 * 15. Responsive Breakpoints
 */

/* ==========================================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #1e3a5f;
    --primary-light: #2d5a87;
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    /* Background Colors */
    --bg-cream: #fafaf9;
    --bg-soft: #f5f5f4;
    --bg-warm: #fef7ed;
    --bg-teal: #f0fdfa;
    --bg-sage: #f0fdf4;

    /* Legacy Aliases (for backwards compatibility) */
    --warm: var(--bg-warm);
    --warm-dark: #fed7aa;
    --cream: var(--bg-cream);
    --light: var(--bg-soft);
    --dark: #0f172a;

    /* Text Colors */
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* UI Elements */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-hover: 0 20px 48px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);

    /* Border Radius */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing Scale */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;

    /* Section Padding */
    --section-py: 80px;
    --section-py-lg: 100px;
    --section-py-xl: 120px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-cream);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: var(--primary);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0;
}

.text-small {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.85rem;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flexbox */
.row {
    display: flex;
    gap: 28px;
}

.col {
    flex: 1;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

header {
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.logo:hover {
    opacity: 0.75;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25), 0 2px 4px rgba(13, 148, 136, 0.1);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3), 0 2px 4px rgba(13, 148, 136, 0.15);
}

nav {
    display: flex;
    gap: 44px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1875rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 1px;
    transition: var(--transition-fast);
}

nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    padding: 24px;
    flex-direction: column;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary);
    font-size: 28px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background: var(--light);
}

.mobile-nav-links .btn {
    margin-top: 16px;
    text-align: center;
}

/* ==========================================================================
   6. CARDS & SURFACES
   ========================================================================== */

main {
    flex: 1;
    padding: 0;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.card-flat {
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: white;
}

.card-flat:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.card-teal {
    background: var(--bg-teal);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.card-warm {
    background: var(--bg-warm);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-no-hover:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* Feature Card (for How It Works steps, etc.) */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    gap: 10px;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(145deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25), 0 2px 6px rgba(13, 148, 136, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35), 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.125rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 12px 24px;
}

.btn-ghost:hover {
    background: var(--bg-soft);
}

.btn-accent {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(245, 158, 11, 0.15);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35), 0 4px 10px rgba(245, 158, 11, 0.2);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

input::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
}

/* ==========================================================================
   9. BADGES & ALERTS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success {
    background: var(--bg-teal);
    color: var(--secondary);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.badge-info {
    background: var(--bg-soft);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.badge-warning {
    background: var(--bg-warm);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-primary {
    background: var(--primary);
    color: white;
}

/* Alerts */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid;
}

.alert-success {
    background: var(--bg-teal);
    border-color: rgba(13, 148, 136, 0.15);
    color: #115e59;
}

.alert-info {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--text);
}

.alert-warning {
    background: var(--bg-warm);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* Progress Bar */
.progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    transition: width 0.5s ease;
}

/* ==========================================================================
   10. SECTION BACKGROUNDS
   ========================================================================== */

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

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

.section-xl {
    padding: var(--section-py-xl) 0;
}

.warm-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    position: relative;
    margin-bottom: 60px;
}

.warm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.warm-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-cream);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.teal-section {
    background: linear-gradient(180deg, var(--bg-teal) 0%, var(--bg-cream) 100%);
    position: relative;
    margin-bottom: 60px;
}

.teal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.teal-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-cream);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

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

.white-section {
    background: white;
}

.dark-section {
    background: linear-gradient(145deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: white;
}

.dark-section .text-muted {
    color: rgba(255, 255, 255, 0.7);
}

/* Pattern Background */
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ==========================================================================
   11. DECORATIVE ELEMENTS
   ========================================================================== */

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 2px;
    margin: 0 auto 28px;
    opacity: 0.8;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step Number Circle */
.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.step-number-outline {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: none;
}

/* Icon Circle */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.icon-circle-teal {
    background: var(--bg-teal);
    color: var(--secondary);
}

.icon-circle-warm {
    background: var(--bg-warm);
    color: var(--accent);
}

/* Checkmark List */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list .check {
    color: var(--secondary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 48px;
    margin-top: auto;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: white;
}

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

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

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

.footer-links a {
    font-size: 1.0625rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   13. ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-in {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade {
    animation: fadeIn 0.5s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Stagger Animations */
.stagger-in > * {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.6s; }

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   14. UTILITY CLASSES
   ========================================================================== */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: white; }

/* Background Colors */
.bg-white { background: white; }
.bg-cream { background: var(--bg-cream); }
.bg-soft { background: var(--bg-soft); }
.bg-warm { background: var(--bg-warm); }
.bg-teal { background: var(--bg-teal); }

/* Margins */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Border */
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Opacity */
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 480px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 48px;
        --section-py-lg: 64px;
        --section-py-xl: 80px;
    }

    /* Show mobile menu button, hide desktop nav */
    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
    }

    .row {
        flex-direction: column;
    }

    .container, .container-narrow {
        padding: 0 20px;
    }

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

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

    .card {
        padding: 24px;
    }

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

    .btn-large {
        padding: 18px 32px;
        font-size: 1rem;
        width: 100%;
    }

    /* Headings */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Lead text */
    .lead {
        font-size: 1.1rem;
    }

    /* Grid responsive */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Touch-friendly buttons and inputs */
    input, select, textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
    }

    .btn {
        min-height: 48px; /* Touch target size */
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Reduce warm-section hero padding on mobile */
    .warm-section {
        margin-bottom: 24px;
        padding-bottom: 24px !important;
    }

    .warm-section::after {
        bottom: -24px;
        height: 24px;
    }

    /* Override inline padding styles on hero sections */
    section.warm-section[style*="padding: 80px"] {
        padding: 40px 0 24px !important;
    }
}

@media (max-width: 480px) {
    .container, .container-narrow {
        padding: 0 16px;
    }

    .card {
        padding: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 16px 24px;
    }

    /* Full width buttons on small screens */
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Price display */
    .price-display {
        font-size: 2.5rem !important;
    }
}

/* Print */
@media print {
    header, footer, .btn {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
