/* =================================================================
   PAPINO PROPERTIES — styles.css
   Aesthetic: warm, approachable, boutique-residential
   Built for: static deploy on Netlify | mobile-first
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #FAF5EC;   /* warm cream base                */
  --bg-2:      #F2E8D6;   /* deeper sand for alt sections   */
  --paper:     #FFFFFF;   /* cards                          */
  --ink:       #2A2521;   /* primary text (espresso)        */
  --muted:     #786C5C;   /* secondary text                 */
  --clay:      #BC5F44;   /* primary accent / CTAs          */
  --clay-dark: #9E4A32;   /* hover                          */
  --gold:      #C9933C;   /* stars / small accents          */
  --sage:      #7E8C6A;   /* tertiary accent                */
  --line:      #E6DBC9;   /* hairlines / borders            */
  --line-soft: #EFE7D8;

  --shadow-sm: 0 2px 8px rgba(42,37,33,.06);
  --shadow-md: 0 14px 40px rgba(42,37,33,.10);
  --shadow-lg: 0 30px 70px rgba(42,37,33,.14);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* warm subtle grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--sand { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay); display: inline-block; }
.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.01em;
  margin-top: .5rem;
}
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.6em; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 8px 22px rgba(188,95,68,.28); }
.btn--primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(188,95,68,.34); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(250,245,236,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; line-height: 1; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text b {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.28rem; letter-spacing: .01em; display: block;
}
.brand-text small {
  display: block; font-size: .56rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 4px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--clay); transition: width .28s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-links .btn { display: none; } /* desktop: CTA lives in .nav-cta; this one is for the mobile menu only */

.hamburger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s ease; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em;
}
.hero-copy h1 em { font-style: italic; color: var(--clay); }
.hero-copy .lede { color: var(--muted); font-size: 1.14rem; margin-top: 1.3rem; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.2rem; font-size: .9rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: .5ch; }
.hero-trust b { color: var(--clay); }

/* hero visual collage */
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-visual .ph {
  position: absolute; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual .ph-main { inset: 0 0 14% 14%; }
.hero-visual .ph-sub  { width: 46%; aspect-ratio: 1/1; right: 0; bottom: 0; box-shadow: var(--shadow-md); border: 6px solid var(--bg); }

/* ---------- Photo placeholders (NO stock-photo guessing) ---------- */
.ph-img {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    linear-gradient(135deg, #E9D9C2, #D8C2A6 60%, #C9B79A);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #8a7355; text-align: center; padding: 12px;
}
.ph-img.alt { background: linear-gradient(135deg,#DFE3D4,#C9D0B6 60%,#B7C0A0); color:#67714f; }
.ph-img svg { width: 30px; height: 30px; opacity: .6; }
.ph-img .ph-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line-soft);
}
.search-tabs { display: inline-flex; gap: 4px; background: var(--bg-2); padding: 5px; border-radius: var(--r-pill); margin-bottom: 18px; }
.search-tabs button {
  padding: .55em 1.3em; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--muted);
  transition: .25s ease;
}
.search-tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: .8em .9em; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--clay); background: #fff; }
.search-panel .btn { margin-top: 16px; }
.search-note { font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Listings ---------- */
.idx-slot {
  border: 2px dashed var(--clay); border-radius: var(--r); background: rgba(188,95,68,.05);
  padding: clamp(24px, 4vw, 44px); text-align: center; margin-bottom: 42px;
}
.idx-slot h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.idx-slot p { color: var(--muted); max-width: 56ch; margin: 10px auto 0; font-size: .96rem; }
.idx-slot code { background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-size: .85em; }

.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.listing-card {
  background: var(--paper); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.listing-photo { position: relative; aspect-ratio: 3/2; }
.listing-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .42em .9em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.listing-badge.rent { background: var(--sage); color: #fff; }
.listing-badge.sale { background: var(--clay); color: #fff; }
.listing-body { padding: 20px 22px 24px; }
.listing-price { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.listing-price small { font-size: .8rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.listing-addr { color: var(--muted); font-size: .94rem; margin-top: 3px; }
.listing-meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--ink); }
.listing-meta span { display: inline-flex; align-items: center; gap: .45ch; }
.listing-meta b { font-weight: 700; }

/* ---------- Valuation (sell) ---------- */
.valuation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.valuation-card {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line-soft);
}
.valuation-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.valuation-card .sub { color: var(--muted); margin: 8px 0 22px; font-size: .98rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sell-points { display: grid; gap: 22px; }
.sell-point { display: flex; gap: 16px; }
.sell-point .ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(188,95,68,.12);
  color: var(--clay); display: grid; place-items: center;
}
.sell-point h4 { font-size: 1.06rem; font-weight: 700; }
.sell-point p { color: var(--muted); font-size: .95rem; margin-top: 3px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.about-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.about-copy p { color: var(--muted); margin-top: 1.1rem; }
.about-sign { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--clay); margin-top: 1.4rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2rem; }
.stat { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--font-display); font-weight: 500; font-size: 2rem; color: var(--clay); display: block; line-height: 1; }
.stat span { font-size: .82rem; color: var(--muted); margin-top: 6px; display: block; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.svc-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card .ico { width: 52px; height: 52px; border-radius: 15px; background: rgba(126,140,106,.16); color: var(--sage); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; }
.svc-card p { color: var(--muted); margin-top: 10px; font-size: .96rem; }

/* ---------- Testimonials ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.quote { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.quote p { margin-top: 14px; font-size: 1.02rem; flex: 1; }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.quote .by b { font-size: .95rem; }
.quote .by span { font-size: .82rem; color: var(--muted); display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); }
.contact-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(26px,3vw,40px); border: 1px solid var(--line-soft); }
.contact-direct { display: grid; gap: 14px; margin-top: 26px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.contact-line:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-line .ico { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(188,95,68,.12); color: var(--clay); display: grid; place-items: center; }
.contact-line small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-line b { font-size: 1.05rem; }
.schedule-slot { border: 2px dashed var(--sage); border-radius: var(--r); background: rgba(126,140,106,.07); padding: 26px; text-align: center; margin-top: 14px; }
.schedule-slot p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Generic form ---------- */
.frm { display: grid; gap: 14px; }
.frm label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: -8px; }
.frm input, .frm select, .frm textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .85em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
  transition: border-color .2s ease, background .2s ease; width: 100%;
}
.frm textarea { resize: vertical; min-height: 110px; }
.frm input:focus, .frm select:focus, .frm textarea:focus { outline: none; border-color: var(--clay); background: #fff; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(126,140,106,.14); color: var(--sage); font-weight: 600; }

/* SMS consent (A2P 10DLC) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--clay); cursor: pointer; }
.consent a { color: var(--clay); text-decoration: underline; }
.consent b { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E1D5; padding-block: clamp(48px,6vw,80px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text small { color: #b3a896; }
.site-footer p { color: #b3a896; margin-top: 14px; font-size: .94rem; max-width: 34ch; }
.footer-col h5 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #b3a896; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: #E9E1D5; font-size: .95rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9d927f; }
.footer-bottom .eh { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .valuation-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); padding: 18px var(--pad) 26px;
    box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s ease;
  }
  .nav-links.show { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding-block: 12px; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { display: inline-flex; width: 100%; margin-top: 10px; }
  .search-fields, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 420px) {
  .stat b { font-size: 1.5rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* real logo image lockup */
.brand-logo{ height:42px; width:auto; display:block; }
.site-footer .brand-logo{ height:46px; }
@media(max-width:760px){ .brand-logo{ height:36px; } }
