@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/archivo-black-400.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: block;
  src: url("../assets/fonts/oswald-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("../assets/fonts/figtree-variable.woff2") format("woff2");
}

:root {
  --navy: #0c1f3d;
  --navy-mid: #1a3a6b;
  --cobalt: #3d6fa8;
  --sky: #6ba3d4;
  --gold: #f5b512;
  --gold-deep: #d9920a;
  --ink: #0c1f3d;
  --muted: #4a5d78;
  --paper: #eef3f9;
  --white: #ffffff;
  --steel: #d5e0ec;
  --max-width: 1180px;
  --demo-banner-height: 38px;
  --site-header-height: 72px;
  --font-hero: "Archivo Black", sans-serif;
  --font-display: "Oswald", sans-serif;
  --font-body: "Figtree", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--demo-banner-height) + var(--site-header-height));
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.demo-banner {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--demo-banner-height);
  padding: 0 1rem;
  color: var(--navy);
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 19;
  top: var(--demo-banner-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--site-header-height);
  padding: 0.85rem clamp(1rem, 2.5vw, 2rem);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(12, 31, 61, 0.1);
  background: color-mix(in srgb, var(--white) 94%, transparent);
}

.site-header__brand {
  --brand-mark-size: clamp(1.15rem, 1.8vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: calc(var(--brand-mark-size) * 0.75);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  flex-shrink: 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.site-header__nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header__nav a:not(.btn):hover,
.site-header__nav a:not(.btn):focus-visible {
  color: var(--cobalt);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  height: calc(100svh - var(--demo-banner-height) - var(--site-header-height));
  min-height: calc(100svh - var(--demo-banner-height) - var(--site-header-height));
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 80% at 72% 58%, rgba(61, 111, 168, 0.5), transparent 58%),
    radial-gradient(ellipse 45% 40% at 68% 22%, rgba(245, 181, 18, 0.2), transparent 52%),
    radial-gradient(ellipse 50% 45% at 8% 85%, rgba(26, 58, 107, 0.85), transparent 48%),
    linear-gradient(145deg, #071628 0%, #0c1f3d 42%, #163a6e 100%);
  animation: atmosphere-shift 14s ease-in-out infinite alternate;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -22deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.018) 28px,
      rgba(255, 255, 255, 0.018) 29px
    );
  pointer-events: none;
}

@keyframes atmosphere-shift {
  from {
    filter: hue-rotate(0deg) brightness(1);
  }
  to {
    filter: hue-rotate(8deg) brightness(1.06);
  }
}

.hero__inner {
  position: absolute;
  /* Midpoint of the viewport, independent of the mascot image */
  top: calc(50svh - var(--demo-banner-height) - var(--site-header-height));
  left: max(3vw, calc((100vw - var(--max-width)) / 2));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(34rem, 42vw);
  margin: 0;
  padding: 1rem;
  text-align: center;
  transform: translateY(-50%);
}

.hero__brand {
  margin: 0;
  max-width: none;
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 28px rgba(7, 22, 40, 0.55);
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand-line {
  display: block;
  white-space: nowrap;
}

.hero__brand-line:nth-child(2) {
  color: var(--gold);
  letter-spacing: 0.06em;
}

.hero__tagline {
  margin: 0.75rem 0 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__lede {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero .button-row {
  margin-top: 1.25rem;
  justify-content: center;
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__mascot {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: 4vh;
  overflow: visible;
  pointer-events: none;
  animation: mascot-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero__mascot img {
  width: min(100%, 740px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.4));
  animation: mascot-float 5.5s ease-in-out 1.2s infinite;
}

@keyframes mascot-enter {
  from {
    opacity: 0;
    transform: translateY(2.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.button-row {
  margin-top: 2rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.section--quote .eyebrow {
  color: var(--gold);
}

.button-row,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn__icon {
  flex-shrink: 0;
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  background-color: currentColor;
  -webkit-mask: url("/examples/handyman/assets/rotary-phone.png") center / contain no-repeat;
  mask: url("/examples/handyman/assets/rotary-phone.png") center / contain no-repeat;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-deep);
  color: var(--white);
}

.btn--small {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--gold);
  background: rgba(245, 181, 18, 0.12);
  color: var(--gold);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__inner {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.section__title-line {
  white-space: nowrap;
}

.section__lede {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

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

.service-list li:last-child {
  grid-column: 1 / -1;
  max-width: 34rem;
}

.service-list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.service-list p,
.services-more,
.about-copy p,
.area-copy p {
  margin: 0;
  color: var(--muted);
}

.services-more {
  max-width: 48rem;
  margin-top: 2.25rem;
  font-weight: 600;
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(61, 111, 168, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #132a4f 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.about-photo {
  position: relative;
  margin: 0;
}

.about-photo .eyebrow {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 0;
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(245, 181, 18, 0.28);
}

.section--dark .about-copy p,
.section--dark .check-list {
  color: rgba(255, 255, 255, 0.78);
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.about-copy h2 {
  margin-bottom: 0.35rem;
}

.about-copy .check-list {
  margin-top: 0.5rem;
}

.check-list,
.areas {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.areas li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.55rem 0;
  font-weight: 600;
}

.check-list li::before,
.areas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.section--reviews {
  background: var(--white);
}

.section--reviews h2 {
  max-width: none;
}

.section--reviews .section__lede {
  max-width: none;
  white-space: nowrap;
}

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

.review-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  margin: 0;
  padding: 2rem;
  background: var(--paper);
  border-left: 4px solid var(--gold);
}

.review-grid blockquote p {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.review-grid blockquote footer {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section--muted {
  background:
    linear-gradient(180deg, var(--steel) 0%, #c8d6e6 100%);
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "map copy";
  gap: 2rem;
  align-items: center;
}

.area-map {
  grid-area: map;
  display: grid;
  gap: 0.75rem;
}

.area-map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  background: var(--paper);
}

.area-map a {
  font-weight: 700;
  text-decoration: none;
}

.area-map a:hover,
.area-map a:focus-visible {
  color: var(--cobalt);
}

.area-copy {
  grid-area: copy;
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.area-copy .eyebrow {
  margin: 0;
}

.area-copy h2 {
  margin-bottom: 0.35rem;
}

.area-copy .areas {
  margin-top: 0.4rem;
}

.areas {
  margin-top: 1.5rem;
}

.section--quote {
  color: var(--white);
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(245, 181, 18, 0.15), transparent 50%),
    var(--navy);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.section--quote p:not(.eyebrow, .back-link, .quote-form__success) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-actions > :first-child {
  grid-column: 1 / -1;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem;
  color: var(--ink);
  background: var(--white);
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
}

.quote-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b8c8da;
  border-radius: 0;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form__wide {
  grid-column: 1 / -1;
}

.quote-form .btn {
  border: 0;
}

.quote-form__success {
  padding: 0.8rem;
  margin: 0;
  color: var(--navy);
  background: var(--steel);
  font-weight: 600;
}

.back-link {
  width: min(100%, var(--max-width));
  margin: 6rem auto 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.back-link a {
  color: var(--white);
  text-decoration: none;
}

.back-link a:hover,
.back-link a:focus-visible {
  color: var(--gold);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  padding: 2.5rem max(5vw, calc((100vw - var(--max-width)) / 2));
  background: var(--white);
  border-top: 1px solid rgba(12, 31, 61, 0.12);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer > :nth-child(2) {
  text-align: center;
}

.site-footer > :last-child {
  text-align: right;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

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

.demo-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 34rem);
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(12, 31, 61, 0.35);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.demo-toast__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hero__atmosphere,
  .hero__brand,
  .hero__tagline,
  .hero__lede,
  .hero .button-row,
  .hero__mascot,
  .hero__mascot img {
    animation: none;
  }
}

@media (max-width: 900px) {
  :root {
    --site-header-height: 52px;
  }

  .site-header {
    gap: 0.55rem;
    width: 100%;
    min-height: var(--site-header-height);
    height: var(--site-header-height);
    padding: 0 0.75rem;
    overflow: hidden;
  }

  .site-header__brand {
    --brand-mark-size: 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.4rem;
  }

  .site-header__brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header__nav {
    flex-shrink: 0;
  }

  .site-header__nav a:not(.btn) {
    display: none;
  }

  .site-header__nav .btn--small {
    min-height: 32px;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: calc(100dvh - var(--demo-banner-height) - var(--site-header-height));
    min-height: calc(100dvh - var(--demo-banner-height) - var(--site-header-height));
    max-height: calc(100dvh - var(--demo-banner-height) - var(--site-header-height));
    min-width: 0;
  }

  .hero__mascot {
    position: absolute;
    inset: 0;
    z-index: 1;
    grid-column: auto;
    grid-row: auto;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    animation: none;
  }

  .hero__mascot img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: top center;
    animation: none;
  }

  .hero__brand,
  .hero__tagline,
  .hero__lede,
  .hero .button-row {
    animation: none;
  }

  .hero__inner {
    position: absolute;
    top: 48%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 1.25rem 1rem 1rem;
    transform: none;
    justify-content: flex-end;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(7, 22, 40, 0.45) 28%,
      rgba(7, 22, 40, 0.88) 72%,
      rgba(7, 22, 40, 0.96) 100%
    );
  }

  .hero__brand {
    text-shadow: 0 2px 24px rgba(7, 22, 40, 0.75);
    font-size: clamp(1.85rem, 9.5vw, 2.85rem);
  }

  .hero__brand-line {
    max-width: 100%;
  }

  .hero__tagline {
    margin-top: 0.55rem;
    text-shadow: 0 1px 16px rgba(7, 22, 40, 0.65);
  }

  .hero__lede {
    margin-top: 0.55rem;
    text-shadow: 0 1px 16px rgba(7, 22, 40, 0.65);
    font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  }

  .hero .button-row {
    margin-top: 1rem;
    width: 100%;
    max-width: 22rem;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .hero .button-row .btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .section h2 {
    max-width: none;
    font-size: clamp(1.65rem, 7.2vw, 2.7rem);
  }

  .section__title-line {
    white-space: nowrap;
  }

  #reviews-heading,
  #area-heading {
    font-size: clamp(1.2rem, 5.4vw, 2.35rem);
    letter-spacing: -0.03em;
  }

  .service-list,
  .review-grid,
  .about-layout,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .area-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "map";
    gap: 2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .site-footer > :nth-child(2),
  .site-footer > :last-child {
    text-align: center;
  }

  .section--reviews .section__lede {
    white-space: normal;
  }

  .service-list li:last-child {
    max-width: none;
  }

  .about-photo .eyebrow {
    position: static;
    margin-bottom: 1.25rem;
  }

  .about-photo img {
    height: auto;
    aspect-ratio: 809 / 754;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    top: 45%;
    padding-inline: 0.85rem;
  }

  .hero__brand {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
  }

  .hero__tagline {
    font-size: clamp(1rem, 4.6vw, 1.25rem);
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .quote-form label,
  .quote-form__wide {
    grid-column: 1;
  }
}
