/* =========================================================
   Maldonado Law Group, PLLC — Stylesheet
   Professional legal theme: deep navy, gold accent, ivory
   ========================================================= */

:root {
  --navy-900: #0d1b2a;
  --navy-800: #14253a;
  --navy-700: #1b3a5b;
  --navy-600: #274b73;
  --gold-600: #a87f33;
  --gold-500: #c39a45;
  --gold-400: #d8b563;
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --ink: #1c2330;
  --ink-soft: #4a5568;
  --muted: #6b7280;
  --line: #e4dccb;
  --line-soft: #ece7dd;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.18);
  --radius: 6px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }

a { color: var(--navy-600); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-600); }

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

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
  display: block;
}

.gold-rule {
  width: 56px; height: 3px; background: var(--gold-500);
  display: block; margin: 1rem 0 1.6rem; border: 0;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #cfd8e3;
  font-size: 0.83rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: var(--gold-400); }
.topbar .tb-left { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.topbar .tb-right { display: flex; gap: 1.4rem; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar .tb-item svg { width: 14px; height: 14px; fill: var(--gold-500); flex-shrink: 0; }

/* ---------- Main navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(13,27,42,0.04);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-600);
  display: block;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-700);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover { color: var(--gold-600); background: var(--line-soft); }
.nav a.active { color: var(--gold-600); }
.nav a.active::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px; background: var(--gold-500);
}

.nav-cta {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
  margin-left: 0.4rem;
}
.nav-cta:hover { background: var(--gold-600); color: #fff !important; }

/* ===== Nav "Make a Payment" link ===== */
.nav-pay {
  color: var(--gold-600) !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 0.45rem 1rem !important;
  margin-left: 0.4rem;
  transition: all 0.25s ease;
}
.nav-pay:hover {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
}
.nav-pay::after { display: none !important; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero.png") center/cover no-repeat;
  opacity: 0.42;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.70) 55%, rgba(13,27,42,0.45) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead {
  font-size: 1.18rem; color: #d6dde6; max-width: 52ch; margin-top: 1.2rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-600); color: #fff; border-color: var(--gold-600); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 2rem;
}
.hero-stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-400); font-weight: 700; line-height: 1; }
.hero-stat .lbl { font-size: 0.82rem; color: #c2ccd8; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.4rem; }

/* ---------- Intro / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split-media .media-frame {
  border: 1px solid var(--line);
  padding: 10px; background: var(--paper); border-radius: 10px; box-shadow: var(--shadow-lg);
}

.lead-p { font-size: 1.12rem; color: var(--ink-soft); }

ul.checklist { list-style: none; margin: 1.5rem 0; }
ul.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-900);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/contain no-repeat;
  background-color: var(--gold-600);
}

/* ---------- Practice areas ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .gold-rule { margin-left: auto; margin-right: auto; }

.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.area-card:hover::before { transform: scaleX(1); }
.area-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.area-icon svg { width: 26px; height: 26px; fill: var(--gold-400); }
.area-card h3 { margin-bottom: 0.5rem; }
.area-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Attorney ---------- */
.attorney-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 2.5rem; box-shadow: var(--shadow); align-items: start;
}
.attorney-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.attorney-photo-wrap { border: 1px solid var(--line); padding: 8px; border-radius: 10px; background: var(--ivory); }
.attorney-name { font-size: 1.9rem; margin-bottom: 0.2rem; }
.attorney-title { color: var(--gold-600); font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem; display: block; }
.attorney-meta { list-style: none; margin: 1.4rem 0; border-top: 1px solid var(--line-soft); }
.attorney-meta li { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.attorney-meta li strong { color: var(--navy-700); min-width: 120px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Stats band ---------- */
.band {
  background: var(--navy-900); color: #fff; padding: 4rem 0;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -100px; top: -100px; width: 300px; height: 300px;
  border: 1px solid rgba(216,181,99,0.15); border-radius: 50%;
}
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; position: relative; z-index: 2; }
.band-stat .num { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--gold-400); }
.band-stat .lbl { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b8c3d1; margin-top: 0.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info-card {
  background: var(--navy-900); color: #fff; border-radius: 10px; padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.contact-info-card h2 { color: #fff; }
.contact-info-card .gold-rule { background: var(--gold-500); }
.contact-block { margin-bottom: 1.8rem; }
.contact-block h4 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.6rem;
}
.contact-block p, .contact-block a { color: #d6dde6; font-size: 1rem; line-height: 1.6; }
.contact-block a:hover { color: var(--gold-400); }
.contact-block .line { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.3rem; }
.contact-block svg { width: 16px; height: 16px; fill: var(--gold-500); flex-shrink: 0; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; }
.hours-table td { padding: 0.45rem 0; color: #c2ccd8; font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { color: var(--gold-400); font-weight: 600; }

/* ===== LawPay Payment Block ===== */
.payment-block {
  background: rgba(195, 154, 69, 0.08);
  border: 1px solid rgba(195, 154, 69, 0.25);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-top: 0.5rem;
}
.payment-block h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400) !important;
}
.lawpay-btn {
  width: 100%;
  justify-content: center;
  margin: 0.8rem 0 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.lawpay-btn svg { fill: var(--navy-900); }
.lawpay-btn:hover svg { fill: #fff; }
.payment-secure-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem !important;
  color: #8a99ab !important;
  margin: 0;
}
.payment-secure-note svg { fill: #5fa168; width: 13px; height: 13px; }
.hours-table .closed { color: #8a96a6; }

/* ---------- Inquiry form ---------- */
.inquiry-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 2.5rem; box-shadow: var(--shadow);
}
.inquiry-form h2 { margin-bottom: 0.3rem; }
.form-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 0.4rem; }
.form-group .req { color: var(--gold-600); }
.form-control {
  width: 100%; padding: 0.8rem 0.9rem; font-family: var(--sans); font-size: 0.97rem;
  color: var(--ink); background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); transition: all 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 3px rgba(195,154,69,0.15); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231b3a5b' d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 18px; padding-right: 2.2rem; }

.form-error { color: #b3261e; font-size: 0.82rem; margin-top: 0.35rem; display: none; }
.form-group.invalid .form-control { border-color: #b3261e; background: #fcf2f1; }
.form-group.invalid .form-error { display: block; }

.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.2rem 0; }
.form-consent input { margin-top: 0.25rem; accent-color: var(--gold-600); }
.form-consent label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-success {
  display: none; background: #eaf5ee; border: 1px solid #a8d8b9; border-radius: var(--radius);
  padding: 1.6rem; margin-top: 1.5rem; color: #1f5a32;
}
.form-success.show { display: block; }
.form-success h4 { color: #1f5a32; font-family: var(--sans); font-size: 1.05rem; margin-bottom: 0.3rem; }
.form-success p { margin: 0; font-size: 0.92rem; }

.disclaimer-box {
  background: var(--line-soft); border-left: 3px solid var(--gold-500);
  padding: 1.2rem 1.4rem; border-radius: 4px; margin-top: 1.8rem;
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6;
}

/* ---------- Map ---------- */
.map-wrap { margin-top: 3rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: 12px; padding: 3rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; left: -60px; bottom: -60px; width: 200px; height: 200px;
  border: 1px solid rgba(216,181,99,0.2); border-radius: 50%;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c2ccd8; max-width: 56ch; margin: 0.8rem auto 1.8rem; }
.cta-banner .gold-rule { margin: 0 auto 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9aa7b8; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand .brand-mark-img { height: 54px; }
.footer-brand .brand-name { color: var(--gold-400); }
.footer-brand .brand-tag { color: var(--gold-500); }
.footer-grid h5 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-grid a { color: #b8c3d1; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-about p { font-size: 0.9rem; line-height: 1.7; color: #9aa7b8; max-width: 42ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.82rem; flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom .legal-links { display: flex; gap: 1.2rem; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy-900); color: #fff; padding: 4rem 0; position: relative; overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border: 1px solid rgba(216,181,99,0.18); border-radius: 50%;
}
.page-header h1 { color: #fff; }
.page-header .eyebrow { color: var(--gold-400); }
.page-header p { color: #c2ccd8; max-width: 56ch; margin-top: 0.6rem; }
.breadcrumb { font-size: 0.84rem; color: #8a96a6; margin-bottom: 1rem; }
.breadcrumb a { color: #b8c3d1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem; gap: 0.2rem; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 0.8rem 1rem; border-radius: var(--radius); }
  .nav.open .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .split, .contact-grid, .attorney-card { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .brand-mark-img { height: 40px; }
  .footer-brand .brand-mark-img { height: 46px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .hero .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .attorney-card { padding: 1.5rem; }
  .inquiry-form, .contact-info-card, .cta-banner { padding: 1.6rem; }
  .brand-mark-img { height: 36px; }
  .footer-brand .brand-mark-img { height: 42px; }
}

/* ---------- Print friendliness ---------- */
@media print {
  .topbar, .site-header, .nav, .cta-banner, .map-wrap, .hero-bg { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .area-card, .attorney-card, .inquiry-form, .contact-info-card { box-shadow: none; border: 1px solid #ccc; }
}
