/*
 * Elahi Law holding page. Colours are the main site's dark theme tokens
 * (src/app/globals.css), fonts are the main site's Instrument pair.
 * Mobile first: one column from 320 px, two columns from 960 px.
 */

:root {
  color-scheme: dark;
  --background: #120f0c;
  --foreground: #f3eee2;
  --card: oklch(0.21 0.01 70);
  --primary: #d9b871;
  --primary-hover: oklch(0.84 0.09 82);
  --primary-foreground: #120f0c;
  --muted-foreground: oklch(0.78 0.018 80);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 34%);
  --focus-ring: #d9b871;
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 150ms;
  --dur-large: 400ms;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* Header: the logo, drawn as a mask so it takes the ivory, as the main site's Logo does. */
.site-header {
  padding-block: 24px 8px;
}

.logo {
  display: block;
  width: min(100%, 240px);
  aspect-ratio: 968 / 151;
  background: var(--foreground);
  -webkit-mask: url("/assets/elahi-law-logo-lockup.png") center / contain no-repeat;
  mask: url("/assets/elahi-law-logo-lockup.png") center / contain no-repeat;
}

/* Main: copy then statue on phones, copy left and statue right from 960 px. DOM order matches both. */
.hero {
  flex: 1;
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: 16px 48px;
}

.stage {
  position: relative;
  width: min(60vw, 220px);
  aspect-ratio: 3 / 5;
  margin-inline: auto;
}

.stage img,
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage img {
  object-fit: contain;
}

.stage canvas {
  opacity: 0;
  transition: opacity var(--dur-large) var(--ease-out);
}

.stage.is-live canvas {
  opacity: 1;
}

.stage.is-live img {
  visibility: hidden;
}

.pause {
  display: none;
  margin: 8px auto 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--input);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.pause:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

.stage-wrap.has-motion .pause {
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw + 0.5rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.button svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-outline {
  border-color: var(--input);
  color: var(--foreground);
}

.button-outline:hover {
  border-color: var(--foreground);
}

.contact {
  margin: 32px 0 0;
  display: grid;
  gap: 4px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.contact address {
  font-style: normal;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--foreground);
}

/* Footer: the main site's attorney-advertising notice and the statue credit. */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-block: 32px max(32px, env(safe-area-inset-bottom));
}

.site-footer p {
  margin: 0 0 12px;
  max-width: 72ch;
}

.site-footer a {
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer .legal {
  margin-top: 24px;
  margin-bottom: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 600px) {
  .logo {
    width: 280px;
  }

  .stage {
    width: 240px;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-block: 40px 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    padding-block: 32px 64px;
  }

  .stage {
    width: min(100%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
