/* Reset a few defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Layout basics */
body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f9f9f9;
}

/* Hero section */
.hero {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }
.cta-button {
    display: inline-block;
    background: #ffcc00;
    color: #003366;
    padding: .75rem 1.5rem;
    border-radius: .4rem;
    text-decoration: none;
    font-weight: bold;
}

/* Main sections */
main { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
section { margin-bottom: 2.5rem; }
h2 { margin-bottom: .75rem; color: #000000; }

/* Simple form */
form { display: flex; gap: .5rem; flex-wrap: wrap; }
input[type="email"] {
    flex: 1 1 200px;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: .3rem;
}
button[type="submit"] {
    background: #003366;
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: .3rem;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    font-size: .85rem;
    color: #666;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

/* Paragraph spacing throughout the site */
p {
    margin-top: 1rem;      /* space above each paragraph */
    margin-bottom: 1rem;   /* space below each paragraph */
    line-height: 1.6;      /* makes lines easier to read */
}

#about p {
    margin-bottom: 1.2rem;
}

/* -------------------------------------------------
   MAP CONTAINER – base styling (desktop)
   ------------------------------------------------- */
#map .iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;               /* never exceed the page width */
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;

    /* Modern browsers: enforce a 16:9 ratio by default */
    aspect-ratio: 16 / 9;          

    /* Old‑school fallback for browsers that don’t understand aspect‑ratio */
    /* The padding‑bottom trick will be overridden by the media queries below */
    height: 0;
    padding-bottom: 56.25%;        /* 16:9 = 9/16 = 56.25% */
}

/* Ensure the iframe fills the wrapper */
#map .iframe-wrapper iframe {
    position: absolute;
    inset: 0;                      /* top/right/bottom/left = 0 */
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------
   PORTRAIT‑ORIENTED MAP FOR NARROW / TALL VIEWPORTS
   ------------------------------------------------- */

/* 1️Narrow viewports (any device ≤ 480 CSS px wide) */
@media (max-width: 480px) {
    #map .iframe-wrapper {
        /* Switch to a tall 3:4 ratio (portrait) */
        aspect-ratio: 3 / 4;      /* 0.75 → taller than wide */
        /* Fallback for older browsers */
        padding-bottom: 133.33%;   /* 4/3 = 133.33% */
    }
}

/* 2 Devices whose *aspect‑ratio* is taller than 2:3 (≈0.667) */
@media (aspect-ratio < 2/3) {
    /* This catches phones that report a very tall screen even if the width > 480 px
       (e.g., when the user rotates the phone to portrait). */
    #map .iframe-wrapper {
        aspect-ratio: 3 / 4;
        padding-bottom: 133.33%;
    }
}

/* -------------------------------------------------
   smooth transition when the ratio changes
   ------------------------------------------------- */
#map .iframe-wrapper {
    transition: aspect-ratio 0.3s ease, padding-bottom 0.3s ease;
}

/* -------------------------------------------------
   Site‑wide navigation bar
   ------------------------------------------------- */
.site-nav {
    background: #003366;                 /* same dark blue as the hero */
    color: #fff;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
}
.site-nav .logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;                     
    text-decoration: none;
}
.site-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}
.site-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.site-nav .nav-links a:hover {
    color: #ffcc00;
}

/* Small‑screen collapse (optional – makes the menu stack) */
@media (max-width: 600px) {
    .site-nav nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }
    .site-nav .nav-links a {
        padding: 0.25rem 0;
    }
}
/* -------------------------------------------------
   Base navigation (desktop) – unchanged except for wrapper
   ------------------------------------------------- */
.site-nav {
    background: #003366;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

/* -------------------------------------------------
   Hamburger button (visible only on mobile)
   ------------------------------------------------- */
.nav-toggle {
    display: none;                     /* hidden on large screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
}

/* -------------------------------------------------
   Nav links – default (desktop) layout
   ------------------------------------------------- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.nav-links a:hover {
    color: #ffcc00;
}

/* -------------------------------------------------
   Mobile layout – hide links, show hamburger
   ------------------------------------------------- */
@media (max-width: 600px) {
    .nav-toggle {
        display: flex;               /* show button */
    }

    /* Start hidden – will be shown when .open class is added */
    .nav-links {
        position: absolute;
        top: 100%;                   /* just below the header */
        left: 0;
        right: 0;
        background: #003366;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;               /* collapsed */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* When the menu is open */
    .nav-links.open {
        max-height: 500px;           /* big enough for all items */
        transition: max-height 0.4s ease-in;
    }
}

/* -------------------------------------------------
    animation for the hamburger → “X” when open
   ------------------------------------------------- */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Blog list styling */
.blog-list {
    list-style: disc inside;
    margin-left: 0;
    line-height: 1.6;
}
.blog-list a {
    color: #003366;
    text-decoration: none;
}
.blog-list a:hover {
    text-decoration: underline;
}