/* ============================================
   AHSAN & ASSOCIATES, PLLC — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* Navy & Brass — authority meets warmth */
  --navy-950: #0a0f1a;
  --navy-900: #0f1628;
  --navy-800: #1a2240;
  --navy-700: #253058;
  --navy-600: #384a7a;
  --navy-500: #5068a0;
  --brass-400: #c9a84c;
  --brass-300: #dbbf6a;
  --brass-200: #e8d599;
  --cream-100: #faf8f2;
  --cream-50: #fdfcf9;
  --white: #ffffff;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --red-accent: #c0392b;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--cream-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
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 { margin-bottom: 1rem; color: var(--navy-700); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1.5rem; }

/* ============================================
   LAYOUT
   ============================================ */

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

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--navy-900);
  color: var(--cream-100);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream-100); }
.section--dark p { color: var(--slate-300); }
.section--dark .section-label { color: var(--brass-300); }

.section--cream { background: var(--cream-100); }

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 15, 26, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background 0.3s;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--brass-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brass-400);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream-100);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header__logo-text span {
  color: var(--brass-400);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-300);
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--brass-300);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass-400);
  transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__phone {
  display: none;
}

.nav__phone a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass-300);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__phone a:hover {
  color: var(--brass-200);
}

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--brass-400);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--brass-300);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream-100);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .nav__phone { display: block; order: -1; }
  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }
  .nav__list.active { transform: translateY(0); }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(56, 74, 122, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

/* Geometric lines for sophistication */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 80px,
      rgba(201, 168, 76, 0.03) 80px,
      rgba(201, 168, 76, 0.03) 81px
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__overline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__overline::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--brass-400);
}

.hero h1 {
  color: var(--cream-100);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-300);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--slate-300);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--brass-400);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .hero__stats { gap: 2rem; flex-wrap: wrap; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn--primary {
  background: var(--brass-400);
  color: var(--navy-950);
}

.btn--primary:hover {
  background: var(--brass-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream-100);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn--outline:hover {
  border-color: var(--brass-400);
  color: var(--brass-300);
}

.btn--dark {
  background: var(--navy-900);
  color: var(--cream-100);
}

.btn--dark:hover {
  background: var(--navy-800);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 15, 26, 0.08);
}

.card--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(201, 168, 76, 0.1);
}

.card--dark:hover {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 0.75rem; }

/* ============================================
   LOGOS (Trusted By)
   ============================================ */

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem 0;
}

.logos__item {
  height: 36px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.logos__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logos__text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-800);
  opacity: 0.35;
  transition: opacity 0.3s;
  letter-spacing: 0.02em;
}

.logos__text:hover { opacity: 0.7; }

.section--dark .logos__text {
  color: var(--cream-100);
  opacity: 0.3;
}
.section--dark .logos__text:hover { opacity: 0.6; }

/* ============================================
   ATTORNEY BIO
   ============================================ */

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .bio-grid { grid-template-columns: 1fr; }
}

.bio__photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--navy-800);
  border: 1px solid rgba(201, 168, 76, 0.15);
  overflow: hidden;
  position: relative;
}

.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bio__credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .bio__credentials { grid-template-columns: 1fr; }
}

.credential {
  padding: 1.25rem;
  border-left: 2px solid var(--brass-400);
  background: rgba(201, 168, 76, 0.03);
}

.credential__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 0.3rem;
}

.credential__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* ============================================
   PATENT TABLE
   ============================================ */

.patent-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.patent-filter {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}

.patent-filter:hover,
.patent-filter.active {
  border-color: var(--brass-400);
  background: rgba(201, 168, 76, 0.06);
  color: var(--navy-900);
}

.patent-table {
  width: 100%;
  border-collapse: collapse;
}

.patent-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--slate-200);
}

.patent-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9rem;
  vertical-align: top;
}

.patent-table tr:hover {
  background: rgba(201, 168, 76, 0.03);
}

.patent-table a {
  color: var(--navy-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(80, 104, 160, 0.3);
  text-underline-offset: 2px;
}

.patent-table a:hover {
  color: var(--brass-400);
  text-decoration-color: var(--brass-400);
}

.patent-number {
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy-900);
}

.patent-assignee {
  font-size: 0.8rem;
  color: var(--slate-400);
  font-weight: 500;
}

@media (max-width: 768px) {
  .patent-table thead { display: none; }
  .patent-table tr {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--slate-200);
  }
  .patent-table td {
    display: block;
    padding: 0.25rem 0;
    border: none;
  }
  .patent-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    display: block;
    margin-bottom: 0.15rem;
  }
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--brass-400), var(--slate-200));
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  background: var(--brass-400);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-900);
}

.timeline__company {
  font-size: 0.95rem;
  color: var(--brass-400);
  font-weight: 500;
}

.timeline__location {
  font-size: 0.85rem;
  color: var(--slate-400);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-900);
  transition: border-color 0.2s;
  border-radius: 2px;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--brass-400);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 1rem;
}

.contact-info__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.contact-info__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream-100);
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 1rem;
}

.footer__links a {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--cream-100); }

.footer__bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  text-align: center;
  color: var(--slate-400);
  line-height: 1.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Animations disabled — content visible immediately for fast browsing */
.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 1;
  transform: none;
}

.stagger.visible > * {
  opacity: 1;
  transform: none;
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.text-brass { color: var(--brass-400); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--navy-950);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 60px,
      rgba(201, 168, 76, 0.02) 60px,
      rgba(201, 168, 76, 0.02) 61px
    );
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream-100); margin-bottom: 1rem; }
.page-hero p { color: var(--slate-300); max-width: 600px; font-size: 1.05rem; }

/* Practice area detail */
.practice-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.practice-detail--reverse { direction: rtl; }
.practice-detail--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .practice-detail,
  .practice-detail--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.practice-detail__visual {
  aspect-ratio: 4/3;
  background: var(--navy-800);
  border: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Bar associations / admissions */
.admissions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .admissions-list { grid-template-columns: 1fr; }
}

.admission-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.9rem;
  font-weight: 500;
}

.admission-item::before {
  content: '\2713';
  color: var(--brass-400);
  font-weight: 700;
  flex-shrink: 0;
}
