/* ── SERVICES.CSS: Service subpage styles (/services/:slug) ─────────────────
   Design language: white body, navy/blue/red brand, Outfit + DM Sans fonts.
   Loads after theme.css which provides :root tokens.
   ──────────────────────────────────────────────────────────────────────────── */

body { background: var(--off-white); }

/* ── MAIN LAYOUT ── */
.svc-main { padding: 48px 0 80px; }

.svc-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── PAGE HEADER ── */
.svc-header { margin-bottom: 40px; }

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(30,64,175,0.07);
  border: 1px solid rgba(30,64,175,0.2);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.svc-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}

.svc-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.svc-tagline {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.65;
}

/* ── TWO-COLUMN LAYOUT: content + sidebar ── */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── CONTENT SECTIONS ── */
.svc-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.svc-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.svc-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.svc-description {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── PROCESS STEPS ── */
.svc-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.svc-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(30,64,175,0.08);
  border: 1.5px solid rgba(30,64,175,0.2);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body { flex: 1; }

.step-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.step-detail {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── DETAILS LIST ── */
.svc-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-600);
}

.svc-details .check {
  color: var(--blue);
  font-weight: 700;
  margin-right: 8px;
}

/* ── QUOTE FORM SECTION ── */
.quote-section { border-top: 3px solid var(--red); }

.svc-form-intro {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-inline: 1px solid var(--gray-200);
}

.form-legend {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 12px;
}

.req { color: var(--red); }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row { display: flex; gap: 14px; }
.two-col > .field-group { flex: 1; }
.three-col > .field-group { flex: 1; }

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  font-family: var(--font-body);
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 44px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

input::placeholder, textarea::placeholder { color: var(--gray-300); }

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.5;
}

/* ── FORM ERROR ── */
.form-error {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.25);
  border-left: 4px solid var(--red);
  color: var(--red);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 4px;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-submit:active { transform: translateY(0); }

/* ── SIDEBAR ── */
.svc-sidebar {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  border-radius: 14px;
  overflow: hidden;
}

/* Services nav card */
.services-nav-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px;
}

.sidebar-card-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.services-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.services-nav li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.services-nav li a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.services-nav li.active a {
  background: rgba(30,64,175,0.08);
  color: var(--blue);
  font-weight: 600;
}

/* Trust card */
.trust-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 100%);
  padding: 28px 24px;
  color: rgba(255,255,255,0.85);
}

.trust-badge-row { margin-bottom: 20px; }

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-badge-icon {
  font-size: 26px;
  background: rgba(59,130,246,0.15);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-light);
}

.trust-badge-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.trust-list .check {
  color: var(--blue-light);
  font-weight: 700;
  margin-right: 6px;
}

.trust-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 18px 0;
}

.trust-contact p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
}

.trust-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-light);
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.trust-phone:hover { opacity: 0.8; }

.trust-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── SUCCESS STATE ── */
.success-card {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(30,64,175,0.25);
}

.success-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.success-body {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-details {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.success-detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--gray-500); }
.detail-value { font-weight: 600; color: var(--gray-800); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .svc-layout {
    grid-template-columns: 1fr;
  }

  .svc-sidebar {
    position: static;
    order: -1;
  }

  .trust-card { display: none; }
}

@media (max-width: 600px) {
  .svc-main { padding: 32px 0 60px; }

  .svc-heading { font-size: 2rem; }

  .svc-section { padding: 24px 18px; }

  .field-row.two-col,
  .field-row.three-col { flex-direction: column; gap: 12px; }

  .success-card { padding: 32px 20px; }

  .svc-icon { font-size: 36px; }
}
