/* ─────────────────────────────────────────────
   CodePuppy — Global Styles
   Palette:
     --navy:       #1a2332  (logo dark, header bg, headings)
     --blue:       #4f9cf9  (logo bright, CTAs, accents)
     --blue-dark:  #2d6fd4  (hover states)
     --blue-light: #ebf4ff  (tinted backgrounds)
     --slate:      #475569  (body text)
     --slate-light:#64748b  (muted text)
     --border:     #e2e8f0  (dividers)
     --white:      #ffffff
     --off-white:  #f8fafc  (section backgrounds)
───────────────────────────────────────────── */

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

:root {
  --navy:       #1a2332;
  --navy-mid:   #243044;
  --blue:       #4f9cf9;
  --blue-dark:  #2d6fd4;
  --blue-light: #ebf4ff;
  --slate:      #475569;
  --slate-light:#64748b;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --green:      #10b981;
  --red:        #ef4444;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12);
  --radius:     10px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h4 { font-size: 1.1rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,156,249,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(79,156,249,0.5)) brightness(1.15);
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
}

.nav-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  margin-left: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Page Hero (shared) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--slate-light); font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }

/* ── Accent rule ── */
.accent-rule {
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: 0.875rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon {
  width: 20px; height: 20px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}
.check-text { color: var(--slate); font-size: 0.9375rem; }
.check-text strong { color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { height: 40px; width: auto; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  color: white;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--green); }
.toast-error   { background: var(--red); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3.5rem 0 3rem; }
}
