/*
 * MAP THEME - Custom Styles
 * mapofworld.ca - Design System
 * 
 * COLOR PALETTE:
 *   --mow-navy:     #1a1a2e   (deep navy - primary text, header bg)
 *   --mow-dark:     #16213e   (darker navy - footer bg)
 *   --mow-gold:     #c8a87e   (warm gold - accents, CTAs)
 *   --mow-gold-dk:  #b08c5a   (dark gold - hover states)
 *   --mow-cream:    #f8f6f2   (warm cream - page backgrounds)
 *   --mow-white:    #ffffff   (cards, content areas)
 *   --mow-gray:     #6b7280   (body text secondary)
 *   --mow-gray-lt:  #e5e2dc   (borders, dividers)
 *
 * FONTS:
 *   Headings: 'Playfair Display' (elegant serif - exploration/cartography feel)
 *   Body: 'Inter' (clean modern sans - great readability)
 */

/* Google Fonts loaded via functions.php enqueue (not @import) */

/* === CSS Variables === */
:root {
    --mow-navy: #1a1a2e;
    --mow-dark: #16213e;
    --mow-gold: #c8a87e;
    --mow-gold-dk: #b08c5a;
    --mow-cream: #f8f6f2;
    --mow-white: #ffffff;
    --mow-gray: #6b7280;
    --mow-gray-lt: #e5e2dc;
}

/* === Global Typography === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--mow-navy);
    background-color: var(--mow-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    color: var(--mow-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p, li, span, a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* === Header === */
.site-header {
    background: var(--mow-navy) !important;
    border-bottom: 3px solid var(--mow-gold) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

/* Site title */
.site-header .site-title,
.site-header .site-title a,
.site-branding .site-title,
.site-branding .site-title a {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--mow-white) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

/* Navigation links */
.site-header .header-navigation a,
.site-header .navigation a,
.header-navigation .menu-item a,
#primary-navigation a,
.primary-menu-container a {
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s !important;
}

.site-header .header-navigation a:hover,
.site-header .navigation a:hover,
.header-navigation .menu-item a:hover,
#primary-navigation a:hover,
.primary-menu-container a:hover {
    color: var(--mow-gold) !important;
}

/* Current page nav highlight */
.header-navigation .current-menu-item > a,
.primary-menu-container .current-menu-item > a {
    color: var(--mow-gold) !important;
}

/* Header inner container */
.site-header .site-header-inner-wrap,
.site-header .site-header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Footer === */
.site-footer {
    background: var(--mow-dark) !important;
    border-top: 3px solid var(--mow-gold) !important;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer span,
.site-footer .footer-widget-area {
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Inter', sans-serif !important;
}

.site-footer a:hover {
    color: var(--mow-gold) !important;
}

/* === Blank Canvas Template === */
.blank-canvas-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.blank-canvas-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-template-page-blank .content-wrap {
    padding: 0;
}

.page-template-page-blank .entry-content-wrap {
    padding: 0;
    max-width: 100%;
}

/* === Home Page (World Map) === */
.world-map-container {
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 400px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.world-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Target ONLY the content area, not the header */
.page-id-9 .entry-content-wrap,
.page-id-9 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* === Map Fun Page === */
.map-fun-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.map-fun-hero {
    text-align: center;
    margin-bottom: 48px;
}

.map-fun-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--mow-navy);
    margin: 0 0 16px;
}

.map-fun-hero p {
    font-size: 1.1rem;
    color: var(--mow-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 3-up card grid */
.map-fun-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.map-fun-card {
    background: var(--mow-white);
    border: 2px solid var(--mow-gray-lt);
    border-radius: 12px;
    padding: 36px 24px 28px;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-fun-card:hover {
    border-color: var(--mow-gold);
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.1);
    transform: translateY(-4px);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon svg {
    stroke: var(--mow-gold);
}

.map-fun-card:hover .card-icon svg {
    stroke: var(--mow-gold-dk);
}

.map-fun-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mow-navy);
    margin: 0 0 10px;
}

.map-fun-card p {
    font-size: 0.95rem;
    color: var(--mow-gray);
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.card-cta {
    display: inline-block;
    background: var(--mow-gold);
    color: var(--mow-navy) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}

.map-fun-card:hover .card-cta {
    background: var(--mow-gold-dk);
    transform: scale(1.03);
}

/* Attribution */
.map-fun-attribution {
    text-align: center;
    padding: 40px 0 0;
    border-top: 1px solid var(--mow-gray-lt);
}

.cd-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cd-logo:hover {
    opacity: 1;
}

.map-fun-attribution p {
    font-size: 0.85rem;
    color: var(--mow-gray);
}

.map-fun-attribution a {
    color: var(--mow-gold-dk) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.map-fun-attribution a:hover {
    color: var(--mow-gold) !important;
    text-decoration: underline !important;
}

/* === Responsive === */
@media (max-width: 900px) {
    .map-fun-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-fun-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .map-fun-grid {
        grid-template-columns: 1fr;
    }
    .map-fun-page {
        padding: 24px 16px 40px;
    }
    .map-fun-hero h1 {
        font-size: 1.8rem;
    }
}

/* Remove Kadence content padding on Map Fun page */
.page-id-11 .entry-content-wrap,
.page-id-11 .content-wrap {
    padding: 0 !important;
    max-width: 100% !important;
}
