/* =============================================
   OUBA Engineers & Consultants LLC
   Main Stylesheet
   Aesthetic: Refined / Architectural / Authoritative
   Colors: Deep navy + warm gold + clean white
   Fonts: Cormorant Garamond (display) + DM Sans (body)
============================================= */

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #162338;
  --navy-light: #1E3050;
  --gold:       #C49A3C;
  --gold-light: #D4AF5A;
  --gold-pale:  #F5EDD6;
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --gray-100:   #F2F0EC;
  --gray-200:   #E4E0D8;
  --gray-400:   #9E998E;
  --gray-700:   #4A4640;
  --text:       #1A1714;

  --radius:     4px;
  --radius-lg:  10px;
  --shadow:     0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg:  0 12px 48px rgba(13,27,42,0.16);
  --transition: 0.3s ease;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --max-w: 1200px;
  --gutter: 1.5rem;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ NAVIGATION ============ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,154,60,0.2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-ouba {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,154,60,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,154,60,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, rgba(0,0,0,0.5) 0%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 6rem;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(196,154,60,0.15);
  border: 1px solid rgba(196,154,60,0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp 0.8s ease 0.4s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(196,154,60,0.3);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(196,154,60,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,154,60,0.35);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

/* ============ INTRO STRIP ============ */
.intro-strip {
  background: var(--gold);
  padding: 1.25rem 0;
}
.intro-strip-inner p {
  text-align: center;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.intro-strip-inner strong {
  font-weight: 700;
}

/* ============ SECTION COMMON ============ */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}
.section-sub {
  margin-top: 1rem;
  color: var(--gray-700);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============ SERVICES GRID ============ */
.services-overview { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: letter-spacing var(--transition);
}
.service-link:hover { letter-spacing: 0.08em; }
.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============ WHY OUBA ============ */
.why-section { background: var(--white); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-text .section-tag { display: block; margin-bottom: 0.5rem; }
.why-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.why-text > p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.why-list {
  margin-bottom: 2.5rem;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--gray-700);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.check {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.why-card-stack {
  position: relative;
  height: 380px;
}
.why-card {
  position: absolute;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 220px;
}
.wc1 { top: 0; left: 0; z-index: 3; }
.wc2 { top: 80px; left: 100px; z-index: 2; background: var(--gold); color: var(--navy); }
.wc3 { top: 180px; left: 40px; z-index: 4; background: var(--navy-light); }
.wc-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.wc2 .wc-num { color: var(--navy); }
.wc-label {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.4;
}
.wc2 .wc-label { color: var(--navy); opacity: 0.75; }

/* ============ TEAM SECTION ============ */
.team-section { background: var(--off-white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 1.25rem;
}
.tc-1 { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.tc-2 { background: linear-gradient(135deg, #2A5C8A, #1E3050); }
.tc-3 { background: linear-gradient(135deg, var(--gold), #a07a2c); }
.tc-4 { background: linear-gradient(135deg, #3A6B4A, #2A4A35); }
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.team-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.team-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,154,60,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,154,60,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner {
  position: relative;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-inner p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
  background: #080F18;
  color: rgba(255,255,255,0.65);
  padding: 5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-ouba { font-size: 1.8rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h5, .footer-contact h5 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p, .footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ INNER PAGE HERO ============ */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,154,60,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,154,60,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero-inner { position: relative; }
.page-hero .section-tag { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(196,154,60,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
  }
  .nav-cta { border-radius: 0 !important; border-left: none !important; border-right: none !important; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; }
}
