/* ═══════════════════════════════════════════
   PROLAND HOMES — SHARED STYLESHEET
   Fonts: Fraunces (headings) · DM Sans (body)
   Type scale: fluid clamp() — smooth scaling
═══════════════════════════════════════════ */

@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,300;1,9..144,400;1,9..144,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ══════════════════════════════
   DESIGN TOKENS
══════════════════════════════ */
:root {
  /* Brand palette */
  --olive:      #6B6B2F;
  --olive-mid:  #888840;
  --olive-lt:   #A8A855;
  --gold:       #B89A50;
  --gold-lt:    #CEB878;
  --gold-pale:  #EAD9A8;
  --cream:      #F5F2E8;
  --paper:      #FDFCF7;
  --dark:       #1E1E0E;
  --dark-mid:   #3A3A18;
  --black:      #111111;
  --muted:      #3D3D3D;
  --white:      #FFFFFF;
  --ok:         #2D6A2D;
  --ok-bg:      #EBF5EB;
  --err:        #7A3A3A;
  --err-bg:     #F7EEEE;
  --terracotta: #B86A2A;   /* orangish accent from the logo swoosh */

  /* ── Fluid type scale ──────────────────────────
     clamp(MIN, PREFERRED-vw, MAX)
     All sizes reduced ~20% from previous values.
     Nav links use --text-nav (kept at original size).
  ────────────────────────────────────────────── */
  --text-nav:  clamp(0.70rem, 0.65rem + 0.28vw, 0.80rem);   /* nav only — unchanged */
  --text-xs:   clamp(0.67rem, 0.62rem + 0.26vw, 0.77rem);
  --text-sm:   clamp(0.79rem, 0.73rem + 0.29vw, 0.89rem);
  --text-base: clamp(0.89rem, 0.84rem + 0.31vw, 1.01rem);
  --text-md:   clamp(0.96rem, 0.89rem + 0.35vw, 1.10rem);
  --text-lg:   clamp(1.06rem, 0.96rem + 0.48vw, 1.25rem);
  --text-xl:   clamp(1.04rem, 0.88rem + 0.80vw, 1.36rem);
  --text-2xl:  clamp(1.28rem, 1.04rem + 1.20vw, 1.76rem);
  --text-3xl:  clamp(1.60rem, 1.28rem + 1.60vw, 2.40rem);
  --text-4xl:  clamp(2.08rem, 1.60rem + 2.40vw, 3.20rem);
  --text-5xl:  clamp(2.56rem, 1.92rem + 3.20vw, 4.32rem);
}

/* ══════════════════════════════
   BASE RESET
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  line-height: 1.75;
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════
   ANIMATION
══════════════════════════════ */
.fade-in { animation: fadeIn 0.55s ease both; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:translateY(0) } }

/* ══════════════════════════════
   BANNER / NAV
══════════════════════════════ */
.banner {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 86px;
  position: sticky; top: 0; z-index: 500;
  box-shadow: 0 2px 24px rgba(107,107,47,0.13);
}
.banner-logo { height: 56px; width: auto; display: block; cursor: pointer; }
.banner-nav { display: flex; align-items: center; list-style: none; }
.banner-nav li a {
  display: block; padding: 0.55rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-nav);
  font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--black); text-decoration: none; position: relative; transition: color 0.25s;
}
.banner-nav li a::after {
  content: ''; position: absolute; bottom: 0; left: 1.3rem; right: 1.3rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform 0.28s ease;
}
.banner-nav li a:hover, .banner-nav li a.active-link { color: var(--olive); }
.banner-nav li a:hover::after, .banner-nav li a.active-link::after { transform: scaleX(1); }
.nav-cta {
  margin-left: 1rem; background: var(--olive) !important;
  color: var(--white) !important; padding: 0.6rem 1.6rem !important; border-radius: 1px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--dark-mid) !important; }

/* ══════════════════════════════
   MARQUEE
══════════════════════════════ */
.marquee-strip { background: var(--olive); padding: 0.7rem 0; overflow: hidden; white-space: nowrap; }
.marquee-strip.marquee-terracotta { background: var(--terracotta); }
.marquee-inner { display: inline-flex; gap: 2rem; animation: marquee 24s linear infinite; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.m-item {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.m-item span { color: var(--gold-lt); margin: 0 0.4rem; }

/* ══════════════════════════════
   SHARED TYPOGRAPHY
══════════════════════════════ */
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ''; width: 2rem; height: 2px; background: var(--gold); flex-shrink:0; }
.eyebrow.light { color: var(--gold-lt); }
.eyebrow.light::before { background: var(--gold-lt); }

.section-title {
  font-family: 'Fraunces', serif;
  font-size: var(--text-3xl);
  font-weight: 400; line-height: 1.18;
  color: var(--dark); margin-bottom: 1.6rem;
}
.section-title em { font-style: italic; color: var(--olive); }
.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--gold-lt); }

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; padding: 0.95rem 2.4rem;
  cursor: pointer; border: none; transition: all 0.25s;
}
.btn-olive { background: var(--olive); color: var(--white); }
.btn-olive:hover { background: var(--dark-mid); }
.btn-outline { background: transparent; color: var(--olive); border: 1.5px solid var(--olive); }
.btn-outline:hover { background: var(--olive); color: var(--white); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer { background: var(--white); padding: 3rem 4rem 1.8rem; position: relative; border-top: 1px solid var(--gold-pale); }
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--olive), var(--gold), var(--olive));
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 1.2rem;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 0.9rem; display: block; cursor: pointer; }
.footer-tag {
  font-family: 'Fraunces', serif;
  font-size: var(--text-base); font-style: italic;
  color: var(--muted); line-height: 1.5; margin-bottom: 0.8rem;
}
.footer-addr { font-size: var(--text-base); font-weight: 300; line-height: 1.7; color: var(--muted); }
.f-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 0.8rem;
}
.f-links, .f-contact { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.f-links a, .f-contact a {
  font-size: var(--text-base); font-weight: 400;
  color: var(--black); text-decoration: none; transition: color 0.25s;
}
.f-links a:hover, .f-contact a:hover { color: var(--olive); }
.f-contact li { font-size: var(--text-base); color: var(--black); }
.wa-note { font-size: var(--text-sm); color: var(--muted); margin-top: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.wa-note::before { content: '✓'; color: var(--olive); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.f-copy   { font-size: var(--text-xs); font-weight: 400; color: var(--muted); }
.f-powered { font-size: var(--text-xs); font-weight: 400; color: var(--muted); }
.f-powered a { color: var(--olive); text-decoration: none; }

/* ══════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════ */
.page-hero { background: var(--white); padding: 3.5rem 4rem 3rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--gold-pale); }
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(107,107,47,0.025) 50px, rgba(107,107,47,0.025) 51px);
  pointer-events: none;
}
.page-hero-inner { max-width: 1300px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-title {
  font-family: 'Fraunces', serif;
  font-size: var(--text-4xl);
  font-weight: 400; color: var(--dark); line-height: 1.1; margin: 0.6rem 0 0.8rem;
}
.page-hero-title em { font-style: italic; color: var(--olive); }
.page-hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 55ch;
}

/* ══════════════════════════════
   POLICY PAGES
══════════════════════════════ */
.policy-layout {
  display: grid; grid-template-columns: 240px 1fr;
  max-width: 1300px; margin: 0 auto; padding: 3rem 4rem;
}
.policy-sidebar {
  position: sticky; top: 110px; align-self: start;
  padding-right: 2rem; border-right: 1px solid var(--gold-pale);
}
.policy-sidebar-title {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.toc-list a { font-size: var(--text-base); font-weight: 400; color: var(--black); text-decoration: none; transition: color 0.25s; cursor: pointer; }
.toc-list a:hover { color: var(--olive); }
.policy-content { padding-left: 3rem; }
.policy-main-title {
  font-family: 'Fraunces', serif;
  font-size: var(--text-3xl);
  font-weight: 400; color: var(--dark); margin: 0.6rem 0 0.4rem;
}
.policy-updated { font-size: var(--text-base); color: var(--muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gold-pale); }
.policy-section { margin-bottom: 2rem; scroll-margin-top: 100px; }
.policy-section h3 {
  font-family: 'Fraunces', serif;
  font-size: var(--text-2xl);
  font-weight: 400; color: var(--dark); margin-bottom: 0.7rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--gold-pale);
}
.policy-section h4 { font-size: var(--text-base); font-weight: 600; color: var(--black); margin: 0.9rem 0 0.4rem; }
.policy-section p { font-size: var(--text-base); font-weight: 400; line-height: 1.7; color: var(--black); margin-bottom: 0.6rem; }
.policy-section ol, .policy-section ul { margin-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.7rem; }
.policy-section li { font-size: var(--text-base); font-weight: 400; line-height: 1.65; color: var(--black); }
.policy-section ul li { list-style: none; padding-left: 0.4rem; }
.policy-section ul li::before { content: '—'; color: var(--gold); margin-right: 0.5rem; }
.policy-divider { border: none; border-top: 1px solid var(--gold-pale); margin: 1.2rem 0; }
.policy-highlight {
  background: rgba(107,107,47,0.07); border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem; margin: 0.7rem 0;
  font-size: var(--text-base); color: var(--black); line-height: 1.65;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .banner { padding: 0 2rem; }
  .banner-nav li a { padding: 0.5rem 0.8rem; }
  .page-hero { padding: 3rem 2.5rem 2.5rem; }
  .policy-layout { grid-template-columns: 1fr; padding: 2.5rem 2.5rem; }
  .policy-sidebar { position: static; padding-right: 0; border-right: none; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gold-pale); }
  .policy-content { padding-left: 0; margin-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer { padding: 2.5rem 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
