/* ==========================================================================
   Bhinder Sharma Team — shared design system
   Palette: crimson red + gold yellow + black + white
   Type scale + a11y per the team preview-design-guide (18px body, h1–h5,
   WCAG 2.2 AA contrast).
   ========================================================================== */

:root {
  --red:       #d81f2f;   /* primary crimson — 4.8:1 on white for large/bold */
  --red-dark:  #a8121f;   /* hover / focus */
  --yellow:    #f7c600;   /* accent gold */
  --ink:       #171717;   /* body text */
  --muted:     #5a5a5a;   /* meta text — 6.8:1 on white */
  --dark:      #0e0e0e;   /* dark section bg */
  --dark-2:    #1a1a1a;   /* dark section panel */
  --line:      #e4e4e4;
  --bg:        #ffffff;
  --bg-soft:   #f4f4f3;
  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1180px;
  --shadow:    0 6px 24px rgba(0,0,0,.08);
}

/* ---- reset-ish ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 1.125rem;        /* 18px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ---- headings — locked to the type scale -------------------------------- */
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }  /* 36 → 56px */
h2 { font-size: 2.25rem; }                       /* 36px */
h3 { font-size: 1.5rem; }                        /* 24px */
h4 { font-size: 1.125rem; }                      /* 18px */
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
p  { margin: 0 0 1rem; }

/* ---- layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #f2f2f2; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { color: var(--red); margin-bottom: .25em; }
.section--dark .section-head h2 { color: var(--yellow); }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0 auto; }
.section--dark .section-head p { color: #c9c9c9; }
.eyebrow {
  display: inline-block; font-size: .875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  margin-bottom: .5rem;
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; font-size: 1rem; font-weight: 700;
  padding: 13px 26px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn-gold { background: var(--yellow); color: #1a1a1a; }
.btn-gold:hover { background: #ffd633; color: #1a1a1a; text-decoration: none; }

/* visible focus for keyboard users (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: #1a1a1a; padding: 10px 16px;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark); color: #fff;
  border-bottom: 3px solid var(--red);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex-shrink: 0; }
.brand, .brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-weight: 700; color: var(--yellow); font-size: 1.5rem; line-height: 1.1; white-space: nowrap; }
.brand-sub {
  display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-style: normal; font-weight: 600; font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: #fff; margin-top: 3px;
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; background: none; border: 2px solid #444;
  color: #fff; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 1rem;
}

.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a.nav-link {
  display: block; color: #f2f2f2; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; white-space: nowrap;
}
.nav-menu a.nav-link:hover,
.nav-menu a.nav-link:focus-visible { color: var(--yellow); text-decoration: none; }
.nav-menu a.nav-link[aria-current="page"] { color: var(--yellow); }

/* dropdown */
.has-sub > .nav-link::after { content: " ▾"; font-size: .75rem; }
.subnav {
  position: absolute; left: 0; top: 100%; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); list-style: none; margin: 6px 0 0; padding: 6px;
  display: none;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { display: block; }
.subnav a { display: block; color: var(--ink); padding: 9px 12px; border-radius: 6px; font-size: 1rem; }
.subnav a:hover, .subnav a:focus-visible { background: var(--bg-soft); color: var(--red); text-decoration: none; }

.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 9px 15px; border-color: var(--yellow); }
.nav-call { display: inline-flex; align-items: center; gap: 7px; }
.nav-call svg { flex: 0 0 auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #0c1018 center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,16,.88) 0%, rgba(8,10,16,.64) 38%, rgba(8,10,16,.22) 66%, rgba(8,10,16,0) 100%);
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 48px 20px; display: flex; align-items: center; min-height: 540px;
}
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--yellow); margin-bottom: .15em;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hero .hero-sub { font-size: 1.25rem; font-weight: 600; color: #f0f0f0; margin-bottom: 1.25rem; max-width: 30ch; }
.hero .hero-phone {
  display: inline-block; font-size: 2.25rem; font-weight: 800; color: #fff;
  letter-spacing: .01em; margin: 0 0 .1em;
}
.hero .hero-phone:hover { color: var(--yellow); text-decoration: none; }
.hero .hero-email { display: block; color: #eaeaea; font-size: 1.125rem; margin-bottom: 1.4rem; }
.hero .hero-email:hover { color: var(--yellow); }
.hero-agent {
  position: absolute; right: 20px; top: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; pointer-events: none;
}
.hero-agent img { height: 94%; max-height: none; width: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }

/* ==========================================================================
   Featured listings / iframe widgets
   ========================================================================== */
.idx-frame {
  width: 100%; border: 0; display: block; background: var(--bg-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.idx-note { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 14px; }
.center-cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   Welcome / bio split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split h2 { color: var(--red); }
.split .lead { font-size: 1.25rem; }
.split strong { color: var(--ink); }
.bio-figure { margin: 0; }
.bio-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.badge-row { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.badge-row img { height: 88px; width: auto; flex: 0 0 auto; }
.badge-row .badge-text h4 { margin: 0; color: var(--red); }
.badge-row .badge-text p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   Awards (dark)
   ========================================================================== */
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; }
.award-block { break-inside: avoid; }
.award-block h3 { color: var(--yellow); font-size: 1.125rem; margin-bottom: .3em; }
.award-block ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.award-block li { position: relative; padding-left: 22px; color: #e6e6e6; font-size: 1rem; line-height: 1.5; margin-bottom: 4px; }
.award-block li::before { content: "▸"; position: absolute; left: 0; color: var(--red); }

/* ==========================================================================
   Community grid
   ========================================================================== */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.community-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 3 / 2; color: #fff;
}
.community-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.community-card:hover img, .community-card:focus-visible img { transform: scale(1.06); }
.community-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 100%);
}
.community-card h3 {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: 18px; color: #fff; font-size: 1.5rem; text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.community-card:hover { text-decoration: none; }

/* ==========================================================================
   Contact form (dark)
   ========================================================================== */
.contact-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { color: var(--yellow); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .ci-k { display: block; color: var(--yellow); font-weight: 700;
  font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-list a, .contact-list .ci-v { color: #eaeaea; font-size: 1rem; line-height: 1.6; }
.contact-list a:hover { color: var(--yellow); }
.contact-icon { color: var(--red); font-size: 1.25rem; line-height: 1.4; flex: 0 0 auto; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--red); margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid #c7c7c7; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; font-size: 1rem; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #1a7a33; }
.form-status.err { color: var(--red-dark); }

/* ==========================================================================
   Simple page header (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--dark); color: #fff; text-align: center;
  padding: 64px 20px; border-bottom: 3px solid var(--red);
}
.page-hero h1 { color: var(--yellow); margin-bottom: .15em; }
.page-hero .hero-sub { color: #e8e8e8; font-size: 1.25rem; margin: 0; }
.breadcrumb { font-size: .875rem; color: #bdbdbd; margin-bottom: 14px; }
.breadcrumb a { color: #e0e0e0; }
.breadcrumb a:hover { color: var(--yellow); }

/* prose blocks */
.prose { max-width: 72ch; margin: 0 auto; }
.prose h2 { color: var(--red); margin-top: 1.6em; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.pull-quote {
  border-left: 4px solid var(--red); background: var(--bg-soft);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.25rem; font-style: italic; color: var(--ink); margin: 28px 0;
}

/* two-column info cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { color: var(--red); font-size: 1.5rem; }
.info-card h4 { color: var(--ink); }
.info-card ul { padding-left: 20px; margin: 0; }
.info-card li { margin-bottom: 6px; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.25rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat .stat-label { margin: 8px 0 0; color: var(--ink); font-weight: 600; font-size: 1.125rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #070707; color: #cfcfcf; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1.125rem; }
.site-footer h5 { color: var(--yellow); }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand-name { font-family: Georgia, serif; font-style: italic; color: var(--yellow); font-size: 1.25rem; }
.footer-logo { width: 210px; max-width: 100%; height: auto; margin: 16px 0 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #1c1c1c; color: #fff;
  font-size: 1.125rem;
}
.social a:hover { background: var(--red); color: #fff; }
.footer-bottom {
  border-top: 1px solid #222; margin-top: 34px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .875rem; color: #9a9a9a;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-agent { display: none; }
  .hero-copy { max-width: none; }
  .hero-inner { min-height: 420px; }
}
/* Collapse to the hamburger menu before the wide horizontal nav gets cramped. */
@media (max-width: 1160px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-top: 1px solid #222; padding: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a.nav-link { padding: 12px; }
  .nav-cta { margin-left: 0; }
  .subnav { position: static; display: block; box-shadow: none; border: 0; background: #161616; margin: 0 0 0 12px; }
  .subnav a { color: #ddd; }
  .subnav a:hover { background: #222; }
}
@media (max-width: 900px) {
  .hero-inner { text-align: left; }
  .split, .contact-split, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .awards-grid, .card-grid, .stat-strip { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .form-row { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .hero .hero-phone { font-size: 1.75rem; }
}

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