/* Integrity Fine Homes — design system
   Palette: charred oak #1C1A17, plaster #F0EAE0, stone #B4A08C, brass #9C7A44, hearth green #3F4A3A
   Type: Fraunces (display, warm serif) + Inter (body/utility)
   Motif: blueprint/drafting registration marks — thin corner ticks + hairline rules,
   nodding to custom construction without leaning on numbered-step cliches.
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --oak: #1C1A17;
  --oak-soft: #2A2621;
  --plaster: #F0EAE0;
  --plaster-dim: #E4DBCC;
  --stone: #B4A08C;
  --brass: #9C7A44;
  --brass-light: #C7A868;
  --hearth: #3F4A3A;
  --hearth-light: #57654F;
  --line: rgba(28, 26, 23, 0.14);
  --line-light: rgba(240, 234, 224, 0.22);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--oak);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  color: var(--oak);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- corner registration mark (signature motif) ---------- */
.reg-mark {
  position: relative;
}
.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.reg-mark::before {
  top: -1px; left: -1px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
}
.reg-mark::after {
  bottom: -1px; right: -1px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

/* ---------- nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 234, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand span { color: var(--brass); font-style: italic; }
.nav-links {
  display: flex; gap: 36px; list-style: none; margin: 0; padding: 0;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brass); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--plaster); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-header.nav-open .nav-links { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a {
    display: block; padding: 16px 32px; font-size: 14px;
  }
  .nav-links a::after { display: none; }
  .nav-toggle {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--oak); border-radius: 2px;
    padding: 11px 16px; min-height: 44px;
    font-family: 'Inter'; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-bottom: 14px; display: block;
}
.eyebrow.on-dark { color: var(--brass-light); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--oak); color: var(--plaster); overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.02) 0%, rgba(20,18,15,0.05) 38%, rgba(20,18,15,0.68) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 32px 72px; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-content h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.04;
  max-width: 900px;
  color: var(--plaster);
}
.hero-sub {
  margin-top: 22px; max-width: 480px; font-size: 17px; color: var(--plaster-dim);
}
.hero-meta {
  margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-light);
}
.hero-meta div { font-size: 13px; letter-spacing: 0.04em; color: var(--plaster-dim); }
.hero-meta strong {
  display: block; font-family: 'Fraunces', serif; font-style: italic; font-size: 22px;
  color: var(--brass-light); font-weight: 500; margin-bottom: 2px;
}

/* ---------- sections ---------- */
section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.section-head p { margin-top: 18px; font-size: 17px; color: var(--oak-soft); max-width: 540px; }

.rule {
  height: 1px; background: var(--line); border: none; margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--hearth); color: var(--plaster); }
.btn-primary:hover { background: var(--hearth-light); }
.btn-ghost { border-color: var(--oak); color: var(--oak); background: transparent; }
.btn-ghost:hover { background: var(--oak); color: var(--plaster); }
.btn-ghost-light { border-color: var(--plaster-dim); color: var(--plaster); background: transparent; }
.btn-ghost-light:hover { background: var(--plaster); color: var(--oak); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- pull quote / signature block ---------- */
.pull {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.28; color: var(--oak);
}
.pull .mark { color: var(--brass); font-style: normal; }

/* ---------- featured split ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.split.split-wide { grid-template-columns: 1.3fr 0.7fr; }
.split img { width: 100%; height: 100%; object-fit: cover; }
.split-figure { position: relative; }
@media (max-width: 900px) {
  .split, .split.split-wide { grid-template-columns: 1fr; gap: 36px; }
}

.annot-list { list-style: none; margin: 32px 0 0; padding: 0; }
.annot-list li {
  display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line);
}
.annot-list li:last-child { border-bottom: 1px solid var(--line); }
.annot-list .tick { color: var(--brass); font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; padding-top: 2px; min-width: 28px; }
.annot-list h4 { font-size: 17px; margin-bottom: 4px; }
.annot-list p { margin: 0; font-size: 14.5px; color: var(--oak-soft); }

/* ---------- gallery grid ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.gallery-grid figure { margin: 0; overflow: hidden; position: relative; background: var(--plaster-dim); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.g-a { grid-column: span 4; grid-row: span 2; aspect-ratio: 4/3; }
.g-b { grid-column: span 2; aspect-ratio: 1/1; }
.g-c { grid-column: span 3; aspect-ratio: 4/3; }
figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  background: linear-gradient(0deg, rgba(20,18,15,0.75), transparent);
  color: var(--plaster); font-size: 13px; letter-spacing: 0.03em;
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-grid a:hover figcaption { opacity: 1; }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-a, .g-b, .g-c { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ---------- dark band ---------- */
.band-dark {
  background: var(--oak); color: var(--plaster);
}
.band-dark .section-head p { color: var(--plaster-dim); }
.band-dark .rule { background: var(--line-light); }

/* ---------- testimonial cards ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); }
.testi-card { background: var(--oak); padding: 40px 36px; }
.testi-card .pull { color: var(--plaster); font-size: 20px; line-height: 1.5; }
.testi-card .who { margin-top: 24px; font-size: 13px; letter-spacing: 0.05em; color: var(--brass-light); text-transform: uppercase; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- badges row ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.badge { font-family: 'Fraunces', serif; font-size: 15px; color: var(--oak-soft); border: 1px solid var(--line); padding: 14px 22px; border-radius: 2px; }

/* ---------- footer ---------- */
footer { background: var(--oak); color: var(--plaster-dim); padding: 64px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand { font-family: 'Fraunces', serif; font-style: italic; font-size: 24px; color: var(--plaster); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 14px; font-family: 'Inter'; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: var(--plaster-dim); }
.footer-col a:hover { color: var(--plaster); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-size: 12.5px; color: rgba(240,234,224,0.5); flex-wrap: wrap; gap: 12px; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: 200px 0 70px; background: var(--oak); color: var(--plaster);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 62px); font-style: italic; font-weight: 400; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero-sub { margin-top: 16px; max-width: 560px; color: var(--plaster-dim); font-size: 16.5px; }

/* ---------- listing cards (Homes For Sale) ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.listing-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .listing-grid, .listing-grid.two { grid-template-columns: 1fr; } }

.listing-card { background: #fff; border: 1px solid var(--line); }
.listing-photo {
  aspect-ratio: 4/3; width: 100%; position: relative;
  background: repeating-linear-gradient(135deg, var(--plaster-dim), var(--plaster-dim) 10px, var(--plaster) 10px, var(--plaster) 20px);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.zillow-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(28,26,23,0.85); color: var(--plaster);
  font-family: 'Inter'; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 8px 14px; border-radius: 3px; text-decoration: none;
  backdrop-filter: blur(2px); transition: background 0.2s ease;
}
.zillow-btn:hover { background: #1C1A17; }
.zillow-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.listing-photo span {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; color: var(--stone);
  background: var(--plaster); padding: 6px 14px; border: 1px solid var(--line);
}
.listing-body { padding: 26px 26px 28px; }
.listing-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--hearth); border: 1px solid var(--hearth); padding: 4px 10px; margin-bottom: 14px;
}
.listing-tag.rental { color: var(--brass); border-color: var(--brass); }
.listing-body h3 { font-size: 21px; font-weight: 500; }
.listing-addr { font-size: 13.5px; color: var(--oak-soft); margin-top: 4px; }
.listing-specs {
  display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--oak-soft);
}
.listing-specs strong { color: var(--oak); font-family: 'Fraunces', serif; font-size: 15px; display: block; }
.listing-price { margin-top: 16px; font-family: 'Fraunces', serif; font-size: 22px; font-style: italic; color: var(--hearth); }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; color: var(--oak-soft); font-weight: 500; }
input, textarea, select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 2px; font-family: 'Inter'; font-size: 15px; color: var(--oak);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-bottom-color: var(--brass);
}
textarea { resize: vertical; min-height: 110px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- mobile density & touch targets ---------- */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .hero { min-height: 88vh; }
  .hero-content { padding: 0 20px 48px; }
  .hero-meta { gap: 24px; }
  .page-hero { padding: 140px 0 48px; }
  .badges { gap: 20px; }
  .badge { padding: 10px 16px; font-size: 13px; }
  .btn { padding: 14px 22px; width: 100%; justify-content: center; }
  .split, .listing-grid, .listing-grid.two, .testi-grid, .two-col { gap: 24px; }
  input, textarea, select { font-size: 16px; } /* prevents iOS auto-zoom on focus */
  .footer-grid { flex-direction: column; }
  .footer-links { gap: 32px; }
}
