/* ══════════════════════════════════
   BASE RESET & GLOBAL STYLES
══════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    background: var(--cream-200);
    color: var(--text-700);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    color: var(--green-700);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

p { color: var(--text-500); font-size: 1rem; }

/* ── Layout ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

.section-padding {
    padding: var(--section-py) 0;
}

/* ── Utility Classes ── */
.label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-400);
    display: inline-block;
    margin-bottom: .5rem;
    position: relative;
    padding-left: 24px;
}
.label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--green-400);
    transform: translateY(-50%);
}

.section-header {
    margin-bottom: 3.5rem;
}
.section-header h2 {
    margin-bottom: .6rem;
}
.section-header p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.section-header.center {
    text-align: center;
}
.section-header.center p {
    margin: 0 auto;
}

.tag {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 600;
    background: var(--green-50);
    color: var(--green-600);
    letter-spacing: .03em;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .72rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--ease-out);
}
.btn:hover::after {
    background: rgba(255,255,255,.08);
}
.btn--primary {
    background: var(--green-600);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--green-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--outline {
    border: 2px solid var(--green-600);
    color: var(--green-600);
}
.btn--outline:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-2px);
}
.btn--ghost {
    color: var(--green-600);
    padding-left: 0;
    padding-right: 0;
}
.btn--ghost:hover {
    color: var(--green-400);
}
.btn--ghost .arrow {
    transition: transform var(--ease-out);
}
.btn--ghost:hover .arrow {
    transform: translateX(4px);
}
.btn--light {
    background: var(--green-200);
    color: var(--green-800);
    font-weight: 700;
}
.btn--light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--sm {
    padding: .42rem 1rem;
    font-size: .8rem;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--green-600);
    color: var(--white);
    padding: .6rem 1.2rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-size: .85rem;
    font-weight: 600;
    z-index: 9999;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
}

/* ── Focus styles ── */
:focus-visible {
    outline: 3px solid var(--green-300);
    outline-offset: 3px;
    border-radius: 4px;
}