:root {
  --ink: #173b48;
  --muted: #5b7177;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #d8e6df;
  --brand: #0f8f75;
  --brand-deep: #1565b1;
  --brand-soft: #dff5ea;
  --warm: #ffb84d;
  --warm-deep: #9b5c17;
  --danger: #b83232;
  --success: #116d46;
  --shadow: 0 18px 44px rgba(18, 65, 92, 0.14);
  --shadow-small: 0 10px 24px rgba(18, 65, 92, 0.10);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--warm);
  outline-offset: 3px;
}

.page-shell {
  overflow: clip;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 59, 72, 0.12);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-link img,
.admin-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-small);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.header-actions,
.hero-actions,
.contact-actions,
.form-actions,
.admin-actions,
.lead-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.header-nav a {
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.language-switch button {
  min-width: 44px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.language-switch button.is-active {
  background: var(--ink);
  color: #fffefa;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.button-primary {
  background: var(--warm);
  border-color: #eaa23d;
  color: #1f2f32;
}

.button-dark {
  background: var(--ink);
  color: #fffefa;
}

.button-outline {
  border-color: rgba(23, 59, 72, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.button-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(15, 143, 117, 0.14), rgba(255, 184, 77, 0.12) 44%, rgba(21, 101, 177, 0.14)),
    linear-gradient(180deg, #fffaf2 0%, #edf9f2 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(15, 143, 117, 0.10) 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 0 47%, rgba(21, 101, 177, 0.10) 47% 53%, transparent 53%);
  background-size: 84px 84px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 42px;
  padding: 76px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--success);
  font-size: 0.94rem;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: var(--warm);
}

h1,
h2,
h3,
.display {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: 3.7rem;
  word-break: keep-all;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #39595f;
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 640px;
}

.trust-item {
  min-height: 88px;
  border: 1px solid rgba(23, 59, 72, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  align-self: end;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 22px 30px rgba(18, 65, 92, 0.16));
}

.form-section {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding-bottom: 70px;
}

.form-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
  border: 1px solid rgba(23, 59, 72, 0.13);
  border-radius: 8px;
  padding: 30px;
  background: #fffefa;
  box-shadow: var(--shadow);
}

.form-intro {
  position: sticky;
  top: 104px;
}

.form-intro p,
.section-copy,
.card p,
.privacy-copy p {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #31575d;
  font-weight: 800;
}

.mini-list svg {
  margin-top: 2px;
  color: var(--brand);
}

.lead-form {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.checkbox-label {
  color: #24474e;
  font-size: 0.94rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbded6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 143, 117, 0.12);
}

.checkbox-label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #cbded6;
  border-radius: 8px;
  background: #f8fcf7;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message,
.admin-message {
  display: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.form-message.is-visible,
.admin-message.is-visible {
  display: block;
}

.form-message.success,
.admin-message.success {
  color: var(--success);
  background: #e7f8ef;
  border: 1px solid #b6dfca;
}

.form-message.error,
.admin-message.error {
  color: var(--danger);
  background: #fff0ee;
  border: 1px solid #f0c2ba;
}

.section {
  padding: 78px 0;
}

.section-alt {
  background: #edf9f2;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-copy {
  margin: 0;
  font-size: 1.08rem;
}

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

.card {
  border: 1px solid rgba(23, 59, 72, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card p {
  margin-bottom: 0;
}

.process-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.process-wrap img {
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}

.steps-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffefa;
  font-weight: 900;
}

.contact-band {
  color: #fffefa;
  background:
    linear-gradient(135deg, rgba(15, 143, 117, 0.96), rgba(21, 101, 177, 0.96)),
    linear-gradient(45deg, transparent 0 47%, rgba(255, 255, 255, 0.16) 47% 53%, transparent 53%);
  background-size: auto, 70px 70px;
}

.contact-band .section-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.86);
}

.contact-band .button-outline {
  color: #fffefa;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.contact-band .button-primary {
  color: var(--ink);
}

.site-footer {
  padding: 44px 0;
  background: #132f39;
  color: #fffefa;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 800;
}

.footer-note,
.footer-contact {
  color: rgba(255, 255, 255, 0.72);
  margin: 14px 0 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-page {
  background:
    linear-gradient(180deg, #fffaf2 0%, #edf9f2 100%);
}

.admin-main,
.privacy-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.admin-panel,
.privacy-panel {
  border: 1px solid rgba(23, 59, 72, 0.13);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel {
  max-width: 480px;
  padding: 30px;
}

.login-panel p {
  color: var(--muted);
}

.admin-dashboard {
  display: grid;
  gap: 20px;
}

.admin-toolbar,
.admin-stats,
.lead-detail {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(23, 59, 72, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-toolbar {
  grid-template-columns: 1.35fr 0.7fr 0.7fr 0.7fr auto;
  align-items: end;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-box {
  border-left: 5px solid var(--brand);
  padding: 6px 12px;
}

.stat-box strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 59, 72, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.leads-table th,
.leads-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(23, 59, 72, 0.10);
  text-align: left;
  vertical-align: top;
}

.leads-table th {
  color: #24474e;
  background: #f4fbf7;
  font-size: 0.9rem;
}

.leads-table tr:hover td {
  background: #fff8ed;
}

.status-pill {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 9px;
  background: #edf9f2;
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 900;
}

.privacy-panel {
  padding: 32px;
}

.privacy-copy {
  max-width: 860px;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }

  .hero-grid,
  .form-panel,
  .process-wrap,
  .contact-band .section-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    max-width: 650px;
    margin: 0 auto;
  }

  .form-intro {
    position: static;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-sub {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions,
  .form-actions,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .cards-grid,
  .form-grid,
  .admin-stats,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .form-section {
    margin-top: -24px;
  }

  .form-panel,
  .privacy-panel,
  .login-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
