/**
 * Zones Public Base CSS
 * Shared styles for all public-facing zone pages
 * (landlord.zone, tenant.zone, selling.zone, repairs, support, askada)
 */

/* ==========================================================================
   FONT DEFINITIONS
   ========================================================================== */

@font-face {
    font-family: 'Gilroy-ExtraBold';
    src: url('/static/fonts/Gilroy-ExtraBold.woff2') format('woff2'),
         url('/static/fonts/Gilroy-ExtraBold.woff') format('woff'),
         url('/static/fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Light';
    src: url('/static/fonts/Gilroy-Light.woff2') format('woff2'),
         url('/static/fonts/Gilroy-Light.woff') format('woff'),
         url('/static/fonts/Gilroy-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* ==========================================================================
   CSS VARIABLES (defaults - override in template with Django values)
   ========================================================================== */

:root {
    --header-bg: #101035;
    --header-text: #ffffff;
    --header-title-color: #ffffff;
    --logo-color: #101035;
    --page-bg: #101035;
    --brand-color: #22c55e;
    --logo-width: 250px;
    --content-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --accent-color: #101035;
}

/* ==========================================================================
   BASE RESET & BODY
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--logo-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Dark overlay on body background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above overlay */
.site-header,
.main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
    background: var(--header-bg);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-header .agent-logo img {
    max-height: 100px;
    max-width: var(--logo-width);
    object-fit: contain;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-header .brand-icon {
    font-size: 48px;
    color: #f59e0b;
}

.site-header .brand-text {
    font-size: 42px;
    color: var(--header-title-color);
}

/* ==========================================================================
   HEADER MENU (Navigation Icons)
   ========================================================================== */

.header-menu,
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-menu a,
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-menu a i,
.nav-button i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.header-menu a img,
.nav-button img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.header-menu a:hover,
.nav-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header-menu a:hover i,
.nav-button:hover i {
    color: #ffffff;
}

.header-menu a:hover img,
.nav-button:hover img {
    opacity: 1;
}

.header-menu a.active,
.nav-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.header-menu a.active i,
.nav-button.active i {
    color: #f59e0b;
}

/* ==========================================================================
   PAGE SUBTITLE BAR
   ========================================================================== */

.page-subtitle-bar {
    background: color-mix(in srgb, var(--logo-color) 80%, white);
    padding: 16px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-subtitle-bar p {
    color: #ffffff;
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   MAIN CONTENT & CONTAINER
   ========================================================================== */

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    flex: 1;
    background: var(--page-bg);
}

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

.header {
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   PAGE HEADER WITH ICON
   ========================================================================== */

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.page-header-icon {
    font-size: 48px;
    color: #f59e0b;
}

.page-header-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--logo-color);
    margin-bottom: 8px;
}

.page-header-content p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 240px));
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

/* ==========================================================================
   DOCUMENT CARDS
   ========================================================================== */

.document-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.document-card:hover .document-card-icon {
    transform: translateY(-4px);
    background: color-mix(in srgb, var(--page-bg) 70%, black);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.document-card-icon {
    width: 100%;
    aspect-ratio: 1;
    background: color-mix(in srgb, var(--page-bg) 80%, black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.document-card-icon i {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 28px;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.document-card-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.document-card:hover .document-card-icon i,
.document-card:hover .document-card-icon img {
    opacity: 1;
}

.document-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.document-card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ==========================================================================
   GLASS PANELS & SECTION PANELS
   ========================================================================== */

.glass-panel {
    background: color-mix(in srgb, var(--page-bg) 80%, black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section-panel {
    background: color-mix(in srgb, var(--logo-color) 80%, black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.section-icon.purple { background: rgba(255, 255, 255, 0.15); color: #c4b5fd; }
.section-icon.green { background: rgba(255, 255, 255, 0.15); color: #6ee7b7; }
.section-icon.amber { background: rgba(255, 255, 255, 0.15); color: #fcd34d; }
.section-icon.blue { background: rgba(255, 255, 255, 0.15); color: #93c5fd; }
.section-icon.pink { background: rgba(255, 255, 255, 0.15); color: #f9a8d4; }
.section-icon.red { background: rgba(255, 255, 255, 0.15); color: #fca5a5; }

.section-header-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

/* Section title as h2 in section headers */
.section-header h2.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
}

.section-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
}

/* ==========================================================================
   QUICK LINKS
   ========================================================================== */

.quick-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: color-mix(in srgb, var(--logo-color) 85%, white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: color-mix(in srgb, var(--logo-color) 75%, white);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.quick-link i {
    font-size: 16px;
}

/* Quick link icon colors */
.quick-link.purple i { color: #c4b5fd; }
.quick-link.green i { color: #6ee7b7; }
.quick-link.amber i { color: #fcd34d; }
.quick-link.blue i { color: #93c5fd; }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 14px;
}

/* ==========================================================================
   WIZARD PROGRESS
   ========================================================================== */

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.progress-step {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.progress-step.completed {
    background: color-mix(in srgb, var(--brand-color) 60%, transparent);
}

.progress-step.active {
    background: var(--brand-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand-color) 40%, transparent);
}

/* ==========================================================================
   CENTERED CONTENT
   ========================================================================== */

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   PAGE TITLES
   ========================================================================== */

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--brand-color) 0%, color-mix(in srgb, var(--brand-color) 80%, black) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-color) 30%, transparent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 80%, black) 0%, color-mix(in srgb, var(--brand-color) 60%, black) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-color) 40%, transparent);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--logo-color) 8%, white);
    border: 1px solid color-mix(in srgb, var(--logo-color) 15%, transparent);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: color-mix(in srgb, var(--logo-color) 15%, white);
    color: var(--logo-color);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: color-mix(in srgb, var(--page-bg) 80%, black);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: color-mix(in srgb, var(--page-bg) 70%, black);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   BACK BUTTON
   ========================================================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--logo-color) 8%, white);
    border: 1px solid color-mix(in srgb, var(--logo-color) 15%, transparent);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.back-button:hover {
    background: color-mix(in srgb, var(--logo-color) 15%, white);
    border-color: color-mix(in srgb, var(--logo-color) 25%, transparent);
    color: var(--logo-color);
}

/* ==========================================================================
   ICON COLORS
   ========================================================================== */

.icon-pink { color: #ec4899; }
.icon-red { color: #ef4444; }
.icon-amber { color: #f59e0b; }
.icon-blue { color: #3b82f6; }
.icon-purple { color: #8b5cf6; }
.icon-green { color: #10b981; }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
    background: var(--header-bg);
    padding: 16px 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.site-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-agent-info {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-agent-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-agent-details {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-brand a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-brand a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   GUIDE CARDS GRID (Toolkit pages)
   ========================================================================== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.guide-card {
    background: color-mix(in srgb, var(--logo-color) 85%, white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.guide-card:hover {
    background: color-mix(in srgb, var(--logo-color) 75%, white);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.guide-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.guide-card-icon.red { background: rgba(255, 255, 255, 0.15); color: #fca5a5; }
.guide-card-icon.amber { background: rgba(255, 255, 255, 0.15); color: #fcd34d; }
.guide-card-icon.green { background: rgba(255, 255, 255, 0.15); color: #6ee7b7; }
.guide-card-icon.blue { background: rgba(255, 255, 255, 0.15); color: #93c5fd; }
.guide-card-icon.purple { background: rgba(255, 255, 255, 0.15); color: #c4b5fd; }
.guide-card-icon.pink { background: rgba(255, 255, 255, 0.15); color: #f9a8d4; }
.guide-card-icon.cyan { background: rgba(255, 255, 255, 0.15); color: #7dd3fc; }

.guide-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.guide-card-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   FOOTER CTA
   ========================================================================== */

.footer-cta {
    background: rgba(245, 158, 11, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.9);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.footer-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.footer-cta-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-cta-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-cta-content a {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE RESPONSIVE - 768px
   ========================================================================== */

@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .site-header .agent-logo {
        order: 1;
    }

    .site-header .agent-logo img {
        max-height: 40px;
        max-width: 120px;
    }

    .site-header .brand {
        order: 3;
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header .brand-icon {
        font-size: 42px;
    }

    .site-header .brand-text {
        font-size: 36px;
    }

    .site-header .brand i {
        font-size: 42px !important;
    }

    .site-header .brand svg {
        height: 42px !important;
    }

    /* Header menu (internal pages) */
    .header-menu {
        order: 2;
        display: flex;
        gap: 6px;
    }

    .header-menu a {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .header-menu a i {
        font-size: 16px;
    }

    .header-menu a img {
        width: 20px;
        height: 20px;
    }

    /* Nav icons */
    .nav-icons {
        position: static;
        order: 2;
        gap: 6px;
    }

    .nav-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* Hide spacer on mobile */
    .site-header > div:last-child:not(.header-menu):not(.nav-icons) {
        display: none;
    }

    /* Home page header (centered logo) */
    .site-header.home-header .agent-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .site-header.home-header .agent-logo img {
        max-height: 50px;
        max-width: 160px;
    }

    .site-header.home-header .brand {
        order: 2;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .site-header.home-header .brand-text {
        font-size: 20px;
    }

    /* Card grid */
    .card-grid {
        grid-template-columns: repeat(2, minmax(140px, 180px));
        gap: 12px;
    }

    .document-card-icon i {
        font-size: 60px;
    }

    .document-card-icon img {
        width: 70px;
        height: 70px;
    }

    .document-card-title {
        font-size: 16px;
    }

    .document-card-description {
        font-size: 12px;
    }

    /* Main content */
    .main-content {
        padding: 20px;
    }

    /* Page header */
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .page-header-content h1 {
        font-size: 28px;
    }

    /* Glass panels */
    .glass-panel,
    .section-panel {
        padding: 20px;
    }

    /* Forms */
    .form-input,
    .form-select {
        font-size: 16px;
        padding: 12px 14px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Footer */
    .site-footer {
        padding: 12px 20px;
    }

    .site-footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links {
        gap: 12px;
    }

    /* Page subtitle bar */
    .page-subtitle-bar {
        padding: 12px 16px;
    }

    .page-subtitle-bar p {
        font-size: 13px;
    }

    /* Guide cards */
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .guide-card {
        padding: 16px 12px;
    }

    .guide-card-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .guide-card-title {
        font-size: 13px;
    }

    /* Section header */
    .section-header {
        flex-wrap: wrap;
    }

    .section-description {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    /* Quick links */
    .quick-links {
        justify-content: center;
    }

    /* Footer CTA */
    .footer-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   SMALL MOBILE - 480px
   ========================================================================== */

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .document-card-icon {
        padding: 20px 12px;
    }

    .document-card-icon i {
        font-size: 48px;
    }

    .document-card-icon img {
        width: 56px;
        height: 56px;
    }

    .document-card-title {
        font-size: 14px;
    }

    .document-card-description {
        font-size: 11px;
    }
}
