/* ═══════════════════════════════════════════════════
   FREDERICO FERREIRA — Base Styles
   ═══════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

p {
    line-height: var(--lh-relaxed);
    max-width: 70ch;
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

.text-muted {
    color: var(--gray-400);
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.container--narrow {
    max-width: var(--container-narrow);
}

section {
    padding-block: var(--section-py);
}

/* ── Section Themes ── */
.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    position: relative;
}

.section--dark-alt {
    background-color: var(--bg-dark-alt);
    color: var(--text-primary);
    position: relative;
}

.section--light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    position: relative;
}

.section--white {
    background-color: var(--bg-white);
    color: var(--text-dark);
    position: relative;
}

/* Subtle decorative gradient for dark sections */
.section--dark::before,
.section--dark-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(209, 178, 125, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(209, 178, 125, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle top gradient for light sections */
.section--light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(209, 178, 125, 0.2) 50%, transparent 90%);
    pointer-events: none;
}

/* ── Section Header (reusable) ── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
    padding: 4px 16px;
    background: rgba(209, 178, 125, 0.06);
    border: 1px solid rgba(209, 178, 125, 0.15);
    border-radius: var(--radius-full);
}

.section--light .section-label,
.section--white .section-label {
    background: rgba(209, 178, 125, 0.08);
    border-color: rgba(209, 178, 125, 0.2);
    color: var(--gold-dark);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: var(--space-lg) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--fs-body-lg);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--lh-relaxed);
}

.section--dark .section-subtitle {
    color: var(--text-secondary);
}

.section--light .section-subtitle,
.section--white .section-subtitle {
    color: var(--text-dark-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.9rem 2.25rem;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg,
.btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(209, 178, 125, 0.2);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 32px rgba(209, 178, 125, 0.35);
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(209, 178, 125, 0.2);
}

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

.btn--secondary:hover {
    background: rgba(209, 178, 125, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(209, 178, 125, 0.08);
}

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

.btn--outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-xs);
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ── Selection ── */
::selection {
    background: var(--gold-muted);
    color: var(--navy);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ── Screenreader Only ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--fs-xs);
    }

    section {
        padding-block: clamp(3rem, 6vw, 5rem);
    }
}