/*
Design Name: Design 12: Luxury Gold
*/

:root {
    --color-dark: #1a1a1a;
    --color-light: #f0f0f0;
    --color-accent: #d4af37;
    --color-muted: #888;
    --border-radius: 4px;
    --font-body: 'Georgia', serif;
    --font-heading: 'Playfair Display', serif;
    --font-logo: 'Cinzel', serif;
    --logo-font-size: 2.2rem;
    --logo-font-weight: 700;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

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

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-header {
    background-color: var(--color-dark);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.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-accent);
    letter-spacing: 2px;
}

.main-nav {
    display: none;
}

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

.nav-item a {
    color: var(--color-light);
    padding: 0.5rem 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    border: 1px solid rgba(212, 175, 55, 0.2);
    list-style: none;
    min-width: 200px;
    z-index: 1000;
}

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

.dropdown li a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--color-light);
    white-space: nowrap;
}

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

.dropdown-divider {
    height: 1px;
    background-color: rgba(212, 175, 55, 0.2);
    margin: 0.5rem 0;
}

.menu-toggle {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

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

.menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

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

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

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

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

.mobile-nav .nav-list { flex-direction: column; }
.mobile-nav .nav-item a { display: block; padding: 0.75rem 0; font-size: 1.1rem; }
.mobile-nav .dropdown { position: static; display: none; background: transparent; border: none; }
.mobile-nav .has-dropdown.open > .dropdown { display: block; }
.mobile-nav .dropdown li a { padding-left: 1rem; font-size: 1rem; }

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

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

.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { margin: 0 0.5rem; }

.featured-grid { display: grid; gap: 1.5rem; }
.featured-card { background: #222; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: var(--border-radius); overflow: hidden; }
.featured-image img { transition: transform 0.3s ease; }
.featured-card:hover .featured-image img { transform: scale(1.05); }
.featured-content { padding: 1.5rem; }
.featured-category { font-size: 0.8rem; color: var(--color-accent); text-transform: uppercase; margin-bottom: 0.5rem; }
.featured-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.featured-main .featured-title { font-size: 2rem; }
.featured-excerpt { color: var(--color-muted); }

.category-section { margin-bottom: 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 0.5rem; }
.section-title { margin-bottom: 0; }
.see-all { color: var(--color-accent); font-weight: bold; }

.posts-grid { display: grid; gap: 1.5rem; }
.post-card { background: #222; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: var(--border-radius); transition: box-shadow 0.3s ease; }
.post-card:hover { box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }
.post-card-image img { border-radius: var(--border-radius) var(--border-radius) 0 0; }
.post-card-body { padding: 1.5rem; }
.post-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-card-excerpt { color: var(--color-muted); margin-bottom: 1rem; }
.post-card-date { font-size: 0.8rem; color: var(--color-muted); }

.single-post.has-sidebar { display: grid; gap: 3rem; }
.post-header { margin-bottom: 2rem; text-align: center; }
.post-category { color: var(--color-accent); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 0.5rem; }
.post-title { font-size: 2.5rem; margin-bottom: 1rem; }
.post-date { color: var(--color-muted); }
.post-featured-image { margin-bottom: 2rem; }
.post-body h2, .post-body h3 { margin-top: 2rem; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.5rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; }
.post-body img { border-radius: var(--border-radius); }

.post-tags { margin-top: 2rem; }
.tag { display: inline-block; background: #333; color: var(--color-light); padding: 0.4rem 0.8rem; border-radius: var(--border-radius); margin-right: 0.5rem; font-size: 0.8rem; }
.tag:hover { background: var(--color-accent); color: var(--color-dark); }

.internal-links { margin: 2rem 0; background: #222; padding: 2rem; border-left: 3px solid var(--color-accent); }
.internal-links h3 { margin-top: 0; }
.internal-links ul { list-style: none; padding: 0; display: grid; gap: 1rem; }
.internal-links li a { font-weight: bold; }

.sidebar-widget { margin-bottom: 2.5rem; background: #222; padding: 1.5rem; border: 1px solid rgba(212, 175, 55, 0.1); }
.sidebar-widget h3 { margin-bottom: 1rem; border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 0.5rem; }
.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; }
.widget-related .related-item span { font-weight: bold; }
.widget-categories ul { list-style: none; padding: 0; }
.widget-categories li { margin-bottom: 0.5rem; }
.widget-categories a { display: block; padding: 0.5rem; }
.widget-categories a:hover { background: var(--color-accent); color: var(--color-dark); }
.widget-banner img { width: 100%; }

.static-page, .page-body { padding: 2rem 0; }
.page-title, .category-title { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
.category-description { text-align: center; color: var(--color-muted); max-width: 700px; margin: 0 auto 2rem; }

.banner img { width: 100%; }

.entity-hero { text-align: center; padding: 3rem 0; background: #222; }
.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; margin-top: 2rem; }
.section-card, .service-card, .tile-card { background: #222; border: 1px solid rgba(212, 175, 55, 0.2); padding: 2rem; text-align: center; transition: all 0.3s ease; }
.section-card:hover, .service-card:hover, .tile-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }
.section-card h2, .service-card h3, .tile-title { color: var(--color-accent); }

.local-hero { padding: 4rem 0; text-align: center; background-color: #111; }
.hero-title { font-size: 3rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.8rem 2rem; font-weight: bold; border-radius: var(--border-radius); transition: all 0.3s ease; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); border: 2px solid var(--color-accent); }
.btn-primary:hover { background: transparent; color: var(--color-accent); }

.local-services, .local-locations, .local-blog { padding: 3rem 0; }
.locations-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.location-link { background: #222; padding: 0.8rem 1.5rem; border-radius: var(--border-radius); border: 1px solid rgba(212, 175, 55, 0.2); }
.location-link:hover { background: var(--color-accent); color: var(--color-dark); }

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

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

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

.footer-col h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

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

.footer-about a { color: var(--color-accent); font-weight: bold; }

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

/* Tablet Styles */
@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .main-nav { display: block; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .internal-links ul { grid-template-columns: repeat(2, 1fr); }
    .sections-grid, .services-grid, .tiles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .single-post.has-sidebar { grid-template-columns: 1fr 300px; }
    .single-post.sidebar-left { grid-template-columns: 300px 1fr; }
    .single-post.sidebar-left .sidebar { grid-row: 1; }
    .sections-grid, .services-grid, .tiles-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cols-4 .footer-inner { grid-template-columns: repeat(4, 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 D: Header extras ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: var(--color-light);
    padding: 0.5rem 1rem;
    z-index: 10001;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-muted);
}
.mobile-nav-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
    padding: 0.25rem;
}

/* Variant D: Footer extras */
.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.copyright {
    font-size: 0.85rem;
    color: #999;
}

