/* ── VARIABLES ── */
:root {
  --navy: #1B2B6B;
  --navy-dark: #111c45;
  --orange: #F07621;
  --teal: #00B4A6;
  --teal-light: #e6f8f7;
  --offwhite: #F7F8FC;
  --warm-white: #FEFEFE;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7f0;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* ── SKIP LINK (a11y) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(27,43,107,0.08); }

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-text .engineer { color: var(--navy); }
.logo-text .dad { color: var(--orange); }

.logo-sub {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--orange) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 72px;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.07;
  top: -150px; right: -50px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.06;
  bottom: -80px; left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 80px 64px;
  max-width: 760px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── PAGE EYEBROW ── */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.page-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.page-title em { font-style: normal; color: var(--orange); }

/* ── SECTION TYPOGRAPHY ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(240,118,33,0.28);
}
.btn-primary:hover {
  background: #d96610;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,118,33,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 8px;
  border-radius: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--orange); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-outline-white:hover { color: white; }

.arrow {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 80px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}
.footer-logo-text .engineer { color: white; }
.footer-logo-text .dad { color: var(--orange); }

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 6px 0 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

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

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin-top: 20px;
  line-height: 1.6;
}

.footer-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
  min-width: 0;
}

.footer-social-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-social-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-social-item:hover        { color: rgba(255,255,255,0.9); }
.footer-social-wa:hover          { color: #25D366; }
.footer-social-email:hover       { color: var(--orange); }

.footer-cred { font-size: 12px; color: rgba(255,255,255,0.38); margin-bottom: 10px; line-height: 1.6; }
.footer-cred a { color: rgba(0,180,166,0.7); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-cred a:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  body { overflow-x: hidden; }

  nav { padding: 0 20px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(27,43,107,0.1);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin: 16px 24px 0;
    border-radius: 8px;
    text-align: center;
    display: block;
    padding: 14px 24px !important;
    font-size: 15px !important;
    background: var(--navy) !important;
  }

  footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .hero-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-social-grid { grid-template-columns: 1fr; }
}
