/* ========================================
   RIG Rwanda - Modern Redesign
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #5546e7;
  --primary-light: #7063ea;
  --primary-dark: #3a2fa8;
  --accent: #e63946;
  --accent-light: #ff4d5a;
  --gold: #d4a843;
  --gold-light: #f0c75e;
  --dark: #0c1a2e;
  --dark-800: #142236;
  --dark-700: #1c2e48;
  --gray-900: #1a1a2e;
  --gray-700: #4a4a6a;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 24px;
  z-index: 1200;
  padding: 12px 18px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a.is-placeholder-link,
a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

a.is-placeholder-link:hover,
a[aria-disabled="true"]:hover {
  color: inherit;
  transform: none;
  padding-left: 0;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 8px;
  margin-bottom: 24px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-progress {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: preload 1.5s ease-in-out forwards;
}

@keyframes preload {
  to { width: 100%; }
}

/* --- Typography --- */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section-tag.light {
  color: var(--gold-light);
}

.section-tag.light::before {
  background: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

.section-header.centered {
  text-align: center;
  margin-bottom: 60px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--dark);
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-left a,
.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
}

.top-bar-left a:hover {
  color: var(--white);
}

.top-bar-left i {
  color: var(--accent);
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  gap: 16px;
}

.top-bar-right a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.top-bar-right a:hover {
  color: var(--white);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link i {
  font-size: 10px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(26, 60, 122, 0.05);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.has-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown li a:hover {
  background: var(--gray-100);
  color: var(--primary);
  padding-left: 22px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 550px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-out, visibility 1.5s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in, visibility 0.8s;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 12s linear;
  will-change: transform;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 26, 46, 0.85) 0%, rgba(12, 26, 46, 0.55) 50%, rgba(12, 26, 46, 0.85) 100%);
}

.hero .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.hero-slide.active .hero-tag {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-title span {
  color: var(--gold-light);
  display: inline-block;
}

.hero-text {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 760px;
}

.hero-highlight {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.68), rgba(8, 18, 32, 0.54));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.hero-highlight strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--white);
}

.hero-highlight span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

/* Hero Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}

.hero-progress-bar {
  height: 100%;
  background: var(--gold-light);
  width: 0;
  transition: none;
}

.hero-progress-bar.animate {
  animation: progressFill 6s linear forwards;
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-controls-left {
  display: flex;
  align-items: center;
}

.hero-counter {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-counter-current {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.hero-counter-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 2px;
}

.hero-counter-total {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.hero-controls-right {
  display: flex;
  gap: 12px;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
  transform: scale(1.08);
}

.hero-dots {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  position: relative;
}

.hero-dot svg {
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.hero-dot .dot-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 2;
}

.hero-dot .dot-progress {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.5;
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  stroke-linecap: round;
  transition: none;
}

.hero-dot.active .dot-progress {
  animation: dotFill 6s linear forwards;
}

@keyframes dotFill {
  from { stroke-dashoffset: 100.53; }
  to { stroke-dashoffset: 0; }
}

.hero-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.hero-dot.active::after {
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(240, 199, 94, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25vh;
  right: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold-light);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}

.scroll-indicator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  writing-mode: vertical-rl;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--primary);
  padding: 0;
  position: relative;
  z-index: 5;
  border-top: 3px solid var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255,255,255,0.05);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}

.about-img-secondary img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.badge-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Investments --- */
.investments {
  background: var(--gray-100);
}

.investments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.investment-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.04);
}

.investment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.investment-card:hover .card-image img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}

.card-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card-body p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.card-link:hover {
  gap: 14px;
  color: var(--accent-light);
}

/* --- Services --- */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.services-info p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.8;
}

.services-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon-wrap i {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
}

.service-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.92), rgba(26, 60, 122, 0.88));
}

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

.cta-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 48px;
  background: rgba(10, 21, 38, 0.48);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-content .section-tag {
  margin-bottom: 16px;
}

.cta-content h2 span {
  color: var(--gold-light);
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 680px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary);
  color: var(--white);
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--dark);
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 60, 122, 0.08);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: var(--gray-300);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-500);
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.form-status.is-info {
  background: rgba(85, 70, 231, 0.08);
  color: var(--primary-dark);
}

.form-status.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 55px;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-newsletter p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 0 14px 2px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-primary);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

.footer-newsletter .form-status {
  margin-top: 14px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
}

.footer-newsletter .form-status.is-info {
  background: rgba(85, 70, 231, 0.18);
  color: rgba(255,255,255,0.88);
}

.footer-newsletter .form-status.is-success {
  background: rgba(34, 197, 94, 0.18);
  color: rgba(240,255,244,0.94);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* --- Uniform Font & Color Fixes --- */
.about-feature h4,
.contact-item h4 {
  font-family: var(--font-primary);
}

.footer-links h4,
.footer-newsletter h4 {
  font-family: var(--font-display);
}

/* Ensure all body text uses consistent sizing */
.about-text,
.services-info p,
.contact-info p,
.cta-content p {
  font-family: var(--font-primary);
  font-weight: 400;
}

/* Better focus states for accessibility */
.btn:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible,
.nav-link:focus-visible,
.mobile-toggle:focus-visible,
.footer-socials a:focus-visible,
.footer-links a:focus-visible,
.newsletter-form button:focus-visible,
.newsletter-form input:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.contact-form-column select:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Smooth image loading */
img {
  background: var(--gray-100);
}

/* Card link arrow animation */
.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* Better contact icon radius consistency */
.contact-icon {
  border-radius: 50%;
}

/* Stat bar subtle top border */
.stats-bar {
  border-top: 3px solid var(--gold);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 50px;
  }

  .investments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content {
    padding: 36px 32px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .skip-link {
    left: 16px;
  }

  .header-inner {
    height: 70px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 52px);
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 24px 20px;
    border-right: none;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    max-width: 500px;
  }

  .investments-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-controls {
    bottom: 24px;
    padding: 0 20px;
  }

  .cta-content {
    padding: 28px 24px;
  }

  .cta-content p {
    max-width: none;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-controls-left {
    display: none;
  }

  .hero-counter {
    display: none;
  }

  .hero-dots {
    gap: 10px;
  }

  .hero-dot {
    width: 28px;
    height: 28px;
  }

  .hero-dot svg {
    width: 28px;
    height: 28px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-highlight {
    padding: 16px 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-content {
    padding: 24px 20px;
  }
}
