/* ============================================================
   DELMARVA'S TRUSTED APPRAISERS — Main Stylesheet
   delmarvatrustedappraisers.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e30;
  --ocean: #2d6a8f;
  --ocean-light: #3d84b0;
  --sand: #e8dcc8;
  --sand-light: #f5f0e8;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #3d4a5c;
  --text-light: #6b7a8d;
  --accent: #c8973a;
  --accent-light: #e6b86a;
  --border: #d4dde6;
  --success: #2d7a4f;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26,46,74,0.08);
  --shadow-md: 0 4px 20px rgba(26,46,74,0.12);
  --shadow-lg: 0 8px 40px rgba(26,46,74,0.16);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ocean-light); }

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

/* ── HEADER / NAV ─────────────────────────────────────────── */
header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand .brand-main {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-brand .brand-sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

nav ul li a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all .2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy-dark) !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 45%, var(--ocean) 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn-ocean {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.btn-ocean:hover {
  background: var(--ocean-light);
  border-color: var(--ocean-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hero contact card */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sand);
}

.contact-form .form-group {
  margin-bottom: 14px;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(45,106,143,0.12);
  background: var(--white);
}

.contact-form textarea { resize: vertical; min-height: 80px; }

.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: var(--sand-light);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-right: 1px solid var(--border);
}

.trust-item:last-child { border-right: none; }

.trust-item svg { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: 72px 0; }

.section-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 10px;
}

h2.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.75;
}

/* ── SERVICES GRID ────────────────────────────────────────── */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg { color: var(--accent); width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

/* ── ABOUT / TEAM ─────────────────────────────────────────── */
.about-section { background: var(--navy-dark); }

.about-section .section-title { color: var(--white); }
.about-section .section-label { color: var(--accent); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.team-card .team-role {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
}

.team-card p { font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 18px; }

.license-list { list-style: none; }
.license-list li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.license-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ── COVERAGE ─────────────────────────────────────────────── */
.coverage-section { background: var(--sand-light); }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.coverage-county {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.coverage-county .county-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 6px;
}

.coverage-county h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sand);
}

.zip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zip-tag {
  display: inline-block;
  background: var(--sand-light);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all .2s;
}

.zip-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  text-decoration: none;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section { background: var(--white); }

.faq-list { margin-top: 48px; max-width: 780px; }

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover { color: var(--ocean); }

.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--sand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ocean);
  transition: transform .3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 22px 0;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* ── CITY PAGE HERO ───────────────────────────────────────── */
.city-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--ocean) 100%);
  padding: 60px 0 70px;
}

.city-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.city-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.city-hero .breadcrumb a:hover { color: var(--white); }
.city-hero .breadcrumb span { margin: 0 6px; }

.city-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.city-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 28px;
}

.city-zip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* ── CITY CONTENT ─────────────────────────────────────────── */
.city-content { padding: 60px 0; }

.city-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.city-main h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 36px 0 12px;
}

.city-main h2:first-child { margin-top: 0; }

.city-main p {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Sidebar */
.city-sidebar { position: sticky; top: 90px; }

.sidebar-card {
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-mid);
}
.sidebar-contact-item:last-child { border-bottom: none; }
.sidebar-contact-item svg { color: var(--ocean); width: 18px; flex-shrink: 0; }
.sidebar-contact-item a { color: var(--ocean); font-weight: 600; }

.market-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.market-stat:last-child { border-bottom: none; }
.market-stat .stat-label { color: var(--text-light); }
.market-stat .stat-value { font-weight: 600; color: var(--navy); }

/* ── CONTACT SECTION ──────────────────────────────────────── */
.contact-section { background: var(--navy); }

.contact-section .section-title { color: var(--white); }
.contact-section .section-label { color: var(--accent); }
.contact-section .section-intro { color: rgba(255,255,255,0.75); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item .icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item svg { color: var(--accent); width: 20px; }

.contact-info-item .info-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}

.contact-info-item .info-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.contact-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 10px;
  max-width: 320px;
}

.footer-license {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
footer ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* "Perhaps searching for" section */
.searching-section { background: var(--sand-light); }

.searching-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 24px;
  transition: all .2s;
}

.search-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .city-layout { grid-template-columns: 1fr; }
  .city-sidebar { position: static; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 12px 16px; }
  .trust-item { padding: 8px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 52px 0; }
}
