/* web/themes/techprosolutions/css/components/svc-core.css */
/**
 * Service Landing system — shared shell: section rhythm, the three section
 * themes (light / wash / navy), headers, buttons, lead-form card.
 * Every dimension sits on the 4px grid via the --et-space-* tokens.
 */

.svc-page {
  font-family: 'Manrope', sans-serif;
  color: var(--et-body-color);
}

/* ---- Section shell: one global vertical rhythm ---- */
/* Tighter modern-SaaS rhythm, scoped to service pages only. Deliberately does
   NOT touch the global --et-section-pad-y (that governs the homepage). ~64px
   mobile → 88px desktop instead of the homepage's 80→160px. */
.svc-section {
  padding-block: clamp(4rem, 4.5vw, 5.5rem);
}
/* The hero must fit a 1080p viewport (<850px tall incl. padding). */
.svc-hero.svc-section {
  padding-block: clamp(2rem, 4vh, 3rem);
}
.svc-container {
  max-width: 76rem;               /* 1216px = 4px grid */
  margin-inline: auto;
  padding-inline: var(--et-space-6);
}

/* ---- Section themes (alternate down the page) ---- */
.svc-theme--light { background: #fff; }
.svc-theme--wash  { background: var(--et-wash); }
.svc-theme--navy  {
  background: var(--et-navy);
  color: rgba(255, 255, 255, 0.82);
}

/* ---- Section header ---- */
.svc-head { max-width: 44rem; }
.svc-head--center {
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--et-title-gap);
}

.svc-overline {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--et-green-2);
  margin: 0 0 var(--et-space-3);
}
.svc-theme--navy .svc-overline { color: var(--et-green); }

.svc-title {
  /* Locked H2 token — beats new.css h1/h2 !important landmines. */
  font-family: 'Manrope', sans-serif !important;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) !important;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: none !important;
  color: #1C3557;
  margin: 0 0 var(--et-space-4);
}
.svc-theme--navy :is(h1, h2, h3, h4, .svc-title) { color: #ffffff !important; }
.svc-theme--navy .et-highlight-text { color: var(--et-highlight-green, #28aa4a) !important; }

.svc-lead {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  margin: 0 0 var(--et-space-6);
}
/* On navy sections the lead/body are <p> elements; the theme's global
   `p { color }` rule beats the inherited light colour, so set it explicitly
   (mirrors the .svc-title navy override above). Fixes the CTA support line
   rendering dark-on-navy. */
.svc-theme--navy .svc-lead,
.svc-theme--navy .svc-body,
.svc-theme--navy .svc-body p { color: rgba(255, 255, 255, 0.82); }

.svc-body { line-height: 1.6; }
.svc-body p { margin: 0 0 var(--et-space-4); }

/* ---- Buttons: navy fills (brand green fails AA on white text) ---- */
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-2);
  padding: var(--et-space-4) var(--et-space-8);
  border-radius: var(--et-radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.svc-btn--primary {
  background: var(--et-navy);
  color: #fff;
}
.svc-btn--primary:hover {
  background: #142843;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 53, 87, 0.24);
}
.svc-btn--inverse {
  background: #fff;
  color: var(--et-navy);
}
.svc-btn--inverse:hover {
  color: var(--et-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.16);
}
.svc-btn__ic { width: 1.25rem; height: 1.25rem; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-2);
  font-weight: 700;
  color: var(--et-green-2);
  text-decoration: none;
}
.svc-link:hover { color: var(--et-navy); }

.svc-page a:focus-visible,
.svc-page button:focus-visible,
.svc-page [tabindex]:focus-visible {
  outline: 2px solid var(--et-navy);
  outline-offset: 2px;
}
.svc-page input:focus,
.svc-page input:focus-visible,
.svc-page select:focus,
.svc-page select:focus-visible,
.svc-page textarea:focus,
.svc-page textarea:focus-visible {
  outline: none;
  border-color: var(--et-navy);
}

/* ---- Lead-gen form card (webform slot in hero + CTA banner) ---- */
.svc-form-card {
  background: #fff;
  color: var(--et-body-color);
  border-radius: var(--et-radius-lg);
  padding: var(--et-space-8);
  box-shadow: 0 16px 48px rgba(10, 10, 10, 0.12);
}
.svc-form-card .form-item { margin-bottom: var(--et-space-4); }
.svc-form-card label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--et-ink);
  margin-bottom: var(--et-space-2);
}
.svc-form-card input[type='text'],
.svc-form-card input[type='email'],
.svc-form-card input[type='tel'],
.svc-form-card input[type='number'],
.svc-form-card select,
.svc-form-card textarea {
  width: 100%;
  padding: var(--et-space-3) var(--et-space-4);
  border: 1px solid rgba(69, 70, 79, 0.24);
  border-radius: var(--et-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.svc-form-card .webform-button--submit,
.svc-form-card .form-submit {
  width: 100%;
  padding: var(--et-space-4) var(--et-space-6);
  border: 0;
  border-radius: var(--et-radius-pill);
  background: var(--et-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.svc-form-card .webform-button--submit:hover,
.svc-form-card .form-submit:hover { background: #142843; }
