:root {
  --white: #ffffff;
  --forest: #073d24;
  --forest-soft: #315945;
  --sage: #bac7ae;
  --sage-pale: #f3f7f1;
  --terracotta: #c95f35;
  --gutter: clamp(22px, 4vw, 56px);
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--forest);
  font-family: "Trebuchet MS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

.porchholt-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(58px, 9vh, 92px) var(--gutter) 120px;
}

.search-area {
  width: min(720px, 100%);
  text-align: center;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 6px 7px 6px 29px;
  border: 2px solid var(--sage);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-form:focus-within {
  border-color: var(--forest-soft);
  box-shadow: 0 8px 28px rgba(7, 61, 36, .08);
}

.input-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #7c897b;
  stroke-linecap: round;
  stroke-width: 1.75;
}

.search-input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--forest);
  font-size: 18px;
}

.search-input::placeholder {
  color: #778176;
  opacity: 1;
}

.search-submit {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  background: #a94726;
  outline: 0;
  transform: translateX(3px);
}

.search-submit svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 28px;
  left: 28px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #dbe3d6;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(7, 61, 36, .12);
  list-style: none;
  text-align: left;
}

.suggestion-button {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--forest);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
  background: var(--sage-pale);
  outline: 0;
}

.site-footer {
  position: fixed;
  right: var(--gutter);
  bottom: 34px;
  display: flex;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 14px;
}

.site-footer a {
  color: var(--forest);
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .porchholt-home { padding-top: 58px; }

  .search-form {
    min-height: 60px;
    padding: 5px 6px 5px 20px;
  }

  .input-icon {
    width: 22px;
    height: 22px;
  }

  .search-input {
    height: 56px;
    padding: 0 12px;
    font-size: 18px;
  }

  .search-submit {
    width: 56px;
    height: 56px;
  }

  .site-footer {
    right: 20px;
    bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 40px);
    gap: 10px 20px;
    font-size: 12px;
  }
}

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