/* =============================================================
   EasySTR — Theme 5: Monochrome Blue
   Deep navy + electric blue, clean editorial layout
   ============================================================= */

:root {
  /* Palette */
  --navy-900:  #0B1426;
  --navy-800:  #15203A;
  --navy-700:  #1F2D4F;
  --blue-500:  #3D7AFF;
  --blue-400:  #5B8FFF;
  --blue-300:  #85A8FF;
  --blue-50:   #EEF3FF;
  --white:     #FFFFFF;
  --gray-50:   #FAFBFC;
  --gray-100:  #F4F6F8;
  --gray-200:  #E5E8ED;
  --gray-300:  #CFD4DC;
  --gray-500:  #6B7280;
  --gray-700:  #3B4253;
  --gray-900:  #0F172A;
  --muted-on-dark: #8B9BB4;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container-max: 1080px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --section-pad-y: 7rem;
  --section-pad-y-sm: 4rem;
}

/* ----- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-400); }
ul { list-style: none; padding: 0; margin: 0; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ----- Layout primitives ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 1.25rem;
}
.hero .eyebrow { color: var(--blue-300); }

/* ----- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-400);
  color: var(--white);
}
.btn-primary:active { transform: translateY(1px); }
.btn-lg { padding: 1.0625rem 1.875rem; font-size: 1rem; }
.btn-sm { padding: 0.625rem 1rem; font-size: 0.875rem; }

/* ----- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(11, 20, 38, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--navy-900); }
.logo-mark {
  display: inline-block;
  color: var(--blue-500);
  font-size: 1.125rem;
  transform: translateY(-1px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-links a:hover { color: var(--navy-900); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 1rem; }
}

/* ----- Hero -------------------------------------------------- */
.hero {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* Subtle grid pattern, signature texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--navy-800) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-800) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 920px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-sub {
  font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.25rem);
  color: var(--muted-on-dark);
  max-width: 640px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}
.hero .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset; }

/* Stack chips — signature element */
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-700);
  max-width: 720px;
}
.stack-chips::before {
  content: 'Tools I configure:';
  display: block;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.875rem;
  font-weight: 500;
}
.stack-chips li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

/* ----- Section base ----------------------------------------- */
section { padding: var(--section-pad-y) 0; }
@media (max-width: 760px) {
  section { padding: var(--section-pad-y-sm) 0; }
}

/* ----- Challenges ------------------------------------------- */
.challenges { background: var(--white); }
.challenges h2 { max-width: 720px; margin-bottom: 2.5rem; }
.challenge-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem 2.5rem;
  margin-bottom: 3rem;
  max-width: 880px;
}
.challenge-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.0625rem;
  color: var(--gray-700);
}
.challenge-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6875rem;
  width: 8px;
  height: 8px;
  background: var(--blue-500);
  border-radius: 1px;
  transform: rotate(45deg);
}
.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--navy-900);
  font-weight: 500;
  max-width: 720px;
}
@media (max-width: 600px) {
  .challenge-list { grid-template-columns: 1fr; gap: 0.625rem 0; }
}

/* ----- Services --------------------------------------------- */
.services { background: var(--gray-50); }
.services h2 { margin-bottom: 3.5rem; max-width: 720px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.875rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy-900);
  position: relative;
  padding-top: 0.5rem;
}
.service-card h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--blue-500);
  border-radius: 1px;
  margin-bottom: 1rem;
}
.service-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ----- Process ---------------------------------------------- */
.process { background: var(--white); }
.process h2 { margin-bottom: 3.5rem; max-width: 720px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.process-steps li { padding-top: 0; }
.step-num {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-500);
  margin-bottom: 1.25rem;
}
.process-steps h3 {
  color: var(--navy-900);
  margin-bottom: 0.625rem;
}
.process-steps p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ----- Testimonials ----------------------------------------- */
.testimonials { background: var(--navy-900); color: var(--white); }
.testimonials h2 { color: var(--white); margin-bottom: 3.5rem; max-width: 720px; }
.testimonials .eyebrow { color: var(--blue-300); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem;
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: '"';
  display: block;
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--blue-500);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
  height: 1.25rem;
}
.testimonial p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.testimonial footer {
  font-style: normal;
  border-top: 1px solid var(--navy-700);
  padding-top: 1rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}
.testimonial footer span {
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}
@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ----- About ------------------------------------------------ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about h2 { margin-bottom: 1.5rem; }
.about p {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.about-card {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-500);
  padding: 2rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.about-card .card-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 1rem;
}
.about-card ul li {
  position: relative;
  padding: 0.4375rem 0 0.4375rem 1.5rem;
  color: var(--navy-900);
  font-size: 0.9375rem;
  font-weight: 500;
}
.about-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--blue-500);
  border-radius: 50%;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ----- Contact form ----------------------------------------- */
.contact { background: var(--gray-50); }
.contact h2 { margin-bottom: 1rem; max-width: 720px; }
.contact-lede {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 3rem;
}

.inquiry-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 760px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-row .form-field { margin-bottom: 1.25rem; }
.form-field label,
.form-field legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  padding: 0;
}
.req { color: var(--blue-500); font-weight: 600; }
.hint { font-weight: 400; color: var(--gray-500); margin-left: 0.25rem; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61, 122, 255, 0.15);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #DC2626;
}
.field-error {
  color: #DC2626;
  font-size: 0.8125rem;
  margin: 0.375rem 0 0;
}

.form-error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-checkboxes legend {
  margin-bottom: 0.75rem;
}
.form-checkboxes {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.form-checkboxes > legend { grid-column: 1 / -1; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.375rem 0;
}
.checkbox input { margin-top: 0.25rem; accent-color: var(--blue-500); }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 1rem 0 0;
}

@media (max-width: 600px) {
  .inquiry-form { padding: 1.75rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-checkboxes { grid-template-columns: 1fr; }
}

/* ----- Footer ----------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--muted-on-dark);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.footer-tag { font-size: 0.9375rem; margin: 0; max-width: 360px; }
.footer-contact p { margin: 0 0 0.375rem; font-size: 0.9375rem; }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--blue-300); }
.footer-meta { font-size: 0.8125rem; text-align: right; }
.footer-meta p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-meta { text-align: left; }
}
