/**
 * NGT Lawyers — premium environmental law (static HTML/CSS)
 * Navy, off-white, muted green accent
 */

:root {
  --navy: #0c1a2e;
  --navy-mid: #152a47;
  --navy-soft: #1e3a5c;
  --green: #2d6a4f;
  --green-muted: #40916c;
  --green-bg: rgba(45, 106, 79, 0.08);
  --gold: #b8860b;
  --gold-soft: rgba(184, 134, 11, 0.12);
  --white: #ffffff;
  --off-white: #f7f8fa;
  --cream: #f4f6f8;
  --border: #e2e6ed;
  --text: #1a2332;
  --text-muted: #4a5568;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 26, 46, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1160px;
  --narrow: 720px;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-soft);
}

:focus-visible {
  outline: 2px solid var(--green-muted);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

h4 {
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.text-balance {
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--navy-soft);
  color: var(--navy-soft);
}

.btn--green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn--green:hover {
  background: var(--green-muted);
  border-color: var(--green-muted);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-inline: 0.5rem;
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--green);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--green);
  text-decoration: none;
}

.logo span {
  color: var(--green);
  font-weight: 700;
}

/* Nav toggle (no JS) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
  background: var(--green-bg);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 950;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.55rem 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: min(80vh, 560px);
    overflow-y: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }

  .site-nav a {
    padding: 0.75rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0.75rem;
    display: none;
  }

  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .header-cta .btn {
    display: none;
  }

  .header-inner .header-cta .btn--primary {
    display: inline-flex;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
  }
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--off-white) 0%, var(--white) 45%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-card-stack {
  display: grid;
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.trust-strip span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-soft);
  padding: 0.35rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p,
.section--navy .lead {
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

/* Trust band */
.trust-band {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-band-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .trust-band-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 106, 79, 0.25);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  flex-grow: 1;
  font-size: 0.98rem;
}

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green);
  text-decoration: none;
}

.card-link:hover {
  color: var(--navy-soft);
  text-decoration: underline;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.issue-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issue-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.issue-list li:last-child {
  border-bottom: 0;
}

.issue-list strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  font-size: 0.95rem;
  margin: 0;
}

/* Featured highlight */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

.feature-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--green);
}

.feature-block h3 {
  font-size: 1.1rem;
}

/* Blog cards on homepage */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 1.35rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--green);
}

.blog-card .excerpt {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* FAQ native accordion */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.15rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-weight: 400;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-list .faq-body p:last-child {
  margin-bottom: 0;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.cta-block h2 {
  color: var(--white);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-inline: auto;
}

.cta-block .btn--primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cta-block .btn--primary:hover {
  background: var(--cream);
}

.cta-block .btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-block .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0 0 0.5rem;
  color: inherit;
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-muted);
  box-shadow: 0 0 0 3px var(--green-bg);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-trust {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

.field-error {
  color: #b42318;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

input:invalid:not(:placeholder-shown) + .field-error,
select:invalid:not(:placeholder-shown) + .field-error {
  display: block;
}

/* Page hero inner pages */
.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.breadcrumb a:hover {
  color: var(--green);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.takeaway-box {
  background: var(--green-bg);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.takeaway-box h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.05);
  color: var(--white);
  text-decoration: none;
}

.wa-float__text {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Sticky side CTA (optional, desktop) */
@media (min-width: 1200px) {
  .layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
  }

  .sidebar-cta {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

@media (max-width: 1199px) {
  .layout-with-sidebar {
    display: block;
  }

  .sidebar-cta {
    margin-top: 2rem;
  }
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.text-center {
  text-align: center;
}
