:root {
  --purple: #2a003f;
  --purple-soft: #4d245f;
  --orange: #f7a20e;
  --rose: #b7919b;
  --ink: #3a3a3a;
  --muted: #666666;
  --paper: #ffffff;
  --canvas: #f6f3f0;
  --line: #e6dfda;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/elspeth-satinweave.png");
  opacity: 0.32;
}

a {
  color: #1e73be;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #000000;
}

.site-header {
  background: transparent;
}

.logo {
  display: none;
}

.logo img {
  width: 289px;
  max-width: 76vw;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 100%;
  border: 0;
  background: var(--purple);
  color: #ffffff;
  font: 600 18px/1 "Raleway", Arial, sans-serif;
  padding: 15px;
}

.main-nav {
  background: var(--purple);
}

.main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #ffffff;
  display: block;
  font: 500 18px/1 "Raleway", Arial, sans-serif;
  padding: 18px 16px;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"],
.main-nav .active > a {
  background: var(--orange);
  color: #ffffff;
}

.submenu {
  background: #4f4f4f;
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 270px;
  padding: 0;
  position: absolute;
  top: 100%;
  z-index: 5;
}

.submenu a {
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 18px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.hero {
  min-height: 640px;
  display: grid;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(42, 0, 63, 0.72), rgba(42, 0, 63, 0.2)),
    url("/assets/elspeth-DSCF2412-HDR-1024x683.jpg") center/cover;
  color: #ffffff;
  padding: 84px max(32px, calc((100vw - 1100px) / 2)) 54px;
}

.hero img {
  width: 340px;
  max-width: 78vw;
  margin-bottom: 34px;
}

.hero h1 {
  color: #ffffff;
  font: 400 48px/1.15 "Raleway", Arial, sans-serif;
  margin: 0 0 10px;
  text-shadow: 2px 1px #7f7f7f;
}

.hero h2 {
  color: #ffffff;
  font: 400 56px/1 "Alex Brush", cursive;
  margin: 0;
  text-shadow: 2px 1px #7f7f7f;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
}

.section {
  padding: 58px 42px;
}

.section.tint {
  background: #fbf7f3;
}

.section.purple {
  background: var(--purple);
  color: #ffffff;
}

.section.purple h1,
.section.purple h2,
.section.purple h3 {
  color: #ffffff;
}

.eyebrow {
  color: var(--orange);
  font: 700 13px/1 "Raleway", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--purple);
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 24px;
}

h1 {
  font-size: 70px;
}

h2 {
  font-size: 58px;
}

h3 {
  color: var(--purple);
  font: 500 34px/1.18 "Raleway", Arial, sans-serif;
  margin: 0 0 16px;
}

p {
  margin: 0 0 18px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-cards {
  gap: 8px;
  text-align: center;
}

.service-cards > div {
  background: #b7919b;
  color: #ffffff;
  min-height: 160px;
  padding: 24px 18px 22px;
}

.service-cards > div:first-child {
  background: var(--purple);
}

.service-cards > div:nth-child(2) {
  background: #9f7f8b;
}

.service-cards h3 {
  color: #ffffff;
  font-family: "Alex Brush", cursive;
  font-size: 34px;
  line-height: 0.95;
  margin-bottom: 14px;
}

.service-cards p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 42px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: minmax(320px, 1.06fr) minmax(0, 0.94fr);
}

.two-col img,
.service-gallery img,
.project-card img,
.gallery img,
.portrait {
  display: block;
  width: 100%;
  height: auto;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-gallery img,
.gallery button,
.project-card {
  background: #eee8e3;
}

.pullquote {
  color: var(--purple);
  font-family: "Alex Brush", cursive;
  font-size: 42px;
  line-height: 1.1;
  margin-top: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  color: inherit;
  display: block;
}

.project-card div {
  padding: 20px;
}

.project-card h3 {
  font-size: 25px;
  margin-bottom: 6px;
}

.project-card span {
  color: var(--orange);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.gallery button {
  border: 0;
  cursor: zoom-in;
  padding: 0;
}

.gallery img {
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.testimonial-list {
  display: grid;
  gap: 24px;
}

.testimonial {
  border-left: 4px solid var(--orange);
  padding-left: 22px;
}

.testimonial cite {
  color: var(--purple);
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 36px;
}

.appointment-form {
  display: grid;
  gap: 14px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  border: 1px solid #cccccc;
  color: #666666;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.appointment-form textarea {
  min-height: 132px;
}

.appointment-form .form-trap {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.button {
  background: #666666;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: 700 14px/1 "Raleway", Arial, sans-serif;
  padding: 14px 18px;
  text-transform: uppercase;
}

.button:hover,
.button:focus {
  background: #3f3f3f;
}

.site-footer {
  background: var(--purple);
  color: #f7f7f7;
}

.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 42px;
}

.site-footer a {
  color: var(--rose);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2 {
  color: #ffffff;
  font: 400 28px/1 "Dosis", Arial, sans-serif;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox img {
  max-height: 86vh;
  max-width: 92vw;
}

.lightbox button {
  position: absolute;
  right: 18px;
  top: 18px;
}

@media (max-width: 850px) {
  .nav-toggle {
    display: block;
  }

  .main-nav > ul {
    display: none;
    flex-direction: column;
    max-width: none;
  }

  .main-nav[data-open="true"] > ul {
    display: flex;
  }

  .main-nav a {
    padding: 15px 18px;
  }

  .submenu {
    display: block;
    min-width: 0;
    position: static;
  }

  .submenu a {
    padding-left: 34px;
  }

  .hero {
    min-height: 520px;
    padding: 40px 26px;
  }

  h1 {
    font-size: 46px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2,
  h2 {
    font-size: 38px;
  }

  h3 {
    font-size: 26px;
  }

  .section {
    padding: 38px 26px;
  }

  .columns,
  .two-col,
  .two-col.reverse,
  .project-grid,
  .gallery,
  .service-gallery,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
