/* ============================================================
   BASE — variables, reset, typography, utilities, buttons
   ============================================================ */

:root {
    --green-dark: #004d00;
    --green: #006b3f;
    --green-light: #e8f5e9;
    --gold: #ffb81c;
    --gold-dark: #c6930a;
    --navy: #1a2332;
    --navy-light: #2c3e50;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #868e96;
    --gray-700: #495057;
    --gray-900: #212529;
    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.16);
    --space-section: 96px;
    --transition: 0.2s ease;
}

/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
}

/* === Typography === */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

p {
    line-height: 1.7;
}

a {
    color: var(--green);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}

/* === Utilities === */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    margin-bottom: 2.5rem;
    text-align: center;
}

.link-arrow {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition), color var(--transition);
}

.link-arrow:hover {
    color: var(--green-dark);
    gap: 8px;
    text-decoration: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
    font-family: inherit;
    letter-spacing: -0.01em;
    white-space: nowrap;
    -webkit-appearance: none;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 107, 63, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
    box-shadow: 0 4px 14px rgba(0, 107, 63, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
}

.btn-outline:hover:not(:disabled) {
    background: var(--green);
    color: var(--white);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* === Spinner === */
.btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

.btn.loading .spinner {
    display: inline-block;
}

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