/* karam-law.com */
:root {
  --orange: #ff9c00;
  --orange-dark: #d18000;
  --link: #a86700;
  --ink: #1b1b1b;
  --text: #555;
  --header: #161616;
  --light: #f7f7f7;
  --alt: #f6f5f2;
  --line: #e7e4de;
  --heading-font: 'Squada One', 'Arial Narrow', sans-serif;
  --body-font: 'Share', arial, sans-serif;
  --header-h: 68px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h4, h5, p, ul, figure { margin: 0; }
h4 { font-family: var(--body-font); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); }
strong { font-weight: 700; color: #333; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #000; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; background: #fff; }
.section-alt { background: var(--alt); }

/* ---------- Header ---------- */
.site-header { background: var(--header); position: relative; }
.header-bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--header);
  padding: 0 max(24px, calc((100vw - 1160px) / 2 + 24px));
}
body:not(.home) .site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }

.brand {
  font-family: var(--heading-font); font-size: 26px; line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; color: #fff; white-space: nowrap;
}
.brand span { color: var(--orange); }
.brand:hover { color: #fff; }

.nav { list-style: none; display: flex; gap: 32px; padding: 0; margin: 0; }
.nav-link {
  position: relative; display: block;
  color: var(--light); text-decoration: none; text-transform: uppercase;
  font-size: 14px; font-weight: 700; letter-spacing: 1.2px; line-height: 1.5;
  padding: 8px 0; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover { color: var(--orange); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.hamburger { display: none; background: none; border: 0; color: var(--light); cursor: pointer; padding: 8px; margin-left: -8px; }

/* Home: transparent bar over the hero, dark once scrolled */
.home .site-header { background: none; }
.home .header-bar {
  position: fixed; left: 0; right: 0; top: 0;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  transition: background-color .3s, box-shadow .3s;
}
.home .header-bar.scrolled { background: var(--header); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }

.hero {
  min-height: clamp(360px, 58vh, 520px);
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .1) 100%),
    #2a211a url('/img/hero.jpg') center 40% / cover no-repeat;
  padding: calc(var(--header-h) + 32px) 24px 48px;
}
.hero-inner { width: 100%; max-width: 1112px; margin: 0 auto; }
.hero-rule { display: block; width: 72px; height: 4px; background: var(--orange); margin-bottom: 24px; }
.hero h1 {
  font-family: var(--heading-font); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: .02em;
  color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); max-width: 20ch;
}
.hero-tagline {
  margin-top: 16px; color: var(--light); text-transform: uppercase;
  font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 2px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Drawer (mobile menu) ---------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--header); color: var(--light); z-index: 40;
  transform: translateX(-100%); transition: transform .3s ease; visibility: hidden;
  padding: 72px 24px 24px; overflow-y: auto;
}
.drawer.open { transform: none; visibility: visible; }
.drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-link { display: block; padding: 16px 8px; color: var(--light); text-decoration: none; font-size: 18px; }
.drawer-link:hover, .drawer-link.is-active { color: var(--orange); }
.drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--light); cursor: pointer; padding: 8px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Typography blocks ---------- */
.page-title {
  font-family: var(--heading-font); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 48px); line-height: 1.2; letter-spacing: .02em;
  color: var(--orange-dark); text-align: center; margin-bottom: 48px;
}
.page-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--orange); margin: 16px auto 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #000; text-decoration: none; text-transform: uppercase;
  font-family: var(--body-font); font-weight: 700; font-size: 14px; letter-spacing: 1.2px;
  min-height: 52px; padding: 8px 28px; border: 2px solid var(--orange); border-radius: 4px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: #ffb02e; border-color: #ffb02e; color: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: #000; }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 4px 18px; font-size: 13px; }

/* ---------- Image + text row ---------- */
.media { display: flex; gap: 56px; align-items: center; }
.media-img { flex: 0 0 36%; }
.media-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-body { flex: 1; }
.media-body h4 { font-size: 26px; margin-bottom: 20px; }
.media-body p { margin-bottom: 28px; }
.media-body p:last-child { margin-bottom: 0; }
.media-wide .media-img { flex-basis: 48%; }
.home .media-img { flex-basis: 28%; }

/* ---------- About ---------- */
.about-lead { width: 100%; max-width: 960px; margin: 0 auto 48px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text { max-width: 860px; margin: 0 auto 56px; }
.about-text p { margin-bottom: 20px; }
.checklist {
  list-style: none; padding: 28px 32px; margin: 28px 0;
  background: var(--alt); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0;
  columns: 2; column-gap: 40px;
}
.checklist li { position: relative; padding-left: 26px; margin-bottom: 10px; break-inside: avoid; color: #333; }
.checklist li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--orange-dark); border-bottom: 2px solid var(--orange-dark); transform: rotate(-45deg);
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.duo figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.duo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.duo figcaption { text-align: center; padding: 20px; }

/* ---------- Practice cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 16px 36px rgba(0, 0, 0, .1); }
.card img { order: -1; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #e9e9e9; border-bottom: 3px solid var(--orange); }
.card h4 { padding: 24px 24px 0; font-size: 21px; }
.card p { padding: 12px 24px 0; font-size: 16px; line-height: 1.6; }
.card p:last-child { padding-bottom: 28px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact h4 { margin-bottom: 20px; }
.panel { background: var(--alt); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 32px; }
.contact-info h4 { font-size: 19px; margin-bottom: 8px; }
.contact-info h4:not(:first-child) { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-info p { margin-bottom: 4px; overflow-wrap: anywhere; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-bottom: 16px;
  font-family: var(--body-font); font-size: 17px; color: #333;
  background: #fff; border: 1px solid #d9d6cf; border-radius: 4px; padding: 15px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 200px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 156, 0, .25); }
.contact-form input.invalid { border-color: #c0392b; }
.form-status { margin-top: 16px; font-size: 15px; min-height: 24px; }
.form-status.error { color: #c0392b; }
.hours { color: var(--link); font-weight: 700; }
.directions { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0d0d; color: #a3a3a3; padding: 56px 0 0; flex-shrink: 0; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h5 { font-family: var(--body-font); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer a { color: #d9d9d9; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.brand-footer { display: inline-block; margin-bottom: 12px; }
.copyright { text-align: center; padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8a8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; order: -1; }
  .header-bar { justify-content: flex-start; gap: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .media { gap: 32px; }
}
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  body { font-size: 16px; line-height: 1.6; }
  .container { padding: 0 20px; }
  .section { padding: 40px 0; }
  .header-bar { padding: 0 16px; }
  .brand { font-size: 22px; }

  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 40px) 20px 40px;
    background:
      linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
      #2a211a url('/img/hero-mobile.jpg') 62% center / cover no-repeat;
  }
  .hero-rule { width: 48px; height: 3px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); max-width: none; }
  .hero-tagline { font-size: 14px; letter-spacing: 1.5px; margin-top: 12px; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 8px 12px; min-height: 48px; font-size: 13px; }

  .media { flex-direction: column; align-items: stretch; gap: 24px; }
  .media-img, .media-wide .media-img, .home .media-img { flex: none; width: 100%; }
  .home .media-img img { aspect-ratio: 16 / 9; max-height: 200px; object-fit: cover; }
  .media-body h4 { font-size: 21px; margin-bottom: 14px; }
  .media-body p { margin-bottom: 20px; }
  .media-body .btn { width: 100%; }

  .cards, .duo, .contact, .footer-grid { grid-template-columns: 1fr; }
  .cards { gap: 20px; }
  .card h4 { padding: 18px 18px 0; font-size: 19px; }
  .card p { padding: 10px 18px 0; }
  .card p:last-child { padding-bottom: 22px; }
  .card:hover { transform: none; }
  .duo { gap: 20px; }
  .contact { gap: 28px; }
  .checklist { columns: 1; padding: 20px; }
  .about-lead { margin-bottom: 28px; aspect-ratio: 3 / 2; }
  .about-text { margin-bottom: 36px; }
  .page-title { font-size: 32px; margin-bottom: 28px; }
  .panel { padding: 22px; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .contact-form textarea { min-height: 150px; }
  .directions .btn { width: 100%; }
  .site-footer { padding-top: 36px; }
  .footer-grid { gap: 24px; padding-bottom: 28px; }
  .drawer-link { padding: 18px 8px; }
}
@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .hero-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}
