/* =====================================================
   SHIPNOW — Shared Design System
   Colors: Navy #002F6C | Orange #FF6B00 | White #FFFFFF
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy: #002F6C;
  --navy-light: #003d8a;
  --navy-dark: #001d40;
  --orange: #FF6B00;
  --orange-dark: #e05a00;
  --white: #ffffff;
  --light: #f5f7fa;
  --grey: #f2f2f2;
  --text-muted: #4A4A4A;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 47, 108, 0.10);
  --shadow-hover: 0 8px 40px rgba(0, 47, 108, 0.18);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

header.scrolled {
  background: rgba(0, 47, 108, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* nav-logo removed from header — logo lives only as bottom-right watermark */

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* ── Hamburger button ── */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  line-height: 1;
  z-index: 90; /* always below the body-level overlay */
}

.menu-toggle .menu-icon {
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  display: block;
}

/* Blog page: hamburger is navy */
.blog-header .menu-toggle .menu-icon {
  color: var(--navy);
}

/* Hide hamburger while overlay is open */
body.menu-open .menu-toggle {
  opacity: 0;
  pointer-events: none;
}

/* ── Body-level mobile overlay (injected by Menu.js) ──
   Lives directly on <body> so NO header stacking context
   can ever trap it.                                      */
#sn-mobile-overlay {
  display: flex;          /* always in DOM, but off-screen */
  position: fixed;
  inset: 0;               /* top:0 right:0 bottom:0 left:0 */
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 9999;          /* nothing beats this */
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

#sn-mobile-overlay.open {
  transform: translateX(0);
}

/* Nav links inside overlay */
#sn-mobile-overlay a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: color 0.2s, background 0.2s;
  display: block;
}

#sn-mobile-overlay a:hover,
#sn-mobile-overlay a:focus {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Close (×) button */
#sn-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

#sn-close-btn:hover,
#sn-close-btn:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--orange);
  outline: none;
}

/* Old .mobile-menu HTML (still in markup but now ignored) */
.mobile-menu {
  display: none !important;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('collage.jpeg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 47, 108, 0.82) 0%,
    rgba(0, 47, 108, 0.65) 60%,
    rgba(0, 20, 60, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem;
  animation: heroFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: heroFadeUp 0.9s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: heroFadeUp 0.9s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-content h2 span {
  color: var(--orange);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  opacity: 0.88;
  margin-bottom: 0.75rem;
  animation: heroFadeUp 0.9s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-content p:last-of-type {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-logo {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  z-index: 2;
  opacity: 0.9;
  animation: heroFadeUp 0.9s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-logo img {
  height: 68px;
  width: auto;
  /* No filter — display the logo in its natural colours */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.scroll-hint svg {
  color: var(--white);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,47,108,0.2);
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,47,108,0.3);
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */
section {
  padding: 5rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   WELCOME / INTRO
   ===================================================== */
.welcome {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--white);
}

.welcome-inner {
  max-width: 720px;
  margin: 0 auto;
}

.welcome .section-subtitle {
  font-size: 1.1rem;
  margin: 0 auto;
}

/* =====================================================
   SERVICE CARDS (Home Preview)
   ===================================================== */
.services-preview {
  background: var(--light);
  text-align: center;
  padding: 5rem 2rem;
}

.services-preview .section-title {
  margin-bottom: 0.5rem;
}

.services-preview > .section-subtitle {
  margin-bottom: 3rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid rgba(0,47,108,0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}

.service-card svg {
  width: 36px;
  height: 36px;
  color: var(--orange);
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}

.service-card:hover svg {
  color: var(--orange);
}

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.75rem;
  transition: color var(--transition);
}

.service-card:hover h4 {
  color: var(--white);
}

/* =====================================================
   PARTNER HIGHLIGHT
   ===================================================== */
.partner-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.partner-highlight::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,107,0,0.08);
  pointer-events: none;
}

.partner-highlight::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.partner-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.partner-highlight .section-label {
  color: var(--orange);
}

.partner-highlight h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.partner-highlight p {
  opacity: 0.85;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* =====================================================
   STATS STRIP
   ===================================================== */
.stats-strip {
  background: var(--orange);
  padding: 3rem 2rem;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 3rem 2.5rem 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.footer-nav p {
  margin: 0;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--orange);
  background: rgba(255,255,255,0.05);
}

.footer-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-icons a {
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
}

.footer-icons a svg {
  width: 17px;
  height: 17px;
}

.footer-icons a:hover {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
  max-width: 1000px;
  margin: 0 auto;
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 47, 108, 0.8) 0%,
    rgba(0, 30, 80, 0.88) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: heroFadeUp 0.8s ease both;
}

.page-hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  margin-top: 4rem;
}

.page-hero-content p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
}

.page-hero .hero-logo {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 2;
}

.page-hero .hero-logo img {
  height: 62px;
  width: auto;
  /* Natural logo colours, just a subtle shadow for legibility on dark overlays */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  opacity: 0.92;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  header {
    padding: 0 1.25rem;
    height: 64px;
    /* header z-index is 100 — the body overlay is 9999 */
  }

  /* header has no logo on non-blog pages */

  /* Hide ALL desktop navs — overlay is built by JS */
  header nav {
    display: none !important;
  }

  /* Show the hamburger on mobile */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-navy {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-logo {
    bottom: 1rem;
    right: 1rem;
  }

  .hero-logo img {
    height: 54px;
  }

  .service-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-icons {
    justify-content: flex-start;
  }

  .footer-nav {
    gap: 0.25rem;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero-content h2 {
    margin-top: 3.5rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  #sn-mobile-overlay a {
    font-size: 1.5rem;
  }
}

/* =====================================================
   CLICKABLE CARD LINK WRAPPER
   ===================================================== */
a.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius-lg);
}

a.service-card-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
