/* =========================================================
   Plains Property Management — brochure site
   Brand palette taken from the Plains logo:
   green (PROPERTY bar) + deep purple/indigo (PLAINS / MANAGEMENT).
   ========================================================= */

:root {
  --purple:       #3A2A7C;   /* brand purple — headings, dark UI */
  --purple-deep:  #241C57;   /* darkest — footer & dark sections  */
  --green:        #2E9D4E;   /* brand green — CTAs, accents        */
  --green-deep:   #1E7D3A;
  --green-soft:   #5FC57F;   /* light green for on-dark accents    */
  --cream:        #F3F5F3;   /* light neutral background           */
  --paper:        #FFFFFF;
  --ink:          #1E2430;
  --muted:        #5A6270;
  --line:         #E4E5EA;
  --shadow:       0 10px 30px rgba(36, 28, 87, 0.08);
  --shadow-lg:    0 24px 60px rgba(36, 28, 87, 0.16);
  --radius:       14px;
  --radius-sm:    9px;
  --wrap:         1160px;
  --font-head:    "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--purple);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--purple); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-deep); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 .8em;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--purple-deep); color: #E7E6F2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--green-soft); }

.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--brand  { background: var(--green); color: #fff; }
.btn--brand:hover  { background: var(--green-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost  { background: transparent; color: var(--purple); border-color: var(--line); }
.btn--ghost:hover  { border-color: var(--green); color: var(--green-deep); }
.btn--light  { background: #fff; color: var(--purple); }
.btn--light:hover  { background: var(--green-soft); color: #17331f; transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 52px; width: auto; display: block; }
/* text fallback mark, shown only if the logo image is missing */
.brand__mark {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--green-soft); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
}
.brand__name { font-family: var(--font-head); font-weight: 600; color: var(--purple); font-size: 1.08rem; line-height: 1.05; }
.brand__name span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); }

.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links > li > a { font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav__links > li > a:hover, .nav__links a.active { color: var(--green-deep); }
.nav__cta { margin-left: 4px; }

/* Portal dropdown */
.has-menu { position: relative; }
.has-menu > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .7; }
.submenu {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 210px;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: .2s ease;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .92rem; color: var(--ink); }
.submenu a:hover { background: var(--cream); color: var(--green-deep); }
.submenu small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--purple); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(180deg, rgba(36,28,87,.74), rgba(36,28,87,.86)),
    url("../img/hero.jpg") center/cover no-repeat,
    radial-gradient(120% 120% at 12% 0%, #4535A0 0%, var(--purple-deep) 55%, #171246 100%);
  padding: clamp(80px, 13vw, 150px) 0 clamp(70px, 11vw, 130px);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 55% at 88% 18%, rgba(46,157,78,.22), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: #E7E6F2; font-size: 1.2rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 46px; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #E7E6F2; }
.hero__badge b { color: var(--green-soft); font-family: var(--font-head); font-size: 1.5rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: #EAF6EE; color: var(--green-deep); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--purple); }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split__media--frame { background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: var(--green-soft); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.step__num::before { content: counter(step); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--green-soft); }
.stat span { color: #C7C5DD; font-size: .95rem; }

/* ---------- Portal cards (owners/tenants big CTA) ---------- */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.portal-card { border-radius: var(--radius); padding: 34px; color: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.portal-card--green  { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.portal-card--purple { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }
.portal-card h3 { color: #fff; font-size: 1.5rem; }
.portal-card p { color: rgba(255,255,255,.9); }
.portal-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; color: var(--green); }

/* ---------- Testimonial ---------- */
.quote { max-width: 46ch; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.35; }
.quote cite { font-style: normal; font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,157,78,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #EAF6EE; color: var(--green-deep); display: grid; place-items: center; }
.info-list b { display: block; color: var(--purple); }
.info-list a, .info-list span { color: var(--muted); }
.map-frame { border: 0; width: 100%; height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: #B9B6D0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { color: #B9B6D0; }
.site-footer a:hover { color: var(--green-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8B88A8; }
.footer-brand p { color: #9895B4; font-size: .95rem; max-width: 34ch; }
.footer-eho { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; color: #8B88A8; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links > li > a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .submenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .has-menu > a::after { display: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
  .split, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
