/* ============================================================
   THE AHMED LAW GROUP v2 — Page Sections
   ============================================================ */

/* SECTION SHELL */
.section { padding: clamp(80px, 12vh, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section.tight { padding: clamp(60px, 8vh, 100px) var(--gutter); }
.section-head { margin-bottom: clamp(60px, 8vh, 100px); }
.section-head.center { text-align: center; }
.section-head.center .rule-tall { margin: 22px auto 0; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.section-head .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.05; letter-spacing: -0.018em;
  margin-top: 18px;
  max-width: 18ch;
}
.section-head.center .section-title { margin-inline: auto; }
.section-title em { font-style: italic; color: var(--gold); }
.section-lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: 17px; line-height: 1.7; color: var(--cream-soft);
}
.section-head.center .section-lede { margin-inline: auto; }

/* Section on cream background variant */
.section.on-cream { background: var(--cream-2); color: var(--navy); max-width: none; }
.section.on-cream .section-lede { color: rgba(26,26,26,0.72); }
.section.on-cream .eyebrow { color: var(--gold-deep); }
.section.on-cream .eyebrow::before { background: var(--gold-deep); }
.section.on-cream .section-title em { color: var(--gold-deep); }
.section.on-cream .rule { background: var(--gold-deep); }
.section.on-cream .inner { max-width: var(--max); margin: 0 auto; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; min-height: 600px; max-height: 960px;
  display: flex; align-items: center; justify-content: flex-start;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(40px, 6vh, 80px);
  text-align: left;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,253,248,0.94) 0%, rgba(255,253,248,0.86) 28%, rgba(255,253,248,0.58) 50%, rgba(255,253,248,0.34) 70%, rgba(255,253,248,0.55) 100%),
    linear-gradient(180deg, rgba(255,253,248,0.30) 0%, rgba(255,253,248,0.12) 40%, rgba(255,253,248,0.92) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26,26,26,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none; z-index: 1;
  opacity: .55;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0; width: 100%; }
.hero-eyebrow {
  display: inline-flex; gap: 14px; align-items: center;
  color: var(--gold);
  font-size: 11.5px; letter-spacing: 0.32em; text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0; animation: fadeup 1s ease .2s forwards;
}
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.8vw, 90px);
  line-height: 1.02; letter-spacing: -0.025em;
  opacity: 0; animation: fadeup 1.1s ease .35s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 36px; max-width: 540px;
  font-size: 17.5px; line-height: 1.7; color: var(--cream-soft);
  opacity: 0; animation: fadeup 1s ease .55s forwards;
}
.hero-actions {
  margin-top: 44px; display: flex; gap: 18px; justify-content: flex-start; flex-wrap: wrap;
  opacity: 0; animation: fadeup 1s ease .7s forwards;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.btn {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 28px;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease;
  display: inline-flex; align-items: center; gap: 12px;
  transition: all .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #ffffff; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(216,37,29,0.22); }
.btn-ghost { border-color: rgba(26,26,26,0.18); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--cream); color: #ffffff; }
.btn-dark:hover { background: #000000; }
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(4px); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  color: var(--cream-muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--gold), transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1.2); } }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px var(--gutter);
}
.stats-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -20px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.stat .n {
  font-family: var(--serif); font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em; color: var(--gold);
}
.stat .l { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-muted); margin-top: 12px; }

/* ============================================================
   PRACTICE CARDS (home + practice overview)
   ============================================================ */
.practice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.practice-card {
  display: flex; flex-direction: column;
  position: relative;
  transition: background .45s cubic-bezier(.25,.46,.45,.94), border-color .45s ease, transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s ease;
  background: var(--navy-2);
  border: 1px solid var(--line-soft);
  min-height: 0;
  transition: background .4s ease, transform .4s ease, border-color .4s ease;
  overflow: hidden;
}
.practice-card .card-media {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.practice-card .card-media::before {
  /* warm photo tint to anchor against light card body */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: rgba(26, 26, 26, 0.18);
  mix-blend-mode: multiply;
}
.practice-card .card-media::after {
  /* bottom fade into the card body */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, var(--navy-2) 100%);
}
.practice-card .card-media .photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.04) brightness(1.02);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.practice-card:hover .card-media .photo { transform: scale(1.06); filter: grayscale(0.05) contrast(1.06) brightness(1.04); }
.practice-card .card-body { padding: 32px 36px 36px; }
.practice-card::before {
  /* gold corner */
  content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 28px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
  transition: width .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1);
  z-index: 4;
}
.practice-card::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 28px; height: 28px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
  transition: width .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1);
  z-index: 4;
}
.practice-card:hover { background: var(--navy-3); border-color: var(--line); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.practice-card::before, .practice-card::after { transition: width .45s cubic-bezier(.25,.46,.45,.94), height .45s cubic-bezier(.25,.46,.45,.94); }
.practice-card:hover::before, .practice-card:hover::after { width: 56px; height: 56px; }
.practice-card .num {
  font-family: var(--mono); color: var(--gold); font-size: 11px; letter-spacing: 0.24em;
  margin-bottom: 28px;
}
.practice-card .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
}
.practice-card h3 {
  font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--cream);
}
.practice-card h3 em { font-style: italic; color: var(--gold); }
.practice-card p {
  margin-top: 16px; color: var(--cream-soft); font-size: 14.5px; line-height: 1.65;
}
.practice-card .more {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  transition: gap .3s ease;
}
.practice-card:hover .more { gap: 18px; }
.practice-card .more .ar { width: 24px; height: 1px; background: currentColor; position: relative; }
.practice-card .more .ar::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg);
}

/* ============================================================
   ABOUT SNIPPET (home) / ABOUT FULL
   ============================================================ */
.about {
  background: var(--navy-deep);
}
.about-grid {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(100px, 14vh, 180px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(50px, 7vw, 110px); align-items: center;
}
.about-centered {
  max-width: 820px; margin: 0 auto;
  padding: clamp(100px, 14vh, 180px) var(--gutter);
  text-align: center;
}
.about-centered .about-bio { text-align: center; max-width: 620px; margin: 30px auto 0; }
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-deep));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(216,37,29,0.05) 0 2px, transparent 2px 12px);
}
.about-portrait::after {
  /* corner brackets */
  content: ""; position: absolute; top: 16px; left: 16px; width: 18px; height: 18px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
}
.about-portrait .br {
  position: absolute; bottom: 16px; right: 16px; width: 18px; height: 18px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
}
.about-portrait .monogram {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(90px, 12vw, 180px);
  color: var(--gold);
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 4px 60px rgba(216,37,29,0.22);
}
.about-portrait .monogram::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 60%; height: 1px; background: var(--gold); transform: translateX(-50%);
}
.about-portrait .tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--cream-muted); text-transform: uppercase;
}
.about-portrait .cap {
  position: absolute; bottom: 22px; left: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase;
  display: flex; gap: 10px; align-items: center;
}
.about-portrait .cap .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.about-portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  z-index: 0;
}
.about-portrait::before { z-index: 1; }
.about-portrait::after { z-index: 2; }
.about-portrait .br { z-index: 2; }

.about-body .eyebrow { display: inline-flex; gap: 14px; align-items: center; }
.about-body .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.about-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.4vw, 80px);
  line-height: 1; letter-spacing: -0.022em;
  margin-top: 18px;
}
.about-name em { font-style: italic; color: var(--gold); }
.about-role { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-muted); margin-top: 18px; }
.about-bio { margin-top: 30px; font-size: 15.5px; line-height: 1.75; color: var(--cream-soft); max-width: 560px; }
.about-bio p + p { margin-top: 14px; }

.creds-row {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, auto); gap: 20px;
  align-items: center;
}
.cred {
  border: 1px solid var(--line);
  padding: 16px 20px;
}
.cred .v { font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1; }
.cred .v em { font-style: italic; }
.cred .l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-muted); margin-top: 6px; }
