/* ==========================================================================
   KYUSHU TOURISM WEBSITE - NORTHERN TERRITORY DESIGN SYSTEM (CSS)
   ========================================================================== */

/* 1. CSS VARIABLES & COLOR PALETTE */
:root {
    /* Brand Colors - Volcanic Terracotta, Deep Navy, Warm Cream */
    --primary: #C84B31;           /* Volcanic Ochre / Terracotta Red */
    --primary-hover: #A0331C;
    --secondary: #1E293B;         /* Slate Navy */
    --accent: #F5E6D3;            /* Soft Cream / Sand Accent */
    
    /* Neutral Palette */
    --bg-light: #FAF8F5;          /* Off-white background */
    --bg-dark: #121824;           /* Dark Charcoal for Experience section */
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;         /* Dark Navy text */
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans JP', 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 36px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* 3. LAYOUT & CONTAINERS */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.text-center { text-align: center; }

.section {
    padding: 88px 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    margin-bottom: 48px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto;
}

.section-dark .section-desc {
    color: #94A3B8;
}

/* 4. BUTTONS & UI CONTROLS */
.btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 999px;
            cursor: pointer;
            transition: var(--transition);
            border: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--secondary);
}

.btn-secondary-dark:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* 5. TOP ANNOUNCEMENT BAR & HEADER NAV */
.top-bar {
    background-color: #0F172A;
    color: #94A3B8;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-pill {
    background: var(--primary);
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.top-bar-links a {
    margin-left: 20px;
    color: var(--accent);
    font-weight: 600;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 3px;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
}

.main-nav a:hover {
    color: var(--primary);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-search {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
}

/* 6. HERO SECTION */
.hero-section {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    padding: 120px 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 36px;
    color: #F1F5F9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* 7. PLACES CARDS (NORTHERN TERRITORY REGIONS GRID) */
.place-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.place-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.place-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFF;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.55;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

/* 8. EXPERIENCES (DARK THEME CARDS) */
.exp-card {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
}

.exp-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.exp-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.exp-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.exp-card p {
    font-size: 0.92rem;
    color: #94A3B8;
    line-height: 1.6;
}

/* 9. EVENTS CARDS */
.event-card {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.event-date {
    background: var(--secondary);
    color: #FFF;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 4px;
}

.event-content {
    padding: 24px;
}

.event-region {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 6px 0 10px 0;
}

.event-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 10. QUIZ WIDGET */
.section-quiz-bg {
    background-color: var(--accent);
}

.quiz-container {
    background: #FFFFFF;
    padding: 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.step-indicator {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.quiz-step h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.quiz-option-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option-card:hover, .quiz-option-card:has(input:checked) {
    border-color: var(--primary);
    background-color: #FFF9F6;
}

.quiz-option-card input {
    margin-bottom: 10px;
}

.option-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.quiz-actions {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.quiz-result {
    padding: 36px;
    background: #F0FDF4;
    border: 2px solid #22C55E;
    border-radius: var(--radius-md);
}

.quiz-result.hidden {
    display: none;
}

.result-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #16A34A;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.quiz-result h3 {
    color: #15803D;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.quiz-result p {
    font-size: 1rem;
    color: #166534;
    margin-bottom: 24px;
}

.result-actions {
    display: flex;
    gap: 16px;
}

/* 11. ARTICLE & ROAD TRIP CARDS */
.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-img {
    height: 230px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 28px;
}

.article-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 8px 0 12px 0;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* 12. FOOTER SECTION */
.main-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 88px 0 36px 0;
}

.footer-top {
    margin-bottom: 64px;
}

.logo-footer .logo-main { color: #FFFFFF; }
.logo-footer .logo-sub { color: var(--accent); }

.brand-col p {
    font-size: 0.9rem;
    margin-top: 18px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.footer-col p {
    font-family: var(--font-serif);
}

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

.footer-col li {
    margin-bottom: 12px;
    font-family: var(--font-serif);
}

.footer-col a:hover {
    color: #FFFFFF;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.newsletter-form input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    background: #1E293B;
    color: #FFF;
    width: 100%;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

.footer-bottom p{
    font-family: var(--font-serif);
}

.footer-links a {
    margin-left: 24px;
}

/* 13. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .mobile-toggle { display: flex; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        padding: 24px;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active { display: block; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 18px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding-left: 16px;
    }
    
    .hero-title { font-size: 2.3rem; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .quiz-container { padding: 28px; }
    .footer-top { grid-template-columns: 1fr; gap: 44px; }
    .top-bar-content { flex-direction: column; gap: 8px; text-align: center; }
}
