/* Kingdom Tec — sample site stylesheet */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --gold: #b8862c;
  --gold-light: #d9a84c;
  --slate: #4a5568;
  --off-white: #f6f7f9;
  --white: #ffffff;
  --border: #e2e5ea;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  --max-width: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  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-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 900;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-cta:hover { background: var(--navy-deep); }

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

/* ---- Hero ---- */

.hero {
  background: radial-gradient(ellipse at top right, #12294d 0%, var(--navy-deep) 65%);
  color: var(--white);
  padding: 96px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 134, 44, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: #c7d2e0;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 28px;
}

.hero-panel-stat {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-panel-stat:last-child { border-bottom: none; }

.hero-panel-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-panel-stat .label {
  font-size: 0.85rem;
  color: #a9b6c8;
  text-align: right;
  max-width: 220px;
}

/* ---- Sections ---- */

section { padding: 80px 0; }

.section-alt { background: var(--off-white); }

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

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head p { color: var(--slate); font-size: 1.05rem; }

/* ---- Service cards ---- */

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,31,58,0.12); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p { color: var(--slate); font-size: 0.95rem; }

.card a.learn {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
}

/* ---- Values strip ---- */

.values-strip {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.values-grid .value h4 {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.values-grid .value p { color: #aab6c6; font-size: 0.85rem; }

/* ---- CTA band ---- */

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #16345f 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin: 0 auto;
}

.cta-band h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #c7d2e0; }

/* ---- Footer ---- */

.site-footer {
  background: var(--navy-deep);
  color: #9aa8bb;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

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

.footer-grid h5 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid 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;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Page header (interior pages) ---- */

.page-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 48px;
}

.page-header h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: #c7d2e0; max-width: 560px; }

.breadcrumb { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 16px; }

/* ---- Contact form ---- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 24px; }

.contact-info .info-item .icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--off-white); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.contact-info h4 { color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.contact-info p { color: var(--slate); font-size: 0.92rem; }

/* ---- AI Marketing Agent widget ---- */

.ai-widget-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--gold);
  color: var(--navy-deep);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 8px 24px rgba(184, 134, 44, 0.45);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.ai-widget-launcher:hover { transform: scale(1.06); }

.ai-widget-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 999;
  width: 340px;
  max-height: 440px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(11,31,58,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ai-widget-panel.open { display: flex; }

.ai-widget-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-widget-header .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
}

.ai-widget-header strong { font-size: 0.95rem; }
.ai-widget-header span { font-size: 0.75rem; color: #a9b6c8; display: block; }

.ai-widget-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 0.9rem;
  background: var(--off-white);
}

.ai-msg {
  margin-bottom: 12px;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.4;
}

.ai-msg.bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-deep);
  border-bottom-left-radius: 2px;
}

.ai-msg.user {
  background: var(--navy);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.ai-widget-input {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 10px;
  gap: 8px;
}

.ai-widget-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.88rem;
}

.ai-widget-input button {
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy-deep);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .grid-4, .grid-5, .values-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .ai-widget-panel { width: calc(100vw - 32px); right: 16px; }
}
