:root {
  --ink: #1f241f;
  --sand: #ece6db;
  --clay: #a56a3a;
  --sage: #244638;
  --forest: #183426;
  --mist: #c6bfb2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f3eee3 0%, #e6ddcf 100%);
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6vw;
  background: #ffffff;
  backdrop-filter: blur(4px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-image {
  height: 110px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a.nav-cta {
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.site-nav a[aria-current="page"] {
  border-color: var(--clay);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0 0;
  width: 100%;
  margin: 0;
  min-height: 420px;
  background: url("../../background photo.jpeg") center/cover no-repeat;
  border-radius: 0;
}

.hero > * {
  padding: 0 6vw;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  color: #ffffff;
  text-align: center;
}

.hero-text p {
  color: #ffffff;
  text-align: center;
}

.estimate-form {
  background: transparent;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 8px;
  width: 50%;
  margin: auto auto 0;
}

.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.estimate-field {
  display: grid;
  gap: 8px;
}

.estimate-form input,
.contact-form input,
.contact-form textarea,
.buyer-form input,
.buyer-form textarea {
  padding: 14px 14px;
  font-size: 1.05rem;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--mist);
  font-family: inherit;
}

.estimate-email::placeholder {
  font-size: 0.85rem;
}

.estimate-form label {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
}

button,
.button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #1a1a1a;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form button {
  background: #1a1a1a;
}

.button-ribbon {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.estimate-button {
  background: transparent;
  color: white;
  width: 100%;
}

.section {
  padding: 40px 6vw;
  background: #ffffff;
}

.section h2 {
  color: #1a1a1a;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
  position: relative;
}

.card-detailed {
  cursor: pointer;
}

.card h3 {
  color: #ffffff;
}

.listing-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
}

.card span {
  display: block;
  margin-top: 12px;
  color: var(--clay);
  font-weight: bold;
}

.callout {
  background: url("../../test 3.jpeg") center 25%/cover no-repeat;
  color: #1a1a1a;
  border-radius: 20px;
  margin: 0;
  padding: 40px 6vw;
  display: flex;
  flex-direction: column;
}

.callout h2,
.callout p {
  text-align: left;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.callout p {
  color: #1a1a1a;
}


.callout p {
  font-size: 1.25rem;
}

.callout .button {
  background: #ffffff;
  color: #1a1a1a;
  margin-top: auto;
  align-self: flex-start;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: #1a1a1a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw 32px;
  font-size: 0.9rem;
  border-top: 1px solid var(--mist);
  background: #ffffff;
  position: relative;
}

.footer-terms {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand span:first-child {
  font-weight: 700;
}

.footer-item,
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social {
  margin-top: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal {
  background: #1a1a1a;
  color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  max-width: 520px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal p {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.modal-close {
  background: #ffffff;
  color: #1a1a1a;
}

.contact-form,
.buyer-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-group label {
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 0.9rem;
}

.pill-group input:checked + label {
  background: #1a1a1a;
  color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.estimate-result {
  margin: 0;
  color: var(--sage);
  min-height: 24px;
}

.fine-print {
  margin: 0;
  font-size: 0.85rem;
  color: #6a635b;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

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

  .estimate-form {
    width: 100%;
  }

  .estimate-fields {
    grid-template-columns: 1fr;
  }

  .footer-terms {
    position: static;
    transform: none;
  }
}
.listing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: left;
  pointer-events: none;
}

.card-detailed:hover .listing-overlay {
  opacity: 1;
}

.listing-overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
