/* =====================================================
   VARIABLES
===================================================== */
:root {
  --navy: #0f172a;
  --gold: #c8a15a;
  --light: #f8fafc;
}
html {
  scroll-behavior: smooth;
}
/* =====================================================
   RESET & BASE
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: #1f2933;
  background-color: #ffffff;
  line-height: 1.65;
}

#about,
#services,
#clients,
#edge,
#approach,
#contact {
  scroll-margin-top: 90px;
}


/* =====================================================
   HEADER
===================================================== */

.header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

/* Desktop Menu */
.header__menu {
  list-style: none;
  display: flex;
  gap: 12px;
}

.header__menu a {
  font-size: 0.9rem;
  color: #000813;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

/* Hover effect */
.header__menu a:hover {
  background-color: rgba(200, 161, 90, 0.15); /* soft gold/orange */
  color: #d2601a; /* institutional gold */
  transform: translateY(-2px);
}

/* Active (when clicked / focused) */
.header__menu a:focus,
.header__menu a:active {
  background-color: rgba(200, 161, 90, 0.25);
  color: #c8a15a;
}

.header__cta {
  font-weight: 500;
}

.header__menu a {
  position: relative;
}

.header__menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background-color: #c8a15a;
  transition: width 0.3s ease, left 0.3s ease;
}

.header__menu a:hover::after {
  width: 60%;
  left: 20%;
}


/* =====================================================
   HAMBURGER
===================================================== */

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--navy);
}

/* =====================================================
   MOBILE NAV
===================================================== */

@media (max-width: 768px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
  }

  .header__nav.active {
    display: block;
  }

  .header__menu {
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .header__menu a {
    width: 100%;
  }
}

/* =====================================================
   HERO
===================================================== */

.hero {
  min-height: calc(100vh - 72px); /* Full screen minus header */
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
}

/* =====================================================
   HERO – SPLIT LAYOUT
===================================================== */
.hero__title {
  animation: fadeUp 0.8s ease forwards;
}

.hero__subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero__description {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero--split {
  background-color: #f9fafb;
}

.hero__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  height: 100%;
}

/* Left Content */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 48px;
}

/* Text */
.hero__title {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #334155;
  margin-bottom: 24px;
}

.hero__description {
  font-size: 1.05rem;
  color: #475569;
  max-width: 720px;
  margin-bottom: 36px;
}

/* =====================================================
   HERO – FULL BACKGROUND VERSION
===================================================== */

.hero--bg {
  position: relative;
  min-height: calc(100vh - 72px);
  background-image: url("../assets/images/hero-building.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* Dark overlay for readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.65)
  );
  z-index: 1;
}

/* Content above overlay */
.hero--bg .hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  color: #ffffff;
}

/* Text colors on background hero */
.hero--bg .hero__title,
.hero--bg .hero__subtitle,
.hero--bg .hero__description {
  color: #ffffff;
}

/* Button contrast */
.hero--bg .btn--primary {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 0; /* vertical padding; horizontal controlled by width */
  font-size: 0.85rem;
  border-radius: 3px;
  width: 5.5cm; /* target: between 5cm and 6cm */
  min-width: 5cm;
  max-width: 6cm;
  text-align: center;
  display: inline-block;
}

.hero--bg .btn--primary:hover {
  background-color: #1e293b;
  transform: none; /* avoid large lift on small CTA */
  box-shadow: none;
}

/* Slightly smaller on very small screens */
@media (max-width: 480px) {
  .hero--bg .btn--primary {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn--primary {
  background-color: var(--navy);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #1e293b;
}

.btn--primary {
  background-color: var(--navy);
  color: #ffffff;
  position: relative; /* for pseudo-element */
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn--primary:hover {
  background-color: #1e293b;
  transform: translateY(-3px); /* subtle lift */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}


.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* light shine */
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn--primary:hover::before {
  left: 200%;
}


/* =====================================================
   SECTIONS (COMMON)
===================================================== */

section {
  padding: 96px 0;
}

/* =====================================================
   ABOUT
===================================================== */

.about__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.about__heading {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.about__intro {
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 20px;
}

.about__text {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 18px;
}

/* ================= SERVICES ================= */

.services {
  background-color: #f9fafb;
}

/* Dark overlay background */
.services--overlay {
  background-image:
    linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)),
    url("../assets/images/city.jpg");
  background-size: 120%;
  background-position: center top;
  padding: 72px 0;
}

.services__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.services__heading {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #ffffff;
}

.services__intro {
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 720px;
  color: #e5e7eb;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
/* ---------- TOP ROW ---------- */
.services-grid .service-card:nth-child(1) {
  grid-column: 1 / span 2;
}

.services-grid .service-card:nth-child(2) {
  grid-column: 3 / span 2;
}

.services-grid .service-card:nth-child(3) {
  grid-column: 5 / span 2;
}

/* ---------- BOTTOM ROW (CENTERED) ---------- */
.services-grid .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card {
    grid-column: auto !important;
  }
}


/* CARD BOXES */
.services--overlay .services__item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

/* Hover (subtle, professional) */
.services--overlay .services__item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.services--overlay .services__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #ffffff;
}

.services--overlay .services__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}
.services__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.services--overlay .services__item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 25px rgba(15, 23, 42, 0.15);
  background-color: rgba(255, 255, 255, 0.18);
}

.services__item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.services__item.active {
  opacity: 1;
  transform: translateY(0);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

/* ---------- TOP ROW: three cards ---------- */
.services__grid .services__item:nth-child(1) {
  grid-column: 1 / span 2;
}

.services__grid .services__item:nth-child(2) {
  grid-column: 3 / span 2;
}

.services__grid .services__item:nth-child(3) {
  grid-column: 5 / span 2;
}

/* ---------- BOTTOM ROW: two cards centered under gaps ---------- */
.services__grid .services__item:nth-child(4) {
  grid-column: 2 / span 2;
}

.services__grid .services__item:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid .services__item {
    grid-column: auto !important;
  }
}


/* =====================================================
   PHILOSOPHY
===================================================== */

.philosophy {
  margin-bottom: 32px;
  padding: 64px 24px;
  background-color: #f1f5f9;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  max-width: 900px;
  margin: 0 auto;
}

/* =====================================================
   CLIENTS
===================================================== */

.clients__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

.clients__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;                 /* reduced from 32px */
  margin: 32px 0 40px;       /* tighter vertical spacing */
}

.client-icon {
  text-align: center;
  display: flex;
  flex-direction: column;  /* stack icon above text */
  align-items: center;     /* center horizontally */    /* center the text */
  padding: 12px;
}

.client-icon span {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.clients__grid {
  margin-top: 24px;          /* reduce gap from intro */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;                 /* slightly tighter */
}

.clients__item {
  background-color: #f9fafb;
  padding: 24px;
  border-left: 3px solid #0f172a;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clients__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 74, 248, 0.25);
}

.client-icon span {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.client-icon:hover span {
  transform: scale(1.15);
  background-color: var(--gold);
  color: var(--navy);
}
.clients__icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

/* ---------- TOP ROW: three client cards ---------- */
.clients__grid .clients__item:nth-child(1) {
  grid-column: 1 / span 2;
}

.clients__grid .clients__item:nth-child(2) {
  grid-column: 3 / span 2;
}

.clients__grid .clients__item:nth-child(3) {
  grid-column: 5 / span 2;
}

/* ---------- BOTTOM ROW: two client cards centered ---------- */
.clients__grid .clients__item:nth-child(4) {
  grid-column: 2 / span 2;
}

.clients__grid .clients__item:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 900px) {
  .clients__grid {
    grid-template-columns: 1fr;
  }

  .clients__grid .clients__item {
    grid-column: auto !important;
  }
}


/* ================= OUR EDGE ================= */

.edge {
  background-color: #ffffff;
}

.edge {
  scroll-margin-top: 96px;
}

.edge__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.edge__heading {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #0f172a;
}

.edge__intro {
  font-size: 1rem;
  color: #475569;
  max-width: 720px;
  margin-bottom: 48px;
}

/* GRID */
.edge__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* CARD BOXES */
.edge__item {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 28px;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle hover */
.edge__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.edge__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #0f172a;
}

.edge__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.edge__item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.edge__item.active {
  opacity: 1;
  transform: translateY(0);
}

.edge__item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(5, 13, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}




/* =====================================================
   APPROACH
===================================================== */

.approach__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.approach__intro {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.approach__text {
  margin-bottom: 18px;
}

/* =====================================================
   CTA
===================================================== */

.cta {
  background-color: var(--navy);
  color: #ffffff;
}

.cta__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta__text {
  color: #cbd5e1;
  margin-bottom: 36px;
}

.cta__contact i {
  color: var(--gold);
  margin-right: 8px;
  font-size: 1.1rem;
}

.cta__contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.cta__contact a:hover {
  color: var(--gold);
}

.cta__contact p {
  margin-bottom: 12px; /* spacing between contact lines */
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
  background-color: #020617;
  padding: 32px 0;
}

.footer__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer__text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer__subtext {
  font-size: 0.8rem;
  color: #64748b;
}

.footer__credit {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
}

.footer__credit a {
  color: #94a3b8;
  text-decoration: none;
}

.footer__credit a:hover {
  color: #e5e7eb;
}

/* ================= SCROLL ANIMATIONS ================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =====================================================
   RESPONSIVE
===================================================== */

/* ---------- Tablets & Small Laptops ---------- */
@media (max-width: 900px) {

  /* HERO */
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    height: 300px;
  }

  /* SERVICES */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* CLIENTS */
  .clients__grid {
    grid-template-columns: 1fr;
  }

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

  /* EDGE */
  .edge__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile Devices ---------- */
@media (max-width: 768px) {

  /* SECTION SPACING */
  section {
    padding: 72px 0;
  }

  /* HERO TEXT */
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  /* HERO BACKGROUND */
  .hero--bg {
    min-height: 90vh;
  }
}
