/* =============================================
   Spinanga FR - Redesigned Stylesheet
   ============================================= */

/* Self-hosted Montserrat (variable weight 400-800) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Custom Properties ---- */
:root {
    --bg-body: #001c2c;
    --bg-section: #002538;
    --bg-card: rgba(0, 65, 72, 0.35);
    --bg-header: #00333d;
    --bg-footer: #00333d;
    --text-body: #c2e8dc;
    --text-heading: #ffffff;
    --text-light: #ffffff;
    --text-muted: #7eb8a8;
    --accent: #ffab48;
    --accent-hover: #ffc478;
    --accent-secondary: #00d09c;
    --border-header: #ffab49;
    --border-footer: #004d3d;
    --border-subtle: rgba(152, 255, 218, 0.12);
    --btn-bg: linear-gradient(135deg, #ffab48 0%, #ff8f1c 100%);
    --btn-color: #ffffff;
    --btn-radius: 8px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(255,171,72,0.15);
    --font: 'Montserrat', sans-serif;
    --content-width: 860px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

::selection { background: rgba(255,171,72,0.3); color: var(--text-light); }

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.overflow-hidden { overflow: hidden; }

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,171,72,0.3);
    transition: color var(--transition), border-color var(--transition);
}

a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.5em; color: var(--accent); }

p  { margin-bottom: 1.1em; }
ul, ol { margin-bottom: 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
strong, b { font-weight: 700; color: var(--text-light); }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.header {
    background: var(--bg-header);
    border-bottom: 3px solid var(--border-header);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    max-width: 130px;
    flex-shrink: 0;
    border-bottom: none;
}

.header__logo:hover { border-bottom: none; }

.header__logo img { width: 100%; height: auto; }

/* ---- Navigation ---- */
.nav { margin-left: auto; }

.nav__logo { display: none; }

.nav__list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.nav__link {
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-radius: 6px;
    border-bottom: none;
    transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
    background: rgba(255,171,72,0.1);
    color: var(--accent);
    border-bottom: none;
}

.nav__link--active {
    background: rgba(255,171,72,0.15);
    color: var(--accent);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255,171,72,0.15);
    border: 1px solid rgba(255,171,72,0.3);
    border-radius: 8px;
    cursor: pointer;
    z-index: 15;
    justify-content: center;
    align-items: center;
    transition: background var(--transition);
}

.hamburger.is-active { background: var(--accent); }

.hamburger__box {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 14px;
}

.hamburger__line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.4s, top 0.2s, opacity 0.3s;
}

.hamburger.is-active .hamburger__line { background: var(--bg-body); }

.hamburger__line:nth-child(1) { top: 0; }
.hamburger__line:nth-child(2) { top: 6px; }
.hamburger__line:nth-child(3) { top: 12px; }

.hamburger.is-active .hamburger__line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 580px;
}

.hero--bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 28, 44, 0.05) 0%,
        rgba(0, 28, 44, 0.15) 45%,
        rgba(0, 28, 44, 0.55) 80%,
        rgba(0, 28, 44, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 32px 32px;
    background: rgba(0, 20, 32, 0.55);
    border-radius: var(--radius-md);
}

.hero__title {
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.3);
    letter-spacing: -0.01em;
}

.hero__text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero__text p { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    text-align: center;
    min-width: 180px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 17px;
    border: none;
    border-bottom: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover { border-bottom: none; }

.btn--primary {
    background: var(--btn-bg);
    color: var(--btn-color);
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 15px rgba(255,143,28,0.35);
    animation: pulseBtn 3s ease-in-out infinite;
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 25px rgba(255,143,28,0.5);
    opacity: 1;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,143,28,0.35); }
    50%  { box-shadow: 0 4px 30px rgba(255,143,28,0.55); }
}

.cta-wrap { margin: 32px 0 8px; }
.cta-wrap--center { text-align: center; }

/* ---- Spacer ---- */
.spacer { height: 50px; }

/* ---- Sections ---- */
.section {
    padding: 48px 0;
}

/* Alternating subtle backgrounds */
.section:nth-of-type(even) {
    background: var(--bg-section);
}

.section__body {
    max-width: var(--content-width);
    margin: 0 auto;
}

.section__body h2 { margin-bottom: 0.7em; }
.section__body h3 { margin-top: 1.6em; }
.section__body h3:first-child { margin-top: 0; }
.section__body p,
.section__body ul,
.section__body ol { margin-bottom: 1.1em; }

/* ---- Tables ---- */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 1.5em;
    display: table;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: rgba(0, 65, 72, 0.3);
}

thead th {
    background: linear-gradient(135deg, rgba(255,171,72,0.2) 0%, rgba(0,208,156,0.15) 100%);
    color: var(--text-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border: none;
    border-bottom: 2px solid rgba(255,171,72,0.2);
    text-align: left;
}

td, th {
    padding: 13px 18px;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(255,171,72,0.05);
}

td strong, td b {
    color: var(--accent);
}

/* ---- Split Section ---- */
.split {
    padding: 48px 0;
}

.split:nth-of-type(even) {
    background: var(--bg-section);
}

.split__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.split__text {
    flex: 1 1 55%;
    min-width: 0;
}

.split__media {
    flex: 1 1 38%;
    min-width: 280px;
}

.split__media img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.split__media img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.split__media a {
    display: block;
    border-bottom: none;
}

.split__media a:hover { border-bottom: none; }

/* ---- Wrap Image (float layout) ---- */
.wrap-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-bottom: none;
}

.wrap-img--right {
    float: right;
    width: 42%;
    margin: 0 0 20px 32px;
}

.wrap-img--right img {
    border-radius: var(--radius-md);
}

a.wrap-img:hover {
    border-bottom: none;
}

a.wrap-img img {
    transition: transform var(--transition);
}

a.wrap-img:hover img {
    transform: scale(1.02);
}

.section--wrap .section__body::after {
    content: '';
    display: table;
    clear: both;
}

.section--wrap .cta-wrap {
    clear: both;
}

@media (max-width: 767px) {
    .wrap-img--right {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }
}

/* ---- Image Block ---- */
.image-block {
    padding: 24px 0;
    text-align: center;
}

.image-block .container {
    max-width: 900px;
}

.image-block img {
    display: inline-block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.image-block img:hover {
    transform: scale(1.01);
}

.image-block a {
    display: inline-block;
    border-bottom: none;
}
.image-block a:hover { border-bottom: none; }

/* ---- FAQ Styling ---- */
.section--faq .section__body h3 {
    background: rgba(255,171,72,0.08);
    border: 1px solid rgba(255,171,72,0.12);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin-top: 1.3em;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.section--faq .section__body h3:first-of-type {
    margin-top: 0.8em;
}

.section--faq .section__body h3 + p {
    padding: 10px 0 0 20px;
    color: var(--text-body);
    border-left: 1px solid var(--border-subtle);
    margin-left: 1px;
    margin-bottom: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-footer);
    border-top: 3px solid var(--border-footer);
    padding: 48px 0 40px;
    margin-top: 20px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.footer__logo {
    max-width: 120px;
    border-bottom: none;
}
.footer__logo:hover { border-bottom: none; }

.footer__nav-list {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.footer__nav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    border-bottom: none;
    transition: color var(--transition), background var(--transition);
}

.footer__nav-link:hover {
    color: var(--accent);
    background: rgba(255,171,72,0.08);
    border-bottom: none;
}

.footer__payments {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
}

.footer__payment-item img {
    max-width: 100px;
    max-height: 28px;
    opacity: 0.6;
    transition: opacity var(--transition);
    filter: brightness(1.2);
}

.footer__payment-item img:hover { opacity: 1; }

.footer__copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 991px) {
    .header__inner {
        justify-content: space-between;
    }

    .header__logo { max-width: 100px; }

    .hamburger { display: flex; z-index: 200; }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-body);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s, visibility 0.35s;
        margin: 0;
        padding: 24px;
    }

    .nav.is-open { opacity: 1; visibility: visible; }

    .nav__logo {
        display: block;
        width: 140px;
        margin: 0 auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 240px;
    }

    .nav__item {
        text-align: center;
    }

    .nav__link {
        font-size: 18px;
        padding: 14px 20px;
        border-radius: var(--radius-sm);
        display: block;
        text-align: center;
    }

    .nav__link:hover,
    .nav__link--active {
        background: rgba(255,171,72,0.12);
    }

    /* Split stacks */
    .split__row {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .split__text, .split__media {
        flex: 1 1 100%;
    }

    /* Footer */
    .footer__nav-list { gap: 4px; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }

    .hero { padding: 80px 20px; min-height: 500px; background-position: center 25%; }
    .hero__text { font-size: 15px; }

    .section, .split { padding: 36px 0; }

    .spacer { height: 24px; }

    .btn { padding: 14px 32px; font-size: 16px; }

    table { font-size: 14px; }
    td, th { padding: 10px 12px; }
}

@media (max-width: 575px) {
    .container { padding: 0 16px; }

    .hamburger { width: 40px; height: 40px; }

    .hero { padding: 60px 16px; min-height: 480px; }

    .footer__nav-list {
        flex-direction: column;
        align-items: center;
    }

    .footer__payments { gap: 16px; }
}
