/* Edgewood Financial Group — site styles (modeled on the original WordPress/Divi design) */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/open-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #0c71c3;        /* headings & buttons (original site) */
  --blue-dark: #095a9c;
  --link: #2ea3f2;        /* links (original site) */
  --green: #2e8540;       /* Fidelity Login */
  --ink: #333333;         /* sub-headings */
  --text: #666666;        /* body copy */
  --line: #e5e5e5;
  --field: #eeeeee;
  --bg: #ffffff;
  --wrap: 1080px;
  --narrow: 860px;
  --font: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-weight: 400; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font); font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand img { display: block; width: 190px; height: auto; }
.site-header nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.site-header nav a { color: rgba(0,0,0,.6); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--blue); }
.site-header nav a.fidelity { color: var(--green); }
.site-header nav a.fidelity:hover { color: #1f5f2c; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .brand img { width: 160px; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--blue); box-shadow: 0 6px 12px rgba(0,0,0,.1); }
  .site-header nav.open { display: block; }
  .site-header nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 12px; }
  .site-header nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header nav li:last-child a { border: 0; }
}

/* ---------- Full-width banner images ---------- */
.banner { line-height: 0; background: #f4f4f4; }
.banner img { display: block; width: 100%; height: auto; max-height: 655px; object-fit: cover; }

/* ---------- Photo bands (parallax on desktop) ---------- */
.photo-band { height: clamp(220px, 42vw, 540px); background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (min-width: 1025px) and (hover: hover) { .photo-band { background-attachment: fixed; } }
@media (prefers-reduced-motion: reduce) { .photo-band { background-attachment: scroll; } }
.band-home-kids      { background-image: url("/images/Home_02-web.jpg"); }
.band-home-beach     { background-image: url("/images/Home_03a-web.jpg"); background-position: center 60%; }
.band-about-stones   { background-image: url("/images/About_02-web.jpg"); }
.band-about-coast    { background-image: url("/images/About_05-web.jpg"); }
.band-services-hands { background-image: url("/images/Services_02a-web.jpg"); }

/* ---------- Sections & headings ---------- */
.section { padding: 64px 0; }
.title { color: var(--blue); text-align: center; font-size: clamp(30px, 4.4vw, 45px); margin: 0 0 28px; }
.title.small { font-size: clamp(26px, 3vw, 30px); margin-bottom: 10px; }
.subtitle { text-align: center; color: var(--ink); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; margin-bottom: 32px; }
.subtitle a { color: var(--ink); white-space: nowrap; }
.intro { max-width: var(--narrow); margin: 0 auto 8px; text-align: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 4px solid var(--blue); font-style: italic; font-weight: 600; color: var(--ink); font-size: 17px; }
.placeholder { background: #fff7e0; border: 1px dashed #d9a400; padding: 12px 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 30px; font-size: 17px; font-weight: 500; border: 0; border-radius: 3px; cursor: pointer; font-family: var(--font); transition: background .2s; }
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Home: service blurbs ---------- */
.icon { width: 72px; height: 72px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.blurbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 16px; }
.blurb { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); padding: 8px; border-radius: 6px; transition: transform .2s; }
.blurb:hover { text-decoration: none; transform: translateY(-3px); }
.blurb:hover .icon { stroke: var(--blue); }
.blurb .icon { transition: stroke .2s; margin-bottom: 18px; }
.blurb h3 { font-size: 18px; margin: 0; color: var(--ink); }
@media (max-width: 760px) { .blurbs { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }

/* ---------- Process & Services ---------- */
.steps { padding-left: 1.3em; margin: 0 0 1.1em; }
.steps li { margin-bottom: 8px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 8px; }
.service { scroll-margin-top: 100px; }
.service .icon { width: 52px; height: 52px; stroke: var(--blue); margin-bottom: 8px; }
.service h3 { color: var(--ink); font-size: 20px; margin: 0 0 10px; }
.cta { margin-top: 48px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; margin-top: 40px; }
.calc-group h3 { color: var(--ink); font-size: 20px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }
.calc-group ul { list-style: none; padding: 0; margin: 0; }
.calc-group li { padding: 3px 0; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.contact-info p { margin-bottom: 1em; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 24px; } }

.contact-form label { position: absolute; left: -9999px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; border: 0; border-radius: 0; background: var(--field); color: #444; font: 15px/1.5 var(--font); margin-bottom: 16px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #999; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #f6f6f6; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; }
.form-note { flex: 1 1 260px; font-size: 13px; color: #888; margin: 0; }
.form-status { font-weight: 600; min-height: 1.5em; margin-top: 12px; text-align: right; }
.form-status.ok { color: #2e6b3f; }
.form-status.err { color: #a12b2b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-foot { justify-content: stretch; } .form-foot .btn { width: 100%; } .form-status { text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; text-align: center; color: var(--text); }
.disclosures { padding: 48px 0 16px; }
.disclosures p { margin: 0 0 22px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 8px; font-size: 13px; }
.footer-bottom p { margin: 0 0 10px; }
.footer-bottom a { white-space: nowrap; }
