/* ==========================================================================
   Law Office of Cole Nicosia — Stylesheet
   Plain CSS, no frameworks. Mobile-first, responsive.
   ========================================================================== */

:root {
  --navy: #14243d;
  --navy-light: #1f3556;
  --gold: #b8893b;
  --gold-light: #d4a857;
  --ink: #1c1c1c;
  --muted: #5a6473;
  --paper: #ffffff;
  --bg: #f4f6f9;
  --line: #e0e4ea;
  --max: 1140px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(20, 36, 61, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--alt { background: var(--paper); }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 3px;
}
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: #e6eaf1;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--navy-light);
  color: #fff;
  text-decoration: none;
}
.nav-links a.active { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(20,36,61,0.94), rgba(31,53,86,0.92)),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E");
  color: #fff;
  padding: 86px 0;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.6rem; max-width: 760px; margin: 0 auto 0.4em; }
.hero p { color: #d6dce6; font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.8rem; }
.hero .btn + .btn { margin-left: 12px; }
.hero--page { padding: 60px 0; }
.hero--page h1 { font-size: 2.2rem; }

.hero-headshot {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-attorney {
  text-align: center;
  margin: 0 auto 24px;
}
.hero .hero-attorney p { margin: 0; max-width: none; }
.hero .hero-attorney__name {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.hero .hero-attorney__title {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 6px;
}

.about-headshot {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 50%;
  margin: 0 0 18px;
  box-shadow: 0 6px 18px rgba(20, 36, 61, 0.18);
}

@media (max-width: 640px) {
  .hero-headshot { width: 160px; margin-bottom: 22px; }
  .about-headshot { max-width: 170px; margin-left: auto; margin-right: auto; }
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .more { font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.split {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 3fr 2fr; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--gold);
  font-weight: 700;
}

.callout {
  background: #fbf5e9;
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.contact-band {
  background: var(--navy-light);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.contact-band h2 { color: #fff; }
.contact-band p { color: #d6dce6; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-light);
  border-color: var(--gold-light);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error {
  color: #b3261e;
  font-size: 0.86rem;
  margin-top: 5px;
  display: none;
}
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #b3261e; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #e7f4ec;
  border: 1px solid #b6dcc4;
  color: #1d6b3a;
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status.error {
  background: #fdecea;
  border-color: #f3c0bc;
  color: #b3261e;
}

@media (min-width: 640px) {
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin-bottom: 14px; }
.info-list strong { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c4cdda;
  padding: 44px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 28px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #c4cdda; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }

.compliance {
  border-top: 1px solid var(--navy-light);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #97a3b5;
  line-height: 1.6;
}
.compliance strong { color: #c4cdda; }

/* ---------- Anchored sections clear the sticky header ---------- */
section[id] { scroll-margin-top: 84px; }

/* ---------- FAQ accordion ---------- */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 44px 16px 20px;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* ---------- Responsive nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 8px 16px 18px;
    border-top: 1px solid var(--navy-light);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .hero h1 { font-size: 2rem; }
  .hero .btn { display: block; max-width: 280px; margin: 0 auto; }
  .hero .btn + .btn { margin: 12px auto 0; }
}
