/* ==========================================================================
   GlobeSync BPO LLP — Global stylesheet
   Design tokens live in :root — edit here to retheme the whole site.
   ========================================================================== */

:root {
  /* Colors — Royal Blue + Gold theme */
  --primary: #1e3a8a;       /* royal blue: header, hero, headings, icons */
  --primary-dark: #172554;  /* footer, hover states */
  --primary-light: #dbeafe; /* icon backgrounds, soft highlights */
  --accent: #f59e0b;        /* gold: main CTA buttons, stat numbers, underlines */
  --accent-dark: #d97706;   /* gold button hover */
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;       /* alternating sections */
  --border: #e5e7eb;
  --error: #dc2626;
  --whatsapp: #25d366;      /* stays green regardless of theme */

  /* Type */
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px color-mix(in srgb, var(--primary) 8%, transparent);
  --shadow: 0 12px 32px color-mix(in srgb, var(--primary) 12%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, var(--primary) 18%, transparent);
  --container: 1180px;
  --header-h: 78px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--bg);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--primary);
  position: relative;
  padding: 6px 0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-smooth);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/web/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: hero-bg-zoom 18s var(--ease-smooth) forwards;
}

@keyframes hero-bg-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--primary-light) 35%, transparent), transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 96px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-inner > * {
  animation: fade-up-in 0.8s var(--ease-smooth) both;
}

.hero-inner > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-inner > *:nth-child(3) {
  animation-delay: 0.24s;
}

.hero h1 {
  color: var(--bg);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero .subline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: color-mix(in srgb, var(--bg) 85%, transparent);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark) 70%);
  color: var(--bg);
  padding: 76px 0 64px;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 50%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--bg);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Stats strip ---- */
.stats {
  background: var(--primary);
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 48px 0;
  max-width: 560px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ---- Icon badge ---- */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 20px;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.icon-badge.orange {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  color: var(--accent-dark);
}

/* ---- Service cards (home) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 -4px 0 0 var(--accent), var(--shadow-lg);
  border-color: transparent;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

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

@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---- Why choose us ---- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.reason .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.reason .icon-badge svg {
  width: 24px;
  height: 24px;
}

.reason h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.reason p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: var(--primary-dark);
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
}

.cta-band-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.cta-band h2 {
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: color-mix(in srgb, var(--primary-dark) 85%, transparent);
  margin-bottom: 28px;
}

/* Buttons inside the gold CTA band stay blue so they read against the gold */
.cta-band .btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 32%, transparent);
}

.cta-band .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* ---- Service detail sections ---- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

.service-block + .service-block {
  border-top: 1px solid var(--border);
}

.service-block.reverse .service-media {
  order: 2;
}

.service-media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s var(--ease-smooth);
}

.service-block:hover .service-media img {
  transform: scale(1.06);
}

.service-copy h2 {
  font-size: 1.7rem;
}

.benefit-list {
  margin: 22px 0 26px;
  display: grid;
  gap: 12px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--muted);
}

.benefit-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }

  .service-block.reverse .service-media {
    order: 0;
  }
}

/* ---- Flexible engagement band ---- */
.flex-band {
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Eyebrow badge sits on the dark blue band here, so it needs its own
   light-on-dark treatment instead of the default light-bg version. */
.flex-band .eyebrow {
  background: color-mix(in srgb, var(--bg) 15%, transparent);
  color: var(--accent);
}

.flex-band h2 {
  color: var(--bg);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.flex-band p {
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  margin-bottom: 0;
}

.flex-points {
  display: grid;
  gap: 14px;
}

.flex-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--bg) 92%, transparent);
}

.flex-points svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .flex-band {
    grid-template-columns: 1fr;
    padding: 40px 26px;
  }
}

/* ---- Contact page ---- */
.about-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-summary img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-summary .stat-mini {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-summary .stat-mini div strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.3rem;
}

.about-summary .stat-mini div span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .icon-badge {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.info-row .icon-badge svg {
  width: 22px;
  height: 22px;
}

.info-row h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-row p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .about-summary,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-dark);
  color: var(--border);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 12%, transparent);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand img {
  height: 38px;
}

.footer-brand p {
  color: color-mix(in srgb, var(--border) 62%, transparent);
  font-size: 0.92rem;
  max-width: 320px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-row a:hover svg {
  color: var(--primary-dark);
}

.social-row svg {
  width: 18px;
  height: 18px;
  color: var(--bg);
  transition: color 0.2s ease;
}

.footer-col h4 {
  color: var(--bg);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.94rem;
  color: color-mix(in srgb, var(--border) 68%, transparent);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col .info-row {
  margin-bottom: 16px;
  gap: 10px;
}

.footer-col .info-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 3px;
}

.footer-col .info-row span {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--border) 68%, transparent);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--border) 50%, transparent);
}

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

/* ---- WhatsApp float (stays brand green regardless of site theme) ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--whatsapp) 45%, transparent);
  z-index: 90;
  transition: transform 0.3s var(--ease-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: var(--bg);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-inner > *,
  .hero::before {
    animation: none;
  }

  .service-media img {
    transition: none;
  }
}
