/* ==========================================================================
   ALK Savings - Clean CSS
   Based on original alksavings.com design
   ========================================================================== */

/* ==========================================================================
   Font Face Declarations - Volta Modern Display Web
   ========================================================================== */
@font-face {
    font-family: 'Volta Modern Display Web';
    src: url('../fonts/VoltaModernDisplay-Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Volta Modern Display Web';
    src: url('../fonts/VoltaModernDisplay-Roman.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Volta Modern Display Web';
    src: url('../fonts/VoltaModernDisplay-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Volta Modern Display Web';
    src: url('../fonts/VoltaModernDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties (Brand Colors) */
:root {
    --color-primary: #213B6A;
    --color-primary-light: #4CA3D8;
    --color-secondary: #003C60;
    --color-secondary-bright: #23759E;
    --color-accent: #C41230;
    --color-neutral-light: #D9D9D9;
    --color-neutral-bright: #FDFDFD;
    --color-success: #009245;
    --color-brand-grey: #333333;
    --color-active: #59A2C1;
    --color-main-background: #FFFFFF;
    --color-header-background: #FAFAFA;
    --font-family: 'Volta Modern Display Web', 'Montserrat', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.87);
    background-color: var(--color-main-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

.link {
    color: var(--color-secondary-bright);
    font-weight: 700;
    cursor: pointer;
}

.link:hover {
    color: var(--color-primary);
}

.bold {
    font-weight: 700;
}

sup {
    font-size: 0.6em;
    vertical-align: super;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-neutral-light);
    margin: 2rem 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--color-header-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: auto;
    max-height: 80px;
    width: auto;
}

.logo-alk {
    max-width: 180px;
}

.logo-product {
    max-width: 150px;
    max-height: 60px;
}

.header-bottom-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    padding-top: 160px; /* Account for fixed header */
    padding-bottom: 40px;
}

/* Intro Section */
.intro-section {
    margin-bottom: 2rem;
}

.intro-text {
    text-align: justify;
    line-height: 1.6;
}

/* ==========================================================================
   Savings Section
   ========================================================================== */
.savings-section {
    margin-bottom: 2rem;
}

.savings-banner {
    background-color: var(--color-primary);
    padding: 12px 24px;
    margin-bottom: 1.5rem;
}

.banner-header {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.pricing-box {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.pricing-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pricing-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-sublabel {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.pricing-amount {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0;
    margin-top: auto;
}

.pricing-amount strong {
    font-weight: 700;
}

/* Info Block */
.info-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.info-block p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block .highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.info-block .bold {
    font-weight: 700;
}

.info-block ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   Terms Summary
   ========================================================================== */
.terms-summary {
    margin-bottom: 2rem;
}

.terms-summary ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-summary li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ==========================================================================
   ISI Section (Collapsible)
   ========================================================================== */
.isi-section {
    background-color: #f8f8f8;
    border: 1px solid var(--color-neutral-light);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.isi-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.isi-header:hover {
    background-color: #f0f0f0;
}

#showMore {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary-bright);
    margin-right: 8px;
}

.isi-toggle-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary-bright);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isi-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
}

.isi-content.expanded {
    max-height: 5000px;
    padding: 16px;
    border-top: 1px solid var(--color-neutral-light);
}

.isi-content ul {
    padding-left: 1.5rem;
}

.isi-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.isi-content ul ul {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-header-background);
    padding: 40px 0;
    border-top: 1px solid var(--color-neutral-light);
}

.footer-top {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-top p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--color-secondary-bright);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section .bold {
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: justify;
}

.footer-section ul {
    padding-left: 1.5rem;
}

.footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.footer-section ul ul {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 16px;
    }

    .logo-row {
        justify-content: center;
    }

    .logo-alk {
        max-width: 140px;
        flex-basis: 100%;
        text-align: center;
    }

    .logo-link:first-child {
        justify-content: center;
        width: 100%;
        margin-bottom: 16px;
    }

    .logo-product {
        max-width: 100px;
        max-height: 40px;
    }

    .main-content {
        padding-top: 200px; /* More space for wrapped logos */
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-box {
        max-width: 100%;
    }

    .intro-text {
        text-align: left;
    }

    .footer-section p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo-row {
        gap: 12px;
    }

    .logo-alk {
        max-width: 120px;
    }

    .logo-product {
        max-width: 80px;
        max-height: 35px;
    }

    .banner-header {
        font-size: 1rem;
    }

    .pricing-amount {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@page {
    margin: 0;
}

@media print {
    /* Reset all mobile/tablet overrides - force full desktop */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        min-width: 1600px !important;
    }

    .main-header {
        position: static;
        box-shadow: none;
        background-color: #FFFFFF !important;
    }

    .header-container {
        padding: 20px 16px;
    }

    .main-content {
        padding-top: 20px;
    }

    .isi-content {
        max-height: none;
        padding: 16px;
    }

    .isi-header {
        display: none;
    }

    /* Force desktop layout - override ALL responsive breakpoints */
    .logo-row {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 16px !important;
    }

    .logo-alk {
        max-width: 180px !important;
        flex-basis: auto !important;
    }

    .logo-link:first-child {
        width: auto !important;
        margin-bottom: 0 !important;
        justify-content: flex-start !important;
    }

    .logo-product {
        max-width: 150px !important;
        max-height: 60px !important;
    }

    .pricing-grid {
        flex-direction: row !important;
        gap: 2rem !important;
    }

    .pricing-box {
        min-width: 200px !important;
        max-width: 300px !important;
    }

    .intro-text,
    .footer-section p {
        text-align: justify !important;
    }

    .container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }

    .main-footer {
        padding: 40px 0 !important;
    }
}
