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

:root {
  --forest-950: #071f10;
  --forest-900: #0b2f18;
  --forest-800: #124521;
  --forest-700: #17602c;
  --leaf-600: #248a42;
  --leaf-500: #2fb455;
  --leaf-300: #78db92;
  --leaf-100: #dff7e5;
  --safety: #f2a51a;
  --cream: #f8f5ec;
  --white: #ffffff;
  --gray-100: #edf2ed;
  --gray-200: #dce7dc;
  --gray-600: #536453;
  --ink: #18231b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

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

a { color: inherit; }

a,
button {
  -webkit-tap-highlight-color: rgba(47,180,85,0.22);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(36,138,66,0.14);
  box-shadow: 0 4px 30px rgba(7,31,16,0.12);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-image {
  width: 170px;
  height: 60px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.34));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  color: var(--forest-800);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--leaf-600); }

.nav-cta {
  background: var(--leaf-500);
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(47,180,85,0.38);
}

.language-item {
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  border: 1px solid rgba(36,138,66,0.22);
  border-radius: 50px;
  background: var(--leaf-100);
  color: var(--forest-800);
  min-height: 38px;
  padding: 8px 13px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.language-toggle:hover {
  background: var(--forest-800);
  color: white;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: 0;
}

.hamburger span {
  width: 27px;
  height: 2px;
  background: var(--forest-800);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  padding: 1.25rem;
  border-top: 1px solid rgba(36,138,66,0.14);
  box-shadow: 0 18px 45px rgba(7,31,16,0.14);
}

.mobile-panel.open { display: block; }

.mobile-panel a {
  display: block;
  color: var(--forest-800);
  text-align: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-panel .language-toggle {
  display: flex;
  justify-content: center;
  width: min(100%, 220px);
  margin: 0.6rem auto 0;
}

.container {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(120,219,146,0.17);
  color: var(--leaf-300);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1,
h2,
h3,
.card-title {
  font-family: 'Oswald', sans-serif;
}

.blog-hero,
.article-hero {
  position: relative;
  min-height: 66vh;
  padding: 10rem 0 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-950);
}

.article-hero { min-height: 60vh; }

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.62;
  transform: scale(1.02);
  animation: pageHeroZoom 14s ease-in-out infinite alternate;
}

.blog-hero.has-photo::before { display: none; }

.blog-hero::before,
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.46;
  transform: scale(1.04);
  pointer-events: none;
}

.blog-hero::after,
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7,31,16,0.9), rgba(18,69,33,0.62), rgba(7,31,16,0.86)),
    radial-gradient(circle at 78% 28%, rgba(242,165,26,0.2), transparent 34%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

@keyframes pageHeroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

h1 {
  color: white;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.typewriter-line {
  display: block;
  min-height: 1.08em;
  color: var(--leaf-300);
}

.typewriter-line [data-typewriter] { display: inline; }

.typewriter-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.06em;
  border-radius: 2px;
  background: var(--safety);
  vertical-align: -0.05em;
  animation: cursorBlink 0.85s steps(2, start) infinite;
}

@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.hero-subtitle,
.article-meta {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  max-width: 760px;
}

.hero-actions,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 50px;
  font-weight: 900;
  text-decoration: none;
  touch-action: manipulation;
  pointer-events: auto;
}

.btn-primary {
  background: var(--leaf-500);
  color: white;
  box-shadow: 0 10px 28px rgba(47,180,85,0.32);
}

.btn-secondary {
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
}

.blog-index {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-heading .section-tag { color: var(--forest-700); background: var(--leaf-100); }

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--forest-950);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 45px rgba(7,31,16,0.08);
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(7,31,16,0.13);
}

.post-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--leaf-600);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.card-title {
  color: var(--forest-950);
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.post-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.92rem;
}

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--forest-700);
  font-weight: 900;
}

.city-strip {
  padding: 4rem 0;
  background: var(--forest-950);
  color: white;
}

.city-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 3rem;
  align-items: start;
}

.city-grid h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.city-links a {
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 10px 15px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 3rem;
  align-items: start;
  padding: 5rem 0;
}

.article-body {
  min-width: 0;
}

.article-body .lead {
  color: var(--forest-800);
  font-size: 1.16rem;
  line-height: 1.85;
  font-weight: 700;
  margin-bottom: 2rem;
}

.article-body h2 {
  color: var(--forest-950);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 2.4rem 0 1rem;
  line-height: 1.1;
}

.article-body p,
.article-body li {
  color: #415142;
  font-size: 1.02rem;
  line-height: 1.88;
  margin-bottom: 1rem;
}

.article-body ul {
  padding-left: 1.2rem;
  margin: 1rem 0 1.5rem;
}

.article-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-left: 5px solid var(--safety);
  background: white;
  color: var(--forest-800);
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 12px 35px rgba(7,31,16,0.06);
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1rem;
}

.aside-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 18px 45px rgba(7,31,16,0.08);
}

.aside-card h3 {
  color: var(--forest-950);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.aside-card p,
.aside-card li {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.94rem;
}

.aside-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.aside-card a {
  color: var(--forest-700);
  font-weight: 900;
  text-decoration: none;
}

.local-cta {
  background: linear-gradient(135deg, var(--forest-800), var(--leaf-600));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.local-cta h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 850px;
  margin: 0 auto 1rem;
}

.local-cta p {
  color: rgba(255,255,255,0.84);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.local-cta .post-actions { justify-content: center; }

footer {
  background: var(--forest-950);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  max-width: 310px;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.footer-col h3 {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--leaf-300); }

.footer-service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-chip {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid,
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  nav {
    height: 76px;
    padding: 0 1rem;
  }

  .brand-image {
    width: 132px;
    height: 50px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-panel { top: 76px; }
  .container { width: min(100% - 2.5rem, 1200px); }
  .blog-hero,
  .article-hero {
    min-height: 72vh;
    padding: 8.5rem 0 4rem;
  }
  .typewriter-line { min-height: 2.16em; }
  .hero-actions .btn,
  .post-actions .btn { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card img { height: 240px; }
  .article-layout { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { display: none; }
}
