/* ===================================================================
   Jesus De Oliveira — Consulting Website
   =================================================================== */

/* ===== Variables ===== */
:root {
  --navy:        #1e3a5f;
  --navy-dark:   #152942;
  --navy-light:  #2a4f7c;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-light:  #dbeafe;
  --text:        #1f2937;
  --text-light:  #6b7280;
  --text-muted:  #9ca3af;
  --bg:          #ffffff;
  --bg-light:    #f9fafb;
  --bg-dark:     #f3f4f6;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.18; }
h2 { font-size: 2rem;    font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.text-muted  { color: var(--text-light); }
.text-small  { font-size: .875rem; }
.text-large  { font-size: 1.125rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: none; color: #fff; }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--border-dark); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-light); text-decoration: none; color: var(--navy); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .875rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.logo:hover { color: var(--navy-light); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-list  { display: flex; align-items: center; gap: 2px; }
.nav-item  { position: relative; }
.nav-link  {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--text);
  background: none; border: none; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--bg-light); color: var(--navy); }
.arrow { font-size: .7rem; }
.nav-cta { margin-left: 12px; padding: 8px 18px; }
.linkedin-nav-icon { display: flex; align-items: center; padding: 6px; margin-top: 3px; }

/* ===== Dropdowns ===== */
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.4s;
}
.dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.dropdown-item {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: .875rem; color: var(--text); text-decoration: none; transition: background .15s;
}
.dropdown-item:hover { background: var(--bg-light); color: var(--navy); text-decoration: none; }
.dropdown-item.highlight { color: var(--blue); font-weight: 600; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Sub-dropdown */
.has-sub { position: relative; }
.sub-dropdown {
  position: absolute; left: 100%; top: -4px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; z-index: 300;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.4s;
}
.has-sub:hover .sub-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}

/* ===== Hero ===== */
.hero {
  background: var(--navy); color: #fff;
  padding: 96px 0 80px; text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.2rem; color: rgba(255,255,255,.8);
  max-width: 580px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.breadcrumb-bar {
  position: sticky; top: 64px; z-index: 99;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 8px 0;
}
.page-hero {
  background: var(--navy); color: #fff; padding: 48px 0 52px;
}
.page-hero h1   { color: #fff; margin-bottom: .75rem; font-size: 2.1rem; }
.page-hero .subtitle { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 600px; }
.breadcrumb { font-size: .825rem; color: rgba(255,255,255,.5); margin-bottom: 0; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-bg { background: var(--bg-light); }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .4rem; }
.section-header p  { color: var(--text-light); font-size: 1.05rem; max-width: 600px; }

/* ===== Cards ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cards-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--text-light); }
.card-quote { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.card-label { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.card-link  { font-size: .875rem; font-weight: 500; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* ===== About / Photo placeholder ===== */
.about-brief {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 40px; align-items: start; max-width: 820px;
}
.photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-dark); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .8125rem; text-align: center;
  border: 1px solid var(--border);
}

/* ===== Engagement stack (home) ===== */
.engagement-stack { display: flex; flex-direction: column; gap: 0; max-width: 800px; }
.engagement-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.engagement-connector {
  text-align: center; padding: 10px 0;
  color: var(--text-muted); font-size: .85rem; font-style: italic;
}
.engagement-card .eng-type {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); margin-bottom: .2rem;
}
.engagement-card .eng-title {
  font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem;
}
.engagement-card .eng-meta { font-size: .875rem; color: var(--text-light); margin-bottom: .75rem; }
.engagement-card p { color: var(--text-light); margin-bottom: 1.25rem; }

/* ===== Domain expertise (home) ===== */
.expertise-icon {
  width: 44px; height: 44px; background: var(--blue-light);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: .9rem;
}

/* ===== Package cards ===== */
.package-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px;
  background: var(--blue-light); color: var(--blue); margin-bottom: .9rem;
}
.package-tagline { color: var(--text-light); font-style: italic; margin-bottom: 1.25rem; font-size: .9375rem; }
.package-meta   { display: flex; gap: 16px; margin-bottom: 1rem; flex-wrap: wrap; }
.package-meta span { font-size: .85rem; color: var(--text-light); }
.package-meta strong { color: var(--text); }
.deliverables-list { list-style: disc; padding-left: 1.25rem; margin-top: .5rem; }
.deliverables-list li { font-size: .9rem; color: var(--text-light); margin-bottom: .3rem; }

/* ===== Other Ways section ===== */
.other-ways { background: var(--bg-light); padding: 64px 0; }
.other-ways h2 { margin-bottom: 2rem; }

/* ===== Layouts ===== */
.two-col     { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }

/* ===== Lists ===== */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 7px 0 7px 26px; position: relative;
  color: var(--text-light); font-size: .9375rem;
}
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plain-list { list-style: disc; padding-left: 1.25rem; }
.plain-list li { color: var(--text-light); margin-bottom: .3rem; font-size: .9375rem; }

/* ===== Highlight box ===== */
.highlight-box {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin-bottom: 1.5rem;
}
.highlight-box p { color: var(--navy); margin: 0; font-weight: 500; }

/* ===== Stats ===== */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.stat-label  { font-size: .875rem; color: var(--text-light); }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue);
}
.timeline-date    { font-size: .8125rem; color: var(--text-muted); margin-bottom: .2rem; }
.timeline-title   { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .15rem; }
.timeline-company { font-size: .9rem; color: var(--text-light); margin-bottom: .4rem; }
.timeline-body    { font-size: .875rem; color: var(--text-light); }

/* ===== Form ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .9375rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  font-size: .9375rem; font-family: inherit; color: var(--text);
  transition: border-color .15s; background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.8);
  padding: 56px 0 32px;
}
.footer-cta { text-align: center; margin-bottom: 48px; }
.footer-cta h2 { color: #fff; margin-bottom: 1.5rem; font-size: 1.75rem; }
.footer-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  text-align: center; font-size: .8125rem; color: rgba(255,255,255,.35);
}

/* ===== Image placeholder ===== */
.img-placeholder {
  background: var(--bg-dark); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .8125rem; text-align: center;
  border: 1px solid var(--border);
}
.img-placeholder-wide { width: 100%; aspect-ratio: 16/9; }
.img-placeholder-sq   { width: 100%; aspect-ratio: 1; }

/* ===== Credential Bar ===== */
.credential-bar {
  padding: 52px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credential-row {
  display: flex;
  align-items: center;
  gap: 48px;
}
.credential-row + .credential-row {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.credential-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 110px;
}
.credential-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.credential-logo {
  height: 20px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.2s;
}
.credential-logo:hover {
  filter: grayscale(0%) opacity(1);
}
.credential-schools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.credential-school {
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b8bec9;
  padding: 4px 28px 4px 0;
  margin-right: 28px;
  border-right: 1px solid var(--border-dark);
  line-height: 1.4;
  white-space: nowrap;
}
.credential-degree {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-top: 2px;
}
.credential-school:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

/* ===== Compact credential logos (homepage) ===== */
.credential-compact-block { margin-top: 1rem; }
.credential-compact-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.credential-logos-compact {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.credential-logo-sm {
  width: auto; max-width: 100px; object-fit: contain;
  filter: grayscale(100%) opacity(0.45); transition: filter 0.2s;
}
.credential-logo-sm:hover { filter: grayscale(0%) opacity(1); }
.credential-schools-compact {
  display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 0;
}
.credential-school-sm {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8bec9;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--border-dark);
  line-height: 1.5;
}
.credential-school-sm:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.credential-degree-sm {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-top: 1px;
}
@media (max-width: 900px) {
  .credential-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .credential-logos { gap: 28px; justify-content: center; }
  .credential-schools { gap: 12px; }
  .credential-school { border-right: none; margin-right: 0; padding-right: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .cards-5 { grid-template-columns: repeat(3,1fr); }
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; gap: 32px; }
  .about-brief { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
/* ===== Mobile nav controls ===== */
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text); border-radius: var(--radius);
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--bg-light); }
.nav-mobile-msg {
  display: none; align-items: center; justify-content: center;
  padding: 6px; color: var(--text); border-radius: var(--radius);
  transition: background .15s; text-decoration: none;
}
.nav-mobile-msg:hover { background: var(--bg-light); color: var(--navy); text-decoration: none; }

/* ===== Mobile nav drawer ===== */
.mobile-nav {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0; /* top overridden by JS */
  background: #fff; overflow-y: auto;
  z-index: 101; padding: 24px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav-section { margin-bottom: 28px; }
.mobile-nav-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px;
}
.mobile-nav-link {
  display: block; padding: 11px 0;
  font-size: .9375rem; color: var(--text);
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-nav-link:hover { color: var(--navy); text-decoration: none; }
.mobile-nav-link.highlight { color: var(--blue); font-weight: 600; }

@media (max-width: 600px) {
  section { padding: 48px 0; }
  .hero { padding: 64px 0 52px; }
  h1 { font-size: 1.75rem; }
  .cards-3, .cards-2, .cards-4, .cards-5 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .main-nav .nav-list { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-msg { display: flex; }

  /* Header: name on same row as buttons, subtitle full-width on row below */
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0 6px; align-items: center; }
  .logo { display: contents !important; }
  .logo > span:first-child { font-size: 1rem; font-weight: 600; color: var(--navy); white-space: normal; line-height: 1.2; flex-shrink: 1; min-width: 0; }
  .main-nav { flex-shrink: 0; }
  .logo > span:last-child { order: 10; flex-basis: 100%; font-size: 0.75rem; color: #999; font-weight: 400; line-height: 1.3; padding-bottom: 4px; white-space: normal; }

  .credential-logos-compact { justify-content: center; align-items: center; }
  .credential-compact-block { text-align: center; }
  .credential-compact-label { text-align: center; }
  .credential-schools-compact { justify-content: center; }
}
