/* =========================================================
   Acuaria — Base styles & reset
   ========================================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html.lenis {
    scroll-behavior: auto;
}

html.lenis body {
    overflow: auto;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text-dark);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: inherit;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
    line-height: var(--line-height-relaxed);
}

::selection {
    background: var(--color-teal);
    color: var(--color-white);
}

:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--color-teal);
    color: var(--color-white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    z-index: var(--z-modal);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: var(--space-4);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: inherit;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    letter-spacing: var(--letter-spacing-normal);
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--gradient-teal);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(27, 184, 160, 0);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(27, 184, 160, 0.45);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-teal-light);
}

.btn--outline {
    background: transparent;
    color: var(--color-navy-deep);
    border-color: var(--color-navy-deep);
}

.btn--outline:hover {
    background: var(--color-navy-deep);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(27, 184, 160, 0.1);
    color: var(--color-teal);
    border-color: rgba(27, 184, 160, 0.3);
}

.btn--ghost:hover {
    background: var(--color-teal);
    color: var(--color-white);
}

.btn--lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-body-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-size-sm);
}

/* ---------- Utility ---------- */
.text-gradient {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.text-gradient-ai {
    background: var(--gradient-text-ai);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
