/* ****************************************
 * SHARED HOME PAGE STYLES
 * **************************************** */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: white;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.logo-container {
    display: block;
}

.logo {
    display: block;
}

.header .quote-btn {
    text-decoration: none;
}

.header address,
footer p,
footer address,
footer h3 {
    margin: 0;
}

.header-nav-bar .nav-menu {
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 12px 18px;
}

.header-nav-bar .nav-menu li + li::before {
    content: '|';
    color: white;
    margin-right: 18px;
}

a:focus-visible {
    outline: 3px solid #ff8c42;
    outline-offset: 4px;
}

/* ****************************************
 * HOME PAGE BUTTONS AND FOOTER
 * **************************************** */

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff8c42;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background: #ff7a29;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: white;
    color: #2d5016;
    border: 2px solid #2d5016;
}

.btn-secondary:hover {
    background: #2d5016;
    color: white;
}

footer {
    background: #1a2f0d;
    color: #c8e6c9;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd966;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #c8e6c9;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd966;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d5016;
    opacity: 0.7;
}


/* ****************************************
 * PAGE HEADINGS AND INTERNAL LINKS
 * **************************************** */

.page-intro {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.page-intro > div,
.site-directory,
.legacy-content > .inner-wrap,
.related-pages {
    max-width: 1200px;
    margin: 0 auto;
}

.page-intro h1 {
    margin: 0 0 1rem;
    color: #2d5016;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.page-intro p {
    margin: 0;
    max-width: 850px;
    color: #555;
    font-size: 1.1rem;
}

.page-intro .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.page-intro a,
.site-directory a,
.legacy-content a {
    color: #2d5016;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-directory {
    padding: 2.5rem 2rem;
}

.site-directory h2,
.legacy-content h2 {
    margin: 0 0 1rem;
    color: #2d5016;
    font-size: 1.8rem;
    line-height: 1.3;
}

.site-directory p {
    margin: 0 0 1rem;
}

.directory-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 0.8rem 1.5rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.directory-links a {
    display: block;
    padding: 0.8rem 1rem;
    border-left: 4px solid #4a7c2c;
    border-radius: 10px;
    background: #f7faf7;
}

/* ****************************************
 * EXISTING MAP COLLECTIONS AND INFORMATION PAGES
 * **************************************** */

.legacy-content > .inner-wrap {
    padding: 2.5rem 2rem;
}

.legacy-content p {
    margin: 0 0 1.25rem;
}

.legacy-content img {
    max-width: 100%;
    height: auto;
}

.legacy-content picture {
    display: block;
    max-width: 960px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.legacy-content picture img {
    display: block;
    margin: 0 auto;
}

.legacy-content .pdfDownloadLink,
.legacy-content .pdfLink {
    display: block;
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
}

.legacy-content .home-section {
    margin: 0 0 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: #f7faf7;
}

.legacy-content .home-section iframe,
.legacy-content video {
    max-width: 100%;
}

.legacy-content .sampDiv {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    width: min(100%, 270px);
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 15px;
    background: #f7faf7;
}

.legacy-content .orderNumbers {
    margin-bottom: 2rem;
}

.legacy-content .howToOrderImg {
    max-width: 320px;
}

.legacy-content .ordNumFont {
    color: #2d5016;
    font-size: 1.8rem;
    font-weight: 700;
}

.legacy-content #contact-area {
    max-width: 640px;
    margin: 2rem 0;
}

.legacy-content #contact-area input,
.legacy-content #contact-area textarea {
    display: block;
    width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0.8rem;
    border: 1px solid #777;
    border-radius: 6px;
    font: inherit;
}

.legacy-content #contact-area input[type='submit'] {
    border: 0;
    border-radius: 30px;
    background: #ff8c42;
    color: white;
    cursor: pointer;
}

.related-pages {
    padding: 1rem 2rem 3rem;
}

/* ****************************************
 * COUNTRY PAGES AND THE QUOTE MAP
 * **************************************** */

.country-page .country-hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.country-page h1,
.country-page h2 {
    color: #2d5016;
}

.country-page .country-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: normal;
}

.country-page .country-btn--primary {
    background: #ff8c42;
    border-color: #ff8c42;
    color: white;
    border-radius: 30px;
}

.quote-page .header,
.quote-page .header-nav-bar,
.quote-page .page-intro,
.quote-page footer {
    flex-shrink: 0;
}

.quote-page #map {
    flex: none;
    min-height: 560px;
    height: 70vh;
}

/* ****************************************
 * SMALL SCREEN LAYOUT
 * **************************************** */

@media (max-width: 968px) {
    .header-nav-bar .nav-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background: transparent;
        border-radius: 0;
        gap: 0.5rem 1rem;
    }

    .header-nav-bar .nav-menu li + li::before {
        content: none;
    }

    .header-nav-bar .nav-menu a {
        display: block;
    }

    .page-intro,
    .site-directory,
    .legacy-content > .inner-wrap {
        padding: 2rem 1.25rem;
    }
}
