:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --ink: #16211d;
  --muted: #60706a;
  --line: #dfe7e1;
  --primary: #147d64;
  --primary-dark: #0f5f4c;
  --accent: #f0b45b;
  --danger: #b93333;
  --shadow: 0 22px 70px rgba(18, 45, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.brand-mark svg {
  width: 31px;
  height: 31px;
  fill: rgba(255, 255, 255, 0.95);
}

.brand-mark .logo-smile,
.brand-mark .logo-line {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted,
small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  min-height: calc(100vh - 78px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(20, 125, 100, 0.92), rgba(22, 33, 29, 0.72)),
    url("https://images.unsplash.com/photo-1584516150909-c43483ee7932?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
}

.hero h1,
.section h2,
.admin-heading h1,
.form-panel h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.button-row,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.btn-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.metric {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 28px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band span {
  padding: 20px clamp(18px, 4vw, 44px);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.section,
.admin-shell,
.admin-form-page,
.auth-wrap {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2,
.admin-heading h1,
.form-panel h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #e4f3ee;
  color: var(--primary-dark);
  font-weight: 900;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.service-card p,
.split-section p,
.contact-copy p {
  line-height: 1.65;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.process-list strong {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.contact-lines {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.location-link {
  width: fit-content;
  color: var(--primary-dark);
  border-bottom: 2px solid rgba(20, 125, 100, 0.28);
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfb;
  font: inherit;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.align-end {
  align-items: end;
}

.flash-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.flash {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.flash-success {
  border-color: #74b99d;
}

.flash-danger,
.flash-warning {
  border-color: #e3a1a1;
}

.auth-wrap {
  min-height: calc(100vh - 145px);
  display: grid;
  place-items: center;
}

.auth-card,
.wide-form {
  width: min(100%, 760px);
}

.small {
  font-size: 13px;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card strong {
  margin-top: 10px;
  font-size: 36px;
}

.admin-section {
  display: grid;
  gap: 12px;
}

.admin-section h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef5f1;
  font-size: 13px;
  text-transform: uppercase;
}

.inline-form,
.action-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form select {
  min-width: 130px;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

.admin-form-page {
  display: grid;
  place-items: start center;
}

.content-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0;
}

.content-page h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.page-body {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.75;
}

.page-body p {
  margin: 0 0 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .admin-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-band,
  .service-grid,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .main-nav {
    justify-content: flex-start;
  }

  .trust-band,
  .service-grid,
  .stat-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .flash-stack {
    left: 18px;
    right: 18px;
    max-width: none;
  }
}
