/* ============================================================
   Base — Reset, @font-face, Typography, Utilities
   ============================================================ */

/* --- Self-hosted Font Faces --- */
/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/playfair-display/playfair-display-v37-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display/playfair-display-v37-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display/playfair-display-v37-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/playfair-display/playfair-display-v37-latin-800.woff2') format('woff2');
}

/* Poppins */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins/poppins-v21-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins/poppins-v21-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins/poppins-v21-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins/poppins-v21-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins/poppins-v21-latin-700.woff2') format('woff2');
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--spv-ff-body);
    color: var(--spv-ink);
    background: var(--spv-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: env(safe-area-inset-top, 0px);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

#page,
.site {
    overflow-x: hidden;
    width: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:focus-visible {
    outline: 2px solid var(--spv-sacred-gold, #D4AF37);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--spv-sacred-gold, #D4AF37);
    outline-offset: 2px;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--spv-ff-head);
    margin: 0;
    line-height: 1.15;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

/* --- Utilities --- */
.wrap {
    max-width: var(--spv-maxw);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--spv-maroon);
    margin-bottom: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-title::before,
.section-title::after {
    content: "";
    height: 1px;
    width: 56px;
    background: linear-gradient(90deg, transparent, var(--spv-sacred-gold, #D4AF37));
}

.section-title::after {
    background: linear-gradient(90deg, var(--spv-sacred-gold, #D4AF37), transparent);
}

section {
    padding: 64px 0;
}

/* --- Elementor Container Overrides --- */
.spv-elementor-main,
.spv-elementor-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.spv-elementor-main .elementor,
.spv-elementor-fullwidth .elementor {
    width: 100%;
}

/* --- Mobile Viewport Polish --- */
@media (max-width: 768px) {
    .wrap {
        padding: 0 18px;
    }
    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 14px;
    }
    section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.4rem;
        gap: 10px;
        margin-bottom: 24px;
    }
    .section-title::before,
    .section-title::after {
        width: 32px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
