/* ============================================================
   LEWIS & CO. ADVOCATES — V2 SHARED STYLESHEET
   Multi-page | Navy · Gold · White
   ============================================================ */

:root {
  --navy-deep:  #070d1f;
  --navy:       #0d1b3e;
  --navy-mid:   #152248;
  --navy-light: #1e3264;
  --blue:       #1a6fc4;
  --blue-light: #2e88e0;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale:  #f8f2e3;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --text:       #0d1b3e;
  --text-mid:   #4a5568;
  --text-light: #8899b4;
  --border:     #e2e8f0;
  --radius:     12px;
  --shadow:     0 20px 60px rgba(10,15,30,0.12);
  --transition: all 0.32s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
em { font-style: italic; color: var(--gold); }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }

/* ---- UTILITIES ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- SECTION HEADER ---- */
.section-header        { text-align: center; margin-bottom: 56px; }
.section-header.left   { text-align: left; }
.section-header.light h2 { color: var(--white); }
.section-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  padding: 5px 16px;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 100px; margin-bottom: 14px;
}
.section-header.light .section-label { color: var(--gold); border-color: rgba(201,168,76,0.4); }
.section-desc { max-width: 580px; margin: 14px auto 0; font-size: 1.05rem; color: var(--text-mid); }
.section-header.light .section-desc { color: rgba(255,255,255,0.65); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 5px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,27,62,0.3); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR — Always visible solid background on ALL pages
   FIX 2: Firm name in gold. No backdrop-filter (causes mobile blur)
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  padding: 12px 0;
  background: rgba(7,13,31,0.98);   /* Always dark — nearly opaque */
  /* NO backdrop-filter — it causes blur to bleed into child elements on mobile */
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: #070d1f;   /* Fully opaque when scrolled */
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  border-bottom-color: rgba(201,168,76,0.2);
}
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
/* FIX 2: Firm name in gold */
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--gold);   /* Gold — not white/blue */
}
.nav-logo-text em { color: var(--gold-light); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
  padding: 8px 13px; border-radius: 5px; transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active { font-weight: 600; }
.nav-cta {
  background: var(--gold) !important; color: var(--navy-deep) !important;
  font-weight: 700 !important; padding: 9px 20px !important;
  border-radius: 5px;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy-deep) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 2002;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy-deep);
  padding: 160px 0 80px;
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,111,196,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.07) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.page-hero-divider { width: 60px; height: 3px; background: var(--gold); margin: 20px auto 0; border-radius: 2px; }

/* ============================================================
   FOOTER — FIX 3: All body text white/light, no blue
   ============================================================ */
.footer { background: var(--navy-deep); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr auto;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.footer-brand h3 { font-family: 'Cormorant Garamond', serif; color: var(--white); font-size: 1.25rem; margin-bottom: 10px; }
.footer-brand p  { font-size: 0.84rem; color: rgba(255,255,255,0.72); line-height: 1.75; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a   { font-size: 0.84rem; color: rgba(255,255,255,0.72); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col p,
.footer-col address,
.footer-col span { font-size: 0.84rem; color: rgba(255,255,255,0.72) !important; line-height: 1.8; font-style: normal; }
.footer-col a.contact-link { display: block; color: rgba(255,255,255,0.72); }
.footer-col a.contact-link:hover { color: var(--gold); }
/* FIX 4: Copyright year 2026 */
.footer-bottom { padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   FLOATING WHATSAPP — FIX 5: z-index 99999, always visible
   ============================================================ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px;
  z-index: 99999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #ffffff !important;
  padding: 12px 18px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
  font-size: 0.84rem; font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}
.wa-float:hover {
  background: #1aa851; transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6); color: #ffffff !important;
}
.wa-icon { width: 24px; height: 24px; flex-shrink: 0; }
.wa-pulse {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: #ff3333; border-radius: 50%; border: 2px solid white;
  animation: pulse 2s infinite;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed; bottom: 88px; right: 26px; z-index: 9999;
  width: 42px; height: 42px;
  background: var(--navy); border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 50%; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: var(--transition); pointer-events: none;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.back-top svg { width: 18px; height: 18px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   TEAM CARDS — FIX 7: Professional uniform photo cropping
   ============================================================ */
.team-card {
  background: var(--off-white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(201,168,76,0.1);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
/* FIX 7: Uniform 3:4 portrait aspect, face-focused crop */
.team-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.team-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Pulls face into frame — not cut off */
  display: block;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img img { transform: scale(1.04); }
.team-info { padding: 22px 24px; }
.team-info h3 { color: var(--navy); margin-bottom: 3px; }
.team-role {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.team-info p { font-size: 0.84rem; color: var(--text-mid); margin-bottom: 12px; line-height: 1.65; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.team-tags span {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(26,111,196,0.09);
  color: var(--blue); border: 1px solid rgba(26,111,196,0.18);
}

/* ============================================================
   CONTACT FORM (shared)
   ============================================================ */
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--navy); letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px; border: 1.5px solid var(--border);
  border-radius: 7px; font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; color: var(--text); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,196,0.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status { display: none; padding: 10px 14px; border-radius: 7px; font-size: 0.85rem; text-align: center; margin-top: 4px; }
.form-status.success { display: block; background: #e8f5e9; color: #1a7a4a; border: 1px solid #a8d5b8; }
.form-status.error   { display: block; background: #fdecea; color: #c0392b; border: 1px solid #f5b8b3; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes pulse { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.5); opacity:0.5; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}
/* ============================================================
   SOCIAL MEDIA ICONS — Footer
   ============================================================ */
.social-links {
  display: flex; gap: 12px; margin-top: 16px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  flex-shrink: 0;
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   SOCIAL MEDIA ICONS — FIX 12
   ============================================================ */
.footer-social {
  display: flex; gap: 12px; margin-top: 18px;
}
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  flex-shrink: 0;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section { background: var(--off-white); padding: 96px 0; }
.gallery-grid {
  columns: 3; column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(7,13,31,0);
  transition: var(--transition);
}
.gallery-item:hover::after { background: rgba(7,13,31,0.25); }

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: white; cursor: pointer;
  background: none; border: none; line-height: 1;
  opacity: 0.8; transition: var(--transition);
}
.lightbox-close:hover { opacity: 1; color: var(--gold); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; cursor: pointer; font-size: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--navy-deep); }


}

/* ============================================================
   CSS-ONLY HAMBURGER — Checkbox toggle, zero JavaScript
   ul.nav-links is a DIRECT sibling of the checkbox input
   ============================================================ */

/* Hide checkbox off-screen */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

/* Hamburger bars label — hidden on desktop */
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px;
  z-index: 3003;
  position: relative;
  order: 3;
}
.nav-toggle-label span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Dark backdrop — clicking it unchecks the checkbox = closes menu */
.nav-overlay-label {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 3000;
  cursor: pointer;
}

/* ---- MOBILE ONLY ---- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Show hamburger icon */
  .nav-toggle-label { display: flex; }

  /* Nav drawer — hidden off right edge by default */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: #070d1f !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 90px 0 40px !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    list-style: none !important;
    z-index: 3001 !important;
    /* Start hidden — off screen right */
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    visibility: hidden !important;
  }

  /* OPEN: checkbox checked → sibling ul slides in */
  .nav-toggle-input:checked ~ .nav-links {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  /* OPEN: show overlay backdrop */
  .nav-toggle-input:checked ~ .nav-overlay-label {
    display: block !important;
  }

  /* Animate hamburger bars to X */
  .nav-toggle-input:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle-input:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle-input:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Nav items */
  .nav-links li {
    width: 100% !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  /* Links — pure native <a> tags, browser handles navigation */
  .nav-links a {
    display: block !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding: 18px 28px !important;
    width: 100% !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }
  .nav-links a:active { color: #c9a84c !important; }
  .nav-links a.active { color: #c9a84c !important; font-weight: 600 !important; }

  /* CTA button in drawer */
  .nav-links .nav-cta {
    margin: 20px 24px 0 !important;
    background: #c9a84c !important;
    color: #070d1f !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    display: block !important;
  }

  /* Other responsive fixes */
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 13px !important; border-radius: 50% !important; }
}

@media (max-width: 480px) {
  .page-hero { padding: 140px 0 60px; }
}
