:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #b3893c;
  --gold-light: #d8b877;
  --cream: #faf8f4;
  --white: #ffffff;
  --ink: #21242c;
  --muted: #5c6470;
  --border: #e5e1d8;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --radius: 6px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand:hover .brand-name { color: var(--gold-light); }

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  position: relative;
}

.main-nav a {
  display: block;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 10px 16px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-light); color: var(--navy-dark) !important; }

.nav-toggle { display: none; }

/* Nav dropdowns */
.has-dropdown {
  padding-right: 14px;
}
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.6);
  vertical-align: middle;
}
.has-dropdown:hover > a::after { border-top-color: var(--gold-light); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  border-bottom: none;
}

.dropdown a {
  color: var(--navy) !important;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  padding: 9px 20px !important;
  border-bottom: none !important;
  white-space: normal;
}

.dropdown a:hover {
  background: var(--cream);
  color: var(--gold) !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 24px 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(211, 184, 119, 0.25);
  border-radius: 50%;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Sections */
.section { padding: 80px 24px; }
.section-alt { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { color: var(--gold); }
.section-head p { color: var(--muted); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.14);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold-light);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card .link { font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Photo feature (image + copy split, duotone-treated photo) */
.photo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  filter: grayscale(0.55) contrast(1.05);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: multiply;
  opacity: 0.7;
  z-index: 1;
}

.photo-frame .accent-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  display: flex;
  z-index: 2;
}

.accent-bar .stripe {
  flex: 1;
  background: repeating-linear-gradient(
    -45deg,
    var(--navy-dark),
    var(--navy-dark) 10px,
    #123a68 10px,
    #123a68 20px
  );
}

.accent-bar .badge {
  width: 60px;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.photo-copy h2 { font-style: italic; }
.photo-copy p { color: var(--muted); }

/* Case results */
.results-list { display: grid; gap: 20px; }
.result-item {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: var(--radius);
}
.result-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.result-item .meta { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }

/* Testimonial */
.testimonial {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 20px;
  color: var(--white);
}
.testimonial cite {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service areas */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 48px;
}
.contact-info h3 { color: var(--white); }
.contact-info .item { margin-bottom: 20px; }
.contact-info .label { color: var(--gold-light); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-form { padding: 48px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success { background: #e8f3e9; color: #2b6a34; border: 1px solid #bfe1c4; }

/* Lists: blog / newsroom / work */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card .thumb { height: 180px; background: var(--navy); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 22px; }
.post-card .date { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 0.92rem; }

.news-list { display: grid; gap: 4px; }
.news-item { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.news-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.news-item .source { color: var(--muted); font-size: 0.85rem; }
.news-item .date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Detail pages */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink); }

/* Attorney profile */
.attorney-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  align-items: start;
}
.attorney-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; }
.attorney-card h2 { margin-bottom: 4px; }
.attorney-card .role { color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.credential-list { list-style: none; padding: 0; margin: 16px 0 0; }
.credential-list li { padding: 4px 0; color: var(--muted); font-size: 0.9rem; }
.credential-list li::before { content: "— "; color: var(--gold); }

/* Practice area services list */
.service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
}
.service-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
}
.service-list li::before { content: "— "; color: var(--gold); }

/* Jozary IQ funnel */
.funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 360px;
  margin: 0 auto;
}
.funnel-step {
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.funnel-step:not(:last-child)::after {
  content: "↓";
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 8px 0;
}
.funnel-step-final {
  background: var(--navy);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 1300px) {
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 0.7rem; }
  .brand-name { font-size: 1.2rem; }
}

@media (max-width: 860px) {
  .photo-feature, .contact-wrap, .attorney-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .testimonial { padding: 36px 24px; }
}
