/* =========================================================================
   The Walters Nixon Group, Inc. — main stylesheet
   Static recreation of waltersnixon.com (efelle-era 2019–2024 look).
   Palette + typography sourced from the archived assets/app.css.
   ========================================================================= */

/* ---- Open Sans (bundled, self-hosted variable font; offline-safe) ------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}

:root {
  --teal:   #189970;   /* primary maritime teal-green */
  --teal-d: #12805e;   /* darker teal for hovers */
  --mint:   #10eba5;
  --green:  #4bd963;
  --blue:   #307fca;
  --navy:   #30486e;   /* dark nautical navy */
  --navy-d: #263a58;
  --text:   #333333;
  --muted:  #5e5e5e;
  --band:   #f5f5f5;
  --band2:  #f3f3f3;
  --line:   #e2e2e2;
  --white:  #ffffff;
  --max:    1140px;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-d); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 600; }
h1 { font-size: 2rem; font-weight: 300; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 3px;
  border: 2px solid var(--teal);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.link-more { font-weight: 600; color: var(--teal); }
.link-more::after { content: " \203A"; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo img { width: 300px; max-width: 62vw; }
.header-right { display: flex; align-items: center; gap: 1.75rem; }
.header-phone {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 1.05rem;
}
.header-phone:hover { color: var(--teal); text-decoration: none; }
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

/* ---- Hero (home) -------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-bg.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(48,72,110,.55), rgba(24,153,112,.55));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
#hero-headline { transition: opacity .5s ease; }
.hero h2 {
  color: #fff;
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ---- Interior masthead -------------------------------------------------- */
.masthead {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.masthead::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(48,72,110,.6);
}
.masthead .container { position: relative; padding: 3.5rem 20px; }
.masthead h1 { color: #fff; font-weight: 600; margin: 0; }

/* ---- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs { background: var(--band2); font-size: .85rem; }
.breadcrumbs .container { padding-top: .7rem; padding-bottom: .7rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin-left: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---- Bands / sections --------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-band { background: var(--band); }
.blue-bar { background: var(--navy); color: #fff; }
.blue-bar .container { padding: 1.6rem 20px; }
.blue-bar h2 { color: #fff; margin: 0; font-weight: 400; font-size: 1.2rem; }
.blue-bar em { color: var(--mint); font-style: italic; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--teal); margin: .7rem auto 0;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---- Service cards (home + services index) ------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.card img { width: 64px; height: auto; margin: 0 auto 1rem; }
.card h3 { color: var(--navy); min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.card p { color: var(--muted); flex: 1; }
.card .link-more { margin-top: .5rem; }

/* ---- Split content (home intro, about) ---------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img { border-radius: 6px; }

/* ---- Service detail bullet list ----------------------------------------- */
.service-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  color: var(--text);
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
}
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0; }
.steps > li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
  min-height: 1.8rem;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem;
  background: var(--teal); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.prose { max-width: 820px; }
.prose h2 { color: var(--navy); margin-top: 2rem; }

/* ---- Team --------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.avatar {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  letter-spacing: 1px;
}
.team-card h3 { margin-bottom: .1rem; }
.team-card .title { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.team-card .bio { color: var(--muted); font-size: .92rem; text-align: left; }
.team-card .contacts { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); font-size: .88rem; text-align: left; }
.team-card .contacts li { margin-bottom: .3rem; color: var(--muted); }
.team-card .contacts .label { color: var(--navy); font-weight: 600; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-block { margin-bottom: 1.5rem; }
.info-block .label { color: var(--navy); font-weight: 700; }
.contact-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.note {
  background: var(--band);
  border-left: 3px solid var(--teal);
  padding: .8rem 1rem;
  font-size: .88rem;
  color: var(--muted);
  border-radius: 0 4px 4px 0;
}

/* ---- Callout band ------------------------------------------------------- */
.callout {
  background: var(--teal);
  color: #fff;
  text-align: center;
}
.callout .container { padding: 3rem 20px; }
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 1.5rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-d); color: #cdd6e2; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #cdd6e2; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .4rem; }
.footer-address p { margin: 0 0 .3rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; font-size: .85rem; color: #9fb0c6;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-right { gap: 1rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: .9rem 20px; border-bottom: 0; }
  .cards, .team-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .card h3 { min-height: 0; }
}
@media (max-width: 520px) {
  .header-phone { display: none; }
  .hero .container { padding-top: 4rem; padding-bottom: 4rem; }
}
