/* ═══════════════════════════════════════════════
   SIGSTICS — SHARED STYLESHEET
   ═══════════════════════════════════════════════ */

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

/* ── CSS VARIABLES ── */
:root {
  --bg-dark: #0f1923;
  --bg-light: #ffffff;
  --bg-alt: #f9f9fb;

  --text-dark: #0f1923;
  --text-dark-muted: #5a6b7d;

  --text-light: #ffffff;
  --text-light-muted: #8b9eb0;

  --accent-1: #1D165C;
  --accent-2: #3D2E9C;

  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);

  /* Aliases for inline styles */
  --text-main: var(--text-dark);
  --text-muted: var(--text-dark-muted);
  --border: var(--border-light);

  /* Radii — --r-xl was previously missing, causing silent border-radius:0 bugs */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;
}

html { scroll-behavior: smooth; }

/* ── ACCESSIBILITY: SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent-1); color: #fff;
  padding: 10px 20px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; text-decoration: none;
  z-index: 9999; transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 120px 0; position: relative; z-index: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.split-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }

.tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-dark);
  background: rgba(0,0,0,0.04); border: 1px solid var(--border-light);
  border-radius: var(--r-pill); padding: 6px 16px; margin-bottom: 24px;
}
#hero .tag {
  color: var(--text-light);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-dark);
}

.text-gradient {
  background: linear-gradient(135deg, #1a9b9b, #5f4cd6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}
.btn-primary { background: var(--accent-1); color: var(--text-light); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,22,92,0.3); background: var(--accent-2); }
.btn-outline { background: transparent; color: var(--text-light); border: 1px solid var(--border-dark); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ── FOCUS STYLES (keyboard navigation) ── */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.glass-card {
  background: var(--bg-light); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s ease;
}
.glass-card:hover {
  border-color: rgba(26,107,107,0.3);
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,107,107,0.08);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(4px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.fade-left { transform: translateX(-40px) scale(0.98); }
.reveal.fade-right { transform: translateX(40px) scale(0.98); }
.reveal.zoom-in { transform: scale(0.9) translateY(20px); }
.reveal.active { opacity: 1; transform: translate(0) scale(1); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: all 0.3s ease;
}
nav.scrolled { border-bottom: 1px solid var(--border-light); background: rgba(255, 255, 255, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
  height: 40px; width: auto; display: block; object-fit: contain;
}

.nav-menu-wrapper { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dark-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-1); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; z-index: 1001; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-dark); transition: 0.3s; }

/* ── FOOTER ── */
footer { background: var(--bg-dark); color: var(--text-light); border-top: 1px solid var(--border-dark); padding: 80px 0 40px; margin-top: 64px; }
.footer-logo-img { background: #ffffff; padding: 6px 12px; border-radius: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; margin-bottom: 64px; }
.footer-heading { font-size: 14px; font-weight: 600; color: var(--text-light); margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-light-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-light); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; color: var(--text-light-muted); font-size: 14px; }

.footer-legal-inline { display: flex; align-items: center; gap: 12px; }
.legal-btn { color: var(--text-light-muted); text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: var(--r-md); transition: all 0.3s ease; background: rgba(255,255,255,0.03); border: 1px solid var(--border-dark); }
.legal-btn:hover { color: #ffffff; background: var(--accent-1); border-color: var(--accent-1); }
.legal-sep { color: var(--border-dark); font-size: 18px; line-height: 1; }

.social-btn {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light-muted); font-size: 18px; text-decoration: none; transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--accent-1); color: #fff;
  border-color: var(--accent-1); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26,107,107,0.25);
}

/* ════════════════════════════════════════════════
   PAGE: INDEX
   ════════════════════════════════════════════════ */

/* Hero */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 72px;
  background: var(--bg-dark); color: var(--text-light);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 0%, rgba(26, 107, 107, 0.15), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(61, 46, 156, 0.1), transparent 50%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1200px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-title { font-size: clamp(28px, 4.5vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 8px; color: var(--text-light); }
.hero-subtitle { font-size: clamp(20px, 3.5vw, 40px); font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 24px; letter-spacing: -0.01em; }
.hero-desc { font-size: clamp(15px, 1.8vw, 18px); color: var(--text-light-muted); line-height: 1.6; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
/* Removed white-space:nowrap — was breaking hero text on small screens */
#hero .hero-desc { text-align: center; padding: 0 16px; }
.hero-btns { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; padding: 0 16px; }

/* Section headings */
.section-head.centered { text-align: center; }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; color: var(--text-dark); }
.section-desc { color: var(--text-dark-muted); max-width: 600px; margin: 0 auto; }

/* Bento Services */
.services-section-wrapper { position: relative; overflow: hidden; background: #fdfdfd; }
.services-glow {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(26,107,107,0.06) 0%, transparent 60%);
  z-index: 0; pointer-events: none;
}
.services-inner-content { position: relative; z-index: 1; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 320px; gap: 24px; margin-top: 64px; }

.service-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; border: 1px solid rgba(29,22,92,0.1); border-radius: var(--r-lg);
  background: #ffffff; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:nth-child(1) { grid-column: span 8; grid-row: span 1; }
.service-card:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.service-card:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.service-card:nth-child(4) { grid-column: span 8; grid-row: span 1; }

.service-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
  mix-blend-mode: normal; opacity: 1;
}
.service-overlay {
  position: absolute; inset: 0;
  /* Subtle bottom-to-top gradient so white title stays readable */
  background: linear-gradient(to top, rgba(5,10,20,0.52) 0%, rgba(5,10,20,0.18) 40%, transparent 70%);
  z-index: 1; transition: background 0.4s ease;
}
.service-content-main {
  position: relative; z-index: 2; padding: 40px; margin-top: auto;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.service-icon-modern {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 24px;
  background: var(--bg-light); border: 1px solid var(--border-light); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.icon-teal   { color: var(--accent-1); text-shadow: 0 0 10px rgba(29,22,92,0.2); }
.icon-amber  { color: var(--accent-2); text-shadow: 0 0 10px rgba(61,46,156,0.2); }
.icon-light  { color: var(--accent-1); text-shadow: 0 0 10px rgba(29,22,92,0.2); }

.service-title-minimal {
  font-size: 22px; font-weight: 600; color: #ffffff; line-height: 1.3; margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.service-card:nth-child(1) .service-title-minimal { font-size: 30px; }

.service-content-hover {
  position: absolute; inset: 0; z-index: 3; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.service-desc-hover { 
  color: var(--text-dark-muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; transition: color 0.3s;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.service-card:nth-child(1) .service-desc-hover, .service-card:nth-child(4) .service-desc-hover { font-size: 16px; max-width: 90%; }
.service-action-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-1); opacity: 0.7; transition: all 0.3s ease; }
.service-action-link .arrow { transition: transform 0.3s ease; }

.service-tags-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.s-tag { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,0.05); color: var(--text-dark); font-weight: 600; transition: color 0.3s; }

.service-card:hover { border-color: var(--accent-1); transform: translateY(-5px); box-shadow: 0 20px 48px rgba(29,22,92,0.15); }
.service-card:hover .service-bg { transform: scale(1.06); opacity: 0.1; }
.service-card:hover .service-overlay { background: rgba(29,22,92,0.95); }
.service-card:hover .service-content-main { transform: translateY(-40px); opacity: 0; }
.service-card:hover .service-content-hover { opacity: 1; transform: translateY(0); }
.service-card:hover .service-action-link { opacity: 1; color: #ffffff; }
.service-card:hover .service-action-link .arrow { transform: translateX(6px); }
.service-card:hover .service-desc-hover { color: rgba(255,255,255,0.85); }
.service-card:hover .s-tag { color: #ffffff; background: rgba(255,255,255,0.1); }

/* Progress Highlights */
.stats-grid { display: grid; gap: 24px; position: relative; margin-top: 48px; }

.stat-card {
  text-align: center; padding: 40px 24px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-dark);
  border-radius: var(--r-lg); transition: transform 0.4s ease, background 0.4s ease;
}
.stat-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.06); border-color: rgba(61,46,156,0.5); }
.stat-num { font-size: 48px; font-weight: 800; color: var(--text-light); line-height: 1; margin-bottom: 12px; }
.stat-num span { color: var(--accent-1); font-size: 36px; }
.stat-label { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light-muted); font-weight: 600; }

/* Why Choose Us Cards */
.why-card {
  background: #ffffff; border-radius: var(--r-lg); padding: 40px 32px;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--border-light); position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-1); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(29,22,92,0.08); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  background: rgba(29,22,92,0.03); border: 1px solid rgba(29,22,92,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: all 0.4s ease;
}
.why-card:hover .why-icon { transform: scale(1.1) rotate(5deg); background: var(--accent-1); color: white; border-color: var(--accent-1); box-shadow: 0 10px 20px rgba(29,22,92,0.2); }
.why-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.why-desc { font-size: 15px; color: var(--text-dark-muted); line-height: 1.6; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .service-card:nth-child(1), .service-card:nth-child(4) { grid-column: span 12; }
  .service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 6; }
  .split-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .nav-menu-wrapper {
    position: fixed; top: 72px; left: 0; width: 100%; background: var(--bg-light);
    flex-direction: column; padding: 32px 24px; gap: 24px;
    border-bottom: 1px solid var(--border-light);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-menu-wrapper.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 8px; }
  .nav-links a { font-size: 18px; padding: 12px 0; display: block; border-radius: var(--r-md); }
  .mobile-toggle { display: flex; }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }

  .section-padding { padding: 80px 0; }
}

@media (max-width: 768px) {
  .bento-grid { gap: 16px; grid-auto-rows: auto; }

  /* ── Mobile service card: image top, content below ── */
  .service-card {
    grid-column: span 12 !important;
    min-height: unset;
    padding-top: 200px;    /* space for the background image */
    background: #ffffff;
    border-radius: var(--r-lg);
  }
  /* Contain image to top 200px only */
  .service-bg   { bottom: auto; height: 200px; }
  .service-overlay {
    bottom: auto; height: 200px;
    background: linear-gradient(to top, rgba(5,10,20,0.55) 0%, transparent 65%) !important;
  }
  /* Title sits at bottom edge of image */
  .service-content-main {
    position: absolute;
    top: 144px;              /* near bottom of image area */
    left: 0; right: 0;
    padding: 0 20px 16px;
    margin-top: 0;
    transform: none !important;
    opacity: 1 !important;
    z-index: 4;
  }
  .service-icon-modern { display: none; }  /* hide icon in mobile card */
  .service-title-minimal {
    color: #ffffff !important;
    font-size: 17px !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7) !important;
    margin-bottom: 0;
  }
  .service-card:nth-child(1) .service-title-minimal { font-size: 19px !important; }

  /* Description & tags always visible below image */
  .service-content-hover {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    padding: 16px 20px 20px;
    z-index: 2;
  }
  .service-desc-hover {
    color: var(--text-dark-muted) !important;
    font-size: 14px !important;
    line-height: 1.6;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    margin-bottom: 12px;
  }
  .s-tag { background: rgba(29,22,92,0.06) !important; color: var(--accent-1) !important; }
  .service-tags-inline { margin-bottom: 12px; }
  .service-action-link { color: var(--accent-1) !important; opacity: 1 !important; font-size: 14px; }

  /* Kill hover effects entirely on touch devices */
  .service-card:hover {
    transform: none !important; border-color: var(--border-light) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
  }
  .service-card:hover .service-bg { transform: none !important; opacity: 1 !important; }
  .service-card:hover .service-content-main { transform: none !important; opacity: 1 !important; }
  .service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(5,10,20,0.55) 0%, transparent 65%) !important;
  }
  .service-card:hover .service-content-hover { opacity: 1 !important; transform: none !important; }
  .service-card:hover .service-desc-hover { color: var(--text-dark-muted) !important; }
  .service-card:hover .s-tag { color: var(--accent-1) !important; background: rgba(29,22,92,0.06) !important; }
  .service-card:hover .service-action-link { color: var(--accent-1) !important; }

  /* Rest of 768px layout fixes */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section-padding { padding: 64px 0; }
  .stats-grid.grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; padding: 0 24px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .section-padding { padding: 48px 0; }
  .section-title { font-size: clamp(24px, 6vw, 36px); }
  .footer-bottom { font-size: 12px; }
  .footer-legal-inline { flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .why-card { padding: 28px 20px; }
  .stat-card { padding: 24px 12px; }
}

/* ════════════════════════════════════════════════
   PAGE: SERVICES DETAIL
   ════════════════════════════════════════════════ */

#page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: var(--text-light); text-align: center;
  padding-top: 160px; padding-bottom: 80px;
}
.page-hero-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(29,22,92,0.15) 0%, transparent 60%); pointer-events: none; z-index: 0;
}

.detailed-services-wrapper { display: flex; flex-direction: column; gap: 60vh; padding-bottom: 20vh; }

.detailed-service-card {
  position: sticky;
  top: calc(90px + (var(--index) * 16px));
  height: calc(100vh - 120px);
  max-height: 640px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch;
  background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 -15px 40px rgba(0,0,0,0.06); transition: box-shadow 0.4s ease;
}
.detailed-service-card:hover { box-shadow: 0 -20px 50px rgba(29,22,92,0.12); }

.detailed-service-card.dark-theme { background: var(--bg-dark); border-color: rgba(255,255,255,0.1); }
.detailed-service-card.dark-theme h2 { color: #ffffff; }
.detailed-service-card.dark-theme p { color: rgba(255,255,255,0.7); }
.detailed-service-card.dark-theme .service-icon-modern { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.detailed-service-card.accent-theme { background: var(--accent-1); border-color: rgba(255,255,255,0.1); }
.detailed-service-card.accent-theme h2 { color: #ffffff; }
.detailed-service-card.accent-theme p { color: rgba(255,255,255,0.85); }
.detailed-service-card.accent-theme .service-icon-modern { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

@media (min-width: 901px) {
  .detailed-service-card.reverse .detailed-service-image { grid-column: 2; grid-row: 1; }
  .detailed-service-card.reverse .detailed-service-text { grid-column: 1; grid-row: 1; }
}

.detailed-service-image { height: 100%; background-size: cover; background-position: center; position: relative; }
.detailed-service-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; height: 100%; }
.detailed-service-text h2 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.detailed-service-text p { color: var(--text-dark-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.detailed-service-text p:last-child { margin-bottom: 0; }

.cta-section { background: var(--bg-alt); text-align: center; border-top: 1px solid var(--border-light); }
.cta-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--text-dark); letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-desc { font-size: 16px; color: var(--text-dark-muted); margin-bottom: 32px; max-width: 500px; margin-inline: auto; }

@media (max-width: 900px) {
  .detailed-services-wrapper { gap: 60vh; padding-bottom: 10vh; }
  .detailed-service-card {
    grid-template-columns: 1fr; grid-template-rows: 220px 1fr; gap: 0;
    top: calc(80px + (var(--index) * 10px));
    height: auto; min-height: calc(100vh - 100px); max-height: none;
  }
  .detailed-service-text { padding: 32px 24px; justify-content: flex-start; overflow-y: visible; }
  .detailed-service-text h2 { font-size: 22px; margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .detailed-services-wrapper { gap: 40vh; }
  .detailed-service-card { grid-template-rows: 180px 1fr; }
  .detailed-service-text { padding: 24px 16px; }
  .detailed-service-text h2 { font-size: 20px; }
  .detailed-service-text p { font-size: 14px; }
  .cta-title { font-size: clamp(22px, 6vw, 32px); }
}

/* ════════════════════════════════════════════════
   PAGE: ABOUT DETAIL
   ════════════════════════════════════════════════ */

.about-bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; position: relative; z-index: 10; margin-top: -80px; }

.about-card-modern {
  background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--r-xl);
  padding: 48px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: box-shadow 0.4s ease; transform-style: preserve-3d;
}
.about-card-modern:hover { box-shadow: 0 20px 50px rgba(29,22,92,0.12); }
.about-card-modern h2 { font-size: 32px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; letter-spacing: -0.02em; }
.about-card-modern p { font-size: 17px; line-height: 1.7; color: var(--text-dark-muted); margin: 0; }
.about-card-modern p strong { color: var(--text-dark); font-weight: 600; }

.about-card-modern.dark-theme { background: var(--bg-dark); border-color: transparent; }
.about-card-modern.accent-theme { background: var(--accent-1); border-color: transparent; }

.about-icon-badge {
  width: 64px; height: 64px; border-radius: 16px; background: rgba(29,22,92,0.05); border: 1px solid rgba(29,22,92,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 32px;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }

.btn-outline-accent {
  background: rgba(29,22,92,0.04); color: var(--accent-1); border: 1px solid rgba(29,22,92,0.15);
  font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.btn-outline-accent:hover {
  background: var(--accent-1); color: #ffffff; border-color: var(--accent-1);
  transform: translateY(-2px); box-shadow: 0 10px 20px rgba(29,22,92,0.15);
}

@media (max-width: 900px) {
  .span-8, .span-4 { grid-column: span 12; }
  .about-card-modern { padding: 32px 24px; }
  .about-card-modern h2 { font-size: 26px; }
  .about-actions { flex-direction: column; width: 100%; }
  .about-actions .btn, .about-actions .btn-outline-accent { width: 100%; text-align: center; }
  .about-bento-grid { margin-top: -40px; }
}

@media (max-width: 640px) {
  .about-bento-grid { margin-top: 0; gap: 16px; }
  .about-card-modern { padding: 24px 16px; }
  .about-card-modern h2 { font-size: 22px; }
  .about-card-modern p { font-size: 15px; }
}

/* ════════════════════════════════════════════════
   PAGE: CONTACT US
   ════════════════════════════════════════════════ */

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; position: relative; margin-top: -100px; z-index: 10; padding-bottom: 80px; }

.contact-info-card, .contact-form-card {
  background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--r-xl);
  padding: 48px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); height: 100%;
}

.contact-detail-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.contact-detail-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(29,22,92,0.05); color: var(--accent-1);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-detail-text h4 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.contact-detail-text p, .contact-detail-text a { font-size: 15px; color: var(--text-dark-muted); line-height: 1.6; text-decoration: none; transition: color 0.3s ease; }
.contact-detail-text a:hover { color: var(--accent-1); }

.contact-social-btn {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-light);
  color: var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
}
.contact-social-btn:hover { background: var(--accent-1); color: #ffffff; border-color: var(--accent-1); transform: translateY(-3px); }

.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; color: var(--text-dark); transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(29,22,92,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

.privacy-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; margin-bottom: 32px; }
.privacy-check input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent-1); flex-shrink: 0; cursor: pointer; }
.privacy-check label { font-size: 14px; color: var(--text-dark-muted); line-height: 1.6; cursor: pointer; }
.privacy-check label a { color: var(--accent-1); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-bottom 0.3s ease; }
.privacy-check label a:hover { border-bottom: 1px solid var(--accent-1); }

/* ── PHONE INPUT COMBO ── */
.phone-input-wrapper {
  display: flex; align-items: stretch;
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  width: 100%;
}
.phone-input-wrapper:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(29,22,92,0.1);
}
.phone-country-select {
  flex-shrink: 0; padding: 14px 10px 14px 14px;
  border: none; border-right: 1px solid var(--border-light);
  background: #f9f9fb; font-family: inherit; font-size: 14px;
  color: var(--text-dark); cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 28px; width: 100px; min-width: 90px; max-width: 110px;
  transition: background-color 0.2s ease;
}
.phone-country-select:hover { background-color: #f0f0f8; }
.phone-number-input {
  flex: 1; min-width: 0; padding: 14px 16px; border: none;
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  background: transparent; outline: none;
}
.phone-number-input::placeholder { color: #b0bec5; }

/* Validation states */
.phone-input-wrapper.has-error { border-color: #e53e3e; box-shadow: 0 0 0 4px rgba(229,62,62,0.1); }
.phone-input-wrapper.is-valid  { border-color: #38a169; box-shadow: 0 0 0 4px rgba(56,161,105,0.1); }
.form-control.has-error { border-color: #e53e3e !important; box-shadow: 0 0 0 4px rgba(229,62,62,0.1) !important; }
.form-control.is-valid  { border-color: #38a169 !important; box-shadow: 0 0 0 4px rgba(56,161,105,0.1) !important; }

.field-error {
  display: block; font-size: 12px; color: #e53e3e;
  margin-top: 6px; font-weight: 500;
  min-height: 0; transition: opacity 0.2s ease;
}
.field-error:empty { margin-top: 0; }
.field-hint {
  display: block; font-size: 12px; color: var(--text-dark-muted);
  margin-top: 6px; transition: opacity 0.2s ease;
}

/* Privacy checkbox error state */
.privacy-check.has-error label { color: #e53e3e; }
.privacy-check.has-error input { outline: 2px solid #e53e3e; outline-offset: 2px; border-radius: 3px; }
.privacy-check-error {
  display: block; font-size: 12px; color: #e53e3e;
  font-weight: 500; margin-top: 8px; margin-left: 34px;
}

/* ── SUCCESS MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15, 25, 35, 0.7); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.modal-open {
  opacity: 1; pointer-events: auto;
}
.modal-box {
  background: #ffffff; border-radius: 24px;
  padding: 48px 40px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.modal-overlay.modal-open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon-wrap {
  width: 80px; height: 80px; margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29,22,92,0.08), rgba(61,46,156,0.12));
  display: flex; align-items: center; justify-content: center;
}
.modal-checkmark {
  width: 52px; height: 52px; color: var(--accent-1);
}
.modal-checkmark-circle {
  stroke-dasharray: 157; stroke-dashoffset: 157;
  animation: none;
}
.modal-checkmark-tick {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: none;
}
.modal-overlay.modal-open .modal-checkmark-circle {
  animation: drawCircle 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-overlay.modal-open .modal-checkmark-tick {
  animation: drawTick 0.35s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}
.modal-title {
  font-size: 26px; font-weight: 700; color: var(--text-dark);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.modal-body {
  font-size: 15px; color: var(--text-dark-muted); line-height: 1.65;
  margin-bottom: 36px;
}
.modal-ok-btn {
  width: 100%; padding: 16px; font-size: 16px;
  border-radius: var(--r-md); cursor: pointer;
  touch-action: manipulation;
}

/* ── SUBMIT BUTTON SPINNER ── */
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
#submitBtn.btn-loading {
  pointer-events: none;
  opacity: 0.82;
  cursor: not-allowed;
}
#submitBtn.btn-loading .btn-spinner { display: block; }
#submitBtn.btn-loading .btn-label   { opacity: 0.9; }

/* ── CONTACT RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-card, .contact-form-card { padding: 32px 24px; height: auto; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info-card, .contact-form-card { padding: 24px 16px; }
  .contact-layout { margin-top: -60px; padding-bottom: 48px; }
  .modal-box { padding: 36px 24px; border-radius: 20px; }
  .modal-title { font-size: 22px; }
  .modal-body { font-size: 14px; margin-bottom: 28px; }
  .modal-ok-btn { padding: 14px; font-size: 15px; }
}

@media (max-width: 480px) {
  /* Stack phone wrapper so country select goes full-width then number below */
  .phone-input-wrapper { flex-direction: column; }
  .phone-country-select {
    width: 100%; max-width: none; border-right: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0; padding: 12px 36px 12px 14px;
  }
  .phone-number-input { padding: 12px 14px; }
  .form-control { padding: 12px 14px; font-size: 16px; }  /* 16px prevents iOS zoom */
  .btn-primary { font-size: 16px; padding: 14px; }
  .contact-form-card h2 { font-size: 22px !important; }
  .page-hero-glow { display: none; } /* Perf on low-end phones */
}

/* ════════════════════════════════════════════════
   PAGE: PRIVACY POLICY
   ════════════════════════════════════════════════ */

.policy-layout { display: flex; gap: 64px; align-items: flex-start; }
.policy-nav {
  position: sticky; top: 100px; flex-shrink: 0; width: 280px;
  background: #ffffff; border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 32px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.policy-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.policy-nav a { 
  font-size: 14px; font-weight: 500; color: var(--text-dark-muted); text-decoration: none; 
  display: block; padding: 10px 14px; border-radius: 8px; transition: all 0.3s ease;
}
.policy-nav a:hover, .policy-nav a.active {
  background: rgba(29,22,92,0.06); color: var(--accent-1); font-weight: 600;
}
.policy-content { flex-grow: 1; min-width: 0; background: #ffffff; padding: 48px; border-radius: var(--r-xl); border: 1px solid var(--border-light); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.policy-section { scroll-margin-top: 100px; margin-bottom: 48px; }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 12px; }
.policy-section p, .policy-section li { font-size: 16px; line-height: 1.7; color: var(--text-dark-muted); margin-bottom: 16px; }
.policy-section p strong, .policy-section li strong { color: var(--text-dark); }
.policy-section ul { padding-left: 24px; margin-bottom: 16px; }
.policy-section li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .policy-layout { flex-direction: column; gap: 32px; }
  .policy-nav { position: relative; top: 0; width: 100%; border: none; padding: 0; background: transparent; box-shadow: none; }
  .policy-nav ul { flex-direction: row; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; gap: 6px; }
  .policy-nav ul::-webkit-scrollbar { display: none; }
  .policy-nav a { white-space: nowrap; border: 1px solid var(--border-light); background: #ffffff; }
  .policy-content { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .policy-content { padding: 24px 16px; }
  .policy-section h2 { font-size: 20px; }
  .policy-section p, .policy-section li { font-size: 15px; }
}
