/* =====================================================
   McClendon Realty — Design System
   Ported from reference-sharp.html
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary:       #15395c;
  --primary-hover: #0f2c47;
  --secondary:     #2f6fb3;
  --accent:        #54a04a;
  --accent-hover:  #478c3f;
  --n50:  #f5f8fb; --n100: #eaf0f6; --n200: #d8e3ee; --n300: #b9cad9;
  --n400: #8ba0b3; --n500: #5f7589; --n600: #445667; --n700: #2f3e4d;
  --n800: #1d2935; --n900: #0f1822;
  --text:      #15293a;
  --text-soft: #5f7589;
  --inverse:   #fff;
  --bg:      #fff; --bg-soft: #f5f8fb; --bg-sky: #dce9f5;
  --bg-dark: #11202e; --border: #e0e8f0;
  --f-head: 'Sora', sans-serif;
  --f-body: 'Plus Jakarta Sans', sans-serif;
  --r-sm: 0px; --r-md: 0px; --r-lg: 0px; --r-xl: 0px; --r-pill: 0px;
  --sh-sm: 0 2px 8px  rgba(21,41,58,.06);
  --sh-md: 0 10px 30px rgba(21,41,58,.08);
  --sh-lg: 0 24px 60px rgba(21,41,58,.12);
  --page: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -.02em;
}
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.center  { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  border: none; border-radius: var(--r-pill); padding: 14px 26px;
  cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-navy   { background: var(--primary);   color: #fff; }
.btn-navy:hover  { background: var(--primary-hover); transform: translateY(-2px); }
.btn-accent { background: var(--accent);    color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost  { background: transparent; color: var(--primary); border: 1.5px solid var(--n200); }
.btn-ghost:hover { border-color: var(--primary); }

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--f-body); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .74rem; color: var(--secondary);
}

/* ── Section heading ── */
.shead { max-width: 640px; margin: 0 auto 56px; }
.shead h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
.shead h2 .accent { color: var(--accent); }
.shead .dash { width: 54px; height: 4px; background: var(--accent); border-radius: 0; margin: 18px auto 0; }
.shead.left { margin-left: 0; text-align: left; }
.shead.left .dash { margin-left: 0; }

/* ── Topbar ── */
.topbar { background: var(--primary-hover); color: #cdd9e6; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #cdd9e6; transition: .2s; }
.topbar a:hover { color: #fff; }
.topbar .right { display: flex; gap: 18px; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--sh-md); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }

/* ── Logo ── */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 800;
  font-size: 1.35rem; color: var(--primary);
}
.logo .mark {
  width: 38px; height: 38px; border-radius: 0;
  background: var(--primary); display: grid; place-items: center; color: #fff;
}
.logo .mark svg { width: 20px; height: 20px; }
.logo .thin { font-weight: 600; color: var(--secondary); }

/* ── Nav ── */
.nav { display: flex; gap: 26px; margin-left: 8px; list-style: none; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--n700);
  position: relative; padding: 4px 0; transition: .2s;
}
.nav a:hover,
.nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px; background: var(--accent); border-radius: 0;
}
/* WP nav menu li compatibility */
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a {
  font-weight: 600; font-size: .95rem; color: var(--n700);
  position: relative; padding: 4px 0; transition: .2s;
}
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current_page_item > a { color: var(--primary); }
.nav > ul > li.current-menu-item > a::after,
.nav > ul > li.current_page_item > a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px; background: var(--accent); border-radius: 0;
}

/* ── Header Actions ── */
.header .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.call { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-soft); }
.call .ic { width: 38px; height: 38px; border-radius: 0; background: var(--n100); display: grid; place-items: center; color: var(--primary); }
.call b { display: block; font-family: var(--f-head); font-size: 1rem; color: var(--primary); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--primary); border-radius: 0; display: block; }

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, var(--bg-sky) 0%, #eaf2fa 60%, #fff 100%);
  padding: 72px 0 0; overflow: hidden;
}
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { margin: 22px 0 30px; font-size: 1.12rem; color: var(--n600); max-width: 480px; }

/* ── Search bar ── */
.searchbar {
  display: flex; background: #fff; border-radius: var(--r-pill);
  box-shadow: var(--sh-md); padding: 8px; max-width: 520px;
  border: 1px solid var(--border);
}
.searchbar input {
  flex: 1; border: none; outline: none; font-family: var(--f-body);
  font-size: 1rem; padding: 0 20px; color: var(--text); background: transparent;
}

.news .wpcf7-form input[type='email'] {
  flex: 1; border: none; outline: none; padding: 0 20px;
  font-family: var(--f-body); font-size: 1rem; background: transparent;
}

.searchbar input::placeholder { color: var(--n400); }

/* ── Trust stats ── */
.hero .trust { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.hero .trust .t b { font-family: var(--f-head); font-size: 1.7rem; color: var(--primary); display: block; }
.hero .trust .t span { font-size: .82rem; color: var(--text-soft); }

/* ── Hero media ── */
.hero-media { position: relative; }
.hero-media .frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/3; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .chip {
  position: absolute; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-media .chip.bl { bottom: 24px; left: -18px; }
.hero-media .chip.tr { top: 22px; right: -14px; }
.hero-media .chip .av {
  width: 42px; height: 42px; border-radius: 0;
  background: var(--accent); display: grid; place-items: center; color: #fff;
  flex-shrink: 0;
}
.hero-media .chip b { font-family: var(--f-head); font-size: .95rem; color: var(--primary); display: block; }
.hero-media .chip span { font-size: .76rem; color: var(--text-soft); }

/* ── Feature cards ── */
.features { padding-top: 72px; position: relative; z-index: 5; }
feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fcard {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: 34px 28px; border: 1px solid var(--border); transition: .25s;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.fcard .ic {
  width: 64px; height: 64px; border-radius: 0;
  background: var(--primary); display: grid; place-items: center;
  color: #fff; margin-bottom: 20px;
}
.fcard:nth-child(2) .ic { background: var(--accent); }
.fcard:nth-child(3) .ic { background: var(--secondary); }
.fcard .ic svg { width: 30px; height: 30px; }
.fcard h3 { font-size: 1.3rem; margin-bottom: 10px; }
.fcard p { color: var(--text-soft); font-size: .96rem; }

/* ── Listings ── */
.listings { background: var(--bg-soft); }
.lgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.lcard {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border); transition: .25s;
}
.lcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.lcard .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.lcard:hover .ph img { transform: scale(1.05); }
.lcard .price {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  padding: 7px 16px; border-radius: var(--r-pill);
}
.lcard .tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(21,57,92,.92); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 6px 12px;
  border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .05em;
}
.lcard .body { padding: 22px; }
.lcard h3 { font-size: 1.15rem; margin-bottom: 4px; }
.lcard .loc { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: .9rem; }
.lcard .specs {
  display: flex; gap: 18px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.lcard .specs .s { display: flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--n600); font-weight: 600; }
.lcard .specs svg { width: 18px; height: 18px; color: var(--secondary); }
.lcta { text-align: center; margin-top: 48px; }

/* ── Testimonials ── */
.testi { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.testi::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(84,160,74,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(47,111,179,.25), transparent 50%);
}
.testi .wrap { position: relative; }
.testi h2 { color: #fff; }
.testi h2 .accent { color: #7fd073; }
.testi .dash { background: #7fd073; }
.tslider { max-width: 860px; margin: 48px auto 0; position: relative; }
.tquote { display: none; text-align: center; }
.tquote.on { display: block; animation: mcr-fade .5s ease; }
@keyframes mcr-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tquote .mark { font-family: var(--f-head); font-size: 4rem; line-height: .5; color: var(--accent); height: 34px; opacity: .7; }
.tquote p { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 500; line-height: 1.5; color: #eaf2fa; }
.tquote .who { margin-top: 26px; }
.tquote .who b { font-family: var(--f-head); font-size: 1.05rem; display: block; }
.tquote .who span { color: #aac4dc; font-size: .9rem; }
.tnav { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.tnav button {
  width: 48px; height: 48px; border-radius: 0;
  border: 1.5px solid rgba(255,255,255,.3); background: transparent;
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.tnav button:hover { background: #fff; color: var(--primary); }

/* ── Newsletter ── */
.zews { background: var(--bg-soft); }
.news { background: var(--bg-soft); }
.news .box {
  background: linear-gradient(120deg, var(--primary), #1f4d77);
  border-radius: var(--r-xl); padding: 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center; color: #fff; position: relative; overflow: hidden;
}
.news .box::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 0; background: rgba(84,160,74,.25);
}
.news h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.news h2 .accent { color: #7fd073; }
.news p { color: #cdddec; margin-top: 10px; }
.nform-wrap { position: relative; z-index: 2; }
.nform {
  display: flex; gap: 10px; background: #fff;
  border-radius: var(--r-pill); padding: 8px;
}
.nform input {
  flex: 1; border: none; outline: none; padding: 0 20px;
  font-family: var(--f-body); font-size: 1rem; background: transparent;
}
.nform button { width: 54px; height: 54px; flex: none; border-radius: 0; display: grid; place-items: center; padding: 0; }

/* CF7 newsletter form override */
.news .wpcf7 { width: 100%; }
.news .wpcf7-form {
  display: flex !important; gap: 10px; background: #fff;
  border-radius: var(--r-pill); padding: 8px; position: relative; z-index: 2;
  align-items: center;
}
.news .wpcf7-form p { margin: 0 !important; display: contents; }
.news .wpcf7-form input[type='submit'] {
  background: var(--accent); color: #fff; font-family: var(--f-body);
  font-weight: 600; font-size: .95rem; border: none; border-radius: var(--r-pill);
  padding: 14px 26px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.news .wpcf7-form input[type='submit']:hover { background: var(--accent-hover); }

/* ── Footer ── */
.footer { background: var(--bg-dark); color: #9fb3c4; padding: 72px 0 0; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer .logo .mark { background: #fff; color: var(--primary); }
.footer .logo .thin { color: #7fd073; }
.footer p.about { font-size: .9rem; line-height: 1.7; max-width: 420px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.fcol .row { display: flex; gap: 10px; margin-bottom: 12px; font-size: .9rem; }
.fcol .row svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.fcol .hours div { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; max-width: 200px; }
.fphone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 1.25rem; color: #fff; margin-top: 6px;
}
.fsocial { display: flex; gap: 10px; margin-top: 18px; }
.fsocial a {
  width: 38px; height: 38px; border-radius: 0;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: #fff; transition: .2s;
}
.fsocial a:hover { background: var(--accent); }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .84rem; color: #7e93a6; }
.copy a { color: var(--accent); }

/* ── GeneratePress / WP global resets */
.phc-homepage * { box-sizing: border-box; }
.mcr-homepage * { box-sizing: border-box; }
.mcr-homepage .mcr-content > .wp-block-group,
.mcr-homepage .entry-content > * { max-width: 100%; }

.hide-sm { }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 560px; }
  .news .box { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .feat-grid, .lgrid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; gap: 36px; }
  .nav, .call { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px; gap: 14px;
    box-shadow: var(--sh-md); margin: 0; z-index: 100;
  }
  .nav.open ul { flex-direction: column; gap: 14px; }
  .section { padding: 72px 0; }
  .features { padding-top: 40px; }
  .news .box { padding: 36px 28px; }
  .hide-sm { display: none; }
}

@media (max-width: 560px) {
  .hero .trust { gap: 22px; }
  .hero-media .chip.bl { left: 8px; }
  .hero-media .chip.tr { right: 8px; }
}
