/* The Stopher Group — marketing site */
:root {
  --cream: #F8F6F2; /* warm off-white */
  --cream-deep: #EDE9E2;
  --navy: #1C2430;
  --navy-soft: #2A3444;
  --brass: #8F6F32;
  --brass-light: #A88A4A;
  --text: #1C2430;
  --muted: #5A6270;
  --white: #FFFFFF;
  --max: 68rem;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 2px;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(28, 36, 48, 0.08);
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover,
.logo-link:focus-visible {
  opacity: 0.88;
}

.logo-primary {
  width: min(220px, 48vw);
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(28, 36, 48, 0.2);
  color: var(--navy);
  padding: 0.45rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.75rem;
  align-items: center;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

/* Main */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space);
}

.page-hero {
  text-align: center;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(143, 111, 50, 0.25);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.page-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

.home-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

/* Home */
.home-hero {
  text-align: center;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.home-logo {
  width: min(420px, 85vw);
  margin: 0 auto 2rem;
}

.home-hero h1 {
  margin-bottom: 0.35rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--navy-soft);
  margin: 0 0 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.45rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-soft);
  color: var(--cream);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: rgba(28, 36, 48, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brass);
  color: var(--brass);
}

.home-intro {
  max-width: 40rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: center;
  color: var(--muted);
}

.home-intro p {
  margin: 0 0 1rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
  color: var(--brass);
}

.divider::before,
.divider::after {
  content: "";
  width: min(6rem, 20vw);
  height: 1px;
  background: rgba(143, 111, 50, 0.45);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Practice cards */
.practice-grid {
  display: grid;
  gap: 1.5rem;
}

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

.practice-card {
  background: var(--white);
  border: 1px solid rgba(28, 36, 48, 0.08);
  padding: 1.75rem 1.5rem 1.85rem;
  border-top: 2px solid var(--brass);
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.practice-card h2,
.practice-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.section-block {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-block p {
  color: var(--muted);
  max-width: 42rem;
}

/* About */
.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 3rem;
  }
}

.portrait-frame {
  position: relative;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(28, 36, 48, 0.1);
}

.seal-accent {
  width: 72px;
  height: 72px;
  margin-top: 1.25rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.12);
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  max-width: 38rem;
}

.about-meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(143, 111, 50, 0.25);
  font-size: 0.95rem;
  color: var(--navy-soft);
}

.about-meta strong {
  color: var(--navy);
  font-weight: 600;
}

/* Contact */
.contact-panel {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(28, 36, 48, 0.08);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.contact-panel .seal-accent {
  margin: 0 auto 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  text-align: left;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(28, 36, 48, 0.08);
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list dt,
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-list a {
  word-break: break-word;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(28, 36, 48, 0.08);
  background: var(--cream-deep);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--space) 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-brand p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--brass);
}

/* Mobile nav */
@media (max-width: 700px) {
  .nav-toggle {
    display: inline-block;
  }

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

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

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(28, 36, 48, 0.08);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--brass);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
