/* =============================================
   NEXT STEP WEB CO. — styles.css
   Edit colors in :root to match your brand.
   ============================================= */

/* ── DESIGN TOKENS ── */
:root {
  --navy:       #143266;   /* Primary navy — sampled directly from logo */
  --navy-deep:  #0E2449;   /* Darker navy for hover states */
  --teal:       #53BEBD;   /* Primary teal — sampled directly from logo */
  --teal-dark:  #449B9A;   /* Hover state for teal */
  --teal-light: #EAF7F7;   /* Soft teal backgrounds */
  --white:      #FFFFFF;
  --off-white:  #F7F9FC;
  --gray-100:   #EEF1F6;
  --gray-300:   #C9D0DC;
  --gray-500:   #6B7590;
  --gray-700:   #374151;
  --text:       #1B2B4B;   /* Body text */

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(27,43,75,0.08);
  --shadow-md:  0 4px 20px rgba(27,43,75,0.12);

  --max-width: 1120px;
  --section-pad: 5rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: var(--section-pad) 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--gray-500);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover { background: var(--teal-light); }
.btn-full { width: 100%; }
.btn:active { transform: scale(0.98); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--navy); background: var(--gray-100); }
.main-nav .nav-cta {
  background: var(--teal);
  color: var(--white);
  margin-left: 0.5rem;
}
.main-nav .nav-cta:hover { background: var(--teal-dark); color: var(--white); }
.main-nav a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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); }
.nav-toggle:focus-visible { outline: 3px solid var(--teal); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243660 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero .eyebrow { color: var(--teal); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Browser mockup */
.browser-mockup {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  padding: 0.6rem 0.75rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.dot:nth-child(1) { background: #FC5F57; }
.dot:nth-child(2) { background: #FDBC2C; }
.dot:nth-child(3) { background: #33C748; }
.browser-url {
  flex: 1;
  background: var(--white);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 0.25rem 0.6rem;
  margin-left: 0.25rem;
}
.browser-screen { padding: 1rem; background: var(--off-white); min-height: 220px; }
.mock-header {
  height: 28px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.mock-hero {
  height: 80px;
  background: linear-gradient(90deg, var(--teal-light) 0%, var(--gray-100) 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mock-card {
  height: 56px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

/* ── SERVICES ── */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.9375rem; color: var(--gray-500); }

/* ── PROCESS ── */
.process { background: var(--white); }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step-content p { font-size: 0.9375rem; color: var(--gray-500); }
.step-connector {
  width: 3rem;
  height: 2px;
  background: var(--gray-300);
  margin-top: 1.5rem;
  flex-shrink: 0;
}

/* ── WHY US ── */
.why-us { background: var(--teal-light); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.why-list { display: flex; flex-direction: column; gap: 1.25rem; }
.why-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.why-list strong { color: var(--navy); }
.why-callout {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
}
.callout-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.callout-quote::before { content: '\201C'; }
.callout-quote::after  { content: '\201D'; }
.callout-attr {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.05em;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #1F8A7D 100%);
  color: var(--white);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--white);
}
.cta-banner p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

/* ── CONTACT ── */
.contact { background: var(--off-white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info { padding-top: 0.25rem; }
.contact-info a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-info a:hover { color: var(--teal-dark); }
.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  padding: 1rem;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.optional { font-weight: 400; color: var(--gray-500); }
.form-group input,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-note {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  min-height: 1.2em;
}
.form-note.success { color: var(--teal-dark); font-weight: 600; }
.form-note.error   { color: #c0392b; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}
.footer-logo-text {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.footer-logo-text span { color: var(--teal); }
.footer-logo-text:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-legal { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --section-pad: 3.5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .step { padding: 0; max-width: 420px; }
  .step-connector { width: 2px; height: 2rem; }

  .why-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-callout { max-width: 520px; }

  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  :root { --section-pad: 3rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.65rem 0.75rem; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 0.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
