/* style.css - Bauer Brokerage
   White header, blue pill nav links, responsive layout
   Replace your current style.css with this file.
*/

/* ========== Variables ========== */
:root{
  --blue: #1E3A8A;       /* primary brand blue */
  --blue-dark: #004aad;  /* slightly darker blue */
  --bg: #f0f4f8;         /* page background */
  --pill: #f9f9f9;       /* default pill bg */
  --pill-hover: #e5e7eb; /* hover/active pill bg */
  --muted: #6b7280;
  --text: #222;
}

/* ========== Base ========== */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Header / Navigation ========== */
header {
  background-color: #ffffff;                /* white header */
  color: var(--blue);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 2px solid #eef4fb;         /* subtle divider */
  position: relative;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.logo {
  height: 55px;     /* adjust if needed */
  width: auto;
  display: block;
}

/* Title next to logo */
header h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1;
}

/* Nav layout */
nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Pill style links (default + hover + active) */
nav a {
  display: inline-block;
  color: var(--blue);
  background-color: var(--pill);     /* pill background for all links */
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;              /* pill */
  transition: background 0.18s ease, transform 0.12s ease;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus {
  background-color: var(--pill-hover);
  transform: translateY(-1px);
  outline: none;
}

nav a.active {
  background-color: var(--pill-hover);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04) inset;
}

/* Accessibility: keyboard focus */
nav a:focus-visible {
  outline: 3px solid rgba(30,58,138,0.12);
  outline-offset: 2px;
}

/* ========== Hero / CTA ========== */
.hero {
  text-align: center;
  padding: 70px 20px;
  background-color: #eaf4ff;
}

.hero h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--blue-dark);
}

.hero p {
  font-size: 1.05rem;
  margin: 0 auto 20px;
  max-width: 720px;
  color: #23304a;
}

/* Buttons (two names included for safety) */
.cta-button,
.cta-btn {
  display: inline-block;
  background-color: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.12s ease;
}

.cta-button:hover,
.cta-btn:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ========== Content Sections ========== */
main, section {
  padding: 48px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2, section h3 {
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

/* Generic paragraph styling */
section p {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #334155;
}

/* List styling for services page */
ul { padding-left: 1.25rem; max-width: 720px; margin: 0 auto 1rem; }

/* ========== Contact Form Wrapper ========== */
.contact-form-wrapper {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(14,30,37,0.06);
  color: var(--text);
  margin-top: 20px;
}

.contact-form-wrapper iframe {
  width: 100%;
  min-height: 640px;
  border: none;
  border-radius: 8px;
}

/* ========== Footer ========== */
footer {
  background-color: var(--blue);
  color: #ffffff;
  text-align: center;
  padding: 28px 20px;
  margin-top: 40px;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ========== Utility / Small helpers ========== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  header { padding: 12px 18px; }
  .logo { height: 50px; }
  header h1 { font-size: 1.25rem; }
  .hero { padding: 56px 16px; }
}

@media (max-width: 640px) {
  /* stack nav under logo/title on small screens and center it */
  header {
    align-items: center;
  }
  .header-left {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  nav {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }
  nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .contact-form-wrapper { padding: 20px; }
  .contact-form-wrapper iframe { min-height: 820px; }
  footer { padding: 20px; }
}

/* ========== End ========== */