/* ==========================================================================
   JKam's Real Property Appraisal Services Inc. — site stylesheet
   ========================================================================== */

:root {
  --navy: #1b2a41;
  --navy-light: #2c4266;
  --navy-pale: #eef1f6;
  --gold: #a9812f;
  --gold-light: #c9a45c;
  --bg: #faf9f6;
  --card-bg: #ffffff;
  --text: #262524;
  --muted: #5b5f66;
  --border: #e3ded3;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 2px 10px rgba(27, 42, 65, 0.07);
  --shadow-lg: 0 12px 32px rgba(27, 42, 65, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--text); }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #dbe2ee;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #dbe2ee; }
.topbar a:hover { color: #fff; }
.topbar span { opacity: 0.85; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--navy);
}

.logo .mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo .wordmark .name {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo .wordmark .tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-light);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-light); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #eef1f6;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 { color: #fff; }

.hero .lede { color: #c6d0e0; }

.hero-art { width: 100%; }

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #eef1f6;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-light); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.alt-bg { background: var(--navy-pale); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--gold);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-row .stat-num {
  font-family: var(--serif);
  font-size: 2.3rem;
  color: var(--navy);
  font-weight: 700;
}
.stat-row .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- About / bio ---------- */
.bio-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.bio-photo {
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.credential-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.credential-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.credential-list li:last-child { border-bottom: none; }
.credential-list .check {
  color: var(--gold);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ---------- Service area ---------- */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.area-list li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.98rem;
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-row a, .contact-row span.value {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}

.note-box {
  background: var(--navy-pale);
  border-left: 3px solid var(--gold);
  padding: 20px 22px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--navy-light);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d0e0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #111a2b;
  color: #aab5c7;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
footer.site-footer a { color: #aab5c7; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--navy-pale);
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 6px; }
.page-header p { color: var(--muted); max-width: 620px; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .bio-wrap { grid-template-columns: 1fr; }
  .bio-photo { max-width: 280px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logo .wordmark .name { white-space: normal; }
  nav.main-nav { width: 100%; overflow-x: auto; }
  nav.main-nav ul { gap: 18px; width: max-content; padding-bottom: 2px; }
  .nav-cta { align-self: flex-start; }
}

@media (max-width: 480px) {
  .topbar .container { justify-content: flex-start; gap: 14px; font-size: 0.78rem; }
}
