/* ==========================================================================
   STYLE SHEET: TACTICAL NOTEBOOK CARTOON SPORT STYLE
   COlOR PALETTE:
   - Midnight Navy: #13233A
   - Saffron: #D69E2E
   - Muted Red: #A94B4B
   - Notebook White: #F7F5EF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Kalam:wght@400;700&display=swap');

:root {
    --navy: #13233A;
    --saffron: #D69E2E;
    --red: #A94B4B;
    --paper: #F7F5EF;
    --paper-line: #E2DFD3;
    --text-color: #13233A;
    --border-width: 4px;
    --radius: 16px;
    --shadow: 6px 6px 0px #13233A;
    --font-cartoon: 'Fredoka', system-ui, -apple-system, sans-serif;
    --font-handwritten: 'Kalam', cursive, sans-serif;
}

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

body {
    background-color: var(--navy);
    color: var(--text-color);
    font-family: var(--font-cartoon);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--saffron);
    border-bottom: var(--border-width) solid var(--navy);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    display: inline-block;
    border: var(--border-width) solid var(--navy);
    background-color: var(--paper);
    padding: 0.25rem 1rem;
    border-radius: var(--radius);
    box-shadow: 4px 4px 0px var(--navy);
}

.logo-accent {
    color: var(--red);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.main-navigation a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: var(--border-width) solid transparent;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: var(--paper);
    border-color: var(--navy);
    box-shadow: 3px 3px 0px var(--navy);
}

/* Hamburger menu */
.mobile-nav-toggle {
    display: none;
    background: var(--paper);
    border: var(--border-width) solid var(--navy);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--navy);
}

.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    margin: 4px 0;
    transition: 0.4s;
}

/* Main Layout: Notebook Cover & Ruled Sheet */
.notebook-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cover Styling */
.notebook-cover {
    background-color: var(--red);
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--paper);
    box-shadow: var(--shadow);
}

.page-hero {
    background-color: var(--navy);
    border-bottom: none;
}

.ring-binder {
    position: absolute;
    top: -15px;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.ring {
    width: 24px;
    height: 30px;
    background-color: #D3D3D3;
    border: 3px solid var(--navy);
    border-radius: 12px;
    box-shadow: inset -2px -2px 0px rgba(0,0,0,0.2);
}

.cover-content {
    position: relative;
    z-index: 2;
}

.badge-98 {
    display: inline-block;
    background-color: var(--saffron);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: var(--border-width) solid var(--navy);
    border-radius: 50px;
    box-shadow: 4px 4px 0px var(--navy);
    margin-bottom: 1.5rem;
}

.saffron-badge {
    background-color: var(--saffron);
}

.red-badge {
    background-color: var(--red);
    color: var(--paper);
}

.main-title {
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--paper);
    text-shadow: 3px 3px 0px var(--navy);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: var(--font-handwritten);
    font-size: 22px;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

.meta-stamp {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(19, 35, 58, 0.4);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* Fixture Bar */
.fixture-bar {
    margin: -10px 0 0 0;
    position: relative;
    z-index: 5;
    padding: 0 1rem;
}

.fixture-card {
    background-color: var(--saffron);
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.fixture-meta {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.teams-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.team-label {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 700;
    color: var(--navy);
}

.vs-badge {
    background-color: var(--red);
    color: var(--paper);
    padding: 0.25rem 0.75rem;
    border: 3px solid var(--navy);
    border-radius: 8px;
    font-weight: 700;
    transform: rotate(-5deg);
}

.fixture-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 3px dashed var(--navy);
    padding-top: 1rem;
}

.detail-item {
    font-size: 14px;
}

.detail-item .label {
    color: var(--red);
}

/* Ruled Sheet Content */
.ruled-sheet {
    background-color: var(--paper);
    background-image: linear-gradient(var(--paper-line) 1px, transparent 1px);
    background-size: 100% 32px;
    border: var(--border-width) solid var(--navy);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 3rem 2rem;
    position: relative;
    box-shadow: var(--shadow);
}

.red-margin-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(169, 75, 75, 0.4);
}

.sheet-content {
    position: relative;
    z-index: 2;
    padding-left: 2.5rem;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight {
    background-color: var(--saffron);
    padding: 2px 8px;
    border-radius: 6px;
    border: 2px solid var(--navy);
    font-size: 16px;
}

.intro-paragraph {
    margin-bottom: 1.5rem;
    font-size: 17px;
}

/* Route Cards & Grids */
.route-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.route-card-mini {
    background-color: #FFFFFF;
    border: 3px solid var(--navy);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 4px 4px 0px var(--navy);
    position: relative;
}

.round-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

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

.score-line .team {
    font-weight: 700;
    font-size: 15px;
}

.score-line .score {
    background-color: var(--navy);
    color: var(--paper);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-cartoon);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: var(--border-width) solid var(--navy);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary {
    background-color: var(--saffron);
    color: var(--navy);
    box-shadow: 4px 4px 0px var(--navy);
}

.btn-secondary {
    background-color: var(--red);
    color: var(--paper);
    box-shadow: 4px 4px 0px var(--navy);
}

.btn-outline {
    background-color: var(--paper);
    color: var(--navy);
    box-shadow: 4px 4px 0px var(--navy);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--navy);
}

.action-wrapper {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: white;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    background-color: var(--navy);
    color: var(--paper);
    padding: 1rem;
    font-weight: 700;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 3px solid var(--navy);
    font-size: 15px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Info Callout Box */
.info-callout {
    background-color: #FFFFFF;
    border: var(--border-width) dashed var(--navy);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-callout p {
    margin-bottom: 1rem;
}

/* Technical Dossier Style (Specific Subpages) */
.match-dossier-box {
    background-color: #FFFFFF;
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.dossier-meta {
    display: flex;
    justify-content: space-between;
    border-bottom: 3px dashed var(--navy);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 14px;
}

.dossier-body {
    font-size: 16px;
}

/* Stats Layout */
.notebook-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-bubble {
    background-color: var(--saffron);
    border: 3px solid var(--navy);
    border-radius: var(--radius);
    text-align: center;
    padding: 1rem 0.5rem;
    box-shadow: 4px 4px 0px var(--navy);
}

.stat-number {
    display: block;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Flow Chart Styling (Next Route Map) */
.flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.flow-node {
    background-color: #FFFFFF;
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 250px;
}

.main-node {
    background-color: var(--saffron);
}

.flow-connector {
    font-size: 32px;
    font-weight: 700;
    color: var(--red);
    margin: 0.5rem 0;
}

.node-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}

.node-details {
    font-size: 13px;
    margin-top: 0.25rem;
}

/* Custom list styling */
.custom-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-list li::before {
    content: "✏️";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
}

/* Specification lists */
.specification-list {
    background-color: white;
    border: 3px solid var(--navy);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 4px 4px 0px var(--navy);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 2px dashed var(--paper-line);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 700;
    color: var(--red);
}

/* Forms (Contact Page) */
.contact-form {
    background-color: white;
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    font-family: var(--font-cartoon);
    border: 3px solid var(--navy);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 15px;
    color: var(--navy);
    background-color: var(--paper);
}

.form-control:focus {
    outline: none;
    border-color: var(--saffron);
}

.form-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form-feedback.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 3px solid #C3E6CB;
}

.form-feedback.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 3px solid #F5C6CB;
}

/* Location Map Placeholder */
.office-card {
    background-color: white;
    border: 3px solid var(--navy);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow);
}

.office-map-placeholder {
    background-color: var(--paper-line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 3px solid var(--navy);
}

.simulated-map {
    background-color: #FFFFFF;
    border: 3px solid var(--navy);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--navy);
    animation: bounce 2s infinite alternate;
}

.map-pin {
    font-size: 32px;
}

.map-label {
    font-size: 11px;
    font-weight: 700;
}

.office-details {
    padding: 2rem;
}

.office-details h3 {
    margin-bottom: 1rem;
}

.office-details .address {
    font-family: var(--font-handwritten);
    font-size: 20px;
    color: var(--red);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* Spacers */
.doodle-spacer {
    height: 32px;
    background-image: radial-gradient(var(--navy) 20%, transparent 20%);
    background-size: 10px 10px;
    opacity: 0.2;
    margin: 2rem 0;
}

.navigation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer layout */
.site-footer {
    background-color: var(--navy);
    color: var(--paper);
    border-top: var(--border-width) solid var(--saffron);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 24px;
    color: var(--paper);
    margin-bottom: 1rem;
}

.disclaimer-text {
    font-size: 12px;
    line-height: 1.4;
    color: #A0AEBF;
    margin-bottom: 0.75rem;
}

.footer-links h4 {
    color: var(--saffron);
    margin-bottom: 1.25rem;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #D3D3D3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 3px dashed rgba(247, 245, 239, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.address-block p {
    font-size: 13px;
    color: #A0AEBF;
}

.copyright {
    font-size: 13px;
    color: #A0AEBF;
}

/* Cookie Banner styling */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--paper);
    border: var(--border-width) solid var(--navy);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 8px 8px 0px var(--navy);
    z-index: 10000;
    max-width: 600px;
    margin-left: auto;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-content p {
    font-size: 14px;
    color: var(--navy);
}

.cookie-banner-content a {
    color: var(--red);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 13px;
}

/* Animations */
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .notebook-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--saffron);
        border-bottom: var(--border-width) solid var(--navy);
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-navigation a {
        display: block;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .route-grid {
        grid-template-columns: 1fr;
    }

    .notebook-stats {
        grid-template-columns: 1fr 1fr;
    }

    .office-card {
        grid-template-columns: 1fr;
    }

    .office-map-placeholder {
        border-right: none;
        border-bottom: 3px solid var(--navy);
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem;
    }

    .logo {
        font-size: 20px;
    }

    .ruled-sheet {
        padding: 2rem 1rem;
    }

    .red-margin-line {
        left: 20px;
    }

    .sheet-content {
        padding-left: 1.2rem;
    }

    .notebook-stats {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}