/* Fox LAW / FoxWiser – Service detail pages (shared) */

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

:root, html[data-theme="light"] {
  color-scheme: light;
  --serif: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --page:       #F8FAFC;
  --surface:    #FFFFFF;
  --surface-2:  #F1F5F9;

  --text:       #111827;
  --text-2:     #334155;
  --text-3:     #475569;

  --subhead:    #334155;

  --border:     #E2E8F0;
  --border-2:   #CBD5E1;

  --brand-ink:  #0F172A;
  --on-dark:    #F8FAFC;
  --on-action:  #FFFFFF;

  --action:         #2563EB;
  --action-hover:   #1D4ED8;
  --action-pressed: #1E40AF;

  --action-soft:    rgba(37, 99, 235, 0.12);
  --action-soft-2:  rgba(37, 99, 235, 0.18);

  --rule: rgba(15, 23, 42, 0.10);
  --nav-bg: rgba(248, 250, 252, 0.86);
  --nav-bg-solid: rgba(248, 250, 252, 0.96);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page:       #0B1120;
  --surface:    #111827;
  --surface-2:  #1F2937;

  --text:       #F8FAFC;
  --text-2:     #F1F5F9;
  --text-3:     #E2E8F0;

  --subhead:    #E2E8F0;

  --border:     #334155;
  --border-2:   #475569;

  --brand-ink:  #0B1120;
  --on-dark:    #F8FAFC;
  --on-action:  #0B1120;

  --action:         #60A5FA;
  --action-hover:   #3B82F6;
  --action-pressed: #2563EB;

  --action-soft:    rgba(96, 165, 250, 0.12);
  --action-soft-2:  rgba(96, 165, 250, 0.18);

  --rule: rgba(248, 250, 252, 0.12);
  --nav-bg: rgba(11, 17, 32, 0.72);
  --nav-bg-solid: rgba(11, 17, 32, 0.92);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 92px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); z-index: 201; }
.logo-img { height: clamp(42px, 3.2vw, 54px); width: auto; display: block; }
.logo-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Logo shadow (clean + premium) */
.logo-img,
.footer-logo-img {
  /* Stronger, still premium: contact + ambient + lift */
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.22))
          drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18))
          drop-shadow(0 28px 48px rgba(15, 23, 42, 0.14));
  -webkit-filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.22))
          drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18))
          drop-shadow(0 28px 48px rgba(15, 23, 42, 0.14));
}


html[data-theme="dark"] .logo-img,
html[data-theme="dark"] .footer-logo-img {
  /* Dark surfaces: tiny edge lift + deeper shadow so it doesn't feel like a sticker */
  filter: drop-shadow(0 0 0.75px rgba(255, 255, 255, 0.10))
          drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55))
          drop-shadow(0 16px 32px rgba(0, 0, 0, 0.65));
  -webkit-filter: drop-shadow(0 0 0.75px rgba(255, 255, 255, 0.10))
          drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55))
          drop-shadow(0 16px 32px rgba(0, 0, 0, 0.65));
}

.nav-desktop {
  display: flex; align-items: center; gap: 2.2rem; list-style: none; position: relative;
}
.nav-hover-indicator {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  height: 34px; border-radius: 999px;
  background: var(--action-soft);
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none;
  z-index: 0;
  transition: all 0.18s ease;
}
.nav-desktop.has-hover .nav-hover-indicator { opacity: 1; }

.nav-desktop a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-2); text-decoration: none; transition: color 0.2s;
  padding: 0.38rem 0.75rem; border-radius: 999px;
  position: relative;
  z-index: 1;
}
.nav-desktop a:hover { color: var(--text); font-weight: 600; }
.nav-cta {
  color: var(--action) !important;
  border: 1px solid var(--action) !important;
  padding: 0.38rem 1.1rem; border-radius: 100px;
}

.theme-toggle{
  display: inline-flex;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.theme-toggle:hover{ background: var(--surface-2); border-color: var(--border-2); }
.theme-toggle svg{ width: 18px; height: 18px; fill:none; stroke: var(--text); stroke-width: 1.6; }
html[data-theme="dark"] .theme-toggle svg.moon{ display:none; }
html:not([data-theme="dark"]) .theme-toggle svg.sun{ display:none; }

/* ─── PAGE ─── */
main{
  padding: 112px 5vw 64px;
}
.container{ max-width: 980px; margin: 0 auto; }
.breadcrumb{
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.page-lead{
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 70ch;
  margin-bottom: 28px;
}

.detail-card{
  background: var(--surface);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.detail-card h2{
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  font-weight: 600;
}
.detail-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-item{
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 16px;
}
.detail-item h3{
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--subhead);
  margin-bottom: 8px;
}
.detail-item ul{ padding-left: 18px; color: var(--text-2); line-height: 1.7; font-weight: 400; }
.detail-item li{ margin-bottom: 6px; }

.actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn{
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  display: inline-block;
}
.btn-primary{ background: var(--action); color: var(--on-action); border: 1px solid var(--action); }
.btn-primary:hover{ background: var(--action-hover); border-color: var(--action-hover); }
.btn-secondary{ background: transparent; color: var(--action); border: 1px solid var(--action); }
.btn-secondary:hover{ background: var(--action-soft); color: var(--action-hover); border-color: var(--action-hover); }

/* ─── FOOTER ─── */
footer {
  background: var(--page);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-top: 1px solid var(--rule);
  padding: 1.8rem 5vw;
}
.footer-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo { display:inline-flex; align-items:center; gap: 10px; text-decoration:none; color: var(--text); justify-self: start; }
.footer-logo img { height: 50px; width:auto; display:block; }
.footer-right { font-size: 0.76rem; color: var(--text-3); justify-self: end; }

@media (max-width: 820px){
  nav{ height: 84px; }
  .logo-img{ height: 42px; }
  .detail-grid{ grid-template-columns: 1fr; }
  .nav-desktop{ gap: 1.2rem; }
}


.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 0 5vw 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 190;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  font-size: 1rem;
}
.mobile-menu a:first-child { border-top: 1px solid var(--rule); }
.mobile-menu .m-cta {
  margin-top: 1rem;
  border: 1px solid var(--action);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  text-align: center;
  color: var(--action);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  justify-self: center;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.footer-social a:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.footer-social svg { width: 17px; height: 17px; display: block; }

@media (max-width: 980px){
  .nav-desktop{ gap: 0.8rem; }
  .nav-desktop a{ padding-inline: 0.6rem; }
}

@media (max-width: 820px){
  nav{ height: 84px; }
  .logo-img{ height: 42px; }
  .detail-grid{ grid-template-columns: 1fr; }
  .nav-desktop{ display: none; }
  .hamburger{ display: inline-flex; }
  .mobile-menu{ display: flex; }
  .footer-inner{ grid-template-columns: 1fr; justify-items: center; }
  .footer-logo, .footer-right, .footer-social{ justify-self: center; }
}
