:root {
  --bg: #f8f6f1;
  --paper: #fffefb;
  --text: #1c2736;
  --text-muted: #4d5d72;
  --primary: #1849a9;
  --primary-strong: #113780;
  --accent: #c48a3a;
  --border: #ddd5c9;
  --danger: #b42318;
  --success: #066844;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./assets/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: radial-gradient(circle at 12% 0%, #ece8dc 0%, var(--bg) 36%);
}

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

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 4.4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f3efe6 0%, #faf8f3 100%);
  border-block: 1px solid #e3ddd1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(248, 246, 241, 0.88);
  border-bottom: 1px solid #e3ddd1;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.brand span {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: inline-flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 700;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-grid,
.contact-grid {
  display: grid;
  gap: 1.9rem;
}

.hero-grid {
  position: relative;
}

.hero-glow {
  position: absolute;
  right: -0.4rem;
  top: -1.4rem;
  width: 270px;
  height: 270px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(196, 138, 58, 0.2) 0%, rgba(24, 73, 169, 0.04) 62%, transparent 78%);
  animation: glowPulse 4.5s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  max-width: 18ch;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(12px);
  animation: contentReveal 0.65s ease forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.05s;
}

.hero-copy h1 {
  animation-delay: 0.14s;
}

.hero-copy .lead {
  animation-delay: 0.22s;
}

.hero-copy .tagline {
  animation-delay: 0.3s;
}

.hero-copy .hero-actions {
  animation-delay: 0.38s;
}

.eyebrow {
  margin: 0;
  display: inline-block;
  color: #0f3b8e;
  background: #dfe7f9;
  border: 1px solid #c9d6f2;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.73rem;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 56ch;
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  color: #2d3340;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  padding: 0.74rem 1.08rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

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

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 9px 18px rgba(17, 55, 128, 0.26);
}

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

.btn-secondary {
  background: var(--paper);
  color: var(--text);
  border-color: #d4c9b8;
}

.hero-card,
.card,
.contact-form,
.mini-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 11px 24px rgba(34, 39, 54, 0.06);
}

.hero-card {
  opacity: 0;
  transform: translateY(14px);
  animation: contentReveal 0.7s ease forwards;
  animation-delay: 0.45s;
}

.hero-card,
.card,
.contact-form {
  padding: 0.95rem 1rem 1rem;
}

.hero-card h2,
.card h3,
h2 {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.service-card h3 {
  margin-bottom: 0;
}

.service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0;
}

.service-toggle-indicator {
  display: none;
  color: var(--primary);
  font-size: 1.22rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.service-content {
  margin-top: 0.45rem;
}

.hero-card ul,
.card ul,
.compact-list,
.contact-highlights {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.section-intro {
  margin: 0.25rem 0 1rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.cards,
.who-for-grid {
  display: grid;
  gap: 0.85rem;
}

.pricing-grid {
  display: grid;
  gap: 0.85rem;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 11px 24px rgba(34, 39, 54, 0.06);
}

.price-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.price-value {
  margin: 0.45rem 0 0.2rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  color: #1c3f86;
}

.price-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-fit {
  margin: 0.38rem 0 0;
  color: #334966;
  font-size: 0.84rem;
  font-weight: 700;
}

.price-cta {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.price-cta:hover {
  color: var(--primary-strong);
}

.card {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: contentReveal 0.62s ease forwards;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(35, 41, 58, 0.09);
}

.cards .card:nth-child(1) {
  animation-delay: 0.2s;
}

.cards .card:nth-child(2) {
  animation-delay: 0.28s;
}

.cards .card:nth-child(3) {
  animation-delay: 0.36s;
}

.cards .card:nth-child(4) {
  animation-delay: 0.44s;
}

.who-for {
  padding-top: 1.8rem;
}

.mini-card {
  padding: 0.78rem 0.88rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: #cdb79a;
  box-shadow: 0 15px 26px rgba(35, 41, 58, 0.08);
}

.mini-card h3 {
  margin: 0 0 0.26rem;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  color: var(--text-muted);
}

.trust-strip-section {
  padding: 1.4rem 0;
}

.trust-strip {
  background: linear-gradient(135deg, #ede5d7 0%, #e8edf9 100%);
  border: 1px solid #d4ccbf;
  border-radius: 0.95rem;
  padding: 0.7rem 0.9rem;
  display: grid;
  gap: 0.28rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.trust-strip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(35, 41, 58, 0.08);
}

.trust-strip p {
  margin: 0;
  color: #203460;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  opacity: 0;
  transform: translateY(12px);
  animation: contentReveal 0.64s ease forwards;
  animation-delay: 0.2s;
}

.contact-copy {
  align-self: start;
}

.contact-copy > * {
  margin-bottom: 0.2rem;
}

.contact-highlights {
  margin: 0.2rem 0 0.8rem;
}

.contact-direct {
  margin: 0;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.required {
  color: var(--accent);
}

.form-row {
  display: grid;
  gap: 0.7rem;
}

.form-field {
  display: grid;
  gap: 0.25rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.93rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #d6ccbd;
  border-radius: 0.76rem;
  padding: 0.68rem 0.78rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #73829a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #658fdb;
  box-shadow: 0 0 0 3px rgba(101, 143, 219, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6.2rem;
}

.field-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.h-captcha {
  margin-top: 0.2rem;
}

.captcha-fallback {
  margin: 0.3rem 0 0;
  color: #8a5a00;
  font-size: 0.86rem;
}

.captcha-email-fallback {
  display: inline-block;
  margin: 0.1rem 0 0.25rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.error {
  min-height: 1rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.form-status {
  margin: 0.2rem 0 0;
  font-weight: 700;
  min-height: 1.25rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid #ddd5c9;
  padding: 1.2rem 0 1.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(2px);
  z-index: 120;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(460px, 100%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.2);
  padding: 1.05rem 1.1rem 1rem;
}

.modal-dialog h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.modal-dialog p {
  margin: 0 0 0.95rem;
  color: var(--text-muted);
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
  }

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

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

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

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 3.2rem 0;
  }

  .who-for {
    padding-top: 1.4rem;
  }

  .trust-strip-section {
    padding: 1.1rem 0;
  }

  .contact-form {
    padding: 0.85rem;
  }

  .service-toggle {
    cursor: pointer;
  }

  .service-toggle-indicator {
    display: inline-block;
  }

  .service-card .service-content {
    display: none;
  }

  .service-card.is-open .service-content {
    display: block;
  }

  .service-card.is-open .service-toggle-indicator {
    transform: rotate(45deg);
  }
}
