/* ==========================================================================
   Brookmires Financial — Site Stylesheet
   Direction B: Editorial & Elevated, tuned for readability
   ========================================================================== */

:root {
  /* Brand colors */
  --navy:        #242852;
  --blue:        #3A5BA0;
  --light-blue:  #819CD1;
  --light-blue-2:#A3B6DD;
  --accent:      #A64B32;
  --grey:        #7d7d7d;
  --border:      #E4DDD0;
  --cream:       #FAF7F2;
  --white:       #ffffff;
  --text-body:   #3A3A3A; /* darker than --grey on purpose: --grey is for captions/dividers, not paragraphs */

  /* Type */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: #ffffff;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:visited { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 20px; }

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

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Visible, generous focus states — important for keyboard users and older visitors */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Top utility bar (phone-first)
   ========================================================================== */
.top-bar {
  background: var(--navy);
  padding: 10px 0;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-bar span { color: #EAF0FF; font-size: 15px; }
.top-bar a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  border-bottom: 2px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo-link img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.main-nav a:visited { color: var(--navy); }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  padding: 14px 26px;
}
.btn-primary:visited { color: #ffffff; }
.btn-primary:hover { background: #8a3c28; }

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 16px;
  padding: 14px 26px;
}
.btn-outline:visited { color: var(--navy); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding: 20px 0 8px;
  }
  .main-nav.is-open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .main-nav .btn-primary { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 80px 0 90px;
  text-align: center;
  background: var(--cream);
}
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lead {
  font-size: 21px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note { color: var(--grey); font-size: 15px; margin-top: 16px; }

.eyebrow {
  color: var(--blue);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

/* ==========================================================================
   Service cards / feature grid
   ========================================================================== */
.card-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 56px 0;
}
.card {
  width: 300px;
  text-align: left;
  padding: 28px;
  border: 2px solid var(--border);
  border-radius: 8px;
}
.card h3 { font-family: var(--font-sans); color: var(--navy); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 16.5px; }
.card a { font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Services page detail rows
   ========================================================================== */
.service-row {
  display: flex;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 2px solid var(--border);
  align-items: flex-start;
  scroll-margin-top: 100px;
}
.service-row:last-child { border-bottom: none; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Page section utility
   ========================================================================== */
.section { padding: 70px 0 80px; }
.section-narrow { max-width: 700px; margin: 0 auto; }
.text-center { text-align: center; }

.values-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 46px;
}
.value-card {
  width: 290px;
  text-align: center;
  padding: 30px 22px;
  background: var(--cream);
  border-radius: 10px;
}
.value-card h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; }
.value-card p { font-size: 16px; margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-methods {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 20px;
}
.contact-card {
  width: 260px;
  text-align: center;
  padding: 34px 22px;
  background: var(--cream);
  border-radius: 10px;
}
.contact-card .big-link { font-size: 22px; font-weight: 700; text-decoration: underline; }

.embed-block {
  margin: 60px auto 0;
  max-width: 700px;
}
.embed-block h2 { text-align: center; }
.embed-frame-wrap {
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}
.embed-fallback {
  text-align: center;
  font-size: 15px;
  color: var(--grey);
  margin-top: 14px;
}

form.site-form {
  max-width: 560px;
  margin: 56px auto 0;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}
form.site-form label {
  display: block;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
form.site-form input,
form.site-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
form.site-form textarea { min-height: 110px; resize: vertical; }
form.site-form button {
  width: 100%;
  font-size: 18px;
  padding: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); padding: 60px 0 30px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
}
.footer-col { max-width: 280px; }
.footer-col img { height: 38px; margin-bottom: 16px; }
.footer-col p { color: var(--light-blue-2); font-size: 15px; line-height: 1.7; margin: 0; }
.footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.footer-links a {
  display: block;
  color: var(--light-blue-2);
  text-decoration: underline;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-links a:visited { color: var(--light-blue-2); }
.footer-phone { color: #fff; text-decoration: underline; font-size: 16px; font-weight: 600; margin-bottom: 10px; display: inline-block; }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; font-size: 15px; font-weight: 700;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 44px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid var(--blue);
}
.footer-bottom p { color: var(--light-blue); font-size: 13px; line-height: 1.6; margin: 0 0 10px; }

/* ==========================================================================
   Responsive type scale for smaller screens
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 56px 0 60px; }
  .section { padding: 50px 0 60px; }
  form.site-form { padding: 26px; }
}
