/* Gregg Land Surveying — one-page site
   Colors from the header banner: cream, Tennessee flag red, navy */

:root {
  --cream: #FDF5EB;
  --cream-dark: #F3E6D4;
  --red: #C8102E;
  --navy: #0A2540;
  --navy-ink: #0A2540;
  --text: #1A2330;
  --muted: #4A5564;
  --white: #ffffff;
  --max: 42rem;
  --max-wide: 52rem;
}

*,
*::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;
}

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, 4vw, 2.35rem);
  margin: 0 0 0.35rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  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;
}

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 {
  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: 10;
}

.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 {
  background: var(--navy);
  color: var(--white);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-wide);
}

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

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

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

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

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

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

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

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

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

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

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

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

.services li {
  padding: 0;
}

.services p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.counties {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}

.counties li {
  break-inside: avoid;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.12);
}

@media (min-width: 640px) {
  .counties {
    columns: 3;
  }
}

.btn + .btn {
  margin-left: 0.5rem;
}

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

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

.mail-note {
  margin-top: 1rem;
}

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

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

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

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

.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-counties {
  margin-top: 0.9rem;
  color: #9aa7b5;
  font-size: 0.8rem;
  line-height: 1.5;
}

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

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

  .intro {
    padding-top: 1.6rem;
  }

  .nav ul {
    gap: 0.2rem 1.15rem;
    padding: 0.6rem 1rem;
  }
}
