/* Design 14: Retro Vintage */

:root {
    --color-dark: #4a3e35;
    --color-light: #fdf6e3;
    --color-accent: #c86a38;
    --color-muted: #a1887f;
    --border-radius: 3px;
    --font-body: 'Georgia', serif;
    --font-heading: 'Playfair Display', serif;
    --font-logo: 'Lobster', cursive;
    --logo-font-size: 2.5rem;
    --logo-font-weight: 400;
    --max-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--color-light);
    color: var(--color-dark);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5em;
}

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

.site-header {
    background-color: #fffaf0;
    padding: 1rem 0;
    border-bottom: 2px dashed var(--color-muted);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
}

.site-logo .logo-text {
    font-family: var(--font-logo);
    font-size: var(--logo-font-size);
    font-weight: var(--logo-font-weight);
    color: var(--color-dark);
}

.main-nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-item a {
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.nav-item a:hover, .nav-item.active a {
    color: var(--color-accent);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fffaf0;
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius);
    min-width: 200px;
    z-index: 1000;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown li a:hover {
    background-color: var(--color-light);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-muted);
    margin: 0.5rem 0;
}

.menu-toggle {
    display: block;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #fffaf0;
    z-index: 999;
    padding: 2rem;
    transition: right 0.3s ease-in-out;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .nav-list {
    flex-direction: column;
}

.mobile-nav .nav-item a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-muted);
}

.mobile-nav .dropdown {
    position: static;
    display: none;
    border: none;
    background: transparent;
}

.mobile-nav .has-dropdown.open .dropdown {
    display: block;
}

.mobile-nav .dropdown li a {
    padding-left: 1rem;
}

.site-main {
    padding: 2rem 0;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9em;
    color: var(--color-muted);
}

.breadcrumbs a {
    color: var(--color-muted);
}

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

.breadcrumbs .sep {
    margin: 0 0.5em;
}

.featured-grid {
    display: grid;
    gap: 1.5rem;
}

.featured-card {
    background: #fffaf0;
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-image img {
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1rem;
}

.featured-category {
    font-size: 0.8em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.5rem;
}

.featured-main .featured-title {
    font-size: 2.2rem;
}

.featured-excerpt {
    color: var(--color-muted);
}

.category-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double var(--color-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
}

.see-all {
    font-style: italic;
}

.posts-grid {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: #fffaf0;
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.post-card-image img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-card-body {
    padding: 1rem;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.post-card-date {
    font-size: 0.8em;
    font-style: italic;
    color: var(--color-muted);
}

.single-post.has-sidebar {
    display: grid;
    gap: 2rem;
}

.post-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-category {
    font-size: 0.9em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 2.8rem;
}

.post-date {
    font-style: italic;
    color: var(--color-muted);
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    border: 5px solid #fffaf0;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.post-body h2, .post-body h3 {
    margin-top: 1.5em;
}

.post-body p {
    margin-bottom: 1em;
}

.post-body ul, .post-body ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.post-body img {
    border: 3px solid #fffaf0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-tags {
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    background: #e9e0d2;
    color: var(--color-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.tag:hover {
    background: var(--color-accent);
    color: var(--color-light);
}

.internal-links {
    margin: 2rem 0;
    background: #fffaf0;
    padding: 1.5rem;
    border: 1px dashed var(--color-muted);
}

.internal-links h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.internal-links ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.sidebar {
    border-left: 1px solid #e9e0d2;
    padding-left: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--color-dark);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.widget-related .related-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-related .related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: var(--border-radius);
}

.widget-categories ul {
    list-style: none;
}

.widget-categories li {
    margin-bottom: 0.5rem;
}

.widget-categories a {
    color: var(--color-dark);
}

.widget-banner img {
    border: 1px solid var(--color-muted);
}

.static-page, .page-body {
    padding: 1rem 0;
}

.page-title, .category-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.page-body h2 {
    margin-top: 1.5em;
}

.page-body p {
    margin-bottom: 1em;
}

.category-header {
    text-align: center;
    padding: 2rem 0;
    background: #fffaf0;
    margin-bottom: 2rem;
}

.category-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-muted);
}

.banner {
    margin: 2rem 0;
    text-align: center;
}

.entity-hero {
    padding: 3rem 0;
    background: #e9e0d2;
    text-align: center;
}

.entity-title {
    font-size: 3rem;
}

.entity-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
}

.sections-grid, .services-grid, .tiles-grid {
    display: grid;
    gap: 1.5rem;
}

.section-card, .service-card, .tile-card {
    background: #fffaf0;
    border: 1px solid var(--color-muted);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.section-card:hover, .service-card:hover, .tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.local-hero {
    padding: 4rem 0;
    text-align: center;
    background: #4a3e35;
    color: var(--color-light);
}

.hero-title {
    font-size: 3rem;
    color: var(--color-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #fdf6e3;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-light);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.local-services, .local-locations, .local-blog {
    padding: 3rem 0;
}

.location-link {
    display: block;
    background: #fffaf0;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-muted);
    text-align: center;
}

.location-link:hover {
    background: #e9e0d2;
}

.tile-image img {
    margin-bottom: 1rem;
}

.site-footer {
    padding-top: 3rem;
    font-size: 0.9em;
}

.footer-bg-light { background: #e9e0d2; }
.footer-bg-dark { background: var(--color-dark); color: var(--color-light); }
.footer-bg-accent { background: var(--color-accent); color: var(--color-light); }

.footer-inner {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-bg-dark .footer-col h3 {
    color: var(--color-light);
}

.footer-links, .footer-posts {
    list-style: none;
}

ul.footer-links li, ul.footer-posts li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-posts a {
    color: var(--color-muted);
}

.footer-bg-dark .footer-links a, .footer-bg-dark .footer-posts a, .footer-bg-dark .footer-about a {
    color: var(--color-light);
}

.footer-links a:hover, .footer-posts a:hover {
    color: var(--color-accent);
}

.footer-about a {
    color: var(--color-dark);
}

.footer-bottom {
    border-top: 1px solid var(--color-muted);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-muted);
}

.footer-bg-dark .footer-bottom {
    border-top-color: #6f5f53;
    color: var(--color-light);
}

@media (min-width: 768px) {
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid, .sections-grid, .services-grid, .tiles-grid, .internal-links ul { grid-template-columns: repeat(2, 1fr); }
    .single-post.has-sidebar { grid-template-columns: 3fr 1fr; }
    .single-post.sidebar-left { grid-template-columns: 1fr 3fr; }
    .single-post.sidebar-left .sidebar { grid-column: 1 / 2; grid-row: 1 / 2; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-cols-4 .footer-inner { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .posts-grid, .sections-grid, .services-grid, .tiles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Single-post variant extras ===== */
.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.internal-link-card {
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.internal-link-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.internal-link-card a {
    display: block;
    text-decoration: none;
    color: var(--color-dark);
}
.internal-link-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.internal-link-card h4 {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    margin: 0;
}
.related-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.related-list {
    list-style: none;
    padding: 0;
}
.related-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-muted);
}
.related-list li:last-child {
    border-bottom: none;
}
.related-list a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* Variant D: post-cover (full-width hero image) */
.post-cover {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 3rem 2rem 2rem;
}
.post-cover-overlay .post-title {
    color: white;
}
.post-cover-overlay .post-category a {
    color: var(--color-accent);
}
.post-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .internal-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ===== Variant B: Header extras ===== */
.site-navigation {
    display: flex;
    align-items: center;
}
.nav-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    position: absolute;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--color-light);
    z-index: 10000;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.mobile-nav-panel.active {
    right: 0;
}
.mobile-nav-panel .nav-list {
    flex-direction: column;
    gap: 0;
}
.mobile-nav-panel .nav-item a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-muted);
}

/* Variant B: Footer extras */
.footer-legal {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-muted);
    font-size: 0.85rem;
    color: #999;
}
.footer-divider {
    height: 1px;
    background: var(--color-muted);
    margin: 1.5rem 0;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-nav a {
    font-size: 0.9rem;
}
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-accent);
    color: var(--color-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.back-to-top:hover {
    opacity: 1;
}

