/* Roberts Family Agency — shared styles for index.html and join.html */

:root {
  --green-900: #11271e;
  --green-800: #1a382c;
  --green-700: #24503d;
  --green-100: #e4ece6;
  --cream: #f7f2e8;
  --paper: #fffdf9;
  --line: #e3dac8;
  --ink: #1b231f;
  --muted: #55605a;
  --brass: #b88a44;
  --brass-dark: #7a571b;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 39, 30, 0.05), 0 12px 32px -12px rgba(17, 39, 30, 0.18);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green-900);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--green-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-ghost {
  border-color: var(--green-800);
  color: var(--green-900);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--green-100);
}

.btn-light {
  background: var(--paper);
  color: var(--green-900);
}

.btn-light:hover {
  background: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-small {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

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

/* Shared section pieces */

section {
  padding: 88px 0;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 16px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.12rem;
}

.band-paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hero */

.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(184, 138, 68, 0.16), transparent 70%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-700);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero .actions {
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Agent ID card */

.id-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.id-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 20px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--brass);
  background: var(--green-100);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.12);
}

.id-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.id-role {
  color: var(--muted);
  font-size: 0.98rem;
}

.id-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.id-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.id-rows li:last-child {
  border-bottom: 0;
}

.id-rows span {
  color: var(--muted);
}

.id-rows strong {
  font-weight: 600;
  text-align: right;
}

.id-rows a {
  color: var(--green-800);
  font-weight: 600;
}

.id-foot {
  background: var(--green-100);
  padding: 13px 24px;
  font-size: 0.9rem;
  color: var(--green-900);
}

/* Verify */

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
}

.steps li::before {
  content: counter(step);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-100);
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  color: var(--muted);
}

.promise {
  background: var(--green-900);
  color: #f2efe6;
  border-radius: var(--radius);
  padding: 30px 30px 32px;
}

.promise h3 {
  color: #fff;
  margin-bottom: 18px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%2311271e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}

.band-paper .card {
  background: var(--cream);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

.card p.eyebrow {
  color: var(--brass-dark);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.portrait {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--green-100);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.1);
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy h2 {
  margin-bottom: 20px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fact {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.93rem;
  font-weight: 500;
}

/* FAQ */

.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green-700);
  flex: none;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

/* Dark feature band (AgentForLife) */

.band-dark {
  background: var(--green-900);
  color: #ece8dd;
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark .eyebrow {
  color: #dcb878;
}

.band-dark .section-head p:not(.eyebrow) {
  color: #c4cdc6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--green-900);
  padding: 26px 24px 28px;
}

.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.feature p {
  color: #c4cdc6;
  font-size: 0.99rem;
}

.price-strip {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.price-strip p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: #fff;
}

.price-strip p span {
  color: #dcb878;
}

/* CTA band */

.cta {
  background: var(--green-800);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 16px auto 0;
  max-width: 34em;
  color: #d3dcd5;
  font-size: 1.12rem;
}

.cta .actions {
  justify-content: center;
  margin-top: 30px;
}

/* Footer */

.site-footer {
  background: var(--green-900);
  color: #b9c3bc;
  padding: 48px 0 40px;
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.site-footer a {
  color: #e9e4d6;
}

.footer-links {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.fine {
  margin-top: 24px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #97a39b;
  max-width: 90ch;
}

.fine + .fine {
  margin-top: 10px;
}

/* Mobile action bar */

.mobile-bar {
  display: none;
}

/* Responsive */

@media (max-width: 960px) {
  .cards,
  .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .verify-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .id-card {
    max-width: 460px;
  }

  .about-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
    padding-bottom: 76px;
  }

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  /* The fixed bar at the bottom carries the call and booking buttons on phones. */
  .nav {
    display: none;
  }

  .brand {
    font-size: 1.1rem;
  }

  .header-inner {
    min-height: 60px;
  }

  .hero .actions .btn,
  .cta .actions .btn {
    width: 100%;
  }

  .cards,
  .cards.three,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    max-width: 220px;
    aspect-ratio: 1;
  }

  .steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .steps li::before {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .promise {
    padding: 24px 20px 26px;
  }

  .price-strip {
    padding: 20px;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.98rem;
  }
}

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

  .btn {
    transition: none;
  }
}
