/* Praxis LA base styles */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f9;
  --text: #1a1d24;
  --text-muted: #5a6068;
  --accent: #3a1f5e;
  --accent-hover: #2a1545;
  --border: #e3e5e8;
  --max-width: 1080px;
  --focus-ring: 0 0 0 3px rgba(58, 31, 94, 0.22);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: none;
  border-radius: 2px;
  box-shadow: var(--focus-ring);
}

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

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-link,
.logo-link:hover {
  border-bottom: none;
}

.logo-link img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 560px) {
  .logo-link img {
    height: 40px;
  }
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  nav {
    gap: 1rem;
  }
  nav a {
    font-size: 0.875rem;
  }
  .logo-link span {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
  font-weight: 700;
  color: var(--accent);
}

.hero-content .lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.hero-image {
  order: -1;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hero-image figcaption {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1rem;
}

.hero-image figcaption cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  margin-top: 0.6rem;
  opacity: 0.7;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 4rem;
  }
  .hero-image {
    order: 0;
    max-width: 100%;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.section p {
  max-width: 70ch;
}

.section p + p {
  margin-top: 1rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--accent);
}

.service p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Callout */
.callout {
  margin-top: 2.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  max-width: 640px;
}

.section-alt .callout {
  background: var(--bg-alt);
}

.callout h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.callout p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.975rem;
}

.callout-link {
  font-weight: 500;
}

/* Contact */
.contact-info p {
  margin-bottom: 1.25rem;
}

.contact-info strong {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-cta {
  margin-top: 2.25rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.15s ease;
}

.btn,
.btn:hover {
  border-bottom: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Footer */
footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
