/* Asher Medico-Legal — site layout */

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #d9d9d9;
  --asher-navy: #011936;
  --asher-coral: #f08080;
  --font-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "Source Code Pro", "Courier New", monospace;
  --container-max: 1180px;
  --gutter: 50px;
  --header-height: 180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.65;
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 16rem;
  color: var(--asher-navy);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: rgba(1, 25, 54, 0.72);
}

.site-nav a:hover {
  color: var(--asher-navy);
  opacity: 1;
}

.site-nav a.nav-contact {
  color: var(--asher-coral);
}

.site-nav a.nav-contact:hover {
  color: var(--asher-navy);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 2rem 0 4rem;
}

.hero-text {
  margin: 0;
  max-width: 67.5rem;
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Sections */

.content-section {
  padding: 3rem 0;
}

.section-label {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(240, 128, 128, 0.55);
  color: var(--asher-navy);
}

.section-intro {
  margin: -1rem 0 3rem;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 53rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.prose p {
  margin: 0 0 1.5rem;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

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

/* Feature rows (services & samples) */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
}

.feature-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(240, 128, 128, 0.45);
  color: rgba(1, 25, 54, 0.75);
}

.feature-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 3.125rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.feature-text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.feature-media {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  background: var(--color-muted);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-media {
  order: 1;
}

/* Disclaimer */

.disclaimer {
  padding-top: 1rem;
}

.disclaimer-text {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Contact CTA */

.cta-section {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.cta-text {
  margin: 0 0 1.5rem;
  max-width: 53rem;
  font-size: clamp(1.375rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(1, 25, 54, 0.35);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.045em;
  color: var(--asher-navy);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  opacity: 1;
  background: var(--asher-coral);
  border-color: var(--asher-coral);
  color: var(--color-bg);
}

#contact .btn-outline {
  border-color: var(--asher-coral);
  color: var(--asher-coral);
}

#contact .btn-outline:hover {
  background: var(--asher-navy);
  border-color: var(--asher-navy);
  color: var(--color-bg);
}

/* Footer */

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(1, 25, 54, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--asher-navy);
}

.footer-links a:hover {
  color: var(--asher-coral);
  opacity: 1;
}

.footer-copy {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Responsive */

@media (max-width: 991px) {
  :root {
    --gutter: 40px;
    --header-height: 140px;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .about-media {
    max-width: 20rem;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-media {
    order: unset;
  }

  .feature-media {
    max-width: 20rem;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --header-height: auto;
  }

  .site-header {
    padding: 1.25rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-brand {
    max-width: calc(100% - 5rem);
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .content-section {
    padding: 2.5rem 0;
  }

  .feature-media {
    max-width: 100%;
  }

  .about-media {
    max-width: 100%;
  }
}
