/* Ground Work Flow — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --navy:   #0F172A;
  --blue:   #2563EB;
  --teal:   #14B8A6;
  --grey:   #F8FAFC;
  --dark:   #111827;
  --muted:  #6B7280;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(15,23,42,.08);
  --shadow-md: 0 8px 32px rgba(15,23,42,.12);
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.7rem,3.5vw,2.4rem); }
h3 { font-size: clamp(1.1rem,2vw,1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { text-wrap: pretty; }

/* ── Layout ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-alt { background: var(--grey); }
.section-dark { background: var(--navy); color: #fff; }
.section-teal { background: #0D9488; color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600;
  padding: 14px 28px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--grey); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: #0D9488; border-color: #0D9488; transform: translateY(-1px); }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: #fff; letter-spacing: -.02em; flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: .875rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.mobile-menu {
  display: none; background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: rgba(255,255,255,.8); font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .15s;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn { display: inline-flex; margin-top: 16px; }

/* ── Hero ── */
.hero {
  background: var(--navy); color: #fff;
  padding: 100px 0 96px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -5%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  color: #93C5FD; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--teal); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 40px; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px;
}
.hero-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ── Section Headers ── */
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-dark .section-label { color: var(--teal); }
.section-teal .section-label { color: rgba(255,255,255,.7); }
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--muted); max-width: 620px; }
.section-dark .section-header p { color: rgba(255,255,255,.65); }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: #EFF6FF; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--blue); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Service Cards ── */
.service-card { border-left: 3px solid var(--blue); }
.service-card.teal { border-left-color: var(--teal); }
.service-card.teal .card-icon { background: #F0FDFA; }
.service-card.teal .card-icon svg { color: var(--teal); }

/* ── Why Us ── */
.why-point { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.why-point:last-child { border-bottom: none; }
.why-num {
  width: 40px; height: 40px; border-radius: 8px; background: #EFF6FF;
  color: var(--blue); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-point h3 { margin-bottom: 6px; }
.why-point p { color: var(--muted); font-size: .95rem; }

/* ── Process ── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal)); opacity: .3;
}
.process-step { text-align: center; padding: 0 16px; position: relative; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  border: 3px solid var(--blue); position: relative; z-index: 1;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px;
  background: #fff; transition: box-shadow .2s, transform .2s; position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--blue); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 16px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-price { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--dark); margin: 16px 0 4px; }
.pricing-price span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.pricing-best { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: #374151; padding: 6px 0;
}
.pricing-features li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: #EFF6FF; border: 1.5px solid var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232563EB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
  flex-shrink: 0; margin-top: 2px;
}
.pricing-note { font-size: .8rem; color: var(--muted); margin-top: 48px; padding: 20px; background: var(--grey); border-radius: 8px; }
.pricing-note p + p { margin-top: 8px; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem;
  font-weight: 600; color: var(--dark);
}
.faq-q:hover { color: var(--blue); }
.faq-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--grey); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .2s; }
.faq-icon svg { width: 14px; height: 14px; transition: transform .25s; }
.faq-item.open .faq-icon { background: var(--blue); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); stroke: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 0 24px; color: var(--muted); line-height: 1.7; }

/* ── CTA Banner ── */
.cta-banner { text-align: center; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: #060E1F; color: rgba(255,255,255,.6);
  padding: 72px 0 32px; font-size: .9rem;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { font-size: 1.3rem; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.55); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .83rem; }

/* ── Inner Pages ── */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0; }
.page-hero .section-label { color: var(--teal); }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 620px; }

/* ── Checklist ── */
.checklist { margin: 20px 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: .95rem; color: #374151;
}
.checklist li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: #EFF6FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232563EB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1.5px solid #BFDBFE;
}

/* ── Contact Form ── */
.contact-form { max-width: 680px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; color: var(--dark);
  transition: border-color .2s, box-shadow .2s; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ── Blog ── */
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, #1E3A8A 0%, #0D9488 100%); display: flex; align-items: center; justify-content: center; }
.blog-thumb span { font-family: 'Space Grotesk', sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.blog-body { padding: 24px; }
.blog-tag { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.blog-card h3 { font-size: 1.05rem; margin: 10px 0 10px; line-height: 1.4; }
.blog-card p { font-size: .9rem; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 72px 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  /* Collapse inline-styled 2-col and 3-col grids on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Safety net — prevent any overflow from causing horizontal scroll on mobile.
     Uses overflow-x: clip (modern, iOS-Safari friendly) with hidden fallback,
     and max-width: 100vw to hard-cap visible width at the device viewport. */
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    position: relative;
  }
  body { width: 100%; }
  img, video, iframe, svg { max-width: 100%; height: auto; }

  /* Force any container narrower than the viewport — common iOS scroll causes */
  .container, .nav, .nav-inner, section, .page-hero, .hero-inner {
    max-width: 100vw;
    box-sizing: border-box;
  }
}
