:root {
  --navy: #0b1f3a;
  --navy-dark: #071426;
  --steel: #2d4a6d;
  --gold: #c9a15a;
  --gold-light: #e0c384;
  --off-white: #f6f5f1;
  --gray: #6b7280;
  --border: #e5e1d8;
  --radius: 6px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #1b2431;
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 0.5em; color: var(--navy); }

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

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

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

/* Header */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

.brand .brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 15px;
  font-weight: bold;
}

.brand .brand-sub {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  font-weight: normal;
}

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

nav.main-nav a {
  font-size: 14.5px;
  letter-spacing: 0.4px;
  color: #dbe2ee;
  transition: color 0.15s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #3a5171;
  color: #fff;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--steel));
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201,161,90,0.25);
  border-radius: 50%;
}

.hero-inner { max-width: 680px; }

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 18px;
  color: #cfd8e6;
  margin-bottom: 32px;
  max-width: 560px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 6px 18px rgba(201,161,90,0.35); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  margin-left: 12px;
}
.btn-outline:hover { border-color: #fff; }

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

/* Sections */
section { padding: 76px 0; }

.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--steel); }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--gray); font-size: 16px; }

.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Client grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.client-card .icon { font-size: 26px; margin-bottom: 10px; }
.client-card h4 { font-size: 15px; margin-bottom: 6px; }
.client-card p { font-size: 13.5px; color: var(--gray); margin: 0; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--gold);
}

.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 14.5px; margin: 0; }

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--gray);
  font-size: 14.5px;
}
.service-card li { margin-bottom: 4px; }

/* Process */
.process-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding-top: 12px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}
.process-step h4 { font-size: 16px; margin-bottom: 6px; }
.process-step p { color: var(--gray); font-size: 14px; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #cfd8e6; margin-bottom: 28px; }

/* Footer */
footer {
  background: var(--navy-dark);
  color: #9fb0c7;
  padding: 50px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid #1c2c42;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #6f84a0;
  font-size: 12.5px;
}

/* Page header (interior pages) */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #cfd8e6; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--gold-light); margin-bottom: 12px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { margin: 0 0 20px; color: var(--gray); font-size: 14.5px; }

form.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 18px;
  font-family: inherit;
  background: #fff;
}
form.contact-form textarea { resize: vertical; min-height: 110px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-box .num { font-family: Georgia, serif; font-size: 28px; color: var(--gold); font-weight: bold; }
.stat-box .label { font-size: 12.5px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

.placeholder-note {
  background: #fdf6e6;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #8a6a1f;
  margin: 18px 0;
}

/* Chat widget */
#friday-toggle {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  z-index: 999;
  transition: transform 0.15s;
}
#friday-toggle:hover { transform: scale(1.06); }

#friday-panel {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  border: 1px solid var(--border);
}
#friday-panel.open { display: flex; }

.friday-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.friday-header .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #38d17a;
}
.friday-header .name { font-weight: 600; font-size: 15px; }
.friday-header .sub { font-size: 11.5px; color: #9fb0c7; }
.friday-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #cfd8e6;
  font-size: 18px;
  cursor: pointer;
}

.friday-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f7f3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13.8px;
  line-height: 1.45;
}
.msg.bot {
  background: #fff;
  border: 1px solid var(--border);
  align-self: flex-start;
  color: #1b2431;
}
.msg.user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
}

.friday-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  background: #f8f7f3;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--steel);
}
.chip:hover { border-color: var(--gold); color: var(--navy); }

.friday-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 10px;
  gap: 8px;
  background: #fff;
}
.friday-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.friday-input-row button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .header-inner { padding: 14px 20px; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .services-grid, .process-list, .client-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 520px) {
  .services-grid, .process-list, .client-grid, .stat-row { grid-template-columns: 1fr; }
  #friday-panel { right: 12px; left: 12px; width: auto; }
  #friday-toggle { right: 18px; }
}
