/* Capital Development Technologies — site styles */
:root {
  --navy: #14304f;
  --navy-dark: #0c1f35;
  --accent: #c8792b;
  --accent-dark: #a8621f;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy-dark); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--navy-dark); color: #fff; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.5px;
}
.brand-logo { display: block; height: 48px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 400; font-size: 0.78rem; opacity: 0.8; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #dfe7ef; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }
.nav a.nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 72px 0 80px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 680px; color: #dfe7ef; }
.page-hero { background: var(--navy); color: #fff; padding: 48px 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: #dfe7ef; max-width: 700px; margin: 0; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Sections */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-intro { max-width: 700px; margin-bottom: 32px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.hero .eyebrow, .page-hero .eyebrow { color: #f0b47a; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .price { font-size: 1.6rem; font-weight: 700; color: var(--navy-dark); margin: 4px 0 8px; }
.card .price small { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.tag { display: inline-block; background: #fdf1e6; color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 24px 22px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px;
}

.story { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--ink); }

.cta-band { background: var(--navy-dark); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe7ef; max-width: 620px; margin: 0 auto 8px; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #bcccdc; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(200,121,43,0.35); border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; color: var(--navy-dark); }

/* Form extras */
.field.consent { display: flex; gap: 10px; align-items: flex-start; }
.field.consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.field.consent label { font-weight: 400; font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c12; border-radius: 8px; padding: 10px 14px; }

/* Privacy policy */
.policy { max-width: 780px; }
.policy h2 { font-size: 1.35rem; margin-top: 1.6em; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.callout { background: #fdf6ea; border: 1px solid #f0d49a; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Mobile menu (hamburger) */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .js .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: auto;
    background: transparent; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; cursor: pointer;
  }
  .js .nav-toggle:hover { background: rgba(255,255,255,0.1); }
  .js .nav-toggle:focus-visible { outline: 3px solid #f0b47a; outline-offset: 2px; }
  .nav-toggle-bar { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .js .site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .js .site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav { display: none; }
  .js .site-header.nav-open .nav {
    display: flex; flex-direction: column; gap: 2px; width: 100%;
    padding: 8px 0 4px; border-top: 1px solid rgba(255,255,255,0.12);
  }
  .js .site-header.nav-open .nav a { padding: 12px 10px; font-size: 1rem; }
  .js .site-header.nav-open .nav a.nav-cta { text-align: center; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle-bar { transition: none; } }

/* Footer */
.site-footer { background: #0a1a2c; color: #b8c4d0; padding: 36px 0; font-size: 0.92rem; }
.site-footer a { color: #dfe7ef; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 52px 0 60px; }
  .nav { width: 100%; }
  .nav a { padding: 7px 9px; font-size: 0.9rem; }
  .brand-logo { height: 40px; }
}
