/* ===================================================
   Dolph Map Showcase — Styles
   Brand colors from Canva brand kit
   =================================================== */

:root {
    /* Brand Colors */
    --navy:        #061550;
    --navy-light:  #454d7c;
    --slate:       #4f5d75;
    --gold:        #d4a373;
    --cyan:        #01a0c7;
    --green:       #008738;
    --red:         #fe0000;
    --crimson:     #d4183d;

    /* Neutrals */
    --white:       #ffffff;
    --off-white:   #f7f7f7;
    --gray-light:  #cbced4;
    --gray-mid:    #a2a6bf;
    --gray-text:   #5a5f72;

    /* Semantic */
    --color-primary:    var(--navy);
    --color-accent:     var(--gold);
    --color-link:       var(--cyan);
    --color-bg:         var(--white);
    --color-bg-alt:     var(--off-white);
    --color-text:       #1a1a2e;
    --color-text-light: var(--gray-text);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: 80px;
    --container:   1200px;

    /* Misc */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(6, 21, 80, 0.08);
    --shadow-hover: 0 8px 24px rgba(6, 21, 80, 0.12);
    --transition: 0.2s ease;
}

/* ===================================================
   Reset & Base
   =================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ===================================================
   Navigation
   =================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.nav-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================================
   Hero
   =================================================== */

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 100px 24px 80px;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================================
   Buttons
   =================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--navy);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #c4904f;
    border-color: #c4904f;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

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



/* ===================================================
   Sections
   =================================================== */

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.maps-section {
    padding: var(--section-pad) 0;
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ===================================================
   Map Cards Grid
   =================================================== */

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.map-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    display: block;
}

.map-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.map-card-preview {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--off-white);
}

.map-card-preview iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
}

.map-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 80, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.map-card:hover .map-card-overlay {
    background: rgba(6, 21, 80, 0.5);
}

.map-card-cta {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border: 2px solid var(--white);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
}

.map-card:hover .map-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.map-card-info {
    padding: 20px 24px;
}

.map-card-info h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.map-card-location {
    font-size: 0.9rem;
    color: var(--color-text-light);
}


/* ===================================================
   Chamber Page
   =================================================== */

/* Breadcrumb */
.breadcrumb {
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-link);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--gray-mid);
}

/* Chamber Header */
.chamber-header {
    padding: 48px 24px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
}

.chamber-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.chamber-info h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.chamber-location {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.chamber-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.chamber-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.chamber-detail svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.chamber-detail a {
    color: var(--color-link);
}

.chamber-detail a:hover {
    text-decoration: underline;
}

.chamber-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    max-width: 500px;
    line-height: 1.6;
}

.chamber-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.chamber-actions .btn-outline {
    color: var(--navy);
    border-color: var(--navy);
}

.chamber-actions .btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Map Embed */
.chamber-map {
    background: var(--off-white);
    padding: 0;
}

.chamber-map-inner {
    max-width: 100%;
}

.map-embed {
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Other Maps */
.other-maps {
    padding: var(--section-pad) 0;
    background: var(--off-white);
}


/* ===================================================
   Error Page
   =================================================== */

.error-section {
    padding: 120px 24px;
    text-align: center;
}

.error-section h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.error-section p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ===================================================
   Footer
   =================================================== */

.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 24px 0;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 36px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    max-width: var(--container);
    margin: 0 auto;
}

/* ===================================================
   Responsive
   =================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 64px 24px 56px;
    }

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

    .chamber-header-inner {
        flex-direction: column;
    }

    .chamber-actions {
        flex-direction: row;
    }

    .map-embed {
        height: 50vh;
        min-height: 350px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 16px 24px 24px;
        flex-direction: column;
        gap: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links--open {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .chamber-actions {
        flex-direction: column;
        width: 100%;
    }

    .chamber-actions .btn {
        width: 100%;
    }
}
