/* Edward Levy, P.C. Layout: light gray header, photo banner per page, white reading sections
   with navy bands for calls to action. Single light theme on purpose, matching the existing site. */
:root {
  --navy: #002855;
  --navy-deep: #001b3a;
  --slate: #8094ad;
  --ink: #111417;
  --muted: #5d6670;
  --paper: #ffffff;
  --tint: #f4f4f4;
  --line: #d9dde2;
  --ok: #17603a;
  --ok-bg: #e8f4ed;
  --err: #9b1c1c;
  --err-bg: #fbeaea;
  --display: "Prata", "Georgia", "Times New Roman", serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.preview-bar { background: var(--navy-deep); color: #fff; font-size: 13px; padding-block: 8px; text-align: center; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; font-family: var(--body); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; padding: 14px 44px; border: 2px solid var(--navy); border-radius: 50px; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--paper); color: var(--navy); }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { margin-top: 28px; }

/* Header */
.site-header { background: var(--tint); box-shadow: 0 2px 8px rgba(0, 20, 45, .12); position: relative; z-index: 5; }
.header-in { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.logo img { width: 200px; }
.nav { flex: 1; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; }
.nav a, .menu a { color: var(--muted); text-decoration: none; font-size: 15px; letter-spacing: .03em; padding-block: 6px; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"], .menu a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; left: -16px; top: 100%; min-width: 300px; background: var(--paper); box-shadow: 0 8px 24px rgba(0, 20, 45, .16); list-style: none; padding: 10px 16px; z-index: 6; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; }
.btn-cta { padding: 12px 24px; white-space: nowrap; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 26px; height: 2px; background: var(--navy); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); box-shadow: 0 12px 24px rgba(0, 20, 45, .16); padding: 12px var(--gutter-r) 20px var(--gutter-l); }
.menu ul { list-style: none; }
.menu .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
@media (max-width: 1020px) {
  .nav, .btn-cta { display: none; }
  .menu { display: block; }
  .logo img { width: 170px; }
}

/* Home slider */
.hero { position: relative; background: var(--navy-deep); height: clamp(340px, 46vw, 560px); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 45, .35), rgba(0, 20, 45, .72)); }
.slide-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; color: #fff; padding-bottom: 28px; }
.slide-title { font-family: var(--display); font-size: clamp(28px, 4.4vw, 50px); line-height: 1.2; max-width: 20ch; text-wrap: balance; }
.slide-text { font-size: clamp(15px, 1.6vw, 19px); max-width: 62ch; }
.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-content: center; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; }
.dot.is-active::before { background: #fff; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Page banner */
.banner { position: relative; background: var(--slate); color: #fff; text-align: center; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(38, 58, 88, .62); }
.banner-in { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px); display: grid; gap: 14px; justify-items: center; }
.banner h1 { font-size: clamp(32px, 5vw, 50px); }
.banner-sub { font-size: clamp(16px, 2.2vw, 24px); max-width: 46ch; }

/* Sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section.tint { background: var(--tint); }
.sec-head { text-align: center; margin-bottom: 28px; display: grid; gap: 10px; justify-items: center; }
.h-section { font-size: clamp(26px, 3.4vw, 34px); text-align: center; }
.h-section.left { text-align: left; margin-bottom: 18px; }
.lead { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); max-width: 60ch; }
.prose { display: grid; gap: 16px; max-width: 74ch; margin-inline: auto; min-width: 0; }
.prose.wide-prose { max-width: 100ch; }
.prose.center { text-align: center; justify-items: center; }
.prose h3 { font-size: 24px; color: var(--navy); margin-top: 12px; }
.prose h4 { font-size: clamp(19px, 2.2vw, 23px); color: var(--navy); line-height: 1.35; }
.prose ol, .prose ul { padding-left: 1.4em; display: grid; gap: 8px; }
.prose .btn-row { margin-top: 12px; }
.prose + .prose, .split + .prose, .gallery + .prose, .prose + .gallery, .split + .split, .prose + .split, .gallery + .split, .split + .gallery { margin-top: 36px; }
.legal { font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split .prose { margin-inline: 0; }
.split figure, figure.wide { margin: 0; }
.split figure img { width: 100%; max-height: 460px; object-fit: cover; }
.split.media-left figure { order: -1; }
.split.media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
figure.wide img { width: 100%; max-height: 520px; object-fit: cover; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) {
  .split, .split.media-left { grid-template-columns: minmax(0, 1fr); }
  .split.media-left figure { order: 0; }
  .gallery.g4, .gallery.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bands */
.band { background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.band-soft { background: var(--slate); }
.band .prose h4 { color: #fff; }
.h-band { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; }

/* Cards */
.cards { list-style: none; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 36px; }
.cards-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 24px rgba(0, 20, 45, .16); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: grid; gap: 6px; padding: 16px 16px 20px; text-align: center; }
.card-title { font-family: var(--display); font-size: 18px; color: var(--navy); line-height: 1.3; }
.cards-sm .card-title { font-size: 16px; }
.card-text { font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

.story-title { font-size: clamp(18px, 2.2vw, 22px); color: var(--navy); margin: 18px 0 14px; }
.results-note { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 20px; max-width: 70ch; margin-inline: auto; }
.stories .section:nth-child(even) { background: var(--tint); }
.stories .section { scroll-margin-top: 12px; }

/* Contact form */
.contact-section { background: var(--tint); }
.contact-section .h-section { margin-bottom: 26px; }
.contact-form { display: grid; gap: 16px; max-width: 620px; margin-inline: auto; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #9aa3ad; border-radius: 4px; padding: 11px 12px; }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ack { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
.ack input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.contact-form .btn { justify-self: center; }
.form-status { padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { background: var(--err-bg); color: var(--err); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid .prose { margin-inline: 0; }
.contact-grid address { display: grid; gap: 16px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 44px 28px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 48px; align-items: start; }
.site-footer .logo img { width: 230px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--ink); text-decoration: none; letter-spacing: .03em; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer address { display: grid; gap: 14px; }
.fineprint { font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; margin-top: 28px; }
.fineprint + .fineprint { margin-top: 10px; }
@media (max-width: 860px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }
figure.wide + .prose, .prose + figure.wide, .split + figure.wide, figure.wide + .split { margin-top: 32px; }
