/* ============================================
   LAVIAN, P.C. — Global Stylesheet
   Plaintiff-Side Consumer Protection Law Firm
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #2A3F66;
  --gold: #C9A96E;
  --gold-light: #D4BC8E;
  --gold-dark: #A8874D;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-100: #F0EDE8;
  --gray-200: #E0DCD4;
  --gray-400: #9C978D;
  --gray-600: #6B6660;
  --gray-800: #3A3632;
  --text-primary: #1E1E1E;
  --text-secondary: #4A4A4A;
  --text-light: #7A7A7A;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--off-white);
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--navy-deep);
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn--outline:hover {
  background-color: var(--white);
  color: var(--navy);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--outline-dark:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.header--transparent {
  background: transparent;
}

.header--solid {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.header__logo::after {
  content: '';
  display: block;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-top: 3px;
}

.header--transparent .header__logo {
  color: var(--gold);
}

.header--solid .header__logo {
  color: var(--gold);
}

.header__logo span {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
  margin-left: 0.3em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.header--transparent .header__nav a {
  color: rgba(255,255,255,0.85);
}

.header--transparent .header__nav a:hover {
  color: var(--white);
}

.header--solid .header__nav a {
  color: var(--text-secondary);
}

.header--solid .header__nav a:hover {
  color: var(--navy);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav .btn {
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
}

.header__nav .btn::after {
  display: none;
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  transition: all 0.3s ease;
}

.header--transparent .header__toggle span {
  background: var(--white);
}

.header--solid .header__toggle span {
  background: var(--navy);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
  z-index: 0;
}

/* Subtle geometric pattern overlay */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
  z-index: 1;
}

/* Fine line decorative element */
.hero__bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(201,169,110,0.07);
  border-radius: 50%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 800px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

/* Hero variant for inner pages */
.hero--inner {
  min-height: 45vh;
  text-align: left;
}

.hero--inner .hero__content {
  max-width: var(--max-width);
  width: 100%;
  padding: 0 2rem;
}

.hero--inner .hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}

/* ============================================
   INTRO / ABOUT PREVIEW
   ============================================ */
.intro {
  padding: 6rem 0;
}

.intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro__text h2 {
  margin-bottom: 1.5rem;
}

.intro__text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.intro__text .btn {
  margin-top: 1.5rem;
}

.intro__highlight {
  background: var(--off-white);
  padding: 3rem;
  position: relative;
}

.intro__highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.intro__stat {
  margin-bottom: 2rem;
}

.intro__stat:last-child {
  margin-bottom: 0;
}

.intro__stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.intro__stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ============================================
   PRACTICE AREA CARDS (Homepage)
   ============================================ */
.practices-preview {
  padding: 6rem 0;
  background: var(--off-white);
}

.practices-preview__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.practices-preview__header h2 {
  margin-bottom: 1rem;
}

.practices-preview__header p {
  font-size: 1.05rem;
}

.practices-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.practice-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.practice-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,42,74,0.08);
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.practice-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.practice-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.practice-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 1.25rem;
  transition: gap var(--transition);
}

.practice-card:hover .practice-card__link {
  gap: 0.7rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 5rem 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,169,110,0.06) 0%, transparent 60%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================
   PRACTICE AREAS (Full Page)
   ============================================ */
.practice-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.practice-detail:last-child {
  border-bottom: none;
}

.practice-detail__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.practice-detail__label {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.practice-detail__label h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.practice-detail__label .label {
  margin-bottom: 0.5rem;
}

.practice-detail__content p {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.practice-detail__content p:last-child {
  margin-bottom: 0;
}

.practice-detail__statutes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.statute-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--gray-200);
}

/* ============================================
   ABOUT / BIO PAGE
   ============================================ */
.bio {
  padding: 5rem 0;
}

.bio__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.bio__photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.bio__sidebar h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.bio__sidebar .bio__title-role {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.bio__sidebar-contact a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.bio__sidebar-contact a:hover {
  color: var(--gold-dark);
}

.bio__content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.bio__content h3:first-child {
  margin-top: 0;
}

.bio__content p {
  font-size: 1.02rem;
  line-height: 1.85;
}

.bio__content ul {
  list-style: none;
  padding: 0;
}

.bio__content ul li {
  padding: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bio__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact {
  padding: 5rem 0;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__info h2 {
  margin-bottom: 1.5rem;
}

.contact__info > p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact__detail {
  margin-bottom: 1.5rem;
}

.contact__detail .label {
  margin-bottom: 0.3rem;
}

.contact__detail p,
.contact__detail a {
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact__detail a:hover {
  color: var(--gold-dark);
}

/* Contact Form */
.contact__form-wrapper {
  background: var(--off-white);
  padding: 3rem;
}

.contact__form-wrapper h3 {
  margin-bottom: 0.5rem;
}

.contact__form-wrapper > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6660' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__brand span {
  font-weight: 400;
  opacity: 0.5;
  font-size: 0.85em;
  margin-left: 0.2em;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer__disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .intro__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-detail__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .practice-detail__label {
    position: static;
  }

  .bio__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .practices-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__disclaimer {
    text-align: left;
  }

  .bio__sidebar {
    grid-template-columns: 1fr;
  }

  .contact__form-wrapper {
    padding: 2rem;
  }
}
