/* Jarred Marks Law, PLLC — site styles */

:root {
  --navy: #16233b;
  --navy-deep: #0f1a2d;
  --gold: #c19a5b;
  --gold-light: #d9bc8c;
  --cream: #faf7f2;
  --ink: #2a2f38;
  --muted: #5c6470;
  --line: #e6e0d6;
  --radius: 10px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand span { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-phone {
  color: var(--navy) !important;
  font-weight: 700;
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(193, 154, 91, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 6.5rem 0 6rem;
  text-align: left;
}

.hero-kicker {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 1.4rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-copy { flex: 1 1 auto; min-width: 0; }

.hero-portrait {
  flex: 0 0 auto;
  text-align: center;
}

.hero-portrait img {
  width: clamp(200px, 24vw, 300px);
  height: clamp(200px, 24vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 5%;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 12px rgba(193, 154, 91, 0.14),
    0 18px 45px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
}

.hero-portrait-caption {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
}

.hero-portrait-caption span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.3rem;
}

.hero-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.hero-strip .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-strip span::before {
  content: "◆";
  color: var(--gold);
  margin-right: 0.6rem;
  font-size: 0.7rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Practice area cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(22, 35, 59, 0.1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.card p { color: var(--muted); flex: 1; }

.card ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.card ul li::before {
  content: "—";
  color: var(--gold);
  position: absolute;
  left: 0;
}

.card-link {
  margin-top: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-link:hover { color: var(--gold); }

/* ---------- Why / value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.4rem;
  margin-top: 1rem;
}

.value-item h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-item p { color: var(--muted); font-size: 0.98rem; }

.value-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Split layout (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: start;
}

.headshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: sticky;
  top: 96px;
}

.headshot-frame .placeholder {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 4.5rem;
  letter-spacing: 0.05em;
}

.credentials {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.credential {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.3rem;
}

.credential strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.credential span { color: var(--muted); font-size: 0.98rem; }

.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(193, 154, 91, 0.3), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 55ch;
  margin: 0 auto 2rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.2rem; }

.contact-methods { display: grid; gap: 1.1rem; margin-top: 1.8rem; }

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method .card-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
}

.contact-method .card-icon svg { width: 20px; height: 20px; }

.contact-method strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-method a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-method a:hover { color: var(--gold); }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: 0 10px 30px rgba(22, 35, 59, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group label .req { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 91, 0.2);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-disclaimer {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.form-disclaimer input {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand { color: #fff; display: inline-block; margin-bottom: 0.8rem; }

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold-light); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .headshot-frame { position: static; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }

  .hero h1 { max-width: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait img { width: clamp(170px, 45vw, 220px); height: clamp(170px, 45vw, 220px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.2rem 4%;
    gap: 1rem;
    align-items: flex-start;
  }

  .site-nav.open { display: flex; }

  .hero { padding: 3.5rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .form-card { padding: 1.6rem; }

  .hero-strip .container {
    gap: 0.5rem 1.6rem;
    font-size: 0.78rem;
  }

  .btn { padding: 0.8rem 1.6rem; width: 100%; max-width: 320px; text-align: center; }

  .value-grid { gap: 1.8rem; }
  .headshot-frame { margin: 0 auto; }
}
