/* ═══════════════════════════════════════════
   Kershaw K. Khumbatta PLLC — Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --navy:    #0f2944;
  --navy-2:  #15375c;
  --teal:    #0d7a73;
  --gold:    #c89b3c;
  --gold-lt: #e3c074;
  --cream:   #f7f4ee;
  --light:   #f3f6f9;
  --white:   #ffffff;
  --ink:     #1f2937;
  --muted:   #5c6b7a;
  --border:  #e2e8f0;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(15,41,68,0.08);
  --shadow-lg: 0 12px 40px rgba(15,41,68,0.14);
  --maxw:    1140px;
}

html { scroll-behavior: smooth; }

html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--navy); }

a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }

/* Keyboard-accessibility focus ring */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ─── Navbar ─── */
.navbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15,41,68,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0;
}
.logo-emblem { height: 52px; width: auto; display: block; flex-shrink: 0; }
.logo-main { color: var(--navy); font-family: 'Fraunces', serif; font-size: 1.22rem; font-weight: 700; letter-spacing: 0.2px; line-height: 1.15; text-align: left; white-space: nowrap; }

.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--ink); padding: 9px 16px; border-radius: var(--radius);
  font-size: 0.93rem; font-weight: 600; transition: all 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--light); }

.btn-nav {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 10px 22px !important;
}
.btn-nav:hover, .btn-nav.active { background: var(--navy-2) !important; color: var(--white) !important; }

.hamburger { display: none; background: none; border: none; color: var(--navy); font-size: 1.7rem; cursor: pointer; }

/* ─── Buttons ─── */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: 2px solid transparent; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); text-decoration: none; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); text-decoration: none; }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); text-decoration: none; transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

/* ─── Hero ─── */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(13,122,115,0.25), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 120px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(200,155,60,0.10);
}
.hero-content { position: relative; max-width: 680px; }
.hero .eyebrow { color: var(--gold-lt); }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); font-weight: 600; color: var(--white); margin-bottom: 22px; }
.hero h1 em { color: var(--gold-lt); font-style: italic; }
.hero p { font-size: 1.18rem; color: #c7d6e6; max-width: 560px; margin-bottom: 38px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-est { margin-top: 40px; font-size: 0.85rem; letter-spacing: 1px; color: #8ba6c4; text-transform: uppercase; }

/* ─── Stats strip ─── */
.stats {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 38px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon svg { width: 30px; height: 30px; fill: none; stroke: #111111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }

/* ─── Page hero ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 80px 0 70px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #c7d6e6; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ─── Sections ─── */
.section { padding: 92px 0; background: var(--white); }
.section.bg-light { background: var(--light); }
.section.bg-cream { background: var(--cream); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ─── Feature cards ─── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 36px 28px; transition: all 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #0a5c56);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ─── Split / two column ─── */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 18px; }
.split-text p { color: var(--muted); margin-bottom: 16px; }
.split-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 18px; padding: 48px; color: var(--white); box-shadow: var(--shadow-lg);
}
.split-visual h3 { color: var(--gold-lt); font-size: 1.3rem; margin-bottom: 20px; }
.value-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.value-row:last-child { border-bottom: none; }
.value-row .vr-icon { color: var(--gold-lt); font-size: 1.2rem; }
.value-row strong { display: block; color: var(--white); }
.value-row span { color: #b3c5d8; font-size: 0.9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.text-block h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 16px; }
.text-block p { color: var(--muted); margin-bottom: 14px; }

/* ─── Services ─── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-item {
  display: flex; gap: 20px; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 30px; transition: all 0.25s; align-items: flex-start;
}
.service-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.service-text h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.service-text p { color: var(--muted); font-size: 0.93rem; }

/* ─── Team ─── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.team-card { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px 24px; }
.team-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-role { color: var(--teal); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { color: var(--muted); font-size: 0.9rem; }

/* ─── CTA band ─── */
.cta-band {
  background:
    radial-gradient(circle at 15% 50%, rgba(13,122,115,0.3), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 84px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--white); font-weight: 600; margin-bottom: 14px; }
.cta-band p { color: #c7d6e6; margin-bottom: 30px; font-size: 1.08rem; }

/* ─── Careers ─── */
.no-positions { text-align: center; padding: 72px 28px; border: 2px dashed var(--border); border-radius: 16px; background: var(--light); }
.no-positions-icon { font-size: 3rem; margin-bottom: 18px; }
.no-positions h3 { font-size: 1.4rem; margin-bottom: 12px; }
.no-positions p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

.job-card { border: 1px solid var(--border); border-radius: 14px; padding: 32px; margin-bottom: 20px; background: var(--white); box-shadow: var(--shadow); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.job-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.job-requirements { margin-top: 16px; }
.job-requirements ul { padding-left: 20px; margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

/* ─── Contact ─── */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 34px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.info-item strong { display: block; color: var(--navy); margin-bottom: 2px; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 44px; box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.9rem; color: var(--navy); }
.req { color: #c0392b; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--white); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { resize: vertical; }
.form-success { margin-top: 16px; padding: 14px 18px; background: #e6f7f1; color: #0a6e54; border-radius: var(--radius); font-weight: 600; }

/* ─── Footer ─── */
.footer { background: var(--navy); color: #b3c5d8; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo-main { color: var(--white); font-size: 1.2rem; }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 300px; }
.footer h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #b3c5d8; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-copy { padding-top: 28px; text-align: center; font-size: 0.82rem; color: #7c93ac; }

/* ─── SVG Icons ─── */
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: #ffffff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meta-ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 5px; }

/* ─── Service cards as links ─── */
a.service-item { text-decoration: none; color: inherit; cursor: pointer; }
a.service-item:hover { text-decoration: none; }
.service-link { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 700; font-size: 0.85rem; opacity: 0; transform: translateX(-4px); transition: all 0.25s; }
.service-item:hover .service-link { opacity: 1; transform: translateX(0); }

/* ─── Job posting extras ─── */
.job-badge {
  display: inline-block; margin-bottom: 16px;
  background: #e6f7f1; color: #0a6e54;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.job-sub { color: var(--teal); font-weight: 600; font-size: 0.92rem; margin: -4px 0 12px; }
.job-meta .meta-ic { color: var(--muted); }
.job-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
.job-apply { margin-top: 18px; padding: 18px 20px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 8px; }
.job-apply strong { display: block; color: var(--navy); margin-bottom: 4px; }
.job-apply p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ─── Prefill note on contact form ─── */
.prefill-note {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 22px;
  font-weight: 600; color: var(--navy); font-size: 0.9rem;
}

/* ─── Contact cards (how to reach us) ─── */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.contact-card {
  text-align: center; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 28px; text-decoration: none; color: inherit;
  transition: all 0.25s; display: block;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.contact-card-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal), #0a5c56);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.contact-card-main { color: var(--teal); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; word-break: break-word; }
.contact-card-sub { color: var(--muted); font-size: 0.88rem; }
.contact-hours-note { text-align: center; margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.contact-hours-note strong { color: var(--navy); }

/* ─── Utility ─── */
.text-center { text-align: center; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 940px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px 24px 24px;
    gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 84px 0 74px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .service-item { flex-direction: column; }
  .job-header { flex-direction: column; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo-emblem { height: 44px; }
  .logo-main { font-size: 1.08rem; }
  .container { padding: 0 20px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
