@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

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

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

:root {
  color-scheme: light;
  --paper: #f9f6ef;
  --white: #fffdf8;
  --pine: #25372d;
  --ink: #28352d;
  --muted: #516057;
  --sage: #e7ede2;
  --sage-line: #bdc8b9;
  --rust: #a74a37;
  --rust-dark: #873829;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.55vw, 5rem);
  --section-space: clamp(4rem, 7.3vw, 7.3rem);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, p, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--rust-dark);
  outline-offset: 4px;
}

.container { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.skip-link {
  position: fixed;
  z-index: 15;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  transform: translateY(-150%);
  padding: .6rem 1rem;
  color: var(--pine);
  background: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid #deded2;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  gap: .65rem;
  align-items: center;
  color: var(--pine);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 2.65rem;
  height: auto;
}

.sparkle {
  display: block;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 68% 42%, 100% 50%, 68% 58%, 60% 66%, 50% 100%, 40% 66%, 32% 58%, 0% 50%, 32% 42%, 39% 35%);
}

.brand-wordmark { display: grid; gap: .16rem; }
.brand-name { font: 560 1.55rem/.95 var(--display); letter-spacing: -.05em; }
.brand-service { font-size: .75rem; line-height: 1.2; font-weight: 650; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.9rem);
  font-weight: 600;
  font-size: .93rem;
}

.site-nav > a { text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--rust-dark); text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  padding: .7rem 1.45rem;
  background: var(--rust);
  color: white;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.button:hover { background-color: var(--rust-dark); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--small { min-height: 2.75rem; padding-inline: 1.2rem; font-size: .9rem; }
.header-quote { justify-self: end; }
.menu-toggle { display: none; }

.hero { padding: clamp(3rem, 4.8vw, 4.4rem) 0 clamp(4rem, 6.2vw, 6rem); }
.hero-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(1.9rem, 6vw, 6rem); align-items: center; }
.hero-copy { padding-block: .4rem; }
.hero-category { display: flex; gap: .68rem; align-items: center; color: var(--muted); font-weight: 650; }
.category-line { width: 1.65rem; height: 1px; background: var(--rust); }

.hero h1 {
  margin-block: 1.15rem 1.45rem;
  color: var(--pine);
  font: 510 clamp(3.65rem, 6.8vw, 6.45rem)/.98 var(--display);
  letter-spacing: -.065em;
  text-wrap: nowrap;
}
.hero h1 em { color: var(--rust); font-weight: 440; letter-spacing: -.072em; }
.hero-description { max-width: 28rem; color: var(--muted); font-size: clamp(1rem, 1.36vw, 1.2rem); line-height: 1.57; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.75rem; }
.hero-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.hero-phone:hover { color: var(--rust-dark); text-decoration: underline; }
.phone-mark { font-size: 1.14rem; line-height: 1; color: var(--rust); }

.hero-visual { position: relative; min-width: 0; isolation: isolate; }
.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: -.58rem -.6rem .6rem .65rem;
  border: 1px solid var(--sage-line);
  border-radius: clamp(4.3rem, 10vw, 8.5rem) .7rem .7rem .7rem;
  content: "";
}

.hero-photo {
  aspect-ratio: 1.33;
  overflow: hidden;
  border-radius: clamp(4.3rem, 10vw, 8.5rem) .7rem .7rem .7rem;
  background: #d6c7ac;
}
.hero-photo picture { display: block; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 56%; }
.hero-sparks { position: absolute; inset: auto auto -1.2rem -1.3rem; width: 3.6rem; height: 3.7rem; color: var(--rust); pointer-events: none; }
.hero-sparks .sparkle { position: absolute; width: 70%; bottom: 0; }
.hero-sparks .sparkle + .sparkle { width: 42%; right: 2%; top: 0; bottom: auto; color: #f2e1c2; }

.section-heading h2 {
  color: var(--pine);
  font: 500 clamp(2.55rem, 4.1vw, 4.3rem)/1.04 var(--display);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.section-heading > p { margin-top: .95rem; max-width: 38rem; color: var(--muted); font-size: 1.06rem; }
.services { background: var(--sage); }
.services-heading { text-align: center; margin-inline: auto; }
.services-heading > p { margin-inline: auto; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.3vw, 2.2rem); margin-top: clamp(2rem, 3.9vw, 3.6rem); }
.service-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: .8rem; overflow: hidden; }
.service-photo { overflow: hidden; aspect-ratio: 16 / 10; background: #d3c9b6; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.service-card:focus-within .service-photo img { transform: scale(1.045); }
.service-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 2.75vw, 2rem); }

.service-copy h3,
.process-list h3 {
  color: var(--pine);
  font: 540 clamp(1.36rem, 2vw, 1.76rem)/1.1 var(--display);
  letter-spacing: -.04em;
}

.service-copy p { margin-block: .65rem 1.15rem; color: var(--muted); }
.service-action, .text-link { color: var(--rust-dark); font-weight: 700; text-decoration-thickness: 1px; }
.service-action:hover, .text-link:hover { text-decoration-thickness: 2px; }
.service-action { display: inline-flex; align-items: center; min-height: 2rem; margin-top: auto; }

.process { background: var(--paper); }
.process-layout, .faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(2rem, 7vw, 7.5rem); }
.process .section-heading > .text-link { display: inline-block; margin-top: 1.25rem; }

.process-list { list-style: none; padding: 0; border-block-start: 1px solid #d5dcd2; }
.process-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: clamp(.65rem, 2vw, 1.2rem); align-items: start; padding-block: 1.12rem; border-block-end: 1px solid #d5dcd2; }
.process-list li p { margin-top: .35rem; color: var(--muted); }
.step-number { display: grid; place-items: center; width: 2.42rem; aspect-ratio: 1; margin-top: .06rem; border-radius: 50%; background: var(--sage); color: var(--pine); font: 500 1.19rem/1 var(--display); }

.faq { border-block-start: 1px solid #e0ded2; padding-block: clamp(3.75rem, 6.4vw, 6.5rem); background: var(--white); }
.faq-list { border-top: 1px solid #d5dcd2; }
.faq-list details { border-bottom: 1px solid #d5dcd2; }

.faq-list summary {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  color: var(--pine);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 1.85rem; aspect-ratio: 1; border-radius: 50%; background: var(--sage); color: var(--pine); transition: background-color 220ms ease; }
.faq-icon::before, .faq-icon::after { grid-area: 1 / 1; width: .66rem; height: 1px; background: currentColor; content: ""; }
.faq-icon::after { transform: rotate(90deg); transition: transform 220ms var(--ease-out); }
.faq-list summary:hover .faq-icon { background: #d7e1d1; }
.faq-list details[open] .faq-icon::after { transform: rotate(0); }
.faq-list details p { max-width: 36rem; padding: 0 1.5rem 1.15rem 0; color: var(--muted); }

.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.65rem; }
.footer-contact { display: grid; gap: .3rem; }
.footer-address { color: var(--muted); font-size: .93rem; font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-weight: 650; font-size: .93rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-inner small { justify-self: end; color: var(--muted); }

.form-response {
  width: min(calc(100% - 2 * var(--gutter)), 37rem);
  margin: clamp(3rem, 9vw, 6rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--sage-line);
  border-radius: .8rem;
  background: var(--white);
}
.form-response h1 { color: var(--pine); font: 500 clamp(2.1rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.04em; }
.form-response p { margin-top: 1rem; overflow-wrap: anywhere; }
.form-response a { color: var(--rust-dark); font-weight: 700; }

@media (hover: hover) {
  .service-card:hover .service-photo img { transform: scale(1.045); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 650ms var(--ease-out) both; }
  .hero-visual { animation: arrive 780ms 90ms var(--ease-out) both; }
  .hero-photo img { animation: settle 1050ms 90ms var(--ease-out) both; }
  .hero-sparks { animation: glint 620ms 435ms var(--ease-out) both; }
  [data-reveal][data-visible] { animation: reveal 540ms var(--ease-out) backwards; }
  .service-card:nth-child(2) { animation-delay: 55ms; }
  .service-card:nth-child(3) { animation-delay: 110ms; }
  .faq-list details[open] > p { animation: reveal 220ms var(--ease-out) both; }
}

@keyframes arrive { from { opacity: 0; transform: translateY(.75rem); } }
@keyframes reveal { from { opacity: .52; transform: translateY(.55rem); } }
@keyframes settle { from { transform: scale(1.055); } }
@keyframes glint { from { opacity: .12; transform: scale(.5) rotate(-14deg); } }
@keyframes menu-arrive { from { opacity: .3; transform: translateY(-.35rem); } }

@media (max-width: 970px) {
  .hero-layout { gap: clamp(1.35rem, 4vw, 3rem); }
  .hero h1 { font-size: clamp(3.3rem, 7.15vw, 5rem); }
  .hero-photo { aspect-ratio: 1.1; }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 5rem; }
  .header-inner { min-height: 4.4rem; grid-template-columns: 1fr auto auto; gap: 0 .65rem; }
  .site-header:not([data-menu-ready]) { position: relative; }
  .brand-mark { width: 2.45rem; }
  .brand-name { font-size: 1.4rem; }
  .brand-service { font-size: .7rem; }
  .header-quote { grid-area: 1 / 2; }
  .site-nav { grid-area: 2 / 1 / 3 / -1; justify-content: center; padding-block: .5rem .9rem; }
  .site-header[data-menu-ready] .site-nav {
    display: none;
    grid-area: auto;
    position: absolute;
    inset: calc(100% + .5rem) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .65rem;
    border: 1px solid #d5dcd2;
    border-radius: .65rem;
    background: var(--white);
    box-shadow: 0 12px 25px #25372d17;
  }
  .site-header[data-menu-ready] .site-nav[data-open] { display: flex; }
  .site-header[data-menu-ready] .site-nav > a { display: flex; align-items: center; min-height: 2.75rem; border-radius: .35rem; padding: .45rem .65rem; }
  .site-header[data-menu-ready] .site-nav > a:hover { background-color: var(--sage); }
  .menu-toggle:not([hidden]) {
    grid-area: 1 / 3;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .32rem;
    min-height: 2.75rem;
    border: 1px solid #c7d0c4;
    border-radius: 2rem;
    padding-inline: .65rem;
    background: transparent;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
  }
  .menu-icon { display: grid; gap: 3px; }
  .menu-icon::before, .menu-icon::after { content: ""; width: .7rem; height: 1px; background: currentColor; transition: transform 220ms var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(2px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-2px) rotate(-45deg); }

  .hero { padding-top: 2.9rem; padding-bottom: 4.45rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 2.1rem; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(3.45rem, 10.3vw, 5.3rem); margin-block: .95rem 1.05rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-photo { aspect-ratio: 1.36; }
  .hero-sparks { bottom: -1.1rem; left: -.7rem; width: 2.9rem; height: 3rem; }

  .process-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: auto minmax(0, 1fr); }
  .footer-contact { justify-self: end; }
  .footer-inner small { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  .site-header[data-menu-ready] .site-nav[data-open] { animation: menu-arrive 180ms var(--ease-out) both; }
}

@media (max-width: 660px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-photo { aspect-ratio: 1.75; }
}

@media (max-width: 365px) {
  .header-inner { column-gap: .37rem; }
  .header-quote { padding-inline: .67rem; }
  .brand { gap: .35rem; }
  .brand-mark { width: 1.9rem; }
  .hero h1 { font-size: clamp(2.6rem, 14.5vw, 3.45rem); }
  .footer-links { gap: .15rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
