/* EncroachmentPermit.com — Shared Stylesheet */
/* Google Fonts loaded via <link> in each HTML file */

:root {
  --primary: hsl(137, 38%, 16%);
  --primary-fg: hsl(60, 20%, 95%);
  --bg: hsl(80, 20%, 97%);
  --fg: hsl(137, 30%, 12%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(120, 12%, 88%);
  --muted: hsl(100, 12%, 92%);
  --muted-fg: hsl(130, 10%, 42%);
  --cta: hsl(25, 95%, 53%);
  --cta-hover: hsl(25, 95%, 45%);
  --cta-fg: #fff;
  --section-alt: hsl(90, 18%, 95%);
  --radius: 0.5rem;
  --success: hsl(142, 60%, 40%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── LAYOUT ─────────────────────────────────── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding { padding: 6rem 1rem; }
}

.section-alt { background: var(--section-alt); }
.text-center { text-align: center; }

/* ─── HEADER ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-top-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--primary);
  border-bottom: 1px solid rgba(242,241,230,0.12);
}

.header-top-mobile a {
  color: var(--primary-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.header-top-mobile a:hover { color: #fff; }

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
}

.logo-text span { color: var(--cta); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active { color: var(--cta); }

.header-phone-desktop {
  display: none;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone-desktop:hover { color: var(--cta); }

.header-actions-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  padding: 0.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .header-top-mobile { display: none; }
  .menu-btn { display: none; }
  .header-phone-desktop { display: inline-flex; }
  .header-actions-mobile { display: none; }
}

@media (max-width: 420px) {
  .logo-text { font-size: 1rem; }
  .header-top-mobile a { font-size: 0.75rem; }
}

.nav-mobile {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--cta); }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1;
}

.btn-cta {
  background: var(--cta);
  color: var(--cta-fg);
}

.btn-cta:hover { background: var(--cta-hover); color: var(--cta-fg); }

.btn-outline {
  background: transparent;
  color: var(--primary-fg);
  border: 2px solid rgba(242,241,230,0.7);
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-secondary {
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--border);
}

.btn-secondary:hover { background: var(--muted); }

/* ─── HERO (image background) ─────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 56, 25, 0.56), rgba(22, 56, 25, 0.34));
}

.hero-content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 8rem 1rem; }
}

@media (min-width: 1024px) {
  .hero-content { padding: 10rem 1rem; }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary-fg);
  margin-bottom: 1.5rem;
  max-width: 48rem;
}

@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-text {
  font-size: 1.125rem;
  color: rgba(242, 241, 230, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  line-height: 1.7;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(242, 241, 230, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-btns { flex-direction: row; }
}

/* ─── HERO (solid primary bg) ──────────────────── */
.hero-primary {
  background: var(--primary);
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .hero-primary { padding: 6rem 1rem; }
}

/* ─── CARDS ───────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-image-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-image-wrap img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

/* ─── SERVICE CARD ───────────────────────────── */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.service-card-img {
  height: 12rem;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.service-card:hover .service-card-title { color: var(--cta); }
.service-card-desc { font-size: 0.875rem; color: var(--muted-fg); flex: 1; }
.service-card-link { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--cta); }

/* ─── GRIDS ───────────────────────────────────── */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ─── FEATURE LISTS ────────────────────────────── */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--muted-fg); line-height: 1.6; }
.feature-list li::before { content: ''; min-width: 0.5rem; width: 0.5rem; height: 0.5rem; background: var(--cta); border-radius: 50%; margin-top: 0.375rem; flex-shrink: 0; display: block; }
.feature-list-primary li::before { background: var(--primary); }

/* ─── RELATED SERVICE CARDS ───────────────────── */
.related-service-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; display: block; text-decoration: none; transition: box-shadow 0.2s; }
.related-service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10); }
.related-service-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.875rem; color: var(--fg); margin: 0; transition: color 0.2s; }
.related-service-card:hover h3 { color: var(--cta); }

/* ─── TRUST STRIP ─────────────────────────────── */
.trust-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1rem;
}

.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.trust-item svg { color: var(--cta); width: 2rem; height: 2rem; }
.trust-item h3 { font-size: 0.875rem; font-weight: 700; color: var(--fg); }
.trust-item p { font-size: 0.75rem; color: var(--muted-fg); text-align: center; }

/* ─── SECTION HEADINGS ────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section-title { font-size: 2rem; } }

.section-subtitle {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 42rem;
  line-height: 1.65;
}

@media (min-width: 768px) { .section-subtitle { font-size: 1.125rem; } }

/* ─── ICON BOX ────────────────────────────────── */
.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(235,120,20,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--cta);
  flex-shrink: 0;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* ─── FAQ ─────────────────────────────────────── */
.faq-section { padding: 4rem 1rem; }
@media (min-width: 768px) { .faq-section { padding: 6rem 1rem; } }

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  text-align: left;
  gap: 1rem;
}

.faq-btn:hover { color: var(--cta); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--cta);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ─── CTA SECTION ─────────────────────────────── */
.cta-section {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 4rem 1rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-fg);
}

@media (min-width: 768px) { .cta-section h2 { font-size: 2.25rem; } }

.cta-section p {
  color: rgba(242,241,230,0.8);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* ─── CONTACT FORM ────────────────────────────── */
.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

@media (min-width: 768px) { .form-wrap { padding: 2rem; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-label { font-size: 0.875rem; font-weight: 500; color: var(--fg); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(235,120,20,0.15);
}

.form-textarea { resize: vertical; min-height: 7rem; }

.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(34,197,94,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--success);
}

/* ─── BLOG CARD ───────────────────────────────── */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card-img.h-48 img { height: 12rem; }
.blog-card-img.h-40 img { height: 10rem; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.blog-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title { color: var(--cta); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--muted-fg); flex: 1; }
.blog-card-link { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--cta); }

/* ─── PERMIT CHIP GRID ────────────────────────── */
.permit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) { .permit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .permit-grid { grid-template-columns: repeat(4, 1fr); } }

.permit-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

/* ─── CONTACT SIDEBAR CARD ──────────────────────── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-card svg { color: var(--cta); flex-shrink: 0; margin-top: 0.125rem; }

.map-box {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.map-box img { width: 100%; height: 12rem; object-fit: cover; }

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,56,25,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--primary-fg);
}

.map-overlay svg { color: var(--cta); }
.map-overlay p { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--primary);
  color: var(--primary-fg);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 768px) { .footer-inner { padding: 4rem 1rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

.footer-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--cta);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.footer-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-logo-text span { color: var(--cta); }
.footer-desc { font-size: 0.875rem; color: rgba(242,241,230,0.7); line-height: 1.6; }
.footer-col-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(242,241,230,0.7); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cta); }

.footer-contact-list {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(242,241,230,0.78);
  line-height: 1.6;
}

.footer-contact-item strong {
  color: var(--primary-fg);
  font-weight: 700;
}

.footer-contact-item a {
  color: rgba(242,241,230,0.9);
  text-decoration: none;
}

.footer-contact-item a:hover { color: var(--cta); }

.footer-bottom {
  border-top: 1px solid rgba(242,241,230,0.2);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-bottom p { font-size: 0.75rem; color: rgba(242,241,230,0.5); }

/* ─── UTILITIES ───────────────────────────────── */
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.text-muted { color: var(--muted-fg); }
.text-cta { color: var(--cta); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
