:root {
    /* 8px Spacing Grid */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-10: 80px;

    /* Typography */
    --font-primary: 'Inter', 'Roboto', 'Google Sans', sans-serif;

    /* Radius */
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-pill: 9999px;

    /* Soft Elevation */
    --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px 1px rgba(0, 0, 0, 0.05);
    --shadow-2: 0 2px 4px -1px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-3: 0 4px 6px -2px rgba(0, 0, 0, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.15);

    /* Animation */
    --motion-spring: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --motion-fade: 200ms ease-in-out;
}

/* Global Typography & Spacing */
body {
    font-family: var(--font-primary);
    line-height: 1.5;
    font-size: 16px;
    background-color: #fafafa;
    color: #1f1f1f;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--sp-2);
    color: #111;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Layout Constraint */
.elementor-section-wrap,
.site-main,
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--sp-4) var(--sp-3);
}

/* Pill-shaped Buttons & Accessibility Touch Targets */
button, 
.elementor-button, 
.btn,
input[type="submit"] {
    border-radius: var(--rad-pill) !important;
    padding: var(--sp-2) var(--sp-4) !important;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--motion-fade);
    min-height: 48px; /* 48px min touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

button:hover, 
.elementor-button:hover, 
.btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2);
}

/* Forms & Inputs */
input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="search"],
input[type="tel"],
select {
    border-radius: var(--rad-pill) !important;
    padding: 0 var(--sp-3) !important;
    min-height: 48px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-family: var(--font-primary);
    transition: border-color var(--motion-fade), box-shadow var(--motion-fade);
    width: 100%;
}

textarea {
    border-radius: var(--rad-md) !important;
    padding: var(--sp-2) var(--sp-3) !important;
    min-height: 48px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-family: var(--font-primary);
    transition: border-color var(--motion-fade), box-shadow var(--motion-fade);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: #1f1f1f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.1);
}

/* Cards & Elevation */
.material-card {
    background: #fff;
    border-radius: var(--rad-md);
    padding: var(--sp-4);
    box-shadow: var(--shadow-1);
    transition: transform var(--motion-spring), box-shadow var(--motion-fade);
    border: none !important;
    margin-bottom: var(--sp-3);
}

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

/* Images */
img {
    border-radius: var(--rad-sm);
    max-width: 100%;
    height: auto;
}

/* Generous Whitespace helper classes */
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-8 { gap: var(--sp-8); }
