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

:root {
  --bg:         #F7F8FC;
  --card:       #FFFFFF;
  --text:       #1A1F36;
  --muted:      #6B7280;
  --navy:       #1E4FAF;
  --navy-dark:  #1A3F8F;
  --navy-light: #EEF2FA;
  --red:        #C8102E;
  --red-dark:   #A30D25;
  --red-light:  #FFF0F2;
  --border:     #E2E8F0;
  --shadow:     0 2px 16px rgba(26,53,105,.08);
  --shadow-lg:  0 8px 32px rgba(26,53,105,.14);
  --radius:     12px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ────────────────────────────────────────── */
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--muted); }

.section-label {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}

/* ─── Layout helpers ────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
section    { padding: 5.5rem 0; }
.text-center { text-align: center; }
.section-header { margin-bottom: 3.5rem; }
.section-header p { margin-top: .75rem; max-width: 580px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ─── Fade-in animation ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-dark); box-shadow: 0 4px 16px rgba(26,53,105,.35); color: #fff !important; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(200,16,46,.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy-light); }

/* ─── Navigation ────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  transition: box-shadow .25s, background .25s;
}
#navbar.scrolled { box-shadow: 0 1px 16px rgba(26,53,105,.1); background: #fff; }

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-logo .logo-sub {
  font-size: .63rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }

#menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: .25rem;
}
#menu-btn svg { transition: transform .2s; }
#menu-btn svg.rotate-90 { transform: rotate(90deg); }

#mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
#mobile-menu a:hover { color: var(--navy); }
#mobile-menu .btn { border: none; }

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #F7F8FC 0%, #EEF2FA 60%, #FFF0F2 100%);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  pointer-events: none;
}

/* navy glow top-right */
#hero::after {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(26,53,105,.10) 0%, transparent 70%);
  pointer-events: none;
}

/* red glow bottom-left */
.hero-glow-red {
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(200,16,46,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 740px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy-light);
  border: 1px solid rgba(26,53,105,.2);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .79rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-badge svg { color: var(--red); }

.hero-content h1 { margin-bottom: 1.25rem; color: var(--text); }
.hero-content h1 .accent-navy { color: var(--navy); }
.hero-content h1 .accent-red  { color: var(--red); }
.hero-content p  { font-size: 1.08rem; max-width: 600px; margin-bottom: 2rem; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: .2rem; }
.stat-num  { font-size: 1.65rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label{ font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ─── Services ──────────────────────────────────────────── */
#services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card.featured::before { background: var(--red); transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.service-card.featured .service-icon {
  background: var(--red-light);
  color: var(--red);
}

.service-card h3 { margin-bottom: .6rem; color: var(--text); }
.service-card p  { font-size: .92rem; }

.service-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
  background: var(--red-light);
  color: var(--red);
}

/* ─── Tech Stack ────────────────────────────────────────── */
#tech-stack { }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}

.tech-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.tech-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--navy);
  transform: translateY(-3px);
}

.tech-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tech-card h3 { font-size: .9rem; color: var(--text); line-height: 1.3; }
.tech-card p  { font-size: .78rem; line-height: 1.4; }

/* ─── Values ────────────────────────────────────────────── */
#values { background: #fff; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
}
.value-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  opacity: .15;
  line-height: 1;
  margin-bottom: .5rem;
}
.value-card h3 { margin-bottom: .6rem; }
.value-card p  { font-size: .92rem; }

/* ─── Team ──────────────────────────────────────────────── */
#team { }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2A5298);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  border: 3px solid var(--red);
}

.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-title   { font-size: .83rem; color: var(--red); font-weight: 600; margin-bottom: 1rem; }

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.5rem;
}
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
}
.cert-list li::before {
  content: '✓';
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  padding: .4rem .9rem;
  transition: background .2s, color .2s;
}
.linkedin-link:hover { background: var(--navy); color: #fff; }

/* ─── Contact ───────────────────────────────────────────── */
#contact { background: #fff; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: .75rem; }
.contact-info p  { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.not-agency-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  font-size: .82rem;
  color: #92400E;
  line-height: 1.5;
}

/* Form */
.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
}
input, textarea {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,53,105,.1);
}
textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; display: block; }
.form-status.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; display: block; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: #0F1E3D;
  color: #9CA3AF;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-logo img { height: 44px; width: auto; filter: brightness(0) invert(1) opacity(.85); }
.footer-logo .logo-name { color: #fff; font-size: 1.1rem; font-weight: 800; }
.footer-brand p { font-size: .85rem; margin-top: .25rem; max-width: 270px; }

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  color: #D1D5DB;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .85rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .84rem;
  color: #9CA3AF;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1E2D50;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.not-agency-footer { font-size: .77rem; color: #6B7280; font-style: italic; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links, #navbar .btn { display: none; }
  #menu-btn { display: flex; }
  #hero { padding: 4rem 0 3.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
}
