/* Gregg Land Surveying — The Tennessee Closing Survey
   Colors from the header banner: cream, Tennessee flag red, navy */

:root {
  --cream: #FDF5EB;
  --cream-dark: #F3E6D4;
  --red: #C8102E;
  --navy: #0A2540;
  --text: #1A2330;
  --muted: #4A5564;
  --white: #ffffff;
  --line: rgba(10, 37, 64, 0.12);
  --max: 42rem;
  --max-wide: 58rem;
  --cta-h: 3.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: var(--cta-h);
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  margin: 0 0 0.35rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

/* Page section titles (multi-page); intro h1 stays plain */
.section > .wrap > h1,
.section > .wrap-wide > h1 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.page-top {
  padding-top: 2.25rem;
}

.section-alt.page-top {
  padding-top: 2.35rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.mobile-cta a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 20;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Header banner — crop extra cream; do not alter the PNG file */
.banner {
  background: var(--cream);
  line-height: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3.5 / 1;
  object-fit: cover;
  object-position: 50% 47%;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--navy);
  color: var(--white);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  max-width: var(--max-wide);
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: #f3d0d5;
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
}

.intro {
  padding: 2.25rem 0 1.85rem;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.license {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  color: var(--red);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin: 0 0 0.85rem;
}

.concept {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.tagline {
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.offer {
  font-size: 1.05rem;
}

.lookup {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 0.5rem 0 2.6rem;
}

.section-alt {
  background: var(--cream-dark);
  padding: 2.35rem 0;
  margin: 0;
}

.lead {
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.subhead {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--navy);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-alt {
  background: transparent;
  color: var(--navy);
}

.btn-alt:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Who this is for */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cards li {
  background: var(--white);
  padding: 1.15rem 1.2rem 1.2rem;
  border-top: 3px solid var(--red);
}

.cards p {
  margin: 0;
  font-size: 0.98rem;
}

.cards p + p {
  margin-top: 0.65rem;
}

.not-for {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.not-for li {
  background: var(--white);
  padding: 1.1rem 1.2rem 1.15rem;
  border-left: 3px solid var(--navy);
}

.not-for p {
  margin: 0;
  font-size: 0.98rem;
}

/* Two documents */
.docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.docs li {
  background: var(--white);
  padding: 1.35rem 1.35rem 1.2rem;
  border-top: 3px solid var(--red);
}

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

/* Services */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2rem;
}

.services p {
  margin: 0;
  font-size: 0.98rem;
}

.services .limited {
  grid-column: 1 / -1;
  background: var(--cream-dark);
  padding: 1.15rem 1.2rem;
  border-left: 3px solid var(--red);
}

.quiet {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.limit {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1.15rem;
  margin: 1.5rem 0 0;
}

.area-seo {
  max-width: 42rem;
}

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

/* Process */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 2.15rem;
  text-align: center;
}

.steps h3 {
  margin-top: 0.2rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
}

/* Area */
.cities {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cities li {
  background: var(--white);
  color: var(--navy);
  padding: 0.2rem 0.7rem;
  font-size: 0.92rem;
  border: 1px solid var(--line);
}

.county-groups {
  display: grid;
  gap: 1.5rem;
}

.county-groups h3 {
  margin-bottom: 0.55rem;
}

.counties {
  list-style: none;
  margin: 0;
  padding: 0;
}

.counties li {
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--line);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1.08rem;
  padding: 0.85rem 1.75rem 0.85rem 0;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.8rem;
  color: var(--red);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1;
}

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

.faq details p {
  margin: 0 0 1rem;
  color: var(--text);
}

/* Intake */
.intake {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.intake-lead {
  color: var(--muted);
  font-size: 0.95rem;
}

.intake label {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.intake input,
.intake select {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(10, 37, 64, 0.35);
  background: var(--white);
  color: var(--text);
}

.intake button {
  margin-top: 0.25rem;
}

address {
  font-style: normal;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.site-footer {
  background: var(--navy);
  color: #d5dce4;
  padding: 1.75rem 0 2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: #f3d0d5;
}

.footer-id {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-nav {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.85rem;
}

.footer-nav a {
  margin-right: 0.85rem;
}

.footer-counties {
  margin-top: 0.9rem;
  color: #9aa7b5;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Always-visible call / email on small screens */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: flex;
  background: var(--navy);
  border-top: 2px solid var(--red);
}

.mobile-cta a {
  flex: 1;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.mobile-cta a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-cta a:hover {
  background: var(--red);
  color: var(--white);
}

@media (min-width: 640px) {
  .wrap,
  .wrap-wide {
    width: min(100% - 2.5rem, var(--max-wide));
  }

  .intro .wrap,
  #geography .wrap,
  #faq .wrap,
  #contact .wrap {
    width: min(100% - 2.5rem, var(--max));
  }

  .cards-4,
  .not-for,
  .docs,
  .county-groups {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .nav ul {
    gap: 0.25rem 1.6rem;
    padding: 0.7rem 1.25rem;
  }

  .nav a {
    font-size: 0.95rem;
  }
}

@media (min-width: 900px) {
  .cards-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .not-for,
  .docs,
  .county-groups {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .docs {
    grid-template-columns: 1fr 1fr;
  }

  .steps-5 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 1100px) {
  .steps-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .banner img {
    aspect-ratio: 3.2 / 1;
  }

  .intro {
    padding-top: 1.6rem;
  }

  .cards,
  .not-for,
  .docs {
    gap: 0.85rem;
  }
}

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