/* =========================================================
   BLUE JACKET DIGITAL — STYLES
   =========================================================
   COLOR PALETTE (edit here to re-brand the whole site)
   ---------------------------------------------------------
   --color-navy      : primary brand color (headers, text emphasis, dark sections)
   --color-navy-dark : darker navy for gradients / hover states
   --color-blue       : medium/bright accent blue (links, icons, highlights)
   --color-red         : small red accent (buttons, emphasis, highlights)
   --color-white       : background
   --color-light-bg    : soft off-white section background
   --color-text        : near-black body text
   --color-text-muted  : secondary/gray text
   ========================================================= */

:root {
  --color-navy: #0a2647;
  --color-navy-dark: #071a33;
  --color-blue: #2f6fed;
  --color-blue-light: #eaf1ff;
  --color-red: #e0313f;
  --color-red-dark: #c11f2c;
  --color-white: #ffffff;
  --color-light-bg: #f5f8fc;
  --color-border: #e2e8f0;
  --color-text: #1c2430;
  --color-text-muted: #55606e;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1160px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 38, 71, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 38, 71, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 38, 71, 0.14);

  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: var(--color-navy); }
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.section { padding: 88px 0; }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-heading p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-red-dark); box-shadow: var(--shadow-md); }

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

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}
.logo span { color: var(--color-blue); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a:not(.btn) {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 2px;
  transition: color var(--transition);
}
.primary-nav a:not(.btn):hover { color: var(--color-blue); }
.primary-nav a:not(.btn):focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; border-radius: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-light-bg) 0%, var(--color-white) 100%);
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { width: 100%; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); border-radius: var(--radius-lg); }

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.four-up { grid-template-columns: repeat(4, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }
.three-up { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.card p { margin-bottom: 0; }
.card-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-blue-light);
  margin-bottom: 18px;
}

/* ---------- Value section ---------- */
.value-section { background: var(--color-white); }

/* ---------- Services section ---------- */
.services-section { background: var(--color-light-bg); }
.service-card { border-left: 4px solid var(--color-blue); }
.service-card:hover { border-left-color: var(--color-red); }

/* ---------- Philosophy ---------- */
.philosophy-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  text-align: center;
}
.philosophy-inner { max-width: 780px; }
.philosophy-section h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.philosophy-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 62ch; margin: 0 auto; }

/* ---------- Process / steps ---------- */
.process-section { background: var(--color-white); }
.step-card { position: relative; padding-top: 44px; }
.step-number {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Audience / About ---------- */
.audience-section { background: var(--color-light-bg); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.tag-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--color-navy);
  font-size: 0.95rem;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 720px; }
.cta-section h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.cta-subtext { margin-top: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.65); }

/* ---------- Contact ---------- */
.contact-section { background: var(--color-white); }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-form {
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row-half { flex-direction: row; gap: 20px; }
.form-row-half > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.92rem; color: var(--color-navy); }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-blue-light);
}
.form-submit { width: 100%; margin-top: 8px; }
.form-status { text-align: center; margin: 16px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: #1a7f37; }
.form-status.error { color: var(--color-red); }

.contact-info {
  text-align: center;
  margin-top: 32px;
  font-size: 0.98rem;
}
.contact-info a { color: var(--color-blue); font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }
.contact-info strong { color: var(--color-navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-logo { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.footer-logo span { color: var(--color-blue); }
.footer-tagline { margin: 0; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.75); font-weight: 500; transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-copyright { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; text-align: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .four-up { grid-template-columns: repeat(2, 1fr); }
  .three-up { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav ul { flex-direction: column; gap: 4px; margin-bottom: 16px; }
  .primary-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
  .nav-cta { width: 100%; }

  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .four-up { grid-template-columns: 1fr; }

  .form-row-half { flex-direction: column; gap: 20px; }
  .contact-form { padding: 28px 22px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
