/* =========================================
   The Island App - Global Styles
   ========================================= */

/* --- Noir Pro Font Family --- */
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-LIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-LIGHTITALIC.OTF') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-ITALIC.OTF') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-MEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-MEDIUMITALIC.OTF') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-SEMIBOLD.OTF') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-SEMIBOLDITALIC.OTF') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-BOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-BOLDITALIC.OTF') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-HEAVY.OTF') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noir Pro';
    src: url('/assets/fonts/NOIRPRO-HEAVYITALIC.OTF') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Noir Pro', sans-serif;
    background-color: #f8f9fa;
    color: #191c1d;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .font-headline {
    font-family: 'Noir Pro', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.bg-aegean-gradient {
    background: linear-gradient(135deg, #00217A 0%, #001454 100%);
}

.asymmetric-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* =========================================
   CMS Content Pages (Terms, Privacy, etc.)
   Scoped under .cms-content body class.
   Styles target pure HTML elements so that
   CMS-generated content is styled automatically.
   ========================================= */

/* --- Hero Header --- */
.cms-content > form > header {
    padding: 10rem 2rem 5rem;
    background-color: #f8f9fa;
    max-width: 56rem;
    margin: 0 auto;
}

.cms-content > form > header > span:first-child {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #81D8D0;
    color: #00217A;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cms-content > form > header h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #00217A;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cms-content > form > header > p {
    color: #444652;
    font-size: 1.125rem;
    max-width: 42rem;
    line-height: 1.75;
    font-weight: 500;
}

.cms-content > form > header small {
    color: #757683;
    font-size: 0.875rem;
    font-weight: 500;
}

/* --- Main Content Area --- */
.cms-content > form > main {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 2rem 8rem;
}

.cms-content > form > main > article {
    counter-reset: section-counter;
}

/* --- Horizontal Rules --- */
.cms-content > form > main article > hr {
    border: none;
    border-top: 1px solid #edeeef;
    margin: 0;
}

/* --- Section Headings (h2) with auto-numbering --- */
.cms-content > form > main article > h2 {
    margin-top: 2rem;
    counter-increment: section-counter;
    font-size: 1.875rem;
    font-weight: 700;
    color: #00217A;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.3;
}

.cms-content > form > main article > h2:first-child {
    margin-top: 0;
}

.cms-content > form > main article > h2::before {
    content: counter(section-counter, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 0.5rem;
    background-color: #00217A;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
}

/* --- h3 Sub-headings --- */
.cms-content > form > main article h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #00217A;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Paragraphs --- */
.cms-content > form > main article p {
    color: #444652;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* --- Strong text --- */
.cms-content > form > main article strong {
    color: #191c1d;
    font-weight: 700;
}

/* --- Unordered Lists --- */
.cms-content > form > main article ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cms-content > form > main article ul li {
    color: #444652;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* --- Ordered Lists --- */
.cms-content > form > main article ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cms-content > form > main article ol li {
    color: #444652;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* --- Blockquotes --- */
.cms-content > form > main article blockquote {
    background-color: rgba(0, 33, 122, 0.05);
    border-left: 4px solid #81D8D0;
    border-radius: 0 1rem 1rem 0;
    padding: 2rem;
    margin: 1.5rem 0;
}

.cms-content > form > main article blockquote p {
    font-weight: 500;
    margin-bottom: 0;
}

/* --- Links --- */
.cms-content > form > main article a {
    color: #00217A;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cms-content > form > main article a:hover {
    color: #81D8D0;
}

/* --- Article Footer / CTA Block --- */
.cms-content > form > main article > footer {
    background-color: #00217A;
    padding: 3rem;
    border-radius: 2.5rem;
    text-align: center;
    color: #ffffff;
    margin-top: 3rem;
}

.cms-content > form > main article > footer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    margin-top: 0;
}

.cms-content > form > main article > footer p {
    color: #81D8D0;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.cms-content > form > main article > footer a {
    display: inline-block;
    background-color: #81D8D0;
    color: #00217A;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.cms-content > form > main article > footer a:hover {
    transform: scale(1.05);
    color: #00217A;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .cms-content > form > header {
        padding: 8rem 1.5rem 3rem;
    }

    .cms-content > form > main {
        padding: 0 1.5rem 4rem;
    }

    .cms-content > form > main article > h2 {
        font-size: 1.5rem;
    }

    .cms-content > form > main article > footer {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}
