/* Garden State Legal Solutions — marketing site design system
   Liquid-glass treatment ported from the GSLS platform theme
   (frosted surfaces, specular highlights, GSLS blue on warm canvas) */

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

:root {
  --bg: #f5f3ee;
  --bg-mid: #efece5;
  --bg-card: #ffffff;
  --ink: #1c2340;
  --ink-mid: #2d3557;
  --accent: #3451c7;
  --accent-light: #3b5bdb;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: rgba(59,91,219,0.10);
  --border-strong: rgba(59,91,219,0.22);
  --rule: #e2ddd5;
  --glass-bg: rgba(255,255,255,0.62);
  --glass-bg-hover: rgba(255,255,255,0.82);
  --glass-inset: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(59,91,219,0.03);
  --glass-shadow: 0 1px 4px rgba(59,91,219,0.05), 0 4px 16px rgba(59,91,219,0.04);
  --glass-shadow-hover: 0 4px 16px rgba(59,91,219,0.10), 0 8px 32px rgba(59,91,219,0.05);
  --radius: 14px;
  --radius-btn: 12px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(59,91,219,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 95%, rgba(59,91,219,0.045) 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-light); color: #fff; padding: 0.6rem 1rem;
  font-family: Inter, sans-serif; font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Glass surface primitives ---------- */

.glass, .service-card, .testimonial-wrap, .county-block, .faq-item {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-inset), var(--glass-shadow);
}
.glass::after, .service-card::after, .testimonial-wrap::after, .county-block::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.06) 45%, transparent 60%);
  pointer-events: none;
}

/* ---------- Nav ---------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,243,238,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 12px rgba(59,91,219,0.04);
}

.nav-logo {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 2px 8px rgba(28,35,64,0.28); }
.nav-logo span { color: var(--accent-light); }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }

.nav-link {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--accent-light); }

.nav-phone {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--accent-light); }

/* ---------- Hero (homepage) ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero-tag, .page-hero-tag {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
  display: block;
}
.hero-tag { opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards; }

.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: balance;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}
.hero h1 em, .page-hero h1 em { font-style: italic; color: var(--accent-light); }

.hero-sub {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.85;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

/* ---------- Buttons (platform glass recipe) ---------- */

.hero-cta, .cta-link, .form-submit, .btn-solid {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-light);
  text-decoration: none;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-btn);
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.1), 0 2px 8px rgba(59,91,219,0.22), 0 4px 16px rgba(59,91,219,0.10);
  transition: all 0.2s ease;
}
.hero-cta::after, .cta-link::after, .form-submit::after, .btn-solid::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 45%, transparent 60%);
  pointer-events: none;
}
.hero-cta:hover, .cta-link:hover, .form-submit:hover, .btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 16px rgba(59,91,219,0.28), 0 8px 32px rgba(59,91,219,0.12);
}
.hero-cta:active, .cta-link:active, .form-submit:active, .btn-solid:active { transform: translateY(0) scale(0.97); }

.hero-phone {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-phone:hover { color: var(--accent-light); }

/* ---------- Sections ---------- */

hr.divider { border: none; border-top: 1px solid var(--rule); max-width: 960px; margin: 0 auto; }

section { max-width: 960px; margin: 0 auto; padding: 5rem 2rem; }

.section-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent-light);
  opacity: 0.4;
}

/* ---------- Services grid: frosted cards ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: none;
  border: none;
}

.service-card {
  padding: 2.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), var(--glass-shadow-hover);
  transform: translateY(-2px);
}

.service-num {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }

.learn-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  transition: opacity 0.2s;
  position: relative;
  z-index: 1;
}
.learn-more:hover { opacity: 0.7; }

/* ---------- Testimonial ---------- */

.testimonial-wrap {
  border-left: 3px solid var(--accent-light);
  padding: 2.5rem 3rem;
  margin-top: 3rem;
}

.testimonial-quote {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-attr {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-heading {
  font-family: "DM Serif Display", serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

.about-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.85; }
.about-body p + p { margin-top: 1rem; }

/* ---------- Contact ---------- */

.contact-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-heading {
  font-family: "DM Serif Display", serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  max-width: 360px;
  text-wrap: balance;
}

.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { padding-top: 0.5rem; font-style: normal; }

.contact-item label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-item a, .contact-item span {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent-light); }

.contact-form-wrap { margin-top: 3.5rem; border-top: 1px solid var(--rule); padding-top: 3rem; }

.contact-form-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form .full { grid-column: 1 / -1; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-light); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.10);
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--bg-card);
  padding-right: 2.5rem;
  cursor: pointer;
}
.contact-form select option { background: var(--bg-card); color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 0.5rem; }

/* ---------- Subpages ---------- */

.page-hero { padding: 10rem 2rem 5rem; max-width: 960px; margin: 0 auto; }

.page-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.page-hero-sub { font-size: 1rem; color: var(--muted); max-width: 560px; line-height: 1.85; margin-bottom: 2.5rem; }
.page-hero-tag { margin-bottom: 1.5rem; }

.back-link {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
  margin-bottom: 3rem;
}
.back-link:hover { color: var(--accent-light); }

.content-block { max-width: 960px; margin: 0 auto; padding: 0 2rem 5rem; }
.content-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }

.content-sidebar h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.what-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1rem; }
.what-list li { font-size: 0.875rem; color: var(--muted); padding-left: 1.2rem; position: relative; line-height: 1.6; }
.what-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent-light); font-size: 0.75rem; top: 2px; }

.content-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.85; }
.content-body p + p { margin-top: 1.25rem; }
.content-body h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.county-block { border-left: 3px solid var(--accent-light); padding: 2rem 2.5rem; margin-top: 3rem; }
.county-block-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.county-block p { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }

.cta-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #2d3557 0%, #1c2340 55%, #131830 100%);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 16px rgba(28,35,64,0.28), 0 8px 32px rgba(28,35,64,0.14);
  padding: 3.5rem 2.5rem;
  margin-top: 4rem;
}
.cta-block h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-block p { font-size: 0.9rem; color: var(--muted-light); line-height: 1.7; margin-bottom: 2rem; max-width: 500px; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }

.faq-item { transition: background 0.2s ease, border-color 0.2s ease; }
.faq-item[open] { background: var(--glass-bg-hover); border-color: var(--border-strong); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 1.75rem;
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-family: "DM Mono", monospace;
  color: var(--accent-light);
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 1.75rem 1.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}
.faq-item .faq-answer p + p { margin-top: 0.9rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
}
footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent-light); }

/* ---------- Motion ---------- */

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tag, .hero h1, .hero-sub, .hero-actions { animation: none; opacity: 1; }
  .hero-cta, .cta-link, .form-submit, .service-card, .btn-solid { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-block { flex-direction: column; }
}

@media (max-width: 480px) {
  nav { padding: 0.9rem 1.1rem; }
  .nav-logo { font-size: 0; letter-spacing: 0; gap: 0; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-links { gap: 0.9rem; flex-shrink: 0; }
  .nav-phone, .nav-link { font-size: 10px; letter-spacing: 0.08em; white-space: nowrap; }
  .hero { padding: 7rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.5rem; }
  .page-hero { padding: 8rem 1.25rem 3rem; }
  .content-block { padding: 0 1.25rem 3rem; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .testimonial-wrap { padding: 2rem; }
  .service-card { padding: 1.75rem; }
  .cta-block { padding: 2.5rem 1.75rem; }
}
