:root {
  --navy-deep: #09182a;
  --navy: #102844;
  --navy-soft: #1d3e67;
  --gold: #b69258;
  --gold-soft: #e8dcc7;
  --paper: #f5f1ea;
  --paper-soft: #fbf8f3;
  --white: #ffffff;
  --line: rgba(16, 40, 68, 0.14);
  --copy: #213042;
  --muted: #5b6878;
  --shadow: 0 26px 64px rgba(9, 24, 42, 0.14);
  --shadow-soft: 0 18px 40px rgba(9, 24, 42, 0.1);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --wrap: min(1200px, calc(100% - 2.75rem));
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.68;
  color: var(--copy);
  background:
    radial-gradient(circle at top left, rgba(232, 220, 199, 0.64), transparent 30%),
    linear-gradient(180deg, #fcfaf6 0%, #f5f1ea 44%, #f0e8dd 100%);
}

::selection {
  background: rgba(16, 40, 68, 0.18);
  color: var(--navy-deep);
}

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

a {
  color: inherit;
}

p,
li {
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2.45rem, 4.2vw, 4rem);
}

h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

p {
  margin: 0 0 1rem;
  font-size: 1.06rem;
}

:focus-visible {
  outline: 2px solid rgba(16, 40, 68, 0.46);
  outline-offset: 3px;
}

.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;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 146, 88, 0.85), transparent);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: clamp(175px, 20vw, 250px);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  position: relative;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--navy);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.7rem;
  left: 0;
  height: 1px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f7f8fb;
  box-shadow: 0 12px 24px rgba(16, 40, 68, 0.2);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(16, 40, 68, 0.16);
  color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(16, 40, 68, 0.28);
}

.header-cta {
  padding-right: 1.3rem;
}

.eyebrow,
.section-label,
.card-label {
  margin: 0 0 0.95rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  color: var(--copy);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.note-card + .hero-actions {
  margin-top: 1.5rem;
}

.home-hero {
  padding: clamp(3.6rem, 8vw, 6.6rem) 0 1.8rem;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-wordmark {
  width: min(100%, 1040px);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 18px 38px rgba(16, 40, 68, 0.1));
}

.home-hero .lead {
  max-width: 44rem;
  margin: 0 auto 1.8rem;
}

.hero-photo-wrap {
  padding: 0 0 1.8rem;
}

.hero-photo-frame,
.page-masthead-media,
.image-card,
.bio-photo {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 40, 68, 0.08);
  box-shadow: var(--shadow);
}

.hero-photo-frame {
  border-radius: 38px;
}

.hero-photo-frame::after,
.page-masthead-media::after,
.image-card::after,
.bio-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.trust-strip-section {
  padding: 0 0 1rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-strip li {
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 0.97rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(232, 220, 199, 0.2)),
    rgba(251, 248, 243, 0.72);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-copy p:last-child,
.section-heading p:last-child,
.page-masthead-copy p:last-child,
.cta-panel p:last-child,
.slim-note p:last-child,
.legal-card p:last-child,
.card p:last-child,
.step-card p:last-child,
.bio-copy p:last-child {
  margin-bottom: 0;
}

.note-card {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.image-card {
  border-radius: var(--radius-xl);
}

.image-card img {
  width: 100%;
  aspect-ratio: 5 / 4.2;
  object-fit: cover;
}

.practice-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.card,
.legal-card,
.step-card {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.card h3,
.legal-card h3,
.step-card h3 {
  margin-bottom: 0.75rem;
}

.page-masthead {
  padding: clamp(3.4rem, 6vw, 5.2rem) 0 1.4rem;
}

.page-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-masthead-copy {
  max-width: 42rem;
}

.page-note {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-masthead-media {
  border-radius: 34px;
}

.page-masthead-media img {
  width: 100%;
  aspect-ratio: 5 / 4.3;
  object-fit: cover;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fffdf8;
  font-size: 1rem;
  font-weight: 700;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 34px;
  background: linear-gradient(135deg, #0f2642 0%, #173a61 100%);
  box-shadow: var(--shadow);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/rocky-law-logo-mark.png") right 2rem center / 220px auto no-repeat;
  opacity: 0.12;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2,
.cta-panel p,
.cta-panel .eyebrow {
  color: #f7f7fb;
}

.cta-panel .eyebrow {
  opacity: 0.78;
}

.slim-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.slim-note p {
  max-width: 44rem;
  margin: 0;
}

.bio-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.bio-photo {
  border-radius: 34px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at top left, rgba(232, 220, 199, 0.7), transparent 48%),
    linear-gradient(180deg, #fffdfa 0%, #f5ede2 100%);
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.bio-copy h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 4.7vw, 4.8rem);
}

.bio-lead {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: var(--navy);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.bio-copy p {
  max-width: 64ch;
  font-size: 1.08rem;
}

.contact-section {
  padding-top: 2.2rem;
}

.contact-shell {
  max-width: 980px;
}

.terms-page {
  padding: clamp(3.8rem, 7vw, 5.5rem) 0;
}

.terms-wrap {
  max-width: 980px;
}

.terms-wrap h1 {
  margin-bottom: 0.9rem;
}

.terms-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-reader {
  max-height: 72vh;
  overflow: auto;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(16, 40, 68, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.terms-reader p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
}

.form-panel {
  padding: clamp(1.8rem, 4vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.form-panel h2 {
  margin-bottom: 1.2rem;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-status[data-state="success"] {
  background: rgba(38, 110, 73, 0.12);
  color: #25593f;
}

.form-status[data-state="error"] {
  background: rgba(161, 53, 53, 0.12);
  color: #7d2525;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field span {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16, 40, 68, 0.18);
  border-radius: 16px;
  background: rgba(251, 248, 243, 0.96);
  color: var(--copy);
  font: inherit;
  padding: 0.9rem 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 11rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(16, 40, 68, 0.38);
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 40, 68, 0.08);
}

.field-full {
  grid-column: 1 / -1;
}

.field-hidden {
  position: absolute;
  left: -9999px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.3rem 0 1.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-field input {
  margin-top: 0.2rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.35rem 0 1.8rem;
  background: rgba(247, 242, 235, 0.94);
  border-top: 1px solid rgba(16, 40, 68, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.8rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.footer-logo {
  width: 48px;
}

.footer-wordmark {
  width: clamp(170px, 18vw, 220px);
}

.footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

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

.footer-note {
  grid-column: 1 / -1;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(16, 40, 68, 0.08);
}

.footer-disclaimer {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-legal {
  margin: 0;
  color: rgba(33, 48, 66, 0.52);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .trust-strip,
  .practice-grid,
  .legal-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-masthead-grid,
  .split-layout,
  .bio-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .page-masthead-copy,
  .split-copy,
  .bio-copy {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .header-bar {
    min-height: 88px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(251, 248, 243, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav .btn,
  .hero-actions .btn,
  .slim-note .btn {
    width: 100%;
  }

  .nav-link.is-active::after {
    bottom: -0.3rem;
  }

  .trust-strip,
  .practice-grid,
  .legal-grid,
  .step-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .slim-note,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(100%, calc(100% - 1.5rem));
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(232, 220, 199, 0.58), transparent 30%),
      linear-gradient(180deg, #fcfaf6 0%, #f5f1ea 50%, #f1eadf 100%);
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    width: 38px;
  }

  .brand-wordmark {
    width: 150px;
  }

  .home-hero {
    padding-top: 2.7rem;
  }

  .hero-photo-frame {
    border-radius: 28px;
  }

  .hero-photo-frame img,
  .page-masthead-media img {
    aspect-ratio: 5 / 4.6;
  }

  .card,
  .legal-card,
  .step-card,
  .form-panel {
    padding: 1.35rem;
  }

  .bio-copy h1 {
    font-size: clamp(2.15rem, 9vw, 3.2rem);
  }

  .bio-lead {
    font-size: 1.15rem;
  }

  .footer-logo {
    width: 42px;
  }

  .footer-wordmark {
    width: 155px;
  }

  .terms-reader {
    max-height: none;
    padding: 1.1rem 1rem;
  }
}
