/* =========================================================================
   MERINO PROPERTY MANAGEMENT LLC — Landing page styles
   Palette drawn from the logo badge.
   ========================================================================= */

:root {
  /* Logo colors */
  --green-dark:    #14351F;  /* dark forest green — headers, footer, hero */
  --green-mid:     #1E4A2E;  /* lighter forest green — cards on green */
  --green-deep:    #0E2616;  /* deepest green — footer bottom bar */
  --cream:         #F6EEDC;  /* cream — text on green, page panels */
  --cream-light:   #FDFAF2;  /* near-white cream — page background */
  --sand:          #F0E5CE;  /* warm sand — alternate section */
  --gold:          #D9A441;  /* desert gold — rules, accents, eyebrows */
  --gold-deep:     #B9832A;  /* deeper gold — borders on light backgrounds */
  --orange-burnt:  #B8451D;  /* burnt orange — primary buttons */
  --orange-sunset: #E2702B;  /* Arizona sunset orange — accents, hovers */
  --brown-dark:    #3E2C1A;  /* dark brown — body text */
  --brown-soft:    #6B5540;  /* muted brown — secondary text */
  --white:         #FFFFFF;

  --maxw: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 53, 31, .10);
  --shadow-md: 0 4px 16px rgba(20, 53, 31, .12);

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------- Base ---------------------------------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px — comfortable on phones */
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(1.9rem, 5.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: #8F3315; }
a:hover { color: var(--orange-burnt); }

:focus-visible {
  outline: 3px solid var(--orange-sunset);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;                 /* large, easy tap target */
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-orange {
  background: var(--orange-burnt);
  color: var(--white);              /* 5.4:1 contrast */
  border-color: var(--orange-burnt);
}
.btn-orange:hover,
.btn-orange:focus { background: #9C3816; border-color: #9C3816; color: var(--white); }

.btn-green {
  background: var(--green-dark);
  color: var(--cream);
  border-color: var(--green-dark);
}
.btn-green:hover,
.btn-green:focus { background: var(--green-mid); border-color: var(--green-mid); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-outline:hover,
.btn-outline:focus { background: var(--gold); color: var(--green-deep); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.75rem;
}
.btn-row-center { justify-content: center; }

/* ------------------------------ Header --------------------------------- */

.site-header {
  background: var(--cream-light);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link { display: block; flex: 0 1 auto; min-width: 0; }
.logo {
  width: auto;
  height: 58px;                 /* phone size */
  max-width: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 14px;
  background: var(--green-dark);
  color: var(--cream);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

.primary-nav { display: none; }
.primary-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream-light);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  padding: 8px 20px 20px;
}
.primary-nav ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.primary-nav li { border-bottom: 1px solid rgba(185, 131, 42, .3); }
.primary-nav a:not(.btn) {
  display: block;
  padding: 14px 2px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.primary-nav a:not(.btn):hover { color: var(--orange-burnt); }
.btn-header { width: 100%; text-transform: uppercase; }

/* -------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(217, 164, 65, .22) 0%, rgba(20, 53, 31, 0) 58%),
    radial-gradient(90% 70% at 12% 100%, rgba(226, 112, 43, .16) 0%, rgba(20, 53, 31, 0) 60%),
    var(--green-dark);
  color: var(--cream);
  padding: 56px 0 96px;
  overflow: hidden;
}

.hero-inner { max-width: 780px; position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-dark { color: #8A6113; }   /* gold darkened for contrast on cream */

.hero h1 { color: var(--cream); margin-bottom: .45em; }

.hero-text {
  font-size: 1.1rem;
  color: #EFE6D0;
  max-width: 65ch;
}

.mountain-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 58px;
  display: block;
}
.mountain-divider path { fill: var(--cream-light); }

/* ------------------------------ Sections -------------------------------- */

.section {
  padding: 60px 0;
  scroll-margin-top: 92px;   /* keeps headings clear of the sticky header */
}
.section-cream { background: var(--cream-light); }
.section-sand  { background: var(--sand); }
.section-narrow .section-intro { max-width: 70ch; }

.section-green {
  background: var(--green-dark);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.section-green h2 { color: var(--cream); }

.section h2 { margin-bottom: .35em; }

.section-intro {
  font-size: 1.08rem;
  max-width: 68ch;
  color: var(--brown-dark);
}

.prose { max-width: 72ch; }
.prose p { color: #EBE1CA; }

/* --------------------------- Rental listings ---------------------------- */

.rental-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2rem;
}
.rental-grid:empty { display: none; }

.rental-card {
  background: var(--white);
  border: 1px solid #E2D5B8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rental-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
  border-bottom: 3px solid var(--gold);
}

.rental-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-soft);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.rental-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rental-body h3 { color: var(--green-dark); margin-bottom: .3em; }

.rental-rent {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange-burnt);
  margin: 0 0 .6rem;
}

.rental-specs {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.rental-specs li {
  background: var(--cream);
  border: 1px solid #E2D5B8;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .9rem;
  color: var(--brown-dark);
}

.rental-desc { color: var(--brown-dark); flex: 1; }

.rental-status {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.rental-status.is-upcoming { background: var(--gold-deep); color: var(--white); }

.rental-card .btn { margin-top: 1rem; }

.empty-state {
  margin-top: 2rem;
  padding: 36px 24px;
  background: var(--cream);
  border: 2px dashed var(--gold-deep);
  border-radius: var(--radius);
  text-align: center;
}
.empty-state p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown-dark);
  max-width: 50ch;
  margin: 0 auto 1.25rem;
}
.empty-state .btn { margin-top: 0; }

/* --------------------------- Feature cards ------------------------------ */

.feature-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--green-mid);
  border: 1px solid rgba(217, 164, 65, .45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.feature-card h3 {
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: .6em;
}
.feature-card p { color: #EBE1CA; margin: 0; }

/* ------------------------------ Contact --------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

.contact-card {
  background: var(--cream-light);
  border: 1px solid #E2D5B8;
  border-left: 6px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--green-dark); margin-bottom: .15em; }
.contact-role {
  color: var(--brown-soft);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.contact-phone { margin: 0; }
.contact-phone a {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #8F3315;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.contact-phone a:hover { color: var(--orange-burnt); border-bottom-color: var(--orange-sunset); }

/* -------------------------------- Form ---------------------------------- */

.form-card {
  margin-top: 3rem;
  background: var(--cream-light);
  border: 1px solid #E2D5B8;
  border-top: 5px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 28px 22px 30px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}
.form-card > h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  scroll-margin-top: 100px;
}

.form-notice {
  background: #FBEEE6;
  border: 2px solid var(--orange-burnt);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .97rem;
  color: #5A2A12;
}
.form-notice a { color: #8F3315; font-weight: 700; }
.form-notice-dev { display: block; margin-top: .4rem; color: var(--brown-soft); font-size: .9rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-dark);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #C7B490;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 1rem;             /* 16px+ prevents iOS zoom-on-focus */
  line-height: 1.5;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--green-dark); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }

.form-result {
  margin: 1rem 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 2px solid var(--gold-deep);
  color: var(--brown-dark);
  font-weight: 600;
}

/* ------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  padding-top: 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-block p { margin: 0 0 .45rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-sub { color: var(--gold); letter-spacing: .04em; }
.footer-label { color: #C9BFA6; }

.site-footer a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, .6);
  display: inline-block;
  padding: 4px 0;
}
.site-footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(217, 164, 65, .35);
  padding-top: 18px;
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
  color: #D8CEB6;
}
.eho { display: flex; align-items: center; gap: 8px; margin: 0; }
.eho-mark { display: inline-flex; color: var(--gold); }
.copyright { margin: 0; }

/* ============================= Breakpoints ============================== */

/* Tablet */
@media (min-width: 640px) {
  .section { padding: 76px 0; }
  .logo { height: 68px; }
  .rental-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px 32px 34px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero { padding: 78px 0 118px; }
  .mountain-divider { height: 80px; }
}

/* Desktop */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
  }
  .primary-nav li { border: 0; }
  .primary-nav a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; }
  .primary-nav a:not(.btn):hover { border-bottom-color: var(--gold); }

  .btn-header {
    width: auto;
    min-height: 46px;
    padding: 11px 20px;
    font-size: .88rem;
  }

  .logo { height: 78px; }
  .section { padding: 92px 0; }
  .rental-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 96px 0 140px; }
  .mountain-divider { height: 100px; }
}

@media (min-width: 1060px) {
  .logo { height: 86px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .mountain-divider, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section-green, .hero, .site-footer { background: #fff !important; color: #000 !important; }
}

/* =========================================================================
   ACCESSIBILITY: minimum touch target for every telephone link
   WCAG 2.5.8 asks for at least 24x24 CSS px; 44px is the comfortable
   thumb-sized target recommended for phones. The dedicated "Call Johnny"
   and "Call Angelica" buttons were already large enough; these rules bring
   the inline phone numbers in the contact cards, footer and form notice
   up to the same standard.
   ========================================================================= */

a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Keep the large display numbers in the contact cards visually balanced
   now that they carry a taller tap area. */
.contact-phone a { padding: 8px 0; }
