:root {
  --bg: #0b1220;
  --bg2: #0a0f1a;
  --text: #eef2ff;
  --muted: #d7deee;
  --line: rgba(255, 255, 255, 0.1);

  --nav: rgba(10, 15, 26, 0.72);
  --card: rgba(14, 22, 38, 0.68);

  --accent: #e26b2b; /* orange */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg2);
  color: var(--text);
}

a {
  color: inherit;
  transition: color 0.15s ease;
}
a:hover {
  opacity: 0.92;
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(226, 107, 43, 0.9);
  outline-offset: 3px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: clamp(42px, 6vw, 60px);
  width: auto;
  display: block;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-subtitle {
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.92;
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0b1220;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(226, 107, 43, 0.25);
}

.btn-primary:active {
  filter: brightness(0.98);
  transform: translateY(0);
  box-shadow: none;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  border-color: rgba(226, 107, 43, 0.65);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(226, 107, 43, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, 0.5);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* HERO */
.hero {
  --hero-min: 320px;
  --hero-fluid-ratio: 56;
  --hero-max: 700px;
  position: relative;
  min-height: clamp(
    var(--hero-min),
    calc(var(--hero-fluid-ratio) * 1vh),
    var(--hero-max)
  );
  display: grid;
  align-items: start;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      1200px 700px at 20% 10%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(11, 18, 32, 1), rgba(10, 15, 26, 1));
}

@supports (height: 1svh) {
  .hero {
    min-height: clamp(
      var(--hero-min),
      calc(var(--hero-fluid-ratio) * 1svh),
      var(--hero-max)
    );
  }
}

.hero-bg {
  position: absolute;
  inset: 0;

  /* Option A: Use your own image (recommended) */
  background-image: url("assets/hero-resized-v1a.png");

  background-size: cover;
  background-position: 50% 40%;
  opacity: 0.95;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 26, 0.88) 0%,
    rgba(10, 15, 26, 0.6) 55%,
    rgba(10, 15, 26, 0.45) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(40px, 9vh, 88px) 0 clamp(24px, 4vh, 44px);
}

.hero-left h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-centered {
  max-width: 60ch;
}

.hero-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 18px);
  max-width: 55ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
}

.hero-cta .btn-primary {
  padding: 12px 22px;
  font-size: 15px;
}

.hero-cta .btn-ghost {
  padding: 12px 18px;
  font-size: 15px;
}

.hero-fine {
  margin: 0;
  color: rgba(238, 242, 255, 0.62);
  font-size: clamp(12px, 1.6vw, 14px);
}

/* HERO CARD */
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

/* SECTIONS */
.section {
  padding: 60px 0;
  scroll-margin-top: 110px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#contact {
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 28px;
  font-size: 28px;
  letter-spacing: -0.01em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 107, 43, 0.18);
  display: inline-block;
}

/* GRID + CARDS */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: rgba(14, 22, 38, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

/* Service cards: hover lift */
#services .card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#services .card:hover {
  border-color: rgba(226, 107, 43, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* "Why Grid City" cards — accent left edge */
#why .card {
  border-left: 2px solid rgba(226, 107, 43, 0.35);
  padding: 20px;
}

#why .card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

#services .grid {
  gap: 24px;
}

#services .card {
  padding: 24px 22px;
}

#services .service-category-icon {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0;
  opacity: 0.85;
}

#services .service-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#services .service-category-header h3 {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.service-framing {
  margin: 0 0 10px;
  color: rgba(238, 242, 255, 0.95);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

#services .service-framing {
  margin: 0 0 16px;
  color: rgba(238, 242, 255, 0.78);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  font-style: italic;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

#services .card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: rgba(238, 242, 255, 0.72);
  font-size: clamp(14px, 1vw, 15.5px);
  line-height: 1.75;
}

#services .card ul li + li {
  margin-top: 10px;
}

#services .service-learn-more {
  margin-top: 16px;
}

.service-learn-more {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: clamp(13px, 0.9vw, 14px);
  border-color: rgba(226, 107, 43, 0.3);
  color: rgba(238, 242, 255, 0.85);
}

.service-learn-more:hover {
  border-color: rgba(226, 107, 43, 0.55);
  color: var(--text);
  background: rgba(226, 107, 43, 0.06);
}

.fine {
  color: rgba(238, 242, 255, 0.62);
  font-size: 14px;
}

/* Coaching section — single banner */
.coaching-banner {
  background:
    radial-gradient(
      800px 400px at 50% 100%,
      rgba(226, 107, 43, 0.05),
      transparent 70%
    ),
    rgba(14, 22, 38, 0.5);
  border: 1px solid rgba(226, 107, 43, 0.15);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
  max-width: 100%;
  margin: 0 auto;
}

.coaching-banner .section-title {
  margin-bottom: 18px;
}

.coaching-headline {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.coaching-body {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
}

.coaching-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}

.coaching-chip {
  text-align: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: clamp(12.5px, 0.9vw, 14px);
  color: rgba(238, 242, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 760px) {
  .coaching-topics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .coaching-topics {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* --- Form Card --- */
.contact-form-card {
  background:
    radial-gradient(
      700px 500px at 30% 0%,
      rgba(226, 107, 43, 0.03),
      transparent 60%
    ),
    rgba(14, 22, 38, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
}

.contact-form-heading {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
}

.contact-form-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 1.5;
}

/* --- Form Layout --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row-half > .form-group {
  flex: 1 1 0;
  min-width: 0;
}

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

.form-group label:first-child {
  font-size: 13px;
  font-weight: 600;
  color: rgba(238, 242, 255, 0.82);
  letter-spacing: 0.01em;
}

.form-optional {
  font-weight: 400;
  color: rgba(238, 242, 255, 0.4);
}

/* --- Inputs & Textarea --- */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(10, 15, 26, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(238, 242, 255, 0.28);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 15, 26, 0.72);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(226, 107, 43, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 107, 43, 0.1);
  background: rgba(10, 15, 26, 0.8);
}

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

/* --- Select Wrapper --- */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(238, 242, 255, 0.4);
  border-bottom: 2px solid rgba(238, 242, 255, 0.4);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  cursor: pointer;
  padding-right: 36px;
}

/* --- Radio Pills --- */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-pill {
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(238, 242, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  user-select: none;
}

.radio-pill:hover span {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(238, 242, 255, 0.85);
}

.radio-pill input:checked + span {
  border-color: rgba(226, 107, 43, 0.55);
  background: rgba(226, 107, 43, 0.1);
  color: var(--text);
}

.radio-pill input:focus-visible + span {
  outline: 2px solid rgba(226, 107, 43, 0.9);
  outline-offset: 2px;
}

/* --- Turnstile --- */
.cf-turnstile {
  margin-top: 4px;
}

/* --- Submit Button --- */
.contact-submit {
  align-self: flex-start;
  padding: 12px 28px;
  font-size: 15px;
  margin-top: 4px;
}

/* --- Form Status --- */
.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status.is-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* --- Sidebar --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Direct Contact Card --- */
.contact-direct-card {
  background: rgba(14, 22, 38, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.contact-direct-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.contact-direct-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(238, 242, 255, 0.45);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}

.contact-method + .contact-method {
  margin-top: 4px;
}

.contact-method:hover {
  background: rgba(226, 107, 43, 0.06);
  opacity: 1;
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(226, 107, 43, 0.1);
  border: 1px solid rgba(226, 107, 43, 0.2);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(238, 242, 255, 0.5);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-method-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.contact-direct-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(238, 242, 255, 0.45);
  line-height: 1.55;
}

/* --- Tips Card --- */
.contact-tips-card {
  background: rgba(14, 22, 38, 0.55);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(226, 107, 43, 0.35);
  border-radius: 16px;
  padding: 22px;
}

.contact-tips-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.contact-tips-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(238, 242, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.contact-tips-card ul li + li {
  margin-top: 4px;
}

/* --- Invalid states --- */
.contact-form .form-group.is-invalid input,
.contact-form .form-group.is-invalid textarea {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-error-text {
  font-size: 12px;
  color: #fca5a5;
  margin-top: 2px;
}

/* Service toggle: hide/show fields */
.tech-only[hidden],
.coaching-only[hidden] {
  display: none !important;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(10, 15, 26, 0.75);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: clamp(42px, 6vw, 60px);
  width: auto;
  object-fit: contain;
}

.footer-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.footer-subtitle {
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
}

.footer-right {
  margin-left: auto;
  color: rgba(238, 242, 255, 0.6);
}

.footer-partner {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(238, 242, 255, 0.45);
}

.footer-partner a {
  color: var(--accent);
  text-decoration: none;
}

.footer-partner a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   SERVICE DETAIL PAGES
   ═══════════════════════════════════════════════════════ */

/* Hero header zone */
.service-hero {
  position: relative;
  padding: clamp(40px, 6vh, 72px) 0 clamp(32px, 4vh, 52px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(
      900px 500px at 15% 20%,
      rgba(226, 107, 43, 0.06),
      transparent 60%
    ),
    radial-gradient(
      600px 400px at 85% 80%,
      rgba(226, 107, 43, 0.03),
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Subtle grid pattern overlay — fits the "Grid City" brand */
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Accent line at bottom of hero */
.service-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 107, 43, 0.35) 30%,
    rgba(226, 107, 43, 0.35) 70%,
    transparent
  );
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(238, 242, 255, 0.5);
}

.service-breadcrumb li {
  display: flex;
  align-items: center;
}

.service-breadcrumb a {
  color: rgba(238, 242, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.service-breadcrumb a:hover {
  color: var(--accent);
  opacity: 1;
}

.service-breadcrumb .bc-sep {
  margin: 0 8px;
  color: rgba(238, 242, 255, 0.25);
  font-size: 11px;
  user-select: none;
}

.service-breadcrumb .bc-current {
  color: rgba(238, 242, 255, 0.72);
  font-weight: 500;
}

/* Hero title & description */
.service-hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.service-hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.55;
  max-width: 58ch;
}

/* Service detail body */
.service-detail {
  padding: clamp(32px, 5vh, 56px) 0 0;
}

/* Accordion container */
.service-detail .service-subaccordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual accordion item */
.service-detail .service-subitem {
  background: rgba(14, 22, 38, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-detail .service-subitem:hover {
  border-color: rgba(226, 107, 43, 0.2);
  background: rgba(14, 22, 38, 0.65);
}

.service-detail .service-subitem[open] {
  border-color: rgba(226, 107, 43, 0.25);
  background: rgba(14, 22, 38, 0.7);
}

/* Summary (accordion trigger) */
.service-detail .service-subitem summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.service-detail .service-subitem summary::-webkit-details-marker {
  display: none;
}

/* Custom chevron indicator */
.service-detail .service-subitem summary::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.service-detail .service-subitem[open] > summary::before {
  transform: rotate(45deg);
}

.service-detail .service-subitem summary:hover {
  color: #fff;
}

/* Focus state for accessibility */
.service-detail .service-subitem summary:focus-visible {
  outline: 2px solid rgba(226, 107, 43, 0.9);
  outline-offset: -2px;
  border-radius: 14px;
}

/* Accordion content area */
.service-detail .service-subitem ul {
  margin: 0;
  padding: 0 22px 20px 44px;
  list-style: none;
}

.service-detail .service-subitem ul li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: rgba(238, 242, 255, 0.72);
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.65;
}

/* Diamond bullet — the "grid" motif */
.service-detail .service-subitem ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.55;
  transform: rotate(45deg);
}

/* Divider between summary and content */
.service-detail .service-subitem[open] > summary {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* CTA section */
.service-cta {
  margin-top: clamp(36px, 5vh, 56px);
  margin-bottom: clamp(36px, 5vh, 56px);
  padding: clamp(28px, 4vh, 44px) clamp(20px, 3vw, 36px);
  background:
    radial-gradient(
      600px 300px at 50% 100%,
      rgba(226, 107, 43, 0.06),
      transparent 70%
    ),
    rgba(14, 22, 38, 0.5);
  border: 1px solid rgba(226, 107, 43, 0.18);
  border-radius: 18px;
  text-align: center;
}

.service-cta-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
}

.service-cta-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(13.5px, 1.2vw, 16px);
  line-height: 1.55;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.service-cta .btn-primary {
  padding: 12px 28px;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════ */

.pricing-detail .container {
  max-width: 720px;
}

/* Featured hourly rate card */
.pricing-card-featured {
  background:
    radial-gradient(
      600px 400px at 30% 0%,
      rgba(226, 107, 43, 0.07),
      transparent 60%
    ),
    rgba(14, 22, 38, 0.6);
  border: 1px solid rgba(226, 107, 43, 0.25);
  border-radius: 18px;
  overflow: hidden;
}

.pricing-card-header {
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(226, 107, 43, 0.12);
}

.pricing-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-dollar {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--accent);
  align-self: flex-start;
  margin-top: 0.15em;
}

.pricing-number {
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-per {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: rgba(238, 242, 255, 0.5);
  margin-left: 4px;
}

.pricing-card-body {
  padding: clamp(24px, 3vw, 36px);
}

.pricing-card-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
}

.pricing-includes {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-includes li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: rgba(238, 242, 255, 0.78);
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.55;
}

.pricing-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  opacity: 0.7;
}

.pricing-cta-btn {
  padding: 12px 28px;
  font-size: 15px;
}

/* Flat rate section */
.pricing-flat-section {
  margin-top: 32px;
  background: rgba(14, 22, 38, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 36px);
}

.pricing-flat-header {
  margin-bottom: 28px;
}

.pricing-flat-header h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-flat-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
}

.pricing-flat-why {
  background: rgba(226, 107, 43, 0.04);
  border: 1px solid rgba(226, 107, 43, 0.12);
  border-left: 3px solid rgba(226, 107, 43, 0.4);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.pricing-flat-why h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.pricing-flat-why p {
  margin: 0;
  color: rgba(238, 242, 255, 0.72);
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.7;
  font-style: italic;
}

.pricing-flat-examples h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.pricing-examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pricing-example-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pricing-example-item:hover {
  border-color: rgba(226, 107, 43, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-example-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(226, 107, 43, 0.08);
  border: 1px solid rgba(226, 107, 43, 0.15);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-example-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.pricing-example-item span {
  display: block;
  font-size: 13px;
  color: rgba(238, 242, 255, 0.55);
  line-height: 1.45;
}

.pricing-flat-note {
  margin: 20px 0 0;
  color: rgba(238, 242, 255, 0.5);
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.55;
}

/* Travel surcharge callout */
.pricing-surcharge {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
  padding: 22px 24px;
  background: rgba(14, 22, 38, 0.5);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pricing-surcharge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(226, 107, 43, 0.08);
  border: 1px solid rgba(226, 107, 43, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-surcharge h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.pricing-surcharge p {
  margin: 0;
  color: rgba(238, 242, 255, 0.62);
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.6;
}

/* Pricing responsive */
@media (max-width: 580px) {
  .pricing-examples-grid {
    grid-template-columns: 1fr;
  }

  .pricing-surcharge {
    flex-direction: column;
    gap: 12px;
  }
}

/* Pricing — small mobile (360px-class devices) */
@media (max-width: 420px) {
  .pricing-card-header {
    padding: 22px 16px 18px;
  }

  .pricing-card-body {
    padding: 20px 16px;
  }

  .pricing-flat-section {
    padding: 22px 16px;
  }

  .pricing-flat-why {
    padding: 16px 14px;
  }

  .pricing-example-item {
    padding: 12px;
    gap: 10px;
  }

  .pricing-example-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .pricing-example-icon svg {
    width: 16px;
    height: 16px;
  }

  .pricing-surcharge {
    padding: 18px 16px;
  }

  .pricing-surcharge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .pricing-surcharge-icon svg {
    width: 18px;
    height: 18px;
  }

  .service-cta {
    padding: 24px 16px;
  }

  .pricing-flat-header {
    margin-bottom: 20px;
  }

  .pricing-flat-examples h3 {
    margin-bottom: 12px;
  }
}

/* 580–640: nudge image down to keep skyline visible */
@media (min-width: 580px) and (max-width: 640px) {
  .hero-bg {
    background-position: 50% 30%;
  }
}

/* 700–1079: cover over-zooms, push image up to show skyline */
@media (min-width: 700px) and (max-width: 1079px) {
  .hero-bg {
    background-position: 50% 25%;
  }
}

/* Wide screens — keep cover but shift to show skyline */
@media (min-width: 1080px) {
  .hero-bg {
    background-position: 50% 20%;
  }
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero {
    --hero-min: 300px;
    --hero-fluid-ratio: 50;
    --hero-max: 580px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: clamp(28px, 6vh, 56px) 0 clamp(20px, 3.5vh, 32px);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 12px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  #services .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #services .card {
    padding: 20px 18px;
  }
}

@media (max-width: 640px) {
  .contact-sidebar {
    grid-template-columns: 1fr;
  }

  .form-row-half {
    flex-direction: column;
    gap: 16px;
  }

  .hero {
    --hero-min: 280px;
    --hero-fluid-ratio: 42;
    --hero-max: 380px;
  }

  .hero-inner {
    padding: clamp(24px, 5vh, 44px) 0 clamp(16px, 2.8vh, 28px);
    gap: 16px;
  }

  .hero-sub {
    margin-bottom: 16px;
    max-width: 46ch;
  }

  /* --- tighten header row (new) --- */
  .nav-inner {
    display: flex;
    flex-wrap: wrap; /* keep wrap so links can drop below */
    align-items: center;
    padding: 8px 0; /* was 14px 0 */
    gap: 12px; /* optional */
    /* transform: translateY(7px); */
    position: relative; /* anchor mobile dropdown to header row */
  }

  .brand-title {
    line-height: 1;
  }

  .brand-subtitle {
    margin-top: 1px; /* was 3px */
    letter-spacing: 1.5px; /* optional */
  }

  .nav-toggle.is-ready {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
    width: 40px; /* was 44 */
    height: 40px; /* was 44 */
    gap: 5px; /* was 6 */
  }

  /* left group: logo + wordmark (keep) */
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-links {
    position: static;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    z-index: auto;
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
  }

  .nav-links a {
    padding: 6px 8px;
    width: auto;
  }

  .nav-links.js-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: max-content;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(10, 15, 26, 0.95);
    z-index: 60;

    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    overflow: hidden;
    transition:
      max-height 0.2s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .nav-links.js-nav.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links.js-nav a {
    padding: 8px 10px;
    width: 100%;
  }

  /* Hide underline animation in mobile dropdown */
  .nav-links.js-nav a:not(.btn)::after {
    display: none;
  }

  /* Service detail page mobile adjustments */
  .service-detail .service-subitem summary {
    padding: 14px 16px;
    gap: 12px;
  }

  .service-detail .service-subitem ul {
    padding: 0 16px 16px 36px;
  }

  .service-breadcrumb {
    font-size: 12px;
  }
}

/* Guardrail for tall + narrow screens (e.g. 641x1079, 800x1280, 810x1080) */
@media (max-width: 920px) and (min-height: 900px) {
  .hero {
    --hero-fluid-ratio: 30;
    --hero-max: 420px;
  }

  .hero-inner {
    padding: 46px 0 22px;
  }
}

/* Extra-narrow screens (sub-360 / Galaxy Fold outer screen / narrow browser windows) */
@media (max-width: 360px) {
  .container {
    width: 94vw;
  }

  .pricing-card-header {
    padding: 18px 14px 16px;
  }

  .pricing-card-body {
    padding: 18px 14px;
  }

  .pricing-flat-section {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .pricing-card-featured {
    border-radius: 14px;
  }

  .pricing-flat-why {
    padding: 14px 12px;
  }

  .pricing-example-item {
    padding: 10px;
    gap: 10px;
  }

  .pricing-surcharge {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .service-cta {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .pricing-includes li {
    padding-left: 22px;
    font-size: 13.5px;
  }

  .pricing-includes li::before {
    width: 12px;
    height: 6px;
    top: 12px;
  }

  .service-hero {
    padding: clamp(28px, 5vh, 48px) 0 clamp(20px, 3vh, 36px);
  }
}

/* Tall + narrow pricing guard (e.g. 360x800, phones in portrait with tall aspect) */
@media (max-width: 420px) and (min-height: 700px) {
  .pricing-detail .container {
    /* Let sections breathe vertically on tall narrow screens */
    gap: 24px;
    display: flex;
    flex-direction: column;
  }

  .pricing-flat-section {
    margin-top: 24px;
  }

  .pricing-surcharge {
    margin-top: 24px;
  }

  .service-cta {
    margin-top: 28px;
    margin-bottom: 28px;
  }
}
