/* =========================================================
   STARWEB PROHOST — SERVICES PAGE
   Isolated CSS — Using Base-Lite Tokens (Scoped)
========================================================= */

/* ----------------------
   TOKENS — Base-Lite
----------------------- */
:root {
  --white-soft:#f9fafb;
  --blue:#0a1a33;
  --blue-600:#071327;
  --ink:#0a1a33;
  --ink-2:#12243b;
  --muted:#c5cbd3;

  --brand-gold:#FFD166;

  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:20px;

  --shadow-soft:0 8px 24px rgba(10,26,51,.08);
  --shadow-elev:0 10px 30px rgba(10,26,51,.16);

  --content-max:1280px;
  --section-max:1400px;
}

/* ----------------------
   RESET — Local Only
----------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ----------------------
   BASE TYPE (Page Only)
----------------------- */
html {
  font-family: 'Poppins', sans-serif;
  color: #111;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body {
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* =========================================================
   SERVICES GRID
========================================================= */
.services-grid {
  padding: 90px 20px;
}

.services-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.service-card {
  background: var(--white-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elev);
}

.service-icon {
  font-size: 2.6rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.service-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--blue);
}

.service-card p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

/* =========================================================
   SERVICE DETAIL
========================================================= */
.service-detail-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 0 10px;
}

.service-slide-header {
  margin-bottom: 22px;
}

.service-detail-eyebrow {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.service-detail-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.service-detail-lead {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

/* =========================================================
   SLIDE CARD
========================================================= */
.slide-card {
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,26,51,.08);
  box-shadow: 0 10px 28px rgba(10,26,51,.08);
}

.service-detail-main {
  padding-top: 10px;
}

.service-detail-main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue);
}

.service-detail-main p {
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #444;
}

.service-detail-list {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0 22px;
  color: #333;
}

.service-detail-list li {
  margin-bottom: 8px;
}

/* =========================================================
   RIGHT ASIDE
========================================================= */
.service-detail-aside {
  background: var(--white-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-soft);
}

.service-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.service-detail-aside h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-detail-aside img {
  width: 100%;
  aspect-ratio: 4/3;
  margin: 16px 0;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* =========================================================
   CAROUSEL
========================================================= */
.service-carousel {
  position: relative;
  overflow: visible;
  margin: 50px auto 70px;
  padding: 40px 30px;
  max-width: 1180px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(10,26,51,.10);
  box-shadow: 0 10px 28px rgba(10,26,51,.08);
}

.carousel-track {
  width: 100%;
  position: relative;
  transition: height .35s ease;
}

.carousel-slide {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity .45s ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* ARROWS */
.carousel-arrow {
  position: absolute;
  top: 250px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid rgba(10,26,51,.45);
  background: transparent;
  font-size: 24px;
  color: rgba(10,26,51,.85);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.carousel-arrow.left { left: -70px; }
.carousel-arrow.right { right: -70px; }

.carousel-arrow:hover {
  background: var(--blue);
  color: #fff;
  border-color: rgba(10,26,51,.9);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

/* =========================================================
   SLIDE 2 — GRAPH
========================================================= */
.service-slide-graph {
  text-align: center;
  padding: 10px 10px 0;
  max-width: 900px;
  margin: 0 auto;
}

.service-slide-graph h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--blue);
}

.graph-text-top,
.graph-text-bottom {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
}

.graph-image {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 22px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(10,26,51,.12);
}

/* =========================================================
   WHY SECTION
========================================================= */
.why-section {
  background: var(--blue);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.why-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 40px;
  color: var(--white-soft);
  font-weight: 800;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.why-card {
  background: rgba(255,255,255,0.08);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  color: var(--white-soft);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

/* =========================================================
   PROCESS
========================================================= */
.services-process {
  padding: 100px 20px;
  text-align: center;
}

.services-process h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 40px;
  color: var(--blue);
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step {
  background: var(--white-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.05);
}

.process-step h3 {
  margin-bottom: 10px;
  color: var(--blue);
}

@media (max-width: 700px) {
  .services-process {
    padding: 70px 16px;
    text-align: center;
  }

  .services-process h2 {
    margin-bottom: 28px;
    font-size: 1.9rem;
  }

  .process-grid {
    grid-template-columns: 1fr; /* one column */
    gap: 22px;
    max-width: 420px;           /* keeps grid centered nicely */
    margin: 0 auto;
  }

  .process-step {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .process-step h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.3;
  }
}


/* =========================================================
   CTA — Clean, Unified, Matches Homepage Style (Global-ish)
========================================================= */
.page-cta {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  background: url('/images/cta-01.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* Unified hero overlay (matches hero.css) */
.page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10,26,51,0.25) 0%,
      rgba(10,26,51,0.55) 40%,
      rgba(10,26,51,0.88) 100%
  );
  z-index: 0;
}

/* Inner wrapper for consistent width */
.page-cta .cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Typography cleanup */
.page-cta h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--white-soft);
  margin-bottom: 18px;
}

.page-cta p {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--white-soft);
  opacity: 0.92;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Scoped CTA button tweak */
.page-cta .btn-primary {
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--blue);
  color: #fff;
  border-radius: 40px;
  padding: 14px 32px;
  box-shadow: 0 10px 24px rgba(10,26,51,.30);
  transition: background .18s ease, transform .18s ease;
}

.page-cta .btn-primary:hover {
  background: #0c1e3a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .page-cta {
    padding: 72px 16px;              /* less vertical padding, tighter sides */
    background-position: center top; /* pulls the room up a bit */
  }

  .page-cta .cta-inner {
    max-width: 440px;                /* keeps text column nice and narrow */
  }

  .page-cta h2 {
    font-size: clamp(1.9rem, 6vw, 2.3rem);
    margin-bottom: 12px;             /* slightly tighter */
  }

  .page-cta p {
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 auto 22px;             /* less gap under paragraph */
  }

  .page-cta .btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 999px;
  }
}
/* =========================================================
   BUTTON — Scoped
========================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 24px rgba(10,26,51,.30);
  transition: background .18s ease, transform .18s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0c1e3a;
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .carousel-arrow {
    top: 190px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 20px;
  }
  .carousel-arrow.left { left: -16px; }
  .carousel-arrow.right { right: -16px; }
}

@media (max-width: 640px) {
  .service-carousel {
    padding: 28px 18px;
  }
}
/* =========================================================
   MOBILE FIXES — Slide 1 + Slide 2 (NO fullscreen changes)
   ========================================================= */
@media (max-width: 768px) {

  /* Shrink overall carousel wrapper */
  .service-carousel {
    padding: 20px 14px;
    margin: 20px auto 40px;
    max-width: 80%;
  }

  /* Slide card scaling */
  .carousel-slide {
    transform: scale(0.92);
    transform-origin: top center;
  }

  /* HIDE RIGHT COLUMN */
  .service-detail-aside {
    display: none !important;
  }

  /* Make the main column full-width */
  .service-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* Tighten left-column spacing */
  .service-detail-main {
    padding-top: 0;
  }

  .service-slide-header {
    margin-bottom: 14px;
  }

  .service-detail-title {
    font-size: 1.55rem !important;
  }

  .service-detail-lead {
    font-size: .95rem;
    line-height: 1.55;
  }

  .service-detail-list li {
    font-size: .9rem;
    line-height: 1.45;
  }

  /* Slide 2 scaling */
  .service-slide-graph {
    transform: scale(0.92);
    transform-origin: top center;
    padding: 0 4px;
  }

  .graph-image {
    border-radius: 12px;
  }
 .carousel-arrow.left {
    left: -35px;    /* move closer to card (smaller = more inside) */
  }

  .carousel-arrow.right {
    right: -35px;   /* move closer to card (smaller = more inside) */
  }
}

