:root {
  --ink: #172126;
  --muted: #68747a;
  --line: #dfe5e2;
  --surface: #ffffff;
  --surface-soft: #f7f5ef;
  --surface-cool: #eef3f1;
  --navy: #142638;
  --navy-2: #20384b;
  --gold: #b28a45;
  --gold-soft: #efe1c4;
  --sage: #5f786d;
  --error: #9b2c2c;
  --success: #32684f;
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

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

main {
  min-height: 60vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

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

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

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.site-nav.open {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--surface-cool);
  color: var(--ink);
}

.nav-toggle {
  display: grid;
  gap: 4px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 54px 0 38px;
}

.hero-copy {
  max-width: 720px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-subtitle,
.page-hero p,
.section-heading p,
.cta-section p,
.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(20, 38, 56, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.button.full {
  width: 100%;
}

.hero-media {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-cool);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.statement-band {
  margin-top: 28px;
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.statement-band p {
  color: var(--gold);
  font-weight: 800;
}

.statement-band h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.card-grid,
.service-grid,
.pricing-grid,
.area-grid,
.value-grid {
  display: grid;
  gap: 18px;
}

.feature-card,
.service-card,
.pricing-card,
.contact-form,
.contact-note,
.legal-page .disclaimer,
.faq-list details {
  border: 1px solid rgba(223, 229, 226, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 33, 38, 0.06);
}

.feature-card,
.service-card,
.pricing-card {
  padding: 24px;
}

.feature-card p,
.service-card p,
.pricing-card li,
.service-card li,
.legal-page p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "✓";
  font-weight: 900;
}

.text-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.page-hero {
  padding: 62px 0 28px;
}

.page-hero h1 {
  max-width: 930px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
}

.service-grid {
  margin: 20px 0 58px;
}

.pricing-grid {
  margin: 20px 0 22px;
}

.pricing-card.featured {
  border-color: rgba(178, 138, 69, 0.55);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 55%);
}

.plan-badge {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6d4d18;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.price {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
}

.pricing-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.area-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 58px;
}

.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 58px;
}

.area-grid span,
.value-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  color: var(--navy);
  font-weight: 800;
}

.about-copy {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin-bottom: 42px;
}

.cta-section {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 46px;
  margin-bottom: 64px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 28px;
}

.cta-section .eyebrow,
.cta-section p {
  color: #d4dee2;
}

.cta-section .button.primary {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.faq-section {
  margin-top: 56px;
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 28px;
  padding: 62px 0 72px;
}

.contact-intro {
  max-width: 590px;
}

.contact-note {
  margin-top: 26px;
  padding: 18px;
}

.contact-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form {
  padding: 22px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(178, 138, 69, 0.24);
  border-color: var(--gold);
}

.form-message {
  margin: 18px 0 0;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
}

.form-message.success {
  background: #e9f4ee;
  color: var(--success);
}

.form-message.error,
.chat-error {
  background: #faeeee;
  color: var(--error);
}

.legal-page {
  max-width: 860px;
  padding: 62px 0 82px;
}

.legal-page h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.legal-page .disclaimer {
  padding: 16px;
  color: var(--navy);
  font-weight: 800;
}

.site-footer {
  margin-top: 60px;
  background: #111c22;
  color: #f5f2ea;
  padding: 42px 0 24px;
}

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

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand .brand-mark {
  background: var(--gold);
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer small,
.footer-links a {
  color: #c7d0d2;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.company-legal {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  color: #c7d0d2;
}

.company-legal p {
  margin: 0;
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}

.chat-button {
  min-width: 64px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #111c22;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 82px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-widget.open .chat-panel,
.chat-panel.is-open {
  display: grid;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 14px;
}

.chat-header span {
  display: block;
  color: #d4dee2;
  font-size: 0.8rem;
}

.chat-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  overflow-y: auto;
  padding: 14px;
}

.chat-message {
  max-width: 88%;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.chat-message.assistant {
  justify-self: start;
  background: var(--surface-cool);
}

.chat-message.user {
  justify-self: end;
  background: var(--navy-2);
  color: #fff;
}

.chat-error {
  margin: 0 14px 10px;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.86rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.chat-form button {
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}

@media (min-width: 720px) {
  .card-grid.three,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-section {
    grid-template-columns: 1fr auto;
    padding: 34px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    min-height: 680px;
    padding-top: 42px;
  }

  .hero-media,
  .hero-media img {
    min-height: 520px;
  }

  .card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  h1 {
    font-size: 2.6rem;
  }

  .chat-panel {
    right: 10px;
    bottom: 76px;
    width: calc(100vw - 20px);
  }
}
