:root {
  --ink: #162033;
  --muted: #657083;
  --paper: #f5f0e7;
  --surface: #ffffff;
  --surface-soft: #ede3d1;
  --line: #d9cbb6;
  --navy: #182846;
  --blue: #1d4f7c;
  --gold: #c99b48;
  --gold-dark: #7b5520;
  --gold-pale: #f0ddae;
  --green: #287356;
  --shadow: 0 14px 36px rgba(30, 49, 79, 0.1);
  --radius: 8px;
  --radius-lg: 8px;
  --max: 1180px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 40, 70, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
}

.page-grid {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.96);
  border-bottom: 1px solid rgba(229, 220, 205, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: white;
  box-shadow: inset 0 0 0 4px var(--paper);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b475f;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  border-radius: var(--radius);
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.nav-call {
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(19, 41, 75, 0.18);
}

.nav-call:hover,
.nav-call:focus-visible {
  background: var(--blue);
  outline: 3px solid rgba(31, 95, 153, 0.24);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 18, 33, 0.86) 0%, rgba(24, 40, 70, 0.7) 45%, rgba(24, 40, 70, 0.42) 100%),
    linear-gradient(180deg, rgba(10, 18, 33, 0.2), rgba(10, 18, 33, 0.56)),
    url("https://bestpanotaries.com/wp-content/uploads/elementor/thumbs/titusville-e1629314918564-pbt7j9etstr7n8367sb139waa4m3okodg5cfscc2ki.jpg");
  background-position: center;
  background-size: cover;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(240, 221, 174, 0.38) 48%, rgba(240, 221, 174, 0.38) 52%, transparent 53%);
  background-size: 80px 80px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero h1,
.hero-copy p {
  color: white;
}

.hero .eyebrow {
  color: var(--gold-pale);
}

.hero-copy {
  max-width: 730px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 4.55rem;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 3rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.06rem;
}

.section-heading p,
.visit-copy p {
  max-width: 650px;
  color: #4f5b70;
  font-size: 1.12rem;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-actions,
.visit-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin: 30px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 720;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(31, 95, 153, 0.28);
  outline-offset: 2px;
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(31, 95, 153, 0.16);
}

.button-primary:hover {
  background: var(--navy);
}

.button-secondary {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.hero .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-light {
  color: var(--navy);
  background: white;
}

.button-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.88rem;
  font-weight: 650;
}

.hero-panel,
.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.office-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #cbb487;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 221, 174, 0.42)),
    var(--surface);
}

.sign-seal {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: white;
  box-shadow: inset 0 0 0 5px white;
  overflow: hidden;
}

.sign-seal img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.sign-text {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.hero-panel h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.hero-panel p,
.service-card p,
.step p,
.office-card,
.faq-item small {
  color: var(--muted);
}

.panel-label {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-card {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.notice-card p {
  margin-bottom: 0;
}

.quick-details {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.quick-details div {
  display: grid;
  gap: 3px;
}

.quick-details span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-details a,
.quick-details strong {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.trust-strip {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 4px;
  color: var(--navy);
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 82px 0;
  background: var(--surface);
}

.section:nth-of-type(even) {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.stacked {
  display: block;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.service-card {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(240, 221, 174, 0.22), transparent 42%),
    #fffdf8;
}

.service-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(123, 85, 32, 0.24);
  border-radius: var(--radius);
  color: var(--gold-dark);
  background: rgba(240, 221, 174, 0.44);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-card:last-child {
  border-right: 0;
}

.process-section {
  background:
    linear-gradient(90deg, rgba(30, 49, 79, 0.035), transparent),
    var(--paper);
}

.prep-band {
  padding: 58px 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(201, 155, 72, 0.13), transparent 45%),
    var(--navy);
}

.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.prep-band .eyebrow,
.prep-band h2 {
  color: white;
}

.prep-band h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
}

.prep-list {
  display: grid;
  gap: 12px;
}

.prep-list article {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.prep-list strong {
  color: white;
}

.prep-list span {
  color: rgba(255, 255, 255, 0.78);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.95fr);
  gap: 64px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-weight: 900;
}

.visit-grid,
.faq-grid,
.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.office-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(201, 155, 72, 0.12), transparent),
    var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.office-card h3 {
  color: white;
  font-size: 1.35rem;
}

.hours-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hours-list dt {
  color: white;
  font-weight: 700;
}

.hours-list dd {
  margin: 0;
  min-width: max-content;
}

.office-contact {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 700;
}

.title-work-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(240, 221, 174, 0.34);
  border-radius: var(--radius);
  color: var(--gold-pale);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  font-weight: 750;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  width: 100%;
  padding: 20px 56px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-item::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 18px;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.faq-item[aria-expanded="true"]::after {
  content: "-";
}

.faq-item span,
.faq-item small {
  display: block;
}

.faq-item span {
  color: var(--navy);
  font-weight: 800;
}

.faq-item small {
  max-height: 0;
  overflow: hidden;
  transition: max-height 180ms ease, margin-top 180ms ease;
}

.faq-item[aria-expanded="true"] small {
  max-height: 110px;
  margin-top: 10px;
}

.final-cta {
  padding: 58px 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(201, 155, 72, 0.16), transparent 42%),
    var(--navy);
}

.final-cta .eyebrow,
.final-cta h2 {
  color: white;
}

.final-cta h2 {
  margin-bottom: 0;
  font-size: 3.2rem;
}

.final-actions {
  justify-content: end;
}

.site-footer {
  padding: 22px 0;
  color: #556176;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 13px 14px;
  }

  .nav-call {
    margin-left: auto;
  }

  .hero-grid,
  .section-heading,
  .process-grid,
  .prep-grid,
  .visit-grid,
  .faq-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .process-grid,
  .prep-grid,
  .visit-grid,
  .faq-grid,
  .final-cta-grid {
    gap: 34px;
  }

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

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

  .trust-grid div:nth-child(2n) {
    border-right: 0;
  }

  .trust-grid div {
    border-bottom: 1px solid var(--line);
  }

  .trust-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .final-actions {
    justify-content: start;
  }

  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 640px) {
  .page-grid,
  .nav-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 82%;
    height: 82%;
  }

  .nav-call {
    display: none;
  }

  .nav-links {
    top: 68px;
    left: 14px;
    right: 14px;
  }

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

  h1 {
    font-size: 2.75rem;
  }

  h2,
  .final-cta h2 {
    font-size: 2.15rem;
  }

  .prep-band h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .visit-actions,
  .final-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

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

  .trust-grid div,
  .trust-grid div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

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

  .service-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

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

  .hours-list div {
    display: grid;
    gap: 4px;
  }

  .hours-list dd {
    min-width: 0;
  }

  .footer-grid {
    display: grid;
  }
}
