:root {
    --bg-color: #F9F7F2;
    --text-main: #1A1A1A;
    --text-light: #555555;
    --accent-jungle: #2E8B57;
    --accent-light: #E8F5E9;
    --border-radius: 12px;
    --gap: 20px;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20 C 30 10 30 30 40 20 M20 20 C 10 30 10 10 0 20 M20 0 C 30 10 30 30 40 20 M20 40 C 10 30 10 10 0 20 M20 0 C 10 10 10 30 0 20 M20 40 C 30 30 30 10 40 20' stroke='%232E8B57' stroke-width='2' fill='none' stroke-opacity='0.08' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(46, 139, 87, 0.1);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-top: 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo span { color: var(--accent-jungle); }

.header-seo-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-light);
    max-width: 420px;
    line-height: 1.4;
}

.header-seo-text a {
    color: var(--accent-jungle);
}

.header-seo-text a:hover {
    text-decoration: underline;
}

nav ul { display: flex; gap: 20px; }
nav li a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}
nav li a:hover { color: var(--accent-jungle); }

.hero {
    margin-bottom: 60px;
    text-align: left;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.8);
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: #111;
}

.seo-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 650px;
    line-height: 1.7;
}

.tag-pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-jungle);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    grid-auto-rows: minmax(280px, auto);
}

.bento-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(46, 139, 87, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.bento-item > a {
    display: block;
    height: 100%;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 139, 87, 0.1);
    border-color: var(--accent-jungle);
}

.bento-large {
    grid-column: span 2;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        border-radius: 24px;
        align-items: flex-start;
    }

    .header-seo-text {
        text-align: left;
        max-width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
    }

    .bento-large { grid-column: span 1; }
    .hero { padding: 20px; }
}

.card-category {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-jungle);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.2));
}

#article-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

#article-view.is-visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-top: 10px;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-light);
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.article-back-btn:hover {
    color: var(--accent-jungle);
    transform: translateX(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
}

.article-cover {
    width: 100%;
    height: 450px;
    background-color: #ddd;
    border-radius: var(--border-radius);
    margin-bottom: -60px;
    background-image: url('https://images.unsplash.com/photo-1596507613768-3e4b3c7b8c7b?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    position: relative;
    z-index: 1;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .article-content { padding: 30px; }
    .article-cover { height: 300px; margin-bottom: -40px; }
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #222;
}

.article-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.8;
}

.info-box {
    background: var(--accent-light);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid var(--accent-jungle);
}

.info-box h3 { margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; }
.info-box p { margin-bottom: 10px; font-size: 1rem; }
.info-box strong { color: var(--accent-jungle); }

footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(255,255,255,0.5);
}

.home-cta {
    margin-top: 70px;
    padding: 36px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 139, 87, 0.15);
    text-align: center;
}

.home-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.home-cta p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.home-cta a {
    display: inline-block;
    background: var(--accent-jungle);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.city-seo-block {
    margin-top: 28px;
    padding: 56px 12px;
    text-align: center;
}

.city-seo-block h2 {
    margin-bottom: 8px;
}

.city-seo-block > p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.city-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.city-seo-links a {
    font-weight: 700;
    color: var(--accent-jungle);
}

.city-seo-links a:hover {
    text-decoration: underline;
}

.city-page {
    max-width: 980px;
    margin: 0 auto;
}

.city-long-seo-text,
.city-providers,
.city-services-links {
    margin-top: 34px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
}

.city-long-seo-text p {
    margin-bottom: 14px;
    color: #444;
}

.city-services-links ul {
    display: grid;
    gap: 10px;
}

.city-services-links a {
    color: var(--accent-jungle);
    font-weight: 700;
}
