/* ============================================================
   ITBS Marketing — style.css
   Mobile-first. All 8 technical pillars baked in.
   Palette:
     --green-dark  #1A5C30
     --green       #2E7D44
     --green-light #EDF5ED
     --sky         #4A9ECC
     --gold        #F4B942
     --text        #1A2B1A
     --text-light  #4A5E4A
     --white       #FFFFFF
     --off-white   #F7FAF5
   ============================================================ */

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

:root {
  --green-dark:   #1A5C30;
  --green:        #2E7D44;
  --green-mid:    #3A9455;
  --green-light:  #EDF5ED;
  --sky:          #4A9ECC;
  --gold:         #F4B942;
  --text:         #1A2B1A;
  --text-light:   #4A5E4A;
  --white:        #FFFFFF;
  --off-white:    #F7FAF5;
  --card-shadow:  0 4px 24px rgba(46,125,68,0.10);
  --card-shadow-hover: 0 8px 40px rgba(46,125,68,0.18);
  --radius:       12px;
  --radius-sm:    8px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --nav-h:        68px;
  --transition:   0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--font-body); }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.center-cta { text-align: center; margin-top: 48px; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 700; margin-bottom: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition),
              transform 0.15s ease, box-shadow var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,68,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-green { background: var(--green-light); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(26,43,26,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.nav.scrolled .logo-mark { color: var(--green); }

.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nav-menu.open { display: flex; }

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: block;
}

.nav-link:hover { background: var(--green-light); color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white);
  text-align: center;
  margin-top: 8px;
}
.nav-cta:hover { background: var(--green-dark); color: var(--white); }

/* Nav on hero: white text before scroll */
.nav:not(.scrolled) .logo-mark { color: var(--white); }
.nav:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.8); }
.nav:not(.scrolled) .nav-toggle span { background: var(--white); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  /* Fixed parallax — iOS fallback handled by JS */
  background-attachment: scroll;
  z-index: 0;
}

/* Desktop: true fixed parallax */
@media (min-width: 768px) and (hover: hover) {
  .hero-bg { background-attachment: fixed; }
}

/* Subtle gradient for text readability — light, not dark */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.10) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  padding-top: var(--nav-h);
}

.hero-card {
  max-width: 580px;
  margin-left: auto;
  padding: 40px 36px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(26,43,26,0.12);
  border-left: 4px solid var(--green);
}

.hero-card h1 { color: var(--text); margin-bottom: 16px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(46,125,68,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.service-icon {
  color: var(--green);
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  background: rgba(46,125,68,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 { color: var(--text); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ---- WHY ITBS ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.why-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(46,125,68,0.08);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
  user-select: none;
}

.why-card h3 { color: var(--green-dark); margin-bottom: 12px; }
.why-card p { color: var(--text-light); line-height: 1.75; font-size: 0.95rem; }

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  transition: color var(--transition);
}
.card-link:hover { color: var(--green-dark); }

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--card-shadow);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- HOW IT WORKS ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), rgba(46,125,68,0.1));
}

.step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(46,125,68,0.3);
  position: relative;
  z-index: 1;
}

.step-body h3 { color: var(--text); margin-bottom: 10px; padding-top: 10px; }
.step-body p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; }

/* ---- OUR WORK ---- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.work-tag {
  display: inline-block;
  background: rgba(46,125,68,0.1);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.work-card h3 { color: var(--text); margin-bottom: 12px; }
.work-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px; }
.work-note { font-weight: 600; color: var(--green-dark); font-size: 0.95rem; }

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

.about-text .eyebrow { margin-bottom: 8px; }
.about-text h2 { margin-bottom: 4px; }
.about-text h3 { color: var(--text-light); font-weight: 600; font-size: 1.1rem; margin-bottom: 20px; }
.about-text p { color: var(--text-light); line-height: 1.75; margin-bottom: 16px; font-size: 0.97rem; }
.about-text .btn { margin-top: 8px; }

.about-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.badge-card {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  border: 1px solid rgba(46,125,68,0.12);
  transition: transform var(--transition);
}

.badge-card:hover { transform: scale(1.02); }
.badge-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ---- CONTACT ---- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 4px; }
.contact-info h3 { color: var(--text-light); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-light); line-height: 1.75; margin-bottom: 24px; font-size: 0.97rem; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-list svg { flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: var(--green); font-weight: 600; transition: color var(--transition); }
.contact-list a:hover { color: var(--green-dark); }

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.optional { font-weight: 400; color: var(--text-light); }

input, select, textarea {
  padding: 12px 14px;
  border: 1.5px solid #D1E8D5;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  min-height: 48px;
}

input::placeholder, textarea::placeholder { color: #9DB5A0; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,68,0.12);
  background: var(--white);
}

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234A5E4A' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

textarea { resize: vertical; min-height: 100px; }

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 24px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #C0392B; }

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer .logo-mark { color: var(--gold); }
.footer .logo-sub { color: rgba(255,255,255,0.6); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a, .footer-contact span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children inside grids */
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.why-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.steps .reveal:nth-child(3) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-dot { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE — Tablet 640px+
   ============================================================ */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-badges { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — Desktop 900px+
   ============================================================ */
@media (min-width: 900px) {
  .section { padding: 100px 0; }

  /* Nav */
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 4px;
    box-shadow: none;
    align-items: center;
  }

  .nav-link { padding: 8px 14px; font-size: 0.875rem; }
  .nav:not(.scrolled) .nav-link { color: rgba(255,255,255,0.9); }
  .nav:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,0.15); color: var(--white); }

  .nav-cta {
    background: var(--green);
    color: var(--white);
    margin-top: 0;
    border-radius: var(--radius-sm);
  }
  .nav:not(.scrolled) .nav-cta { background: rgba(255,255,255,0.95); color: var(--green); }
  .nav:not(.scrolled) .nav-cta:hover { background: var(--white); }

  /* Hero */
  .hero-card { padding: 52px 48px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* Why */
  .why-grid { grid-template-columns: repeat(3, 1fr); }

  /* About */
  .about-inner { grid-template-columns: 1fr 1fr; gap: 80px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 80px; }

  /* Footer */
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-nav { flex-direction: row; gap: 24px; }
}
