/* Tierra Cove design system
   Brand tokens match the weekly inventory email. */

:root {
  --navy: #1b3a6b;
  --navy-deep: #12294b;
  --navy-soft: #2c4f85;
  --tint: #f0f4fa;
  --border: #c9d4e4;
  --muted: #6e6e6e;
  --text: #1a1a2e;
  --clay: #a8482f;
  --clay-dark: #8b3823;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 58, 107, 0.06), 0 8px 24px rgba(27, 58, 107, 0.07);
  --shadow-lift: 0 2px 4px rgba(27, 58, 107, 0.08), 0 14px 34px rgba(27, 58, 107, 0.12);
}

/* Fonts: latin subsets, self hosted, swap so text paints immediately. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(700px, 100% - 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--clay);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--clay-dark);
}

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

.btn--navy:hover {
  background: var(--navy-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--outline {
  background: var(--white);
  border-color: var(--border);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--tint);
}

.btn:active {
  transform: translateY(1px);
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}

.wordmark__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--clay);
}

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

@media (max-width: 720px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 72%);
  color: var(--white);
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 4.75rem);
}

.hero__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__content {
  max-width: 40ch;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: clamp(1.075rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  color: #dde6f4;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__actions .btn {
  flex: 1 1 260px;
}

/* Sections */

.section {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
}

.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--border);
}

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

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__head {
  margin-bottom: 2rem;
}

.section__head p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.section--navy .section__head p {
  color: #dde6f4;
}

.section__foot {
  margin-top: 2rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.section--navy .eyebrow {
  color: #e6a58f;
}

/* Value strip and steps */

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.value {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.value__icon {
  width: 34px;
  height: 34px;
  color: var(--clay);
  margin-bottom: 0.85rem;
}

.value h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.value p {
  margin: 0;
  color: var(--muted);
}

.step {
  border-top: 3px solid rgba(255, 255, 255, 0.28);
  padding-top: 1rem;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #e6a58f;
  margin-bottom: 0.35rem;
}

.step p {
  margin: 0;
  color: #dde6f4;
  font-size: 1.0625rem;
}

/* Page head */

.page-head {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.25rem, 6vw, 3.5rem) 0;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Prose */

.prose p {
  max-width: 68ch;
  font-size: 1.0625rem;
}

.prose .quiet-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.quiet-note a {
  color: var(--muted);
}

/* Inventory */

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inventory__loading-text {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.inventory__status {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
  padding: 1.5rem;
  max-width: 60ch;
}

.inventory__status p {
  margin: 0 0 0.5rem;
}

.inventory__status p:last-child {
  margin-bottom: 0;
}

.inventory__status .big-tel {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

.skeleton {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .skeleton {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .skeleton {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skeleton__card {
  height: 250px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--tint) 30%, #e3ebf7 50%, var(--tint) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -150% 0;
  }
}

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

.inventory__section + .inventory__section {
  margin-top: 2.75rem;
}

.inventory__section-title {
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
}

.card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card__inner:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--navy-soft);
}

.card__photo {
  display: block;
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
  background: var(--tint);
}

.card__address {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.card__place {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}

.card__county {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.card__size {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.card__price {
  margin-bottom: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.card__price-main {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.card__price-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.card__down {
  margin: 0.45rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clay);
}

.card__cash {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card__cash strong {
  color: var(--text);
}

.card__note {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.card__actions .btn {
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
}

/* Callout */

.callout {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.callout h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.callout p {
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

/* Contact tap targets */

.contact-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

@media (min-width: 760px) {
  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 104px;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--navy);
}

a.contact-card:hover {
  border-color: var(--navy);
  background: var(--tint);
}

.contact-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.response-line {
  font-weight: 600;
}

/* Contact form */

.form__intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.form {
  max-width: 34rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  /* 16px minimum, or iOS zooms the page when the field takes focus. */
  font-size: 1rem;
  line-height: 1.5;
}

textarea.field__input {
  min-height: 8rem;
  resize: vertical;
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B3A6B' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}

.field__input:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 1px;
  border-color: var(--navy);
}

.field__input[aria-invalid="true"] {
  border-color: var(--clay);
  border-width: 2px;
}

.field__error {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clay-dark);
}

/* Off screen rather than display:none, since bots skip hidden fields. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 2px solid var(--clay);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--clay-dark);
}

.form__error a {
  color: var(--clay-dark);
  white-space: nowrap;
}

.form__success {
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__success:focus {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.form__success h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form__success p {
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #dde6f4;
  padding: 2.75rem 0 2rem;
  font-size: 0.9375rem;
}

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

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer .wordmark,
.site-footer .wordmark__text {
  color: var(--white);
}

.footer__name {
  margin-bottom: 0.75rem;
}

.footer__tagline {
  margin: 0;
  color: #b9c8de;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9c8de;
  margin-bottom: 0.6rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.4rem;
}

.footer__list a {
  display: inline-block;
  padding: 0.2rem 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #b9c8de;
  font-size: 0.875rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom--bare {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
