/* ============================================================
   Midlands One Realty LLC — custom styles
   Deep navy (#0f2a43) + warm gold (#c9a227). No frameworks.
   ============================================================ */

:root {
  --navy: #0f2a43;
  --navy-deep: #0a1e31;
  --navy-soft: #16344f;
  --gold: #c9a227;
  --gold-soft: #e3c563;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --paper: #ffffff;
  --paper-alt: #f4f6f8;
  --line: #e2e8ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); }
a:hover { color: var(--gold); }

img { max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.container.narrow { width: min(720px, 92%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.15rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand-sub { color: var(--gold-soft); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #e8edf2;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--gold-soft); background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-call {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  white-space: nowrap;
}
.btn-call:hover { background: var(--gold-soft); color: var(--navy) !important; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(201,162,39,0.14), transparent 60%),
    linear-gradient(160deg, rgba(10,26,41,0.72) 0%, rgba(15,42,67,0.62) 70%);
}
.hero-inner { position: relative; z-index: 2; width: min(840px, 92%); margin: 0 auto; }
.hero-eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero h1 .llc { color: var(--gold-soft); font-size: 0.55em; vertical-align: middle; letter-spacing: 0.06em; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.hero-copy { color: #d7dee6; max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #ffffff; color: var(--navy); }
.hero .btn-primary:hover { background: #f0f3f6; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-alt); }
.section-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.monogram {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.team-role {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}
.team-contact { margin-bottom: 0; font-size: 0.95rem; }
.team-contact a { color: var(--navy); }

/* ---------- Listings / portals ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.portal-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.portal-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.portal-card h3 { margin-bottom: 0.4rem; }
.portal-card p { color: var(--muted); margin-bottom: 1rem; }
.portal-link { color: var(--gold); font-weight: 700; }
.listings-cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}
.listings-cta p { color: #d7dee6; max-width: 620px; margin: 0 auto 1.5rem; }
.listings-cta strong { color: #fff; }

/* ---------- Communities ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.community-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--paper);
  border-top: 4px solid var(--gold);
}
.community-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.community-card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Forms ---------- */
.lead-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
  background: #fff;
}
.form-field textarea { resize: vertical; }
.form-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* ---------- Calculator ---------- */
.calc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  margin-bottom: 1.5rem;
}
.calc-results {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  color: #fff;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.98rem;
}
.calc-result-row:last-child { border-bottom: 0; }
.calc-result-row span { color: #cfd8e2; }
.calc-result-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.calc-result-row.calc-total { font-size: 1.2rem; padding-bottom: 0.8rem; }
.calc-result-row.calc-total strong { color: var(--gold-soft); font-size: 1.6rem; }
.calc-result-row.calc-sub { font-size: 0.88rem; }
.calc-card .form-note { margin-top: 1.2rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.review-text { font-style: italic; color: var(--ink); }
.review-name { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info h3 { color: #fff; margin-bottom: 0.8rem; }
.contact-info address { font-style: normal; color: #d7dee6; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.6rem; }
.contact-info a { color: var(--gold-soft); }
.contact-phone { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.badge {
  border: 1.5px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #aeb9c5;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer-inner { text-align: center; }
.footer-inner p { margin-bottom: 0.4rem; }
.footer-fair { font-size: 0.82rem; color: #8b98a6; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 4%;
    gap: 0.1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0.6rem; }
  .main-nav .btn-call { margin-top: 0.5rem; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lead-form, .calc-card { padding: 1.4rem; }
}
