/* ============================================================
   Greenfield Tech — design tokens
   (edit these to change the whole site's palette in one place)
   ============================================================ */
:root {
  --primary: #0B3D91;        /* deep blue */
  --primary-darker: #06132B; /* near-black navy, hero gradient top */
  --primary-dark: #072C5E;   /* mid-dark blue, hero gradient / featured card */
  --accent: #2F80ED;         /* fresh lighter blue */
  --cta: #F59E0B;            /* warm amber — button accent */
  --cta-dark: #D98609;       /* amber hover state */
  --text: #0F172A;           /* near black */
  --text-muted: #5B6572;
  --bg: #FAFBFD;             /* clean off-white page background */
  --bg-alt: #EAF2FF;         /* very light blue tint, alternating sections */
  --white: #FFFFFF;
  --border: #DCE6F5;
  --shadow: 0 20px 45px -20px rgba(11, 61, 145, 0.25);
  --shadow-soft: 0 10px 30px -15px rgba(15, 23, 42, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { line-height: 1.7; color: var(--text-muted); margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 760px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }

.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 110px 0; } }

.text-accent { color: var(--accent); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cta);
  color: var(--text);
  box-shadow: 0 10px 25px -8px rgba(245, 158, 11, .6);
}
.btn-primary:hover { background: var(--cta-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: .78rem; gap: 10px; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .18);
  font-size: .8rem;
  line-height: 1;
}
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.centered { justify-content: center; margin-top: 40px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  border-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  transition: color .25s ease;
}
.logo-word span { color: var(--accent); }
.scrolled .logo-word { color: var(--primary); }
.scrolled .logo-word span { color: var(--cta-dark); }

.main-nav { display: none; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .25s ease;
}
.main-nav a:not(.btn):hover { color: #fff; }
.scrolled .main-nav a:not(.btn) { color: var(--text-muted); }
.scrolled .main-nav a:not(.btn):hover { color: var(--primary); }
.main-nav.open a:not(.btn) { color: var(--text) !important; }
.main-nav.open a:not(.btn):hover { color: var(--primary) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background-color .25s ease; }
.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a.btn { align-self: flex-start; }
}

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); }
  50% { box-shadow: 0 10px 25px -4px rgba(37, 211, 102, .95), 0 0 0 10px rgba(37, 211, 102, .12); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 55%, var(--primary) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: rgba(47, 128, 237, .35); top: -120px; right: -100px; }
.hero-glow-2 { width: 360px; height: 360px; background: rgba(245, 158, 11, .2); bottom: -140px; left: -80px; }

.hero-copy {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--cta);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; }
.hero-sub { color: rgba(255,255,255,.8); max-width: 62ch; margin-left: auto; margin-right: auto; }

/* Browser-frame mockups (reused by the portfolio card strip) */
.mockup {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  background: #1A1E26;
}
.mockup-bar { display: flex; gap: 6px; padding: 10px 14px; background: #242933; }
.mockup-bar span { width: 9px; height: 9px; border-radius: 50%; background: #4B525F; }

/* ============================================================
   Stat band (count-up) — full-width colored strip, no boxes
   ============================================================ */
.stat-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 44px 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  text-align: center;
  padding: 16px 14px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.stat-item:nth-child(odd) { border-left: none; }
@media (min-width: 760px) {
  .stat-item { border-left: 1px solid rgba(255,255,255,.18); }
  .stat-item:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.18); }
  .stat-item:nth-child(4n+1) { border-left: none; }
}
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,.78); font-weight: 600; }

/* ============================================================
   Services — editorial row list (no card boxes)
   ============================================================ */
.service-list { margin-top: 44px; border-top: 1px solid var(--border); }
.service-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 14px;
  border-bottom: 1px solid var(--border);
}
.service-row:nth-child(even) { background: var(--bg-alt); }
.service-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 108px;
}
.service-index {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--border);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(11,61,145,.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }
.service-row-right h3 { margin: 0 0 6px; }
.service-row-right p { margin: 0; }
@media (max-width: 560px) {
  .service-row { flex-direction: column; gap: 14px; }
  .service-row-left { width: auto; }
}

/* ============================================================
   Why Greenfield Tech — numbered list (no card boxes)
   ============================================================ */
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 46px;
}
@media (min-width: 700px) { .why-list { grid-template-columns: repeat(2, 1fr); column-gap: 44px; } }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
}
.why-item h3 { margin: 0 0 6px; }
.why-item p { margin: 0; }

/* ============================================================
   Card grids (payment)
   ============================================================ */
.card-grid { display: grid; gap: 22px; margin-top: 46px; }
.card-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.payment-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.payment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  gap: 24px;
  margin-top: 46px;
}
@media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.price-card-featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.02);
}
.price-card-featured h3, .price-card-featured .price { color: #fff; }
.price-card-featured p { color: rgba(255,255,255,.82); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cta);
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}
.price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
}
.pricing-note { margin-top: 28px; font-weight: 600; }

/* ============================================================
   Testimonials carousel
   ============================================================ */
.testimonial-track {
  display: flex;
  gap: 22px;
  margin-top: 46px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) { .testimonial-card { flex: 0 0 calc(50% - 11px); } }
@media (min-width: 1000px) { .testimonial-card { flex: 0 0 calc(33.333% - 15px); } }
.testimonial-quote { font-style: italic; color: var(--text); margin-bottom: 18px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .92rem; }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.testimonial-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.testimonial-dots button.active { background: var(--primary); transform: scale(1.2); }

/* ============================================================
   Work gallery — auto-scrolling fanned-card strip + lightbox
   ============================================================ */
.work-marquee {
  overflow: hidden;
  margin-top: 50px;
  padding: 30px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.work-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: work-scroll 36s linear infinite;
}
.work-track:hover { animation-play-state: paused; }

@keyframes work-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.work-card {
  flex: 0 0 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: var(--shadow);
  z-index: 2;
}
.work-frame { background: #1A1E26; }
.work-frame .mockup-bar { background: #242933; }
.work-frame img { cursor: zoom-in; aspect-ratio: 16/11; object-fit: cover; object-position: top; }
.work-meta { padding: 16px 18px; text-align: center; }
.work-meta h3 { margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .work-track { animation: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 15, 10, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* ============================================================
   Timeline (How It Works)
   ============================================================ */
.timeline {
  display: grid;
  gap: 30px;
  margin-top: 50px;
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); position: relative; }
  .timeline::before {
    content: '';
    position: absolute; top: 24px; left: 10%; right: 10%; height: 2px;
    background: var(--border);
  }
}
.timeline-step { text-align: center; position: relative; }
.timeline-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}

/* ============================================================
   Qualify checklist
   ============================================================ */
.check-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--text);
  font-weight: 500;
}
.check-list li span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

/* ============================================================
   Custom banner
   ============================================================ */
.custom-banner { background: var(--bg-alt); padding: 44px 0; }
.custom-banner p { font-size: .95rem; margin: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--primary-dark); color: #fff; }
.contact p { color: rgba(255,255,255,.78); }
.contact-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 34px 28px;
  margin-top: 36px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,61,145,.15);
  outline: none;
}
.form-row input.invalid, .form-row select.invalid { border-color: #d64545; }
.error-msg { color: #d64545; font-size: .78rem; margin: 6px 0 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

#form-success { text-align: center; padding: 20px 0; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(11,61,145,.12);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
  margin: 0 auto 16px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0B1220; color: rgba(255,255,255,.7); padding: 34px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-inner .logo { color: #fff; }
.footer-inner .logo span { color: var(--cta); }
.footer-inner p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.55); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ============================================================
   Scroll-reveal animation system
   (opacity + transform only — no clip-path, for reliability)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Word-by-word slide-up heading reveal */
.reveal-lines .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.reveal-lines .word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.reveal-lines.in-view .word { transform: translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-lines .word {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .whatsapp-float { animation: none; }
}
