@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ivory: #f7f1e7;
  --sand: #d8c7ae;
  --teal: #159cb1;
  --teal-dark: #087e92;
  --navy: #122b3a;
  --walnut: #8a6547;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 241, 231, 0.98);
  display: flex;
  height: 104px;
  justify-content: space-between;
  padding: 10px clamp(24px, 4.5vw, 72px);
  position: relative;
  z-index: 10;
}

.brand img {
  display: block;
  height: 82px;
  mix-blend-mode: multiply;
  object-fit: contain;
  object-position: left center;
  width: 255px;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(22px, 2.8vw, 42px);
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  position: relative;
}

.desktop-nav a::after {
  background: var(--teal);
  bottom: 3px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

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

.mobile-nav {
  display: none;
}

.hero {
  min-height: calc(100vh - 104px);
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-wash {
  inset: 0;
  position: absolute;
}

.hero-image {
  animation: settle 1.2s ease-out both;
  background-image: url("assets/hero-home.jpg");
  background-position: center;
  background-size: cover;
}

.hero-wash {
  background: linear-gradient(
    90deg,
    rgba(247, 241, 231, 0.98) 0%,
    rgba(247, 241, 231, 0.94) 31%,
    rgba(247, 241, 231, 0.63) 48%,
    rgba(247, 241, 231, 0) 68%
  );
}

.hero-content {
  animation: rise 600ms ease-out both;
  max-width: 650px;
  padding: clamp(78px, 10vh, 118px) 0 210px clamp(28px, 5vw, 76px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--walnut);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
}

h1 {
  font-size: clamp(54px, 5vw, 76px);
  line-height: 0.98;
}

.hero-copy {
  font-size: 19px;
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 530px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: white;
}

.button.primary:hover {
  background: var(--navy);
}

.button.secondary {
  border-color: var(--walnut);
  color: var(--walnut);
}

.button.secondary:hover {
  background: rgba(216, 199, 174, 0.45);
}

.service-ribbon {
  align-items: stretch;
  background: rgba(247, 241, 231, 0.96);
  bottom: 0;
  box-shadow: 0 18px 44px rgba(18, 43, 58, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: clamp(28px, 5vw, 76px);
  max-width: 940px;
  position: absolute;
  width: calc(100% - clamp(56px, 10vw, 152px));
  z-index: 3;
}

.service-ribbon span {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 126px;
  padding: 24px;
  text-align: center;
}

.service-ribbon span + span {
  border-left: 1px solid var(--sand);
}

.section {
  padding: clamp(82px, 10vw, 144px) clamp(28px, 7vw, 104px);
}

.intro {
  background: var(--ivory);
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.75fr);
}

h2 {
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.05;
}

.intro-copy {
  font-size: 17px;
  line-height: 1.8;
  padding-top: 34px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.text-link {
  border-bottom: 1px solid var(--teal);
  color: var(--teal-dark);
  display: inline-block;
  font-weight: 700;
  margin-top: 16px;
  padding-bottom: 7px;
}

.services {
  background: var(--navy);
  color: var(--white);
}

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

.section-heading .eyebrow {
  color: #8dd1dc;
}

.section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 28px;
}

.service-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
}

.service-grid article {
  border-top: 1px solid rgba(216, 199, 174, 0.38);
  min-height: 360px;
  padding: 34px clamp(18px, 2.4vw, 38px) 28px 0;
}

.service-grid article + article {
  border-left: 1px solid rgba(216, 199, 174, 0.25);
  padding-left: clamp(18px, 2.4vw, 38px);
}

.service-number {
  color: #8dd1dc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.service-grid h3,
.process h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin: 68px 0 18px;
}

.service-grid p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  min-height: 90px;
}

.service-grid a {
  color: #8dd1dc;
  font-size: 14px;
  font-weight: 700;
}

.work {
  align-items: stretch;
  background: #efe5d6;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  padding-bottom: 0;
  padding-top: 0;
}

.work-photo {
  background-image: url("assets/hero-home.jpg");
  background-position: 65% center;
  background-size: cover;
  min-height: 680px;
}

.work-content {
  align-self: center;
  padding: 80px clamp(36px, 6vw, 96px);
}

.work-content p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.8;
  margin-top: 30px;
}

.work-points {
  border-top: 1px solid var(--sand);
  display: grid;
  gap: 0;
  margin-top: 38px;
}

.work-points span {
  border-bottom: 1px solid var(--sand);
  font-weight: 700;
  padding: 17px 0;
}

.process {
  background: var(--ivory);
}

.process-heading {
  max-width: 740px;
}

.process-heading .eyebrow {
  color: var(--walnut);
}

.process ol {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 74px 0 0;
  padding: 0;
}

.process li {
  border-top: 2px solid var(--teal);
  padding: 24px 14px 0 0;
}

.process li > span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.process h3 {
  margin: 35px 0 15px;
}

.process li p {
  color: #49606b;
  line-height: 1.7;
}

.contact {
  background: var(--navy);
  color: white;
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  grid-template-columns: minmax(0, 0.85fr) minmax(400px, 0.7fr);
}

.contact-copy .eyebrow {
  color: #8dd1dc;
}

.contact-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.8;
  max-width: 570px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
}

.contact-details a {
  font-size: 18px;
  font-weight: 700;
}

.contact-details small {
  color: #8dd1dc;
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

form {
  background: var(--ivory);
  color: var(--navy);
  padding: clamp(28px, 4vw, 52px);
}

form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

input,
select,
textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b7a78f;
  border-radius: 0;
  color: var(--navy);
  display: block;
  margin-top: 9px;
  outline: none;
  padding: 10px 2px;
  width: 100%;
}

textarea {
  border: 1px solid #b7a78f;
  margin-top: 12px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 2px 0 var(--teal);
}

form .button {
  border: 0;
  width: 100%;
}

.form-note {
  color: #68777f;
  font-size: 11px;
  margin: 12px 0 0;
  text-align: center;
}

footer {
  align-items: center;
  background: #0b202c;
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 22px;
  grid-template-columns: 220px 1fr auto;
  padding: 42px clamp(28px, 7vw, 104px);
}

.footer-brand img {
  background: var(--ivory);
  height: 76px;
  object-fit: contain;
  padding: 5px;
  width: 210px;
}

footer p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 420px;
}

footer > div {
  display: grid;
  font-size: 13px;
  gap: 8px;
  text-align: right;
}

footer small {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  grid-column: 1 / -1;
  padding-top: 22px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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

@keyframes settle {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: relative;
  }

  .mobile-nav summary {
    cursor: pointer;
    display: grid;
    gap: 5px;
    list-style: none;
    padding: 12px;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary span {
    background: var(--navy);
    display: block;
    height: 2px;
    width: 27px;
  }

  .mobile-nav nav {
    background: var(--ivory);
    box-shadow: 0 18px 40px rgba(18, 43, 58, 0.15);
    display: grid;
    min-width: 220px;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 48px;
  }

  .mobile-nav nav a {
    border-bottom: 1px solid var(--sand);
    font-weight: 700;
    padding: 13px;
  }

  .hero-wash {
    background: linear-gradient(
      90deg,
      rgba(247, 241, 231, 0.98) 0%,
      rgba(247, 241, 231, 0.86) 54%,
      rgba(247, 241, 231, 0.18) 100%
    );
  }

  .hero-content {
    max-width: 600px;
  }

  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: 0;
    padding-bottom: 46px;
  }

  .service-grid article + article {
    border-left: 0;
    padding-left: 0;
  }

  .service-grid h3 {
    margin-top: 34px;
  }

  .service-grid p {
    min-height: 0;
  }

  .process ol {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 86px;
  }

  .brand img {
    height: 66px;
    width: 190px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-image {
    background-position: 64% center;
  }

  .hero-wash {
    background: linear-gradient(
      180deg,
      rgba(247, 241, 231, 0.99) 0%,
      rgba(247, 241, 231, 0.92) 50%,
      rgba(247, 241, 231, 0.25) 78%
    );
  }

  .hero-content {
    padding: 66px 26px 250px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-ribbon {
    grid-template-columns: 1fr;
    left: 22px;
    width: calc(100% - 44px);
  }

  .service-ribbon span {
    min-height: 55px;
    padding: 12px;
  }

  .service-ribbon span + span {
    border-left: 0;
    border-top: 1px solid var(--sand);
  }

  .intro {
    gap: 30px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .work {
    grid-template-columns: 1fr;
  }

  .work-photo {
    min-height: 400px;
  }

  .work-content {
    padding: 72px 28px;
  }

  .process ol {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

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

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer > div {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
