/* --- Local Fonts --- */
@font-face {
    font-family: "Bitter";
    src: url("../fonts/Bitter-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Bitter";
    src: url("../fonts/Bitter-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Rye";
    src: url("../fonts/Rye-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Variables & Reset --- */
:root {
    --primary-dark: #222;
    --primary-wood: #5d4037;
    --secondary-wood: #3e2723;
    --accent-orange: #d87c3e;
    --accent-blue: #2a5a8a;
    --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;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 65vh;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65)),
        url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.hero-content {
    position: relative;
    z-index: 1;
    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: -100px;
    position: relative;
    z-index: 2;
}
.intro-text {
    position: relative;
    z-index: 20;
    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("../img/wood-bg.jpg");
    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 {
    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("../img/attractions.jpg");
}
.food-img {
    background-image: url("../img/food.jpg");
}
.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("../img/wood-bg.jpg");
    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("../img/hotel.jpg");
}
.news-img {
    background-image: url("../img/events.jpg");
}
.business-img {
    background-image: url("../img/business.jpg");
}
.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: #ddd;
    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: #888;
}

/* --- 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 20px;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.article-body h1,
.article-body h2 {
    font-family: var(--font-header);
    color: var(--secondary-wood);
    margin-top: 30px;
}
.article-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}
.sidebar-box {
    background: var(--bg-light);
    border: 2px solid var(--primary-wood);
    padding: 20px;
}
.sidebar-box h3 {
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-family: var(--font-header);
}
.info-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.btn-text {
    color: var(--accent-blue);
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* --- Typography & Misc --- */
.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}
.article-body h1,
.article-body h2,
.article-body h3 {
    font-family: var(--font-header);
    color: var(--secondary-wood);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}
.article-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
}

.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: #bbb;
    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: #ddd;
    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: -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: 10px;
        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%;
    }
}
