/* --- Local Fonts --- */
@font-face {
    font-family: "Bitter";
    src: url("/assets/fonts/Bitter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bitter";
    src: url("/assets/fonts/Bitter-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("/assets/fonts/OpenSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("/assets/fonts/OpenSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rye";
    src: url("/assets/fonts/Rye-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Variables & Reset --- */
:root {
    --primary-dark: #222;
    --primary-wood: #5d4037;
    --secondary-wood: #3e2723;
    --accent-orange: #7f1d1d;
    /* county maroon */
    --accent-blue: #2c3e50;
    /* slate grey */
    --bg-light: #f4f1ea;
    --font-header: "Bitter", serif;
    --font-body: "Open Sans", sans-serif;
    --font-script: "Rye", cursive;
}

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

body {
    font-family: var(--font-body);
    color: var(--primary-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px);
}

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

ul {
    list-style: none;
}

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

/* --- Header --- */
.site-header {
    position: relative;
    z-index: 100;
    text-align: center;
    padding: 20px 0 0;
    background: white;
    border-bottom: 4px solid var(--secondary-wood);
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlZWVlZWUiLz4KPC9zdmc+");
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.star-logo {
    font-size: 3.5rem;
    color: var(--accent-blue);
    text-shadow:
        2px 2px 0px var(--accent-orange),
        4px 4px 0px var(--secondary-wood);
}

.site-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.site-title .visit {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--accent-orange);
}

.site-title .crosbyton {
    font-size: 2.8rem;
    font-family: var(--font-header);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

/* --- Main Navigation (Desktop) --- */
.main-nav {
    border-top: 1px solid #ccc;
    background-color: #fffaf0;
}

.main-nav>ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover {
    color: var(--accent-blue);
    background-color: rgba(216, 124, 62, 0.1);
    border-bottom: 3px solid var(--accent-orange);
}

/* --- Dropdown Styles (Desktop) --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a::after {
    content: " ▼";
    font-size: 0.7em;
    display: inline-block;
    margin-left: 5px;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    border: 1px solid #eee;
    z-index: 101;
    text-align: left;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.nav-submenu li:last-child a {
    border-bottom: none;
}

.nav-submenu a:hover {
    border-bottom-color: #eee;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
    display: block;
}

/* --- Hamburger & Mobile Menu Styles --- */
.hamburger-button {
    display: none;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

picture.hero-bg-img {
    display: contents;
}

img.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.65));
    z-index: 1;
}

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

.hero-title {
    font-family: "Rye", serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: #fff;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.65);
    letter-spacing: 2px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.overlap-top {
    margin-top: -100px;
    position: relative;
    z-index: 30;
    /* Ensure it floats above the .intro-snippet */
}

.intro-text {
    position: relative;
    z-index: 30;
    /* Higher than framed-card:hover (z-index: 10) */
    margin-bottom: 60px;
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* --- Card Styles --- */
.framed-card {
    position: relative;
    padding: 20px;
    background-image: url("/assets/img/wood-bg.jpg");
    background-image: image-set(url("/assets/img/wood-bg.webp") type("image/webp"),
            url("/assets/img/wood-bg.jpg") type("image/jpeg"));
    background-repeat: repeat;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: rotate(0deg);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.framed-card:nth-child(1) {
    transform: rotate(-1deg);
}

.framed-card:nth-child(2) {
    transform: rotate(1deg);
}

.framed-card:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.framed-card::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #222 3px, transparent 4px),
        radial-gradient(circle, #222 3px, transparent 4px),
        radial-gradient(circle, #222 3px, transparent 4px),
        radial-gradient(circle, #222 3px, transparent 4px);
    background-position:
        top left,
        top right,
        bottom left,
        bottom right;
    background-repeat: no-repeat;
}

.card-content-wrapper {
    background: #fff;
    padding: 5px;
    height: 100%;
    border: 1px solid #999;
}

.card-image {
    width: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    filter: sepia(0.2) contrast(1.1) brightness(0.95);
    transition: filter 0.4s ease;
    border-bottom: 4px solid var(--primary-wood);
}

.framed-card:hover .card-image {
    filter: sepia(0) contrast(1) brightness(1);
}

.attractions-img {
    background-image: url("/assets/img/attractions.webp");
    background-image: image-set(url("/assets/img/attractions.webp") type("image/webp"),
            url("/assets/img/attractions.jpg") type("image/jpeg"));
}

.food-img {
    background-image: url("/assets/img/food.webp");
    background-image: image-set(url("/assets/img/food.webp") type("image/webp"),
            url("/assets/img/food.jpg") type("image/jpeg"));
}

.card-text {
    text-align: center;
    padding: 25px 15px;
    background: #fffaf0;
}

.card-text h2 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--secondary-wood);
}

.card-text p {
    font-family: var(--font-header);
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wood-section {
    background-color: var(--primary-wood);
    background-image: url("/assets/img/wood-bg.jpg");
    background-image: image-set(url("/assets/img/wood-bg.webp") type("image/webp"),
            url("/assets/img/wood-bg.jpg") type("image/jpeg"));
    background-repeat: repeat;
    padding: 80px 0;
    color: white;
    text-align: center;
    box-shadow: inset 0 20px 20px -10px rgba(0, 0, 0, 0.5);
    border-top: 5px solid #3e2723;
}

.section-title {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 50px;
    text-shadow:
        0px -1px 0px rgba(0, 0, 0, 0.8),
        0px 2px 3px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.white-card {
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    position: relative;
}

.white-card:hover {
    transform: translateY(-10px);
}

.white-card .card-image {
    height: 200px;
    margin-bottom: 0;
    border-bottom: none;
    filter: grayscale(0.2) contrast(1.1);
}

.white-card:hover .card-image {
    filter: none;
}

.hotel-img {
    background-image: url("/assets/img/hotel.webp");
    background-image: image-set(url("/assets/img/hotel.webp") type("image/webp"),
            url("/assets/img/hotel.jpg") type("image/jpeg"));
}

.news-img {
    background-image: url("/assets/img/events.webp");
    background-image: image-set(url("/assets/img/events.webp") type("image/webp"),
            url("/assets/img/events.jpg") type("image/jpeg"));
}

.business-img {
    background-image: url("/assets/img/business.webp");
    background-image: image-set(url("/assets/img/business.webp") type("image/webp"),
            url("/assets/img/business.jpg") type("image/jpeg"));
}

.card-body {
    padding: 20px 10px;
    color: var(--primary-dark);
    background: #fff;
}

.card-body h3 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.card-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.btn-blue {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 15px 40px;
    margin-top: 50px;
    font-weight: bold;
    font-family: var(--font-header);
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 5px 0 #1a3a5a;
    transition: all 0.2s;
}

.btn-blue:hover {
    background: #346ca3;
    transform: translateY(2px);
    box-shadow: 0 3px 0 #1a3a5a;
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0 30px;
    background: var(--primary-dark);
    color: #ccc;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.contact-info strong {
    color: white;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 8px;
}

.footer-btn {
    display: inline-block;
    border: 2px solid white;
    padding: 10px 25px;
    margin: 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.footer-btn:hover {
    background: white;
    color: var(--primary-dark);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #ccc;
}

/* --- Inner Pages --- */
.inner-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border: 3px solid white;
}

.inner-hero h1 {
    color: white;
    font-family: var(--font-header);
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px black;
}


.page-content {
    padding: 60px 40px;
    background-color: #fdfbf7;
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    margin-top: -50px;
    position: relative;
    z-index: 5;
    /* Stacked paper effect */
    border: 1px solid #e0dacc;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.15),
        0 10px 0 -5px #eee,
        0 10px 1px -4px rgba(0, 0, 0, 0.15),
        0 20px 0 -10px #eee,
        0 20px 1px -9px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* --- Typography & Misc --- */

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #2c2c2c;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    /* Or a specific serif font if imported */
}

/* Drop Cap for first paragraph */
.article-body>p:first-of-type::first-letter {
    font-family: var(--font-header);
    font-size: 3.5rem;
    float: left;
    margin-top: -0.1em;
    margin-right: 0.1em;
    line-height: 0.8;
    color: var(--accent-orange);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.article-body h1,
.article-body h2,
.article-body h3 {
    font-family: var(--font-header);
    color: var(--secondary-wood);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    border-bottom: 2px solid #e0dacc;
    /* Underline headers */
    padding-bottom: 10px;
}

.article-body h1 {
    font-size: 2.8rem;
    border-bottom: 4px double var(--primary-wood);
    text-align: center;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--primary-wood);
}

.article-body h3 {
    font-size: 1.5rem;
    border-bottom: none;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    border-left: 4px solid #e0dacc;
    background: rgba(0, 0, 0, 0.02);
    padding-top: 15px;
    padding-bottom: 15px;
}

.article-body li {
    margin-bottom: 0.5rem;
    list-style-type: square;
    /* Vintage feel */
    color: #444;
}

/* Blockquotes */
.article-body blockquote {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--primary-wood);
    border-left: 5px solid var(--accent-orange);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    font-style: italic;
}

/* Tables (Premium Ledger Style) */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Inconsolata', monospace;
    /* or standard sans */
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

.article-body th {
    background-color: var(--secondary-wood);
    color: white;
    text-transform: uppercase;
    padding: 12px 15px;
    border-bottom: 3px solid var(--accent-orange);
}

.article-body td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.article-body tr:nth-child(even) {
    background-color: #f9f9f9;
}

.article-body a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(86, 126, 187, 0.3);
    transition: all 0.2s;
}

.article-body a:hover {
    background-color: rgba(86, 126, 187, 0.1);
    border-bottom-color: var(--accent-blue);
}


.article-body--full-width {
    max-width: 800px;
    /* Optimal reading width */
    margin: 0 auto;
    /* Center the column in the container */
}

.hero-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    z-index: 20;
    pointer-events: auto;
}

.hero-credit a {
    color: #fff;
    text-decoration: underline;
}

.logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.02);
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0 40px;
    background: #222;
    color: #ccc;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-orange);
}

.footer-logo {
    font-family: var(--font-header);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.local-blurb {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-orange);
    transition: color 0.3s;
}

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

.footer-col h4 {
    color: white;
    font-family: var(--font-header);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    margin-left: 5px;
}

.footer-links li {
    transition: margin 0.3s;
}

.contact-info a {
    color: #ccc;
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--accent-orange);
}

/* --- Featured & Search --- */
.card--featured {
    position: relative;
    overflow: hidden;
}

.card--featured::before {
    content: "★ Featured";
    position: absolute;
    top: 15px;
    right: -35px;
    transform: rotate(45deg);
    background: var(--accent-orange);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-body);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.search-nav-item {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    padding: 0 25px;
}

#search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 150px;
    transition: width 0.3s ease;
}

#search-input:focus {
    width: 200px;
}

.search-results-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    text-align: left;
    border-radius: 4px;
    margin-top: 5px;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-list li a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-weight: 600;
}

.search-result-meta {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.search-result-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.search-result-description {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #444;
}

.search-results-list li a:hover {
    background: var(--bg-light);
    color: var(--accent-blue);
}

.search-results-list li:last-child a {
    border-bottom: none;
}

.search-no-results {
    padding: 15px;
    color: #666;
    text-align: center;
}

/* --- Responsive & Mobile Navigation --- */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .footer-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-sign span {
        font-size: 2.5rem;
    }

    .grid-2 {
        margin-top: 0;
    }

    .overlap-top {
        margin-top: -60px;
    }

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

    .logo-container {
        margin-bottom: 0;
        justify-content: flex-start;
        padding-left: 20px;
    }

    .site-header {
        padding-bottom: 20px;
    }

    .hamburger-button {
        display: block;
        position: absolute;
        top: 28px;
        right: 20px;
        background: none;
        border: none;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        cursor: pointer;
        z-index: 102;
    }

    .hamburger-icon {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-dark);
        position: relative;
        transition: background 0.3s;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--primary-dark);
        left: 0;
        transition: transform 0.3s;
    }

    .hamburger-icon::before {
        top: -8px;
    }

    .hamburger-icon::after {
        bottom: -8px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf0;
        border-top: 1px solid #ddd;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav a {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-dropdown>a::after {
        float: right;
        padding-right: 25px;
    }

    .nav-submenu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
        background-color: rgba(0, 0, 0, 0.02);
    }

    .nav-dropdown.is-open>.nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding-left: 40px;
    }

    .search-nav-item {
        padding: 10px 25px;
        width: 100%;
    }

    #search-input {
        width: 100%;
    }
}

/* --- Homepage Section Styles (Premium Update) --- */

.intro-snippet {
    position: relative;
    z-index: 25;
    background: white;
    padding-top: 0;
    /* Add extra padding at bottom to separate from cards */
    padding-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #5d4037;
    /* Primary wood color for text */
    font-size: 1.25rem;
    font-family: var(--font-header);
    line-height: 1.6;
}

/* Common Section Headers */
.stories-section h2,
.routes-teaser h2,
.best-time-section h2,
.faq-section h2 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: var(--secondary-wood);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.stories-section,
.routes-teaser {
    /* Ensure enough space so cards don't overlap title on hover */
    padding-top: 60px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 16px 40px;
    font-weight: 800;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    border: 2px solid var(--secondary-wood);
    box-shadow: 4px 4px 0 var(--secondary-wood);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #a52a2a;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--secondary-wood);
    color: white;
}

/* Why Visit Section - Wood Texture Theme */
.why-visit-section {
    background-image: url("/assets/img/wood-bg.jpg");
    background-image: image-set(url("/assets/img/wood-bg.webp") type("image/webp"),
            url("/assets/img/wood-bg.jpg") type("image/jpeg"));
    border-top: 8px solid var(--secondary-wood);
    border-bottom: 8px solid var(--secondary-wood);
    padding: 100px 0;
    color: white;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.why-visit-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 3rem;
}

.why-visit-section .section-intro {
    color: #eee;
    font-weight: 300;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* Circle badge */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.stat-number {
    display: block;
    font-family: "Rye", serif;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 0 var(--accent-orange);
}

.stat-label {
    font-family: var(--font-header);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #ddd;
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: rotate(1deg);
    /* Slight organic tilt */
}

.why-content::before {
    content: "";
    /* Pin effect */
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #a52a2a, #5a1515);
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.why-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.why-content p:last-child {
    margin-bottom: 0;
    font-weight: bold;
    color: var(--accent-orange);
}

/* Best Time - Polaroid Style */
.best-time-section {
    padding: 80px 0;
    background-color: #f9f7f2;
    /* Light paper color */
    background-image: radial-gradient(#e0ded8 1px, transparent 1px);
    background-size: 20px 20px;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 3rem;
    padding: 20px;
    perspective: 1000px;
}

.season-card {
    background: white;
    padding: 15px 15px 40px 15px;
    /* Polaroid padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: rotate(0deg);
    transition: transform 0.3s, z-index 0s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    border: 1px solid #eee;
}

/* Organic rotation for cards */
.season-card:nth-child(1) {
    transform: rotate(-2deg);
}

.season-card:nth-child(2) {
    transform: rotate(1deg);
    margin-top: 20px;
}

.season-card:nth-child(3) {
    transform: rotate(-1.5deg);
}

.season-card:nth-child(4) {
    transform: rotate(2deg);
    margin-top: 20px;
}

.season-card:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: #ddd;
}

.season-card h3 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--primary-dark);
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.season-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* FAQ Section - File Folder Style */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: #fffaf0;
    /* Parchment */
    border-left: 5px solid var(--accent-orange);
    /* Folder tab accent */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    left: 0;
}

.faq-item:hover {
    left: -10px;
    /* Slide effect */
    background: #fffdf8;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--primary-dark);
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer {
    padding: 15px 25px 25px;
}

.faq-answer p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* History Preview - Cinematic */
.history-preview-section {
    position: relative;
    background: var(--secondary-wood);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/assets/img/county-history-banner.jpg");
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), image-set(url("/assets/img/county-history-banner.webp") type("image/webp"),
            url("/assets/img/county-history-banner.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: white;
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid #444;
}

.history-preview-section::before {
    /* Grain texture overlay */
    content: "";
    opacity: 0.4;
    pointer-events: none;
}

.history-preview-section h2 {
    font-family: "Rye", serif;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(127, 29, 29, 0.5);
    /* Glowing accent */
}

/* Why Visit Header Fix */
.why-visit-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: "Rye", serif;
}

.why-visit-section .section-intro {
    color: #eee;
    font-weight: 300;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
}

/* Utility Texture Class */
.bg-paper {
    background-color: #fdfbf7;
    background-image: url("/assets/img/cream-paper.png");
    /* Ensure seamless texture with border-top/bottom tweaks if needed, 
       but for sections it's usually fine to just have the bg */
}

.history-excerpt {
    font-family: "Bitter", serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #ddd;
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.history-preview-section .btn-primary {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
    padding: 20px 50px;
    font-size: 1.2rem;
}

.history-preview-section .btn-primary:hover {
    background: white;
    color: var(--primary-dark);
}

/* Related Towns Component (Keep consistent with new styles) */
.related-towns {
    background: #f4f1ea;
    padding: 80px 0;
    border-top: 4px solid var(--primary-wood);
}

.related-towns h2 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: var(--secondary-wood);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Responsive for new sections */
@media (max-width: 900px) {
    .seasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .seasons-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .why-content {
        padding: 20px;
        transform: rotate(0deg);
    }

    .history-preview-section h2 {
        font-size: 2.5rem;
    }
}

/* --- Article Meta & Info Box --- */
.article-meta {
    font-family: var(--font-header);
    font-size: 0.95rem;
    color: #888;
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e0dacc;
    padding-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.meta-item {
    display: inline-block;
}

.meta-label {
    color: var(--accent-orange);
    font-weight: bold;
    margin-right: 5px;
}

.meta-separator {
    margin: 0 10px;
    color: #ccc;
    font-size: 1.2em;
}

.info-card {
    background: #fff;
    border: 1px solid #e0dacc;
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    margin: 0 auto 30px auto;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.info-card h3 {
    margin-top: 0 !important;
    /* Force override article-body styles */
    font-size: 1.2rem !important;
    border-bottom: 1px solid #eee !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    color: var(--primary-wood) !important;
    text-align: left !important;
}

.info-card p {
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
    font-family: var(--font-body);
}

.info-card a {
    font-weight: bold;
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 20px;
    }

    .article-meta {
        font-size: 0.85rem;
    }
}