/* ============================================================
   GUIDERS CONSULT — MASTER STYLESHEET
   Brand: Navy #1B3F7A | Orange #F5A623 | Emerald #16a34a | Teal #0891b2
   ============================================================ */

/* ── Google Font loaded via <link> in each HTML <head> — no @import needed ── */

/* ── CSS Custom Properties ── */
:root {
  --navy:       #1B3F7A;
  --navy-dark:  #122b57;
  --navy-light: #e8eef8;
  --orange:     #F5A623;
  --orange-dark:#d4891a;
  --emerald:    #16a34a;
  --emerald-bg: #f0fdf4;
  --teal:       #0891b2;
  --teal-bg:    #ecfeff;
  --off-white:  #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-600:   #4B5563;
  --gray-900:   #111827;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: .75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

.text-navy   { color: var(--navy) !important; }
.text-orange { color: var(--orange) !important; }
.text-emerald{ color: var(--emerald) !important; }
.text-teal   { color: var(--teal) !important; }
.bg-navy     { background-color: var(--navy) !important; }
.bg-navy-dark{ background-color: var(--navy-dark) !important; }
.bg-orange   { background-color: var(--orange) !important; }
.bg-emerald  { background-color: var(--emerald) !important; }
.bg-teal     { background-color: var(--teal) !important; }

/* ── NAVIGATION ── */
.navbar {
  background: #fff;
  box-shadow: 0 2px 16px rgba(27,63,122,.1);
  padding: .75rem 0;
  transition: box-shadow var(--transition);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar .nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  font-size: .93rem;
  padding: .45rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--navy) !important;
  background: var(--navy-light);
}

.navbar .nav-link.community-link {
  color: var(--teal) !important;
  font-weight: 600;
}
.navbar .nav-link.community-link:hover {
  background: var(--teal-bg);
  color: var(--teal) !important;
}

.navbar .btn-contact {
  background: var(--navy);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: .45rem 1.25rem !important;
  font-weight: 600;
  font-size: .88rem;
  transition: background var(--transition), transform var(--transition);
}
.navbar .btn-contact:hover {
  background: var(--navy-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 280px;
}
.dropdown-header {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  margin-bottom: .25rem;
}
.dropdown-header.egypt  { color: var(--emerald) !important; }
.dropdown-header.estonia{ color: var(--teal) !important; }
.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-600);
  padding: .45rem .75rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover {
  background: var(--navy-light);
  color: var(--navy);
}
.dropdown-divider { margin: .5rem 0; }

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-consulting.webp');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27,63,122,.92) 0%, rgba(27,63,122,.75) 60%, rgba(8,145,178,.55) 100%);
  z-index: 1;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.18);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--orange);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--orange);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn-hero-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,.4);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
  font-weight: 500;
}

.hero-image-col {
  position: relative;
  z-index: 2;
}

/* ── SECTION HEADERS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
}

/* ── ENTITY GATEWAY CARDS ── */
.entity-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.entity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.entity-card-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.entity-card-egypt .entity-card-header {
  background: var(--emerald);
}
.entity-card-estonia .entity-card-header {
  background: var(--teal);
}

.entity-card-header {
  padding: 1.25rem 1.5rem;
}
.entity-card-header h5 { color: #fff; font-size: 1.05rem; margin: 0; }
.entity-card-header small { color: rgba(255,255,255,.8); font-size: .8rem; }

.entity-card-body { padding: 1.5rem; }

.entity-tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 50px;
  margin: .2rem;
}
.tag-egypt   { background: var(--emerald-bg); color: var(--emerald); }
.tag-estonia { background: var(--teal-bg);    color: var(--teal); }

.entity-btn-egypt {
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.entity-btn-egypt:hover { background: #15803d; color: #fff; transform: translateY(-1px); }

.entity-btn-estonia {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.entity-btn-estonia:hover { background: #0e7490; color: #fff; transform: translateY(-1px); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  padding: 3.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  margin-top: .35rem;
  font-weight: 500;
}

/* ── SERVICE CARDS ── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.icon-emerald { background: var(--emerald-bg); color: var(--emerald); }
.icon-teal    { background: var(--teal-bg);    color: var(--teal); }
.icon-navy    { background: var(--navy-light);  color: var(--navy); }
.icon-orange  { background: #fff7e6;            color: var(--orange-dark); }

.service-card-body { padding: 1.5rem; }
.service-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p  { font-size: .88rem; color: var(--gray-600); margin: 0; }

/* ── ACCENT PILL ── */
.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.pill-emerald { background: var(--emerald-bg); color: var(--emerald); }
.pill-teal    { background: var(--teal-bg);    color: var(--teal); }
.pill-navy    { background: var(--navy-light);  color: var(--navy); }
.pill-orange  { background: #fff7e6;            color: var(--orange-dark); }

/* ── PARTNER LOGOS ── */
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter var(--transition), opacity var(--transition);
}
.partner-logo-wrap:hover { filter: grayscale(0%); opacity: 1; }
.partner-logo-wrap img { max-height: 44px; max-width: 120px; object-fit: contain; }

.partner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: .04em;
  transition: background var(--transition), color var(--transition);
}
.partner-text:hover { background: var(--navy-light); color: var(--navy); }

/* ── COMMUNITY CTA BANNER ── */
.community-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4fa0 50%, var(--teal) 100%);
  padding: 3.5rem 0;
}

/* ── PAGE HERO (Inner Pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4fa0 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: rgba(245,166,35,.08);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ── ABOUT PAGE ── */
.founder-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.founder-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.credential-item:last-child { border-bottom: none; }
.credential-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--navy-light);
}
.team-name { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.team-role { font-size: .8rem; color: var(--gray-600); }

/* ── EXPERIENCE PAGE ── */
.project-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.project-table thead { background: var(--navy); color: #fff; }
.project-table thead th { font-weight: 600; font-size: .85rem; padding: 1rem 1.25rem; border: none; }
.project-table tbody tr { transition: background var(--transition); }
.project-table tbody tr:hover { background: var(--navy-light); }
.project-table tbody td { padding: .9rem 1.25rem; font-size: .88rem; vertical-align: top; border-color: var(--gray-200); }

.region-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--navy-light);
  color: var(--navy);
}

/* ── CONTACT PAGE ── */
.contact-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}
.contact-card-header { padding: 1.75rem 2rem; }
.contact-card-header.egypt   { background: var(--emerald); }
.contact-card-header.estonia { background: var(--teal); }
.contact-card-header h4 { color: #fff; margin: 0; font-size: 1.1rem; }
.contact-card-header p  { color: rgba(255,255,255,.85); margin: .25rem 0 0; font-size: .85rem; }
.contact-card-body { padding: 1.75rem 2rem; background: #fff; }

.contact-detail {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-eg { background: var(--emerald-bg); color: var(--emerald); }
.icon-ee { background: var(--teal-bg);    color: var(--teal); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-control, .form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,63,122,.1);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--gray-900); margin-bottom: .4rem; }
.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-submit:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--transition);
  display: block;
  margin-bottom: .4rem;
}
footer a:hover { color: var(--orange); }
.footer-brand-name { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-brand-sub  { font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-divider    { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 0; }
.footer-bottom {
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65) !important;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--orange); color: #fff !important; }

/* ── UTILITY CLASSES ── */
.divider-orange {
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: .75rem 0 1.25rem;
}
.bg-off-white { background: var(--off-white); }

.info-box {
  background: var(--navy-light);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--navy);
}

.accred-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-sm);
}
.accred-badge i { font-size: 1.5rem; color: var(--orange); }
.accred-badge span { font-size: .82rem; font-weight: 600; color: var(--gray-900); }

/* ── COUNTRY FLAG PILLS ── */
.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--gray-100);
  border-radius: 50px;
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-600);
  margin: .2rem;
}

/* ── BREADCRUMB ── */
.breadcrumb-wrap { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 1.5rem; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .navbar-collapse { padding: 1rem 0; }
  .navbar .btn-contact { margin-top: .5rem; text-align: center; }
}

@media (max-width: 767px) {
  .hero-section { min-height: auto; padding: 5rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.6rem; }
  .stats-bar .col-6 { margin-bottom: 1.5rem; }
  .contact-form-card { padding: 1.5rem; }
  .page-hero { padding: 3.5rem 0 3rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .95rem; }
  .btn-hero-primary, .btn-hero-outline { padding: .7rem 1.4rem; font-size: .9rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group a { text-align: center; }
}

/* ── Focus indicators for keyboard navigation ── */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .entity-card:hover,
  .service-card:hover,
  .team-card:hover { transform: none !important; }
  html { scroll-behavior: auto; }
}
