/* =============================================
   Turbo Resourcing — Navy + Orange Theme
   ============================================= */

:root {
  --navy: #0B1220;
  --navy-mid: #151F33;
  --navy-light: #1E2D47;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --sky: #38BDF8;
  --white: #FFFFFF;
  --grey-100: #F1F5F9;
  --grey-200: #E2E8F0;
  --grey-400: #94A3B8;
  --grey-600: #64748B;
  --grey-800: #334155;
  --text: #475569;
  --text-light: rgba(255, 255, 255, 0.78);

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --header-h: 72px;
  --hero-h: calc(100dvh - var(--header-h));
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 40px rgba(11, 18, 32, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}

.logo__mark {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}

.logo__mark::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  border-radius: 2px;
}

.logo__tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.logo--footer .logo__mark {
  font-size: 1.05rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
}

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--dark {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn--dark:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

/* ---- Hero (fixed height — no jump on slide change) ---- */

.hero {
  position: relative;
  margin-top: var(--header-h);
  height: var(--hero-h);
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  background: var(--navy);
}

.hero__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero__slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero__content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__eyebrow {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero__title {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero__text {
  position: relative;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__media {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 35%);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease;
}

.hero__slide--active .hero__media img {
  transform: scale(1.06);
}

.hero__dots {
  position: absolute;
  bottom: 1.75rem;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero__dot {
  width: 32px;
  height: 4px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero__dot--active {
  background: var(--accent);
  width: 48px;
}

/* ---- Carousel Buttons ---- */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 18, 32, 0.55);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }

.carousel-btn--subtle {
  position: static;
  transform: none;
  background: var(--white);
  border-color: var(--grey-200);
  color: var(--navy);
}

.carousel-btn--subtle:hover {
  transform: scale(1.06);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.carousel-btn--sm {
  width: 40px;
  height: 40px;
}

/* ---- Sections ---- */

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section--white { background: var(--white); }
.section--grey { background: var(--grey-100); }

.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.section--contact {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.section--contact::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section--dark .section__label,
.section--contact .section__label {
  color: var(--sky);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section--dark .section__title,
.section--contact .section__title {
  color: var(--white);
}

.section__subtitle {
  font-size: 1.02rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.section--dark .section__subtitle,
.section--contact .section__subtitle {
  color: var(--text-light);
}

/* ---- Services Grid ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.65;
}

/* ---- About Carousel ---- */

.about-carousel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  min-height: 140px;
}

.about-slide {
  display: none;
}

.about-slide--active {
  display: block;
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-slide__text {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-light);
  line-height: 1.85;
}

.about-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---- Reliable / Stats ---- */

.reliable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.reliable-text p {
  font-size: 1.02rem;
  color: var(--grey-600);
  line-height: 1.85;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stat__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.stat__value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.stat__track {
  height: 6px;
  background: var(--grey-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 3px solid var(--accent);
}

.team-card__avatar svg {
  width: 55%;
  height: 55%;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card__role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Contact Form ---- */

.contact-form {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.form-status.error {
  color: #FCA5A5;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .logo__mark {
  color: var(--white);
}

.footer .logo__tag {
  color: rgba(255, 255, 255, 0.4);
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--accent);
}

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    max-height: none;
    height: 640px;
  }

  .hero__slide {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }

  .hero__media {
    order: 0;
  }

  .hero__media::after {
    background: linear-gradient(180deg, transparent 40%, var(--navy) 100%);
  }

  .hero__content {
    order: 1;
    padding: 1.75rem 1.5rem 2.5rem;
  }

  .hero__content::before {
    width: 100%;
  }

  .hero__text {
    -webkit-line-clamp: 4;
    margin-bottom: 1.25rem;
  }

  .hero__dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
  }

  .reliable-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--navy);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn--prev { left: 0.5rem; }
  .carousel-btn--next { right: 0.5rem; }

  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__slide {
    transition: none;
  }
}
