/* ==========================================================================
   Legacy Financial Planning — site styles
   Palette: deep navy + warm gold accent (professional financial look)
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --navy-light: #16375e;
  --gold: #e0a52e;
  --gold-dark: #c68f22;
  --ink: #1f2937;
  --muted: #5b6b7a;
  --line: #e6e9ee;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, 0.14);
  --wrap: 1160px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  font-size: 17px;
}

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--gold-dark); text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #12233a;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-size: 15px;
  letter-spacing: .3px;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); color: #fff; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: #12233a; }
.btn--lg { padding: 16px 38px; font-size: 16px; }

/* Top bar ------------------------------------------------------------------ */
.topbar {
  background: var(--navy-deep);
  color: #c9d4e2;
  font-size: 14px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 46px; gap: 16px; flex-wrap: wrap; }
.topbar ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar a { color: #c9d4e2; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar__contact li { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); flex: none; }

/* Header / nav ------------------------------------------------------------- */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(14,42,71,.06);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { max-height: 54px; width: auto; }
.brand__text { font-weight: 800; color: var(--navy); font-size: 20px; line-height: 1.1; letter-spacing: .2px; }
.brand__text span { display: block; font-size: 11px; letter-spacing: 3px; color: var(--gold-dark); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--navy); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero slider -------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__slides { position: relative; }
.hero__slide {
  position: relative;
  display: none;
  min-height: 560px;
  align-items: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__slide::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(10,31,54,.94) 0%, rgba(14,42,71,.86) 45%, rgba(22,55,94,.78) 100%),
    radial-gradient(circle at 80% 20%, rgba(224,165,46,.20), transparent 55%);
  pointer-events: none;
}
.hero__slide--photo::before {
  background:
    linear-gradient(115deg, rgba(10,31,54,.82) 0%, rgba(14,42,71,.72) 45%, rgba(22,55,94,.55) 100%);
}
.hero__slide > .wrap { position: relative; z-index: 1; width: 100%; }
.hero__slide.is-active { display: flex; animation: fade .8s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.hero__inner { max-width: 660px; padding: 70px 0; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: 46px; margin-bottom: 20px; }
.hero p { color: #d7e0ec; font-size: 18px; margin-bottom: 30px; }
.hero__dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: var(--gold); }

/* Consultation banner ------------------------------------------------------ */
.banner { background: var(--gold); }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.banner h3 { color: #12233a; margin: 0; font-size: 24px; }
.banner .btn { background: var(--navy); color: #fff; }
.banner .btn:hover { background: var(--navy-deep); }

/* Feature cards ------------------------------------------------------------ */
.features { margin-top: -60px; position: relative; z-index: 5; }
.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.feature__icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(224,165,46,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 28px; height: 28px; fill: var(--gold-dark); }
.feature h3 { font-size: 21px; margin-bottom: 4px; }
.feature h4 { color: var(--gold-dark); font-size: 14px; font-weight: 700; margin-bottom: 12px; }

/* Services ----------------------------------------------------------------- */
.services .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__icon { width: 64px; height: 64px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service__icon svg { width: 32px; height: 32px; fill: var(--gold); }
.service h3 { font-size: 22px; }
.service .btn { margin-top: 10px; }

/* About -------------------------------------------------------------------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media {
  border-radius: var(--radius);
  min-height: 340px;
  background:
    linear-gradient(135deg, rgba(14,42,71,.9), rgba(22,55,94,.75)),
    radial-gradient(circle at 30% 30%, rgba(224,165,46,.35), transparent 60%);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 40px;
}
.about__media .stat { }
.about__media .stat b { display: block; font-size: 52px; color: var(--gold); font-family: var(--serif); }
.about h2 { font-size: 32px; }

/* Team --------------------------------------------------------------------- */
.team .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 860px; margin: 0 auto; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 4/4.2; overflow: hidden; background: var(--bg-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 24px 26px 28px; }
.member h3 { margin-bottom: 2px; font-size: 22px; }
.member__role { color: var(--gold-dark); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.member p { font-size: 15px; }

/* CTA band ----------------------------------------------------------------- */
.cta { text-align: center; color: #fff; }
.cta .eyebrow { color: var(--gold); }
.cta h2 { color: #fff; font-size: 36px; }
.cta p { color: #d7e0ec; max-width: 620px; margin: 0 auto 28px; }

/* Blog preview / listing --------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; color: var(--gold-dark); text-decoration: none; }
.post-card__cat:hover { color: var(--navy); }
.eyebrow--link { text-decoration: none; }
.eyebrow--link:hover { color: #fff; }
a.chip { text-decoration: none; transition: background .15s, color .15s; }
a.chip:hover { background: var(--navy); color: #fff; }
.post-card h3 { font-size: 20px; margin: 8px 0 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card__meta { font-size: 13px; color: #97a3b0; margin-top: auto; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 1em; padding-top: 1em; border-top: 1px solid var(--line); }
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* Blog listing with sidebar ------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.blog-grid .posts { grid-template-columns: repeat(2, 1fr); }
.blog-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.widget__title {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--navy);
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(14,42,71,.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cat-list li:last-child { border-bottom: 0; }
.cat-list a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.cat-list a:hover { color: var(--gold-dark); }
.cat-list__count { color: var(--muted); font-size: 13px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip--sm { font-size: 12px; padding: 3px 10px; }
.chip--md { font-size: 14px; padding: 4px 12px; }
.chip--lg { font-size: 16px; padding: 5px 14px; }

/* Blog post ---------------------------------------------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: 70px 0 60px; text-align: center; }
.page-hero h1 { color: #fff; font-size: 40px; margin-bottom: 8px; }
.page-hero p, .page-hero .crumb { color: #c9d4e2; }
.article { max-width: 780px; margin: 0 auto; }
.article__meta { color: #97a3b0; font-size: 14px; margin-bottom: 26px; }
.article h2 { font-size: 26px; margin-top: 1.6em; }
.article img { border-radius: var(--radius); margin: 1.5em 0; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 600; }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .item svg { width: 22px; height: 22px; fill: var(--gold-dark); flex: none; margin-top: 4px; }
.contact-info h4 { margin: 0 0 2px; font-size: 17px; }
.contact-info p { margin: 0; }
.contact-info a { color: var(--muted); }
.contact-info a:hover { color: var(--gold-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 15px; background: #fbfcfe; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }

.map-embed { margin-top: 54px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--navy-deep); color: #a9b7c8; padding: 64px 0 0; font-size: 15px; }
.footer .grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer p { color: #a9b7c8; }
.footer a { color: #a9b7c8; }
.footer a:hover { color: var(--gold); }
.footer .brand__text { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 14px; color: #8595a6; }

/* Custom sections (editor-added) ------------------------------------------ */
.section--gold { background: var(--gold); }
.section--gold h2, .section--gold .eyebrow { color: #12233a; }
.section--gold p { color: rgba(18, 35, 58, .85); }
.section--gold .btn { background: var(--navy); color: #fff; }
.section--gold .btn:hover { background: var(--navy-deep); }

.about--reverse .wrap { grid-template-columns: 1fr 1fr; direction: rtl; }
.about--reverse .wrap > * { direction: ltr; }
.about__media--photo { padding: 0; overflow: hidden; background: none; }
.about__media--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; min-height: 340px; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 30px; margin-bottom: 20px; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose p { font-size: 17px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--gold-dark); text-decoration: underline; }

.testimonial { text-align: center; }
.testimonial__quote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.5;
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 22px;
  font-style: italic;
  quotes: none;
}
.testimonial__cite {
  display: block;
  font-style: normal;
  color: var(--gold-dark);
  font-size: 15px;
  letter-spacing: .5px;
}
.testimonial__cite span { color: var(--muted); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .features .grid, .services .grid, .posts, .footer .grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .posts { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .about .wrap, .about--reverse .wrap, .contact-grid { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .testimonial__quote { font-size: 22px; }
  .team .grid { grid-template-columns: 1fr; }
  .features { margin-top: 30px; }
  .hero h1 { font-size: 34px; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 20px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
