:root {
  --green: #063d2b;
  --green-dark: #012f20;
  --lime: #79c92a;
  --background: #f6faf4;
  --muted: #63766c;
  --border: #e2eae5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #17382d;
  line-height: 1.55;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffef9ee;
  border-bottom: 1px solid #e5ece8;
}

.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
    width: 150px;
    height: 70px;
    object-fit: contain;
    display: block;
    max-height: 70px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
}

nav a:hover {
  color: var(--lime);
}

nav .phone {
  background: var(--green);
  color: white;
  padding: 10px 17px;
  border-radius: 30px;
}

#menu {
  display: none;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: bold;
}

/* Hero */
.hero {
  background: var(--background);
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.curve {
  position: absolute;
  right: -8%;
  top: -30%;
  width: 54%;
  height: 150%;
  background: var(--green);
  transform: rotate(9deg);
  border-left: 14px solid var(--lime);
}

.hero-grid {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: center;
  position: relative;
}

.copy {
  position: relative;
  z-index: 2;
  padding-right: 24px;
}

.eyebrow {
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 800;
  margin: 0 0 12px;
}

.copy h1 {
  font-size: clamp(55px, 7vw, 90px);
  line-height: 0.88;
  letter-spacing: -4px;
  color: var(--green);
  margin: 0 0 25px;
}

.copy h1 em {
  color: var(--lime);
  font-style: normal;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  padding: 14px 21px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.primary {
  background: var(--green);
  color: white;
  border: 0;
}

.secondary {
  border: 2px solid var(--green);
  color: var(--green);
}

.art {
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.photo-frame {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: #dfe6dc;
  box-shadow: 0 18px 50px #012f2040;
}

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

/* General sections */
.section {
  padding: 90px 0;
}

.heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px;
}

.heading h2,
h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  color: var(--green);
  letter-spacing: -1.5px;
  margin: 0 0 14px;
}

.heading p:last-child,
.about p {
  color: var(--muted);
  font-size: 18px;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards article {
  padding: 32px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.service-icon {
  width: 75px;
  height: 75px;
  display: block;
}

.cards h3 {
  color: var(--green);
  font-size: 21px;
}

.cards p {
  color: var(--muted);
}

/* About */
.about {
  background: var(--background);
}

.aboutgrid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}

.roundlogo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px #0437261f;
}

.roundlogo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Quote form */
.quote-section {
  padding: 90px 0;
  background: white;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.quote-grid > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
  border-bottom: 2px solid var(--lime);
}

.quote-form {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 45px #04372612;
}

.quote-form label {
  display: block;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.quote-form input,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cddbd3;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--green);
  background: white;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .btn {
  margin-top: 4px;
}

.form-note {
  font-size: 12px !important;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Bottom call-to-action */
.cta {
  background: var(--green);
  color: white;
  padding: 70px 0;
}

.cta h2 {
  color: white;
  max-width: 700px;
}

.light {
  background: var(--lime);
  color: var(--green);
}

.outline {
  border: 2px solid #ffffff88;
  color: white;
}

/* Footer */
footer {
  background: var(--green-dark);
  color: white;
  padding: 25px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

footer span {
  color: #9eb2a8;
}

footer a {
  color: #a1df52;
}

/* Tablet and mobile */
@media (max-width: 800px) {
  #menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    background: white;
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  nav.open {
    display: flex;
  }

  .hero {
    padding: 55px 0 20px;
  }

  .curve {
    top: 48%;
    right: -45%;
    width: 100%;
    height: 60%;
    transform: none;
    border-left: 0;
    border-top: 14px solid var(--lime);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .copy {
    text-align: center;
    padding-right: 0;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .buttons {
    justify-content: center;
  }

  .art {
    height: 340px;
    margin-top: 40px;
  }

  .photo-frame,
  .photo-frame img {
    min-height: 280px;
  }

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

  .aboutgrid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .roundlogo {
    margin: auto;
    max-width: 320px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  footer .wrap {
    flex-direction: column;
  }

  .brand img {
    width: 130px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 120px;
  }

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

  .section,
  .quote-section {
    padding: 70px 0;
  }
}

/* Refinements */

/* Avoid one-word last lines in headings and short paragraphs */
h1,
h2 {
  text-wrap: balance;
}

.lead,
.cards p,
.about p {
  text-wrap: pretty;
}

/* "Why Highcrest" label was picking up the About paragraph style; match the other section labels */
.about p.eyebrow {
  color: var(--lime);
  font-size: 12px;
}

/* Form fields: normal weight text (they inherited the bold label style), 16px so iPhones don't zoom in on tap */
.quote-form input,
.quote-form textarea {
  font-weight: 400;
  font-size: 16px;
}

.quote-form ::placeholder {
  color: #6f8177;
  opacity: 1;
}
