/* ==========================================================================
   Nicko Tadifa — Digital Marketing Portfolio
   Clean & Corporate theme
   ========================================================================== */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #10294a;
  --navy-700: #16345c;
  --navy-600: #1f4272;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #e6f7f5;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --amber-500: #f59e0b;

  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--alt {
  background: var(--slate-50);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--slate-200);
}

.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section--navy .eyebrow {
  background: rgba(20, 184, 166, 0.16);
  color: var(--teal-500);
}

.lede {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 640px;
}

.section--navy .lede { color: var(--slate-300); }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px auto;
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin: 0 0 52px 0;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px 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-primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-600); }

.section--navy .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.section--navy .btn-outline:hover { border-color: var(--teal-500); color: var(--teal-500); }

.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 500; font-size: 0.68rem; color: var(--slate-500); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-links > li > button.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--slate-700);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > button.nav-link-btn:hover,
.nav-links > li > a.active {
  background: var(--teal-100);
  color: var(--teal-600);
}

.chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}

li.has-dropdown:hover .chevron,
li.has-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

li.has-dropdown:hover .dropdown,
li.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.dropdown a span.desc {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.dropdown a:hover { background: var(--slate-100); }

.nav-cta-wrap { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  padding: 64px 0 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--slate-300); font-size: 0.92rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--teal-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 12px;
}

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--slate-300);
}
.social-row a:hover { background: var(--teal-600); color: var(--white); }

/* ---------------- Cards / Grids ---------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px;
  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(--slate-300); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-600);
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--slate-300);
  color: var(--slate-500);
}

/* ---------------- Stats ---------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-900);
}
.section--navy .stat-num { color: var(--white); }
.stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section--navy .stat-label { color: var(--slate-300); }

/* ---------------- Breadcrumb / Page header ---------------- */

.page-hero {
  padding: 56px 0 64px 0;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal-600); font-weight: 600; }

/* ---------------- Tables (pricing feature comparison) ---------------- */

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.compare th, table.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
  font-size: 0.92rem;
}
table.compare thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}
table.compare tbody tr:hover { background: var(--slate-50); }
table.compare td.center, table.compare th.center { text-align: center; }

/* ---------------- Pricing cards ---------------- */

.price-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card.featured {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--teal-100) 0%, var(--white) 18%);
}

.price-card .badge-pop {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--teal-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 14px 0 4px 0;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--slate-500); }

.price-feats {
  list-style: none;
  margin: 24px 0 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate-700);
}
.price-feats li .check {
  color: var(--teal-600);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------------- Blog cards ---------------- */

.blog-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
}

.blog-body { padding: 22px 24px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { font-size: 0.78rem; color: var(--slate-500); display: flex; gap: 10px; align-items: center; }
.blog-read { margin-top: auto; font-weight: 700; color: var(--teal-600); font-size: 0.88rem; }

/* ---------------- Portfolio ---------------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-700);
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 20px;
}

.case-body { padding: 22px 24px; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 20px; row-gap: 12px; margin-top: 16px; }
.case-metric-num { font-size: 1.3rem; font-weight: 800; color: var(--teal-600); }
.case-metric-label { font-size: 0.72rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------------- Testimonials ---------------- */

.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial p { font-style: italic; color: var(--slate-700); }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.author-name { font-weight: 700; color: var(--navy-900); font-size: 0.9rem; }
.author-role { font-size: 0.78rem; color: var(--slate-500); }

/* ---------------- Contact / CTA banner ---------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--teal-700, #0f766e));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--slate-300); max-width: 560px; margin: 0 auto 8px auto; }
.cta-banner .cta-row { justify-content: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Utilities ---------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Layout grids (hero / about / service splits) ---------------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.service-grid .service-copy { order: 1; }
.service-grid .service-feats { order: 2; }
.service-grid.reverse .service-copy { order: 2; }
.service-grid.reverse .service-feats { order: 1; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .service-copy,
  .service-grid .service-feats,
  .service-grid.reverse .service-copy,
  .service-grid.reverse .service-feats { order: initial; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-top: none;
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 12px;
  }
  li.has-dropdown.open .dropdown { display: flex; flex-direction: column; }
  .nav-toggle { display: flex; }
  .nav-cta-wrap .btn-primary { display: none; }
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 36px 22px; }
}
