@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --font-sans: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Manrope", "Segoe UI", Tahoma, sans-serif;
  --paper: #f3f8f7;
  --paper-strong: #e4efec;
  --paper-dark: #c9dcd6;
  --ink: #132026;
  --muted: #5a6971;
  --accent: #1f4e59;
  --accent-soft: #67a89a;
  --line: rgba(19, 32, 38, 0.1);
  --shadow: 0 18px 42px rgba(19, 32, 38, 0.12);
  --shadow-soft: 0 10px 26px rgba(19, 32, 38, 0.08);
  --radius: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(31, 78, 89, 0.09), transparent 22%),
    radial-gradient(circle at 20% 80%, rgba(103, 168, 154, 0.1), transparent 20%),
    linear-gradient(180deg, #e3ecea 0%, #d3dfdc 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  mix-blend-mode: soft-light;
}

body::after {
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(15, 20, 28, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(15, 20, 28, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(25, 52, 93, 0.05) 0 1px, transparent 1px);
  background-size: 180px 180px, 210px 210px, 240px 240px;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-header {
  margin-bottom: 2rem;
  padding: 0.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.site-nav,
.site-footer {
  font-size: 0.95rem;
}

.site-nav {
  display: inline-flex;
  gap: 1.25rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
}

.nav-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-active::after {
  transform: scaleX(1) !important;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 1.75rem;
}

.home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 9rem);
  text-align: center;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 680px;
  animation: rise-in 700ms ease forwards;
}

.home-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.home-sub {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
}

.section-block {
  position: relative;
}

.paper-panel,
.note-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.paper-panel::before,
.note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 55%, rgba(15, 20, 28, 0.06) 0 1px, transparent 1px);
  background-size: 14px 14px, 17px 17px;
  opacity: 0.2;
  pointer-events: none;
}

.paper-panel-large {
  padding: clamp(1.6rem, 3vw, 3rem);
}

.eyebrow,
.note-kicker {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  line-height: 1.65;
}

.contact-card p,
.service-card p,
.process-list p,
.note-card p,
.site-footer,
.quote-card {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #f7faff;
  background: linear-gradient(180deg, #2d6774 0%, #1f4e59 100%);
  box-shadow: 0 14px 24px rgba(31, 78, 89, 0.24);
  border: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(23, 28, 38, 0.1);
}

.section-heading {
  max-width: 50rem;
}

.section-heading-wide {
  max-width: 64rem;
}

.section-intro {
  margin-top: 1rem;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.service-grid-expanded {
  align-items: stretch;
}

.service-card {
  padding: 1.35rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
}

.service-lede {
  color: var(--ink);
}

.service-card p + p {
  margin-top: 0;
}

.trust-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, #eaf4f1 0%, #d8e7e3 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.trust-grid p {
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 20, 28, 0.12);
  color: var(--muted);
}

.services-cta-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1)),
    var(--paper);
}

.services-cta-panel h2 {
  margin-bottom: 1.5rem;
}

.process-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #e9f2ef 0%, #d7e3df 100%);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.process-list article {
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 78, 89, 0.14);
}

.process-list span {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.process-list h3 {
  margin-bottom: 0.75rem;
}

.quote-card,
.contact-card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

blockquote {
  max-width: 21ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.018em;
  line-height: 1.02;
  color: var(--ink);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-intro h2 {
  margin-bottom: 0.7rem;
}

.contact-intro p {
  color: var(--muted);
  max-width: 52rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6677' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(103, 168, 154, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.reply-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.reply-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a9e6e;
  box-shadow: 0 0 0 0 rgba(58, 158, 110, 0.5);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(58, 158, 110, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(58, 158, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 158, 110, 0); }
}

.contact-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -0.2rem;
}

.site-footer {
  margin-top: 1.75rem;
  padding: 0.8rem 0 1rem;
  border-top: 1px solid rgba(31, 78, 89, 0.12);
}

.site-header,
.service-card,
.process-panel,
.quote-card,
.contact-card {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms ease forwards;
}

.service-card:nth-child(1) { animation-delay: 120ms; }
.service-card:nth-child(2) { animation-delay: 160ms; }
.service-card:nth-child(3) { animation-delay: 200ms; }
.service-card:nth-child(4) { animation-delay: 240ms; }
.service-card:nth-child(5) { animation-delay: 280ms; }
.service-card:nth-child(6) { animation-delay: 320ms; }
.service-card:nth-child(7) { animation-delay: 360ms; }
.service-card:nth-child(8) { animation-delay: 400ms; }
.service-card:nth-child(9) { animation-delay: 440ms; }
.service-card:nth-child(10) { animation-delay: 480ms; }

.process-panel { animation-delay: 180ms; }
.quote-card { animation-delay: 230ms; }
.contact-card { animation-delay: 280ms; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .process-list,
  .service-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .paper-panel-large,
  .quote-card,
  .contact-card {
    padding: 1.25rem;
  }

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

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  blockquote {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
