/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --color-bg:        #ffffff;
  --color-bg-alt:    #f8fafc;
  --color-primary:   #0f172a;
  --color-accent:    #3b82f6;
  --color-accent-h:  #2563eb;
  --color-text:      #1e293b;
  --color-muted:     #64748b;
  --color-border:    #e2e8f0;
  --color-success:   #22c55e;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius:    0.5rem;
  --radius-lg: 1rem;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);

  --max-w: 1100px;
  --nav-h: 64px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-h); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-primary); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.35);
}
.btn--primary:hover { background: var(--color-accent-h); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,.4); }
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-h);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--color-accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--color-accent); }
.nav__cta { margin-left: 1rem; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59,130,246,.1);
  color: var(--color-accent);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__title { margin-bottom: 1.25rem; }
.hero__title em { font-style: normal; color: var(--color-accent); }
.hero__desc {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
}
.hero__photo-placeholder {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent) 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow-md);
}

/* Hero banner variant (full-width SVG illustration) */
.hero--banner .hero__content--centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.hero--banner .hero__desc--centered {
  margin-left: auto;
  margin-right: auto;
}
.hero--banner .hero__actions--centered {
  justify-content: center;
}
.hero__banner {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(59,130,246,.2);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}
.trust__item .icon { font-size: 1.1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p { color: var(--color-muted); font-size: 1.05rem; max-width: 560px; margin: 0.75rem auto 0; }

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card__title { margin-bottom: 0.5rem; }
.service-card__desc { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================================
   FEATURED POSTS
   ============================================================ */
.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.post-card__thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.post-card__tag {
  background: rgba(59,130,246,.1);
  color: var(--color-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-card__date { font-size: 0.8rem; color: var(--color-muted); }
.post-card__title { margin-bottom: 0.6rem; font-size: 1.1rem; }
.post-card__title a { color: var(--color-primary); }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt { color: var(--color-muted); font-size: 0.9rem; flex: 1; margin-bottom: 1.25rem; }

/* ============================================================
   AFFILIATE DISCLOSURE BANNER
   ============================================================ */
.disclosure {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #713f12;
  text-align: center;
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 2rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-max { max-width: 560px; margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.75rem; }
.footer__brand span { color: var(--color-accent); }
.footer__desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.footer__heading { color: #fff; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { color: rgba(255,255,255,.65); font-size: 0.9rem; transition: color 0.15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer__disclosure {
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  max-width: 600px;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.about__skills-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.skill-tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.skill-tag:hover {
  border-color: var(--color-accent);
  background: rgba(59,130,246,.06);
  color: var(--color-accent);
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.about__stat {
  text-align: center;
}
.about__stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
}
.about__stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .about__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__photo-placeholder,
  .hero__photo { margin: 0 auto; width: 180px; height: 180px; }
  .hero__actions { justify-content: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 1.5rem; border-bottom: 1px solid var(--color-border); gap: 1.25rem; }
  .nav__links.open { display: flex; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .trust__inner { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  h1 { font-size: 1.75rem; }
}
