/* Heyle Realtors & Counseling Services, LLC — static site stylesheet
   Replaces the Joomla "heyle1" (RocketTheme) template. No framework, no JS dependency. */

:root {
  --teal-dark: #1b627e;
  --accent: #871e21;          /* brand maroon: headings + links */
  --nav: #2d4a63;
  --band: #c4d8e2;            /* light blue section bars */
  --band-2: #c6d9e3;
  --text: #333;
  --hero-link: #d2e5f8;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 14px/1.5 Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff url(../img/body-bg.png) repeat-x 0 111px;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--accent); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #f1f1f1 url(../img/header-bg.png) repeat-x;
  min-height: 111px;
}
.site-header .wrap {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 8px;
  padding-top: 18px;
}
.logo { display: block; flex: 0 0 auto; width: 252px; height: 85px; }
.logo img { display: block; width: 252px; height: 85px; }

.nav { flex: 1 1 auto; margin-top: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav li { margin: 0 4px 0 0; }
.nav a {
  position: relative; display: block;
  padding: 0 15px; height: 37px; line-height: 30px;
  font-size: 16px; font-weight: bold; color: var(--nav);
}
.nav a:hover, .nav a:focus { text-decoration: none; color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent); background: #fff;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 -1px 3px rgba(0,0,0,.25), 0 1px 0 #fff;
}
.nav a[aria-current="page"]::after {          /* little pointer under the active tab */
  content: ""; position: absolute; left: 50%; bottom: -1px; margin-left: -8px;
  border: 8px solid transparent; border-top-color: #fff; border-bottom: 0;
  transform: translateY(100%);
}

/* ---------- Hero band (breadcrumb, address, affiliates) ---------- */
.hero {
  background: var(--teal-dark) url(../img/hero-bg.jpg) 50% 0 no-repeat;
  background-size: cover;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.5);
  padding: 8px 0 0;
}
.hero a { color: var(--hero-link); }
.hero .wrap { position: relative; min-height: 185px; }

.crumbs { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; font-size: 13px; }
.crumbs li + li::before { content: "\25B8"; margin-right: 8px; color: #fff; opacity: .8; }

.hero address { font-style: normal; margin: 24px 0 0; line-height: 1.35; }
.hero .contact-line { margin: 14px 0 0; font-size: 16px; font-weight: bold; line-height: 1.3; }
.hero .contact-line a { color: #fff; }

.affiliates {
  position: absolute; right: 16px; top: 62px;
  display: flex; gap: 2px; align-items: center;
}
.affiliates img { display: block; width: 50px; height: 30px; }
.affiliates a { display: block; }

.divider { height: 8px; background: url(../img/body-div.png) repeat-x; }

/* ---------- Main content ---------- */
main { padding: 18px 0 30px; }

h1.page-title { color: var(--accent); font-size: 20px; margin: 10px 0 22px; line-height: 1.2; }

.bar {                       /* the light-blue section heading bars */
  background: var(--band); margin: 0; padding: 14px 0 14px 0;
  font-size: 21px; font-style: italic; font-weight: bold; line-height: 1.25;
}
.bar.alt { background: var(--band-2); font-weight: normal; }
.bar .in { padding-left: 0; }

section.block { margin: 0; }
section.block > p, section.block > ul { margin: 12px 0; }
.block p { margin: 0 0 12px; }

.dropcap::first-letter { font-weight: bold; font-style: italic; }

.banner { display: block; margin: 0 auto 14px; width: 550px; max-width: 100%; }

.portrait { text-align: center; margin: 0 0 20px; }
.portrait img { width: 140px; display: block; margin: 0 auto 10px; }
.portrait strong { text-transform: uppercase; font-size: 13px; }

.bio { display: flex; gap: 20px; align-items: flex-start; margin: 12px 0 6px; }
.bio .photo { flex: 0 0 187px; }
.bio .photo img { display: block; width: 187px; }
.bio p { margin: 0; }

.counsel-photo { float: left; width: 140px; margin: 0 18px 8px 0; }

ul.checks { padding-left: 22px; }
ul.checks li { margin: 0 0 4px; }

/* ---------- Contact page ---------- */
.card h2 { margin: 0; font-size: 17px; }
.card .role { margin: 0 0 14px; font-style: italic; font-size: 15px; }
.card dl { margin: 0 0 20px; }
.card dt { float: left; width: 70px; font-weight: bold; clear: left; margin: 0 0 4px; }
.card dd { margin: 0 0 4px 70px; }

form.contact { max-width: 560px; }
form.contact label { display: block; margin: 14px 0 4px; color: #b00; font-size: 13px; }
form.contact input[type=text],
form.contact input[type=email],
form.contact textarea {
  width: 100%; padding: 7px 8px; font: inherit; color: var(--text);
  border: 1px solid #999; border-radius: 3px; background: #fff;
}
form.contact textarea { min-height: 170px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus {
  outline: 2px solid var(--teal-dark); outline-offset: 1px;
}
form.contact button {
  margin-top: 18px; padding: 9px 26px; font: inherit; font-weight: bold; cursor: pointer;
  color: #fff; background: var(--teal-dark); border: 0; border-radius: 3px;
}
form.contact button:hover, form.contact button:focus { background: #144a5f; }
form.contact button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { max-width: 560px; margin: 0 0 16px; padding: 10px 14px; border-radius: 3px; display: none; }
.notice.show { display: block; }
.notice.ok  { background: #e6f2e6; border: 1px solid #7fb07f; color: #1d4d1d; }
.notice.err { background: #fbe9e9; border: 1px solid #d49a9a; color: #7a1a1a; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 8px solid transparent;
  background: #fff url(../img/body-div.png) repeat-x 0 0;
  padding: 22px 0 28px; font-size: 13px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .copy { text-align: center; font-size: 11px; margin-top: 26px; }
.site-footer .credit { text-align: center; font-size: 11px; color: #777; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .site-header .wrap { padding-top: 12px; }
  .nav { flex-basis: 100%; margin-top: 4px; }
  .nav a { height: 40px; line-height: 40px; padding: 0 10px; font-size: 15px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { border-radius: 7px; }
  .site-header { min-height: 0; padding-bottom: 8px; }
  body { background-image: none; }
  .affiliates { position: static; margin: 14px 0 12px; }
  .hero .wrap { min-height: 0; padding-bottom: 6px; }
}
@media (max-width: 620px) {
  .bio { flex-direction: column-reverse; }
  .bio .photo { flex-basis: auto; }
  .counsel-photo { float: none; display: block; margin: 0 0 12px; }
  .card dt { float: none; width: auto; }
  .card dd { margin-left: 0; }
}
@media print {
  .site-header .nav, .affiliates, .skip, form.contact { display: none; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; border: 0; }
  .hero a, .hero .contact-line a { color: #000; }
}
