/* ============================================================
   Teti Law — Employment Litigation
   Navy / white / gold · Playfair Display + Inter
   ============================================================ */

:root {
  --navy: #0a1f44;
  --navy-light: #122a56;
  --navy-lighter: #1a3568;
  --gold: #c9a84c;
  --white: #ffffff;
  --gray-bg: #f4f4f4;
  --text-dark: #1a1a2e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

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

/* Page fade transitions */
body { opacity: 0; transition: opacity 0.55s var(--ease); }
body.page-visible { opacity: 1; }
body.page-leaving { opacity: 0; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }

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

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  /* backdrop-filter is on ::before so it doesn't create a containing block
     that traps position:fixed children (the mobile menu overlay). */
  background: transparent;
  transition: box-shadow 0.45s var(--ease);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 31, 68, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  pointer-events: none;
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.nav.scrolled::before {
  background: rgba(10, 31, 68, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}
.nav-logo::after {
  content: "";
  position: absolute;
  top: -10%; left: -75%;
  width: 50%; height: 120%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-15deg);
  animation: logoGlint 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
  pointer-events: none;
}
@keyframes logoGlint {
  from { left: -75%; }
  to   { left: 125%; }
}
@media (prefers-reduced-motion: reduce) { .nav-logo::after { display: none; } }
.nav-links { display: flex; gap: 38px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--white);
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 34px; height: 26px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--white); transition: all 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    flex-direction: column; justify-content: center;
    gap: 34px; background: rgba(10, 31, 68, 0.98);
    /* visibility:hidden ensures the overlay is truly inert when closed,
       regardless of opacity or stacking-context quirks in mobile browsers. */
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav-links.open {
    opacity: 1; pointer-events: auto; visibility: visible;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
  }
  .nav-links a { font-size: 18px; }
}

/* ============ Sections ============ */
.section { position: relative; padding: 110px 0; overflow: hidden; }
.section--hero { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.section--navy { background: var(--navy); }
.section--navy-light { background: var(--navy-light); }
.section--gray { background: var(--gray-bg); color: var(--text-dark); }
.section--white { background: var(--white); color: var(--text-dark); }

/* Image-backed sections: bg layer + navy overlay */
.bg-layer {
  position: absolute; inset: -12% 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.bg-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(10, 31, 68, 0.42); }
.section > .container, .section > .full-width { position: relative; z-index: 2; }

.section-heading {
  font-size: clamp(30px, 4.4vw, 44px);
  text-align: center; margin-bottom: 36px;
}
.section-heading::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--gold); margin: 26px auto 0;
}
.section--gray .section-heading { color: var(--navy); }

.lead-block p { margin-bottom: 1.35em; font-size: 18px; }
.lead-block p:last-child { margin-bottom: 0; }
.centered-text { text-align: center; }

/* ============ Hero ============ */
.hero-content { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-content h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  margin-bottom: 26px; text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92); margin-bottom: 22px;
}
.hero-body {
  font-size: 17px; color: rgba(255, 255, 255, 0.85);
  max-width: 680px; margin: 0 auto 42px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block; position: relative;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--white); background: var(--navy);
  border: 1px solid var(--gold); border-radius: 2px;
  padding: 18px 42px; cursor: pointer;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease);
  box-shadow: 0 0 0 rgba(201, 168, 76, 0);
  will-change: transform;
}
.btn:hover, .btn:focus-visible {
  background: var(--navy-light);
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.45), inset 0 0 0 1px var(--gold);
}
.btn--gold-outline { background: transparent; }
.btn--gold-outline:hover { background: rgba(201, 168, 76, 0.08); }

/* ============ Results / counters ============ */
.results-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  max-width: 940px; margin: 0 auto 18px; text-align: center;
}
@media (max-width: 760px) { .results-grid { grid-template-columns: 1fr; gap: 44px; } }
.result-figure {
  font-family: var(--serif); font-size: clamp(48px, 7vw, 76px);
  color: var(--gold); line-height: 1.05; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.result-desc { font-size: 16px; color: rgba(255, 255, 255, 0.9); max-width: 420px; margin: 0 auto; }
.result-desc em { font-style: italic; }
.results-caption {
  text-align: center; font-size: 14.5px; font-style: italic;
  color: rgba(255, 255, 255, 0.75); margin: 30px 0 0;
}

.recognition-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 38px; margin-top: 64px; padding-top: 56px;
  border-top: 1px solid rgba(201, 168, 76, 0.35);
}
.recognition-row img { height: 130px; width: auto; }
.recognition-item {
  max-width: 300px; font-size: 17px; text-align: center;
  color: rgba(255, 255, 255, 0.92);
}
.recognition-item strong { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }

.publications-row {
  margin-top: 48px; text-align: center;
  font-size: 15.5px; color: rgba(255, 255, 255, 0.85);
}
.publications-row p { max-width: 720px; margin: 0 auto 14px; }
.publications-row em { font-style: italic; }

/* ============ Practice areas ============ */
.practice-intro { max-width: 750px; margin: 0 auto 56px; text-align: center; font-size: 18px; }
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 940px; margin: 0 auto;
}
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--navy-lighter);
  border-top: 2px solid var(--gold);
  padding: 38px 34px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover { background: #20406f; transform: translateY(-3px); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: rgba(255, 255, 255, 0.82); }

/* ============ How to choose ============ */
.section--gray .lead-block strong { color: var(--navy); }

/* ============ Testimonials ============ */
.testimonial-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 940px; margin: 0 auto;
}
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--navy-light);
  border-left: 2px solid var(--gold);
  padding: 40px 34px;
  font-style: italic; color: rgba(255, 255, 255, 0.65);
  font-size: 16px; text-align: center;
}

/* ============ About page ============ */
.two-col {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.two-col--flip { grid-template-columns: 7fr 5fr; }
@media (max-width: 820px) {
  .two-col, .two-col--flip { grid-template-columns: 1fr; gap: 40px; }
  .two-col--flip .col-photo { order: -1; }
}
.col-photo img {
  width: 100%; border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.bio-name { font-size: clamp(32px, 4vw, 44px); margin-bottom: 6px; }
.bio-title {
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.bio-text p { margin-bottom: 1.25em; font-size: 16.5px; }
.bio-detail { margin-top: 30px; }
/* DARK VERSION (revert by uncommenting below and removing the light version)
.edu-card {
  background: rgba(10, 31, 68, 0.82);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  padding: 24px 28px;
  color: var(--white);
}
.edu-card h3 { color: var(--gold); }
*/

/* LIGHT VERSION */
.edu-card {
  background: rgba(180, 185, 200, 0.55);
  border: 1px solid rgba(150, 155, 175, 0.4);
  border-radius: 4px;
  padding: 24px 28px;
  color: #111111;
}
.edu-card h3 { color: #0d1b3e; }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: none; }
}
.edu-card--animate { animation: slideInLeft 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.7s both; }
@media (prefers-reduced-motion: reduce) { .edu-card--animate { animation: none; } }
.edu-line { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.edu-line:last-child { margin-bottom: 0; }
.edu-line p { margin-bottom: 0; }
.edu-logo { height: 44px; width: auto; flex-shrink: 0; }

.bio-detail h3 {
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 600; color: var(--gold);
  margin-bottom: 10px;
}
.bio-detail p { font-size: 15.5px; margin-bottom: 5px; color: rgba(255, 255, 255, 0.9); }
.edu-card p { color: #111111; }
.edu-card h3 { color: #0d1b3e !important; }

.cred-group { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.cred-group:last-child { margin-bottom: 0; }
.cred-group h3 {
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--sans); font-weight: 600; color: var(--gold);
  margin-bottom: 22px;
}
.cred-group p { font-size: 16.5px; margin-bottom: 12px; }
.cred-group em { font-style: italic; }
.cred-badge { height: 120px; width: auto; margin: 0 auto 18px; }

.of-counsel-link {
  display: inline-block; margin-top: 26px; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid rgba(201, 168, 76, 0.5);
  padding-bottom: 2px; transition: border-color 0.3s var(--ease);
}
.of-counsel-link:hover { border-color: var(--gold); }

.full-bleed-img { padding: 0; }
.full-bleed-img .img-wrap { position: relative; }
.full-bleed-img img { width: 100%; height: auto; }
.full-bleed-img .img-wrap::after { display: none; }

/* ============ Contact page ============ */
.contact-header { padding: calc(var(--nav-h) + 90px) 0 80px; text-align: center; }
.contact-header h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 20px; }
.contact-header h1::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--gold); margin: 24px auto 0;
}
.contact-header p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, 0.88); }

.contact-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 52px; } }

.contact-info h2 { color: var(--navy); font-size: 26px; margin-bottom: 24px; }
.contact-line { font-size: 17px; margin-bottom: 12px; }
.contact-line a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(10, 31, 68, 0.25); transition: border-color 0.3s var(--ease); }
.contact-line a:hover { border-color: var(--gold); }
.contact-line .label {
  display: inline-block; min-width: 64px; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  font-weight: 600;
}
.qr-block { margin-top: 40px; }
.qr-block img { width: 190px; border: 1px solid #e2e2e2; padding: 10px; background: var(--white); }
.qr-block p { font-size: 14px; color: #555; margin-top: 10px; }

.contact-form .field { margin-bottom: 22px; }
.contact-form label {
  display: block; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); font-weight: 600;
  margin-bottom: 7px;
}
.contact-form label .req { color: var(--gold); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 13px 14px; border: 1px solid #ccc; border-radius: 2px;
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-disclaimer { font-size: 13.5px; color: #666; margin-top: 22px; line-height: 1.6; }
.form-status { margin-top: 16px; font-size: 15px; color: var(--navy); display: none; }
.form-status.visible { display: block; }

/* ============ Practice area pages ============ */
.practice-area-back { margin-bottom: 16px; }
.practice-area-back a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 2px; transition: border-color 0.3s var(--ease);
}
.practice-area-back a:hover { border-color: var(--gold); }
.practice-area-title {
  font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px;
}
.practice-area-section-heading {
  font-size: clamp(22px, 3vw, 30px); color: var(--navy);
  margin-bottom: 16px; font-family: var(--serif);
}
.practice-area-intro { font-size: 17px; color: #333; margin-bottom: 20px; }
.elements-list {
  padding-left: 22px; margin-bottom: 40px;
}
.elements-list li {
  font-size: 17px; color: #222; margin-bottom: 12px; line-height: 1.65;
}
.elements-list em { font-style: italic; }
.practice-area-note {
  border-left: 3px solid var(--gold); padding: 18px 22px;
  margin-bottom: 24px; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.practice-area-note h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.practice-area-note p { font-size: 16px; color: #333; line-height: 1.7; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link .card { cursor: pointer; }
.card-link .card::after {
  content: "Learn more →";
  display: block; margin-top: 14px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-family: var(--sans);
}


.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid rgba(201,168,76,0.2); padding: 24px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 10px; }
.faq-a { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.7; }

/* ============ Footer ============ */
.footer {
  background: var(--navy); text-align: center;
  padding: 80px 24px 48px;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}
.footer img { height: 44px; width: auto; margin: 0 auto 28px; }
.footer p { font-size: 15px; color: rgba(255, 255, 255, 0.82); margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, 0.92); text-decoration: none; transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer-nav { display: flex; justify-content: center; gap: 28px; margin: 22px 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-copy { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin-top: 26px; }
.footer-disclaimer {
  font-size: 12.5px; color: rgba(255, 255, 255, 0.45);
  max-width: 620px; margin: 14px auto 0; line-height: 1.6;
}

/* ============ Motion: page-load stagger ============ */
[data-load] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-load="left"] { transform: translateX(-26px); }
body.loaded [data-load] { opacity: 1; transform: none; }

/* ============ Motion: scroll reveals ============ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal--left { transform: translateX(-34px); }
.reveal.revealed { opacity: 1; transform: none; }

/* data-load elements that also use scroll-reveal */
[data-load].reveal:not(.revealed) { opacity: 0; transform: translateY(18px); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, [data-load], .reveal, .btn, .card { transition: none !important; }
  body { opacity: 1; }
  [data-load], .reveal { opacity: 1; transform: none; }
  .bg-layer { transform: none !important; }
}
