/* ===========================================================
   Covenant Creators Realty Group
   Luxury real-estate theme — cream & gold
   =========================================================== */

:root {
  /* Brand palette — Covenant Creators Realty Group brand sheet */
  --cream:      #F8F4EC;   /* Warm Ivory */
  --cream-2:    #F2E9D6;
  --cream-3:    #E6D6B8;   /* Champagne Beige */
  --ink:        #4B2E1F;   /* Covenant Espresso — headings */
  --ink-soft:   #6E5340;
  --body:       #5C4535;
  --gold:       #D19332;   /* Covenant Gold */
  --gold-deep:  #A66A16;   /* Antique Gold */
  --gold-light: #E8C16E;   /* Light Gold Highlight */
  --charcoal:   #2F2A26;   /* Estate Charcoal */
  --line:       rgba(209, 147, 50, 0.32);
  --line-soft:  rgba(209, 147, 50, 0.18);
  --card:       #FFFFFF;
  --shadow:     0 18px 42px -26px rgba(75, 46, 31, 0.42);
  --shadow-sm:  0 10px 26px -18px rgba(75, 46, 31, 0.32);
  --gold-grad:  linear-gradient(135deg, #A66A16 0%, #D19332 36%, #E8C16E 62%, #C9842A 100%);
  --radius:     16px;
  --radius-lg:  22px;
  --maxw:       1200px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --caps:  'Playfair Display', Georgia, serif;
  --sans:  'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Gold rules & section heads ---------- */
.rule {
  height: 1px; flex: 1 1 auto; min-width: 28px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 70%, transparent);
}
.section-head {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 40px);
  justify-content: center; text-align: center; margin-bottom: clamp(34px, 5vw, 56px);
}
.section-head-sm { margin: clamp(48px, 7vw, 72px) 0 30px; }
.section-title {
  font-family: var(--caps);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  margin: 0; white-space: nowrap;
}
.serve-title {
  font-family: var(--caps); font-weight: 500; color: var(--gold-deep);
  letter-spacing: .20em; text-transform: uppercase;
  font-size: clamp(.95rem, 2.2vw, 1.3rem); margin: 0; white-space: nowrap;
}
.section-title.align-left { white-space: normal; text-align: left; letter-spacing: .04em; }
.section-lead {
  max-width: 640px; margin: -14px auto clamp(34px, 5vw, 48px); text-align: center;
  color: var(--ink-soft); font-size: 1.02rem;
}
.eyebrow {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .24em;
  font-size: .78rem; color: var(--gold-deep); display: block; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--sans); font-weight: 500; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
  font-size: .95rem; line-height: 1;
}
.btn-ic { width: 1.1em; height: 1.1em; flex: none; }
.btn-ic-end { width: 1em; height: 1em; }
.btn-gold {
  background: var(--gold-grad); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(154, 123, 44, 0.65), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 1px rgba(120, 90, 20, .35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 30px -12px rgba(154,123,44,.7); }
.btn-outline {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 100px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { height: 88px; width: auto; display: block; }
.brand-mark { width: auto; height: 48px; flex: none; }
.brand-divider { width: 1px; height: 34px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: 1.16rem; letter-spacing: .01em; white-space: nowrap;
}
.brand-sub {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .34em;
  font-size: .56rem; color: var(--gold-deep); margin-top: 3px;
}

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 11px; border-radius: 8px; transition: color .2s;
}
.nav-link:hover { color: var(--gold-deep); }
.nav-link.is-active { color: var(--gold-deep); }
.nav-link.is-active::after {
  content: ""; position: absolute; }
.nav-list > li { position: relative; }
.nav-list > li > .is-active {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.chev { width: 14px; height: 14px; opacity: .7; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
  z-index: 50;
}
.has-menu:hover .submenu, .has-menu.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .92rem; color: var(--ink-soft); }
.submenu a:hover { background: var(--cream-2); color: var(--gold-deep); }

.header-cta { flex: none; }
.btn-schedule { padding: 11px 18px; font-size: .9rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.hamburger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (crisp live lockup over the cleaned scene) ---------- */
.hero { background: var(--cream); line-height: 0; }
.hero-bg { display: block; width: 100%; height: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.services-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.services-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 22px; align-items: stretch; }

/* Service cards — emblem + live HTML text + photo (extracted from the brand vision) */
.svc-card {
  position: relative; overflow: hidden; background: #FCF9F4;
  border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: var(--shadow-sm); min-height: 132px;
  display: flex; align-items: stretch;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.svc-body {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 15px;
  padding: 20px 20px 20px 22px; width: 66%;
}
.svc-icon { flex: none; display: flex; align-items: center; }
.svc-icon img { width: 58px; height: auto; display: block; }
.svc-text { min-width: 0; }
.svc-title {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.1rem, 1.75vw, 1.4rem); line-height: 1.1; margin: 0 0 7px;
}
.svc-tags {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; font-size: .62rem; color: var(--gold-deep); margin: 0;
  white-space: nowrap;
}
.svc-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  background-color: var(--cream-3);
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.65), rgba(255,255,255,0) 44%),
    linear-gradient(135deg, #e7d9bc, #cbb38a 55%, #a98f63);
  background-size: cover; background-position: center;
}
/* Compact (stacked) cards — bottom row of four */
.svc-compact .svc-body {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 7px; width: 60%; padding: 18px 14px 18px 20px;
}
.svc-compact .svc-icon img { width: 44px; }
.svc-compact .svc-title { font-size: clamp(1.02rem, 1.4vw, 1.26rem); margin: 0 0 3px; }
.svc-compact .svc-tags {
  white-space: normal; line-height: 1.5; font-size: .55rem; letter-spacing: .1em;
}
.svc-compact .svc-photo { width: 48%; }

/* ---------- How we can serve you ---------- */
.serve-pills {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 28px; color: var(--ink); font-size: 1.12rem; font-family: var(--serif);
  box-shadow: var(--shadow-sm); transition: .2s;
}
.pill svg { width: 22px; height: 22px; color: var(--gold-deep); }
.pill:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-deep); }
.serve-cta { text-align: center; margin-top: 34px; }

/* ---------- Properties ---------- */
.properties { background: var(--cream); }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.property-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.property-photo {
  aspect-ratio: 4 / 3; background-color: var(--cream-3);
  background-image: linear-gradient(135deg, #e7d9bc, #c7ae83 55%, #9db0b8);
  background-size: cover; background-position: center;
}
.property-info { padding: 22px 24px 26px; }
.property-badge {
  display: inline-block; font-family: var(--sans); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep);
  background: var(--cream-2); border: 1px solid var(--line-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.property-info h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0 0 6px; font-weight: 600; }
.property-meta { margin: 0 0 10px; color: var(--ink-soft); font-size: .92rem; }
.property-price { margin: 0; font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.1rem; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.about-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; font-size: 1.04rem; }
.about-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-weight: 600; color: var(--gold-deep); font-size: 1.7rem; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.about-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); min-height: 280px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background-color: var(--cream-3);
  background-image: linear-gradient(135deg, #efe2c7, #cdb68d 55%, #a7bcc6);
  background-size: cover; background-position: center;
}

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.nextstep {
  display: grid; grid-template-columns: 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(32px, 4.5vw, 56px);
  box-shadow: var(--shadow);
}
.nextstep-main { padding-right: 0; }
.nextstep-title {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; margin: 12px 0 20px;
}
.nextstep-lead { color: var(--ink); font-size: 1.05rem; margin: 0 0 8px; }
.nextstep-note { color: var(--ink-soft); font-size: .95rem; margin: 0; max-width: 48ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #e9e0cf; padding: clamp(16px, 2.2vw, 24px) 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; justify-self: start; }
.footer-logo { width: auto; height: 54px; display: block; }
.footer-tag { font-family: var(--serif); font-style: italic; color: #e9e0cf; margin: 0; font-size: 1.02rem; justify-self: center; text-align: center; }
.footer-copy { margin: 0; font-size: .86rem; color: #bdb29c; justify-self: end; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .services-bottom { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 14px 0 22px;
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .22s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; width: 92%; margin-inline: auto; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.2rem; padding: 14px 10px; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 8px 12px; min-width: 0; display: none;
  }
  .has-menu.open .submenu { display: block; }
  .services-top { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer-brand { justify-self: center; }
  .footer-tag { justify-self: center; }
  .footer-copy { justify-self: center; }
}
@media (max-width: 560px) {
  .services-bottom { grid-template-columns: 1fr; }
  .svc-body, .svc-compact .svc-body { width: 60%; padding: 18px 16px; }
  .svc-photo, .svc-compact .svc-photo { width: 42%; }
  .svc-tags, .svc-compact .svc-tags { white-space: normal; line-height: 1.5; }
  .field-row { grid-template-columns: 1fr; }
  .section-title { white-space: normal; }
  .hero-group { letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
