/* The Cline Group — shared styles for every page.
   Measurements taken from the live closedbycline.com (Luxury Presence) at 1440px wide. */
:root {
  --cream: #F5EFE6;
  --greige: #D6D0C4;
  --charcoal: #2F2F2F;
  --sage: #7C8B6D;
  --sage-light: #AEBBA3;
  --terracotta: #C97A5D;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--charcoal); background: var(--cream); font-size: 16px; line-height: 1.6; letter-spacing: 1px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.cg-wrap { max-width: 1380px; margin: 0 auto; padding: 0 40px; }
.cg-h2 { font-family: var(--serif); font-weight: 400; font-size: 45px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.cg-h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
.cg-pad { padding: 96px 0; }

/* Buttons */
.cg-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 1.5px; line-height: 1; text-transform: uppercase; padding: 20px 46px; border: 1px solid var(--sage); background: var(--sage); color: var(--white); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cg-btn:hover { background: transparent; color: var(--sage); }
.cg-btn.light { background: var(--white); border-color: var(--white); color: var(--charcoal); }
.cg-btn.light:hover { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
.cg-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 90px; transition: background .35s ease, box-shadow .35s ease; }
.cg-header.scrolled, .cg-header.solid { background: var(--sage); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.cg-header .bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 36px; }
.cg-nav { display: flex; align-items: center; }
.cg-nav.right { justify-content: flex-end; }
.cg-nav > a, .cg-nav > .dd > button, .cg-nav > button.link { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 1.5px; line-height: 13px; text-transform: uppercase; color: var(--white); padding: 19px 13px; background: none; border: 0; cursor: pointer; position: relative; }
.cg-nav > a::after, .cg-nav > button.link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.cg-nav > a:hover::after, .cg-nav > button.link:hover::after { transform: scaleX(1); }
.cg-logo { display: block; width: 108px; }
.cg-logo img { width: 100%; }
.dd { position: relative; }
.dd > button { padding-right: 36px !important; }
.dd > button::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-75%) rotate(45deg); }
.dd-menu { position: absolute; top: 100%; right: 0; min-width: 210px; background: var(--white); padding: 8px 0; opacity: 0; pointer-events: none; transform: translateY(6px); transition: all .2s; box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; pointer-events: auto; transform: none; }
.dd-menu a { display: block; padding: 8px 18px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--charcoal); }
.dd-menu a:hover { color: var(--sage); }
.cg-burger { width: 44px; height: 44px; margin-left: 10px; background: none; border: 0; cursor: pointer; position: relative; }
.cg-burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--white); }
.cg-burger span:nth-child(1) { top: 15px; } .cg-burger span:nth-child(2) { top: 21px; } .cg-burger span:nth-child(3) { top: 27px; }

/* Full-screen menu (hamburger + Let's Connect) */
.cg-menu { position: fixed; inset: 0; z-index: 80; background: var(--sage); color: var(--white); opacity: 0; pointer-events: none; transition: opacity .35s; overflow-y: auto; }
.cg-menu.open { opacity: 1; pointer-events: auto; }
.cg-menu .close { position: absolute; top: 30px; right: 40px; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; }
.cg-menu .close::before, .cg-menu .close::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--white); transform: rotate(45deg); }
.cg-menu .close::after { transform: rotate(-45deg); }
.cg-menu nav { position: absolute; right: 88px; top: 82px; text-align: right; display: flex; flex-direction: column; gap: 2px; padding-bottom: 40px; }
.cg-menu .label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.cg-menu nav a, .cg-menu nav button { font-family: var(--serif); font-size: 27px; line-height: 40px; letter-spacing: .5px; text-transform: uppercase; color: var(--white); background: none; border: 0; cursor: pointer; text-align: right; transition: opacity .2s; }
.cg-menu nav a:hover, .cg-menu nav button:hover { opacity: .7; }

/* Floating Let's Connect pill */
.cg-connect { position: fixed; left: 22px; bottom: 22px; z-index: 40; height: 36px; padding: 0 24px; border-radius: 25px; border: 1px solid rgba(255,255,255,.2); background: var(--terracotta); color: var(--white); font-family: var(--serif); font-size: 10px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); }
.cg-connect::after { content: "›"; font-size: 14px; line-height: 1; }

/* Guaranteed Offer modal */
.cg-modal { position: fixed; inset: 0; z-index: 90; background: rgba(20,20,20,.97); color: var(--white); opacity: 0; pointer-events: none; transition: opacity .3s; overflow-y: auto; }
.cg-modal.open { opacity: 1; pointer-events: auto; }
.cg-modal .close { position: fixed; top: 30px; right: 40px; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; }
.cg-modal .close::before, .cg-modal .close::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1px; background: var(--white); transform: rotate(45deg); }
.cg-modal .close::after { transform: rotate(-45deg); }
.cg-modal .inner { max-width: 1000px; margin: 0 auto; padding: 50px 30px; text-align: center; }
.cg-modal .cg-h2 { max-width: 700px; margin: 0 auto 16px; }
.cg-modal .sub { font-size: 14px; margin-bottom: 30px; }
.cg-modal .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; align-items: start; }
.cg-modal .grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Underline-style forms (contact page + offer modal) */
.cg-form { display: grid; gap: 26px; }
.cg-form label.f { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.cg-form input[type=text], .cg-form input[type=email], .cg-form input[type=tel], .cg-form textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 15px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 8px 0; outline: none; border-radius: 0; }
.cg-form textarea { border: 1px solid currentColor; padding: 10px; min-height: 120px; resize: vertical; }
.cg-form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 11px; line-height: 1.6; letter-spacing: .3px; }
.cg-form .consent input { margin-top: 3px; flex: none; }
.cg-form .consent a { text-decoration: underline; }
.cg-form .actions { display: flex; }
.cg-modal .cg-form .cg-btn { background: var(--white); color: var(--charcoal); border-color: var(--white); padding: 16px 40px; }

/* ---------- Page hero (inner pages) ---------- */
.cg-hero { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: #333 center/cover no-repeat; }
.cg-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.cg-hero .in { position: relative; padding: 90px 30px 0; }
.cg-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 70px; line-height: 1.25; letter-spacing: 1px; text-transform: uppercase; }
.cg-hero p { font-family: var(--serif); font-size: 21px; line-height: 1.57; margin-top: 14px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Success Stories slider ---------- */
.cg-stories { position: relative; color: var(--white); background: center/cover no-repeat; padding: 96px 0 110px; overflow: hidden; }
.cg-stories::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.cg-stories > * { position: relative; }
.cg-stories .cg-h2 { text-align: center; margin-bottom: 44px; }
.st-track { position: relative; height: 430px; max-width: 1300px; margin: 0 auto; }
.st-card { position: absolute; top: 0; left: 50%; width: 540px; margin-left: -270px; min-height: 410px; background: var(--cream); color: var(--charcoal); text-align: center; padding: 48px 50px 44px; transition: transform .6s ease, opacity .6s ease; opacity: 0; pointer-events: none; }
.st-card.is-active { opacity: 1; pointer-events: auto; z-index: 3; }
.st-card.is-prev { opacity: .55; transform: translateX(-470px) scale(.9); z-index: 2; }
.st-card.is-next { opacity: .55; transform: translateX(470px) scale(.9); z-index: 2; }
.initials { width: 56px; height: 56px; border-radius: 50%; background: #111; color: var(--white); font-family: var(--serif); font-size: 19px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; letter-spacing: 0; }
.st-card .cg-h4 { margin-bottom: 14px; }
.st-card p { font-size: 14px; line-height: 1.6; margin-bottom: 26px; }
.st-nav { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.st-nav button { width: 40px; height: 40px; background: var(--white); border: 0; cursor: pointer; position: relative; }
.st-nav button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-left: 1px solid var(--charcoal); border-bottom: 1px solid var(--charcoal); transform: translate(-30%, -50%) rotate(45deg); }
.st-nav button.next::after { transform: translate(-70%, -50%) rotate(-135deg); }

/* ---------- Portfolio carousel ---------- */
.cg-portfolio { background: var(--cream); }
.pf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 20px; }
.pf-arrows { display: flex; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.pf-arrows button { background: none; border: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; font-size: inherit; color: var(--charcoal); }
.pf-arrows span { opacity: .4; }
.pf-viewport { overflow: hidden; }
.pf-track { display: flex; gap: 30px; transition: transform .6s ease; }
.pf-card { flex: 0 0 calc((100% - 60px) / 3); background: #DCD6CB; text-align: center; display: block; }
.pf-card .ph { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.pf-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.pf-card:hover .ph img { transform: scale(1.05); }
.pf-card .tag { position: absolute; top: 0; right: 0; background: var(--terracotta); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; padding: 8px 18px; text-transform: uppercase; }
.pf-card .body { padding: 26px 24px 30px; }
.pf-card .addr { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.pf-card .facts { font-size: 12px; letter-spacing: 1px; margin-top: 4px; }
.pf-card .price { font-size: 17px; font-weight: 500; letter-spacing: 1px; margin-top: 10px; }
.pf-all { text-align: center; margin-top: 50px; }

/* ---------- Start your property search band ---------- */
.cg-searchband { background: var(--sage-light); color: var(--white); padding: 96px 0; }
.cg-searchband .cg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ---------- The Cline Difference ---------- */
.cg-difference { position: relative; min-height: 689px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: center/cover no-repeat fixed; }
.cg-difference::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.cg-difference .in { position: relative; max-width: 650px; padding: 80px 24px; }
.cg-difference .cg-h2 { margin-bottom: 28px; }
.cg-difference p { margin-bottom: 40px; }

/* ---------- Instagram ---------- */
.cg-insta { background: var(--white); }
.ig-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.ig-head small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }
.ig-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.ig-grid div { background: var(--cream); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(47,47,47,.45); padding: 10px; }
.ig-grid div:first-child { grid-row: span 2; }

/* ---------- Footer ---------- */
.cg-footer { background: var(--sage); color: var(--white); padding: 80px 0 30px; }
.cg-footer .title { font-family: var(--serif); font-size: 29px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 40px; }
.f-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 30px; margin-bottom: 26px; align-items: start; }
.f-name { font-size: 21px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; }
.f-item { display: flex; gap: 16px; align-items: flex-start; }
.f-item svg { flex: none; width: 22px; height: 22px; margin-top: -2px; }
.f-item b { display: block; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; line-height: 1; }
.f-item a, .f-item span { font-size: 14px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.6; }
.f-item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-legal { display: grid; grid-template-columns: 200px 1fr; gap: 30px; margin-top: 50px; align-items: center; }
.f-legal .anvil { width: 150px; filter: brightness(0) invert(1); }
.f-legal p { font-size: 12px; line-height: 1.6; }
.f-legal .eho { height: 30px; width: auto; margin-top: 14px; filter: brightness(0) invert(1); }
.f-bottom { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.35); display: flex; justify-content: flex-end; align-items: center; gap: 30px; flex-wrap: wrap; font-size: 13px; }
.f-bottom a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--sage); display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.socials a:hover { opacity: .8; }
.socials svg { width: 15px; height: 15px; }
.socials.terra a { background: var(--terracotta); color: var(--white); width: 34px; height: 34px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cg-nav > a, .cg-nav > .dd, .cg-nav > button.link { display: none; }
  .cg-header .bar { padding: 0 20px; }
  .pf-card { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 860px) {
  .cg-wrap { padding: 0 20px; }
  .cg-pad { padding: 70px 0; }
  .cg-h2 { font-size: 32px; }
  .cg-hero { height: 460px; }
  .cg-hero h1 { font-size: 40px; }
  .cg-hero p { font-size: 17px; }
  .st-card { width: calc(100vw - 40px); margin-left: calc(-50vw + 20px); padding: 40px 24px; }
  .st-card.is-prev, .st-card.is-next { opacity: 0; }
  .st-track { height: 470px; }
  .pf-card { flex-basis: 100%; }
  .cg-difference { background-attachment: scroll; min-height: 520px; }
  .ig-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .ig-grid div { aspect-ratio: 1; }
  .ig-grid div:first-child { grid-row: auto; grid-column: span 2; }
  .f-row, .f-legal { grid-template-columns: 1fr; gap: 14px; }
  .cg-modal .grid { grid-template-columns: 1fr; }
  .cg-menu nav { right: 30px; }
  .f-bottom { justify-content: flex-start; }
}

/* ---------- RealScout widgets: Cline Group brand (variables published by RealScout's widget script) ---------- */
realscout-simple-search, realscout-advanced-search, realscout-home-value, realscout-your-listings {
  --rs-wc-font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
realscout-simple-search {
  --rs-ss-font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --rs-ss-font-primary: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --rs-ss-font-primary-color: #2F2F2F;
  --rs-ss-searchbar-background-color: #FFFFFF;
  --rs-ss-searchbar-border-color: #D6D0C4;
  --rs-ss-box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
  --rs-ss-widget-width: 100% !important;
}
realscout-advanced-search {
  --rs-as-font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --rs-as-background-color: #FFFFFF;
  --rs-as-button-color: #7C8B6D;
  --rs-as-button-text-color: #FFFFFF;
  --rs-as-widget-width: 100% !important;
}
realscout-home-value {
  --rs-hvw-background-color: #FFFFFF;
  --rs-hvw-title-color: #2F2F2F;
  --rs-hvw-subtitle-color: rgba(47,47,47,.65);
  --rs-hvw-input-text-color: #2F2F2F;
  --rs-hvw-primary-button-color: #7C8B6D;
  --rs-hvw-primary-button-text-color: #FFFFFF;
  --rs-hvw-secondary-button-color: #FFFFFF;
  --rs-hvw-secondary-button-text-color: #7C8B6D;
  --rs-hvw-widget-width: auto;
}
realscout-your-listings { --rs-listing-divider-color: #7C8B6D; width: 100%; }
.form-error { grid-column: 1 / -1; color: #b3261e; font-size: 13px; line-height: 1.5; margin-top: 6px; }
