:root {
  --bg: #f6f1e8;
  --bg-strong: #e8dfd2;
  --surface: #fffaf4;
  --surface-strong: #f8f2e9;
  --text: #23211d;
  --muted: #645d54;
  --line: rgba(35, 33, 29, 0.11);
  --accent: #5e6d61;
  --accent-soft: #e3e7df;
  --accent-warm: #8a674f;
  --shadow: 0 18px 42px rgba(35, 33, 29, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf5ee 0%, #f6f1e8 48%, #f2eadf 100%);
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header,
.section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 18px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(99, 88, 75, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff url("./assets/images/logo-imi.png") center/contain no-repeat;
  border: 1px solid rgba(35, 33, 29, 0.08);
  overflow: hidden;
  text-indent: -9999px;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 0.98rem;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.page-nav a.is-active {
  color: var(--text);
  font-weight: 800;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
}

.section {
  padding: 96px 0 0;
}

.subhero {
  padding-top: 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 28px;
  padding-top: 72px;
  align-items: stretch;
}

.hero-copy,
.hero-panel-card,
.planner-card,
.planner-summary,
.info-card,
.pricing-card,
.product-card,
.location-card,
.story-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(99, 88, 75, 0.08);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
  border-radius: 40px;
}

.hero-copy.wide {
  max-width: 900px;
}

.eyebrow,
.panel-label,
.planner-kicker,
.price-label,
.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.story-card h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

.hero-lead,
.section-heading p,
.info-card p,
.pricing-card p,
.product-card p,
.location-card p,
.story-card p,
.contact-card p,
.planner-step p,
.feature-list li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 56ch;
  margin-top: 24px;
  font-size: 1.1rem;
}

.hero-actions,
.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(35, 33, 29, 0.07);
}

.button.tertiary {
  background: rgba(138, 103, 79, 0.12);
  color: var(--accent-warm);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(35, 33, 29, 0.08);
  color: var(--text);
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-image-frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #ddd;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 33, 29, 0.04), rgba(35, 33, 29, 0.42));
}

.hero-image-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  width: min(320px, calc(100% - 40px));
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-panel-card,
.planner-card,
.planner-summary,
.pricing-card,
.story-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-panel-card.muted {
  background: rgba(244, 238, 228, 0.96);
}

.phone-link {
  display: inline-block;
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.phone-link.compact {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.panel-copy {
  margin-top: 16px;
}

.office-mini-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mini-office {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.editorial-band {
  padding-top: 34px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.editorial-image {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.editorial-image img {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-copy {
  max-width: none;
}

.editorial-caption {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

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

.section-heading.compact h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.section-heading p {
  margin-top: 18px;
}

.planner-layout,
.pricing-layout,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  margin-top: 32px;
}

.planner-card {
  background:
    linear-gradient(180deg, rgba(94, 109, 97, 0.97), rgba(71, 83, 74, 0.97)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  color: #f6f1e8;
}

.planner-card .planner-kicker,
.planner-card h3,
.planner-card p,
.planner-card .step-number {
  color: inherit;
}

.planner-steps {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.planner-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.planner-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.planner-step h3,
.info-card h3,
.pricing-card h3,
.product-card h3,
.location-card h3,
.contact-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list.compact li::before {
  background: var(--accent-warm);
}

.service-grid,
.product-grid,
.location-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

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

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

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

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

.info-card,
.product-card,
.location-card,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.card-image,
.team-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.card-image {
  height: 220px;
}

.detail-image {
  height: 260px;
}

.team-image {
  aspect-ratio: 1 / 1;
}

.pricing-card.accent {
  background: linear-gradient(180deg, rgba(255, 243, 236, 0.92), rgba(255, 247, 238, 0.88));
}

.detail-card {
  display: grid;
  align-content: start;
}

.support-card {
  max-width: 100%;
}

.story-card {
  max-width: 920px;
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(236, 229, 217, 0.95));
}

.contact-card {
  display: grid;
  gap: 8px;
}

.featured-team-grid .contact-card {
  align-content: start;
}

.contact-card a {
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 44px 0 56px;
  color: var(--muted);
}

.wizard-section {
  padding-bottom: 48px;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.wizard-form,
.wizard-summary-card {
  background: var(--surface);
  border: 1px solid rgba(99, 88, 75, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.wizard-form {
  padding: 28px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.progress-pill {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(35, 33, 29, 0.05);
  color: var(--muted);
}

.progress-pill span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 800;
}

.progress-pill.is-current {
  background: rgba(94, 109, 97, 0.12);
  color: var(--text);
}

.progress-pill.is-current span,
.progress-pill.is-complete span {
  background: var(--accent);
  color: #fff;
}

.progress-pill.is-complete {
  background: rgba(94, 109, 97, 0.08);
}

.wizard-group + .wizard-group {
  margin-top: 24px;
}

.wizard-group h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

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

.wizard-options-tight {
  grid-template-columns: 1fr;
}

.choice-card {
  display: block;
  cursor: pointer;
}

.choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-content {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 33, 29, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.choice-content strong {
  font-size: 1.05rem;
}

.choice-content small,
.choice-content em {
  color: var(--muted);
  font-style: normal;
}

.choice-card:hover .choice-content,
.choice-card:focus-within .choice-content,
.choice-card.is-selected .choice-content {
  transform: translateY(-2px);
  border-color: rgba(94, 109, 97, 0.35);
  background: rgba(235, 239, 232, 0.9);
}

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

.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field span {
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(35, 33, 29, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

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

.wizard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.wizard-buttons {
  display: flex;
  gap: 12px;
}

.wizard-message {
  min-height: 1.5em;
  color: var(--accent-warm);
  font-weight: 700;
}

.wizard-summary {
  position: sticky;
  top: 120px;
}

.wizard-summary-card {
  padding: 28px;
}

.wizard-estimate {
  margin-top: 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.wizard-summary-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.wizard-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .planner-layout,
  .pricing-layout,
  .split-section,
  .wizard-layout,
  .editorial-layout,
  .service-grid,
  .product-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .page-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .wizard-progress,
  .wizard-options {
    grid-template-columns: 1fr;
  }

  .wizard-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100vw - 24px, 1180px);
  }

  .hero-copy,
  .hero-panel-card,
  .planner-card,
  .planner-summary,
  .pricing-card,
  .story-card,
  .info-card,
  .product-card,
  .location-card,
  .contact-card {
    padding: 22px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-image-frame {
    min-height: 420px;
  }

  .planner-step {
    grid-template-columns: 1fr;
  }

  .wizard-fields,
  .wizard-controls,
  .wizard-buttons {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }
}
