/* ============================================================
   CITY LANDING PAGES
   ------------------------------------------------------------
   Local SEO pages for Guwahati, Bongaigaon and Barpeta. Uses the
   same editorial system as the rest of the site — hairline grids,
   numbered eyebrows, display-face headings.
   ============================================================ */

.city-page section {
  padding-block: var(--section-y);
}

/* ---- Masthead ---- */
.city-hero {
  position: relative;
  background: hsl(var(--background));
  padding-block: clamp(9rem, 16vh, 12rem) clamp(3.5rem, 7vw, 6rem) !important;
  padding-inline: max(
    var(--gutter),
    calc((100% - var(--container)) / 2 + var(--gutter))
  );
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
}

.city-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -55%;
  width: 30vw;
  max-width: 400px;
  aspect-ratio: 1;
  border: 1px solid hsl(var(--accent) / 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.city-hero > * {
  position: relative;
  z-index: 1;
}

.city-hero h1 {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  max-width: 15ch;
}

.city-hero h1 em {
  font-style: italic;
  color: hsl(var(--accent));
}

.city-hero > p {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 54ch;
  margin-bottom: var(--space-12);
}

.city-hero .btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Prose ---- */
.city-intro {
  background: hsl(var(--background));
}

.city-prose {
  max-width: 66ch;
}

.city-prose p {
  font-size: var(--step-0);
  line-height: 1.85;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--space-6);
}

.city-prose strong {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* ---- Local factors: shared-hairline grid ---- */
.city-local {
  background: hsl(var(--muted));
}

.city-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--hairline));
  border-left: 1px solid hsl(var(--hairline));
}

.city-factor {
  border-right: 1px solid hsl(var(--hairline));
  border-bottom: 1px solid hsl(var(--hairline));
  padding: clamp(1.75rem, 3vw, 2.75rem);
  counter-increment: factor;
  position: relative;
}

.city-factor::before {
  content: counter(factor, decimal-leading-zero);
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.75rem);
  right: clamp(1.75rem, 3vw, 2.75rem);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: hsl(var(--accent) / 0.55);
}

.city-factors {
  counter-reset: factor;
}

.city-factor h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-4);
  max-width: 22ch;
}

.city-factor p {
  font-size: var(--step--1);
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  max-width: 46ch;
}

/* ---- Service list ---- */
.city-services {
  background: hsl(var(--background));
}

.city-service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid hsl(var(--border));
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.city-service-list li {
  border-bottom: 1px solid hsl(var(--border));
}

.city-service-list li:nth-child(odd) {
  border-right: 1px solid hsl(var(--border));
}

.city-service-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem) 1.25rem 0;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color var(--dur-fast) ease, padding-left var(--dur-base) var(--ease-out);
}

.city-service-list li:nth-child(even) a {
  padding-left: clamp(1rem, 2vw, 1.75rem);
}

.city-service-list a::after {
  content: "→";
  color: hsl(var(--accent));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}

.city-service-list a:hover {
  color: hsl(var(--accent));
}

.city-service-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Coverage ---- */
.city-areas {
  background: hsl(var(--muted));
}

.city-area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: var(--space-8);
}

.city-area-list li {
  border: 1px solid hsl(var(--border));
  padding: 0.625rem 1.125rem;
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
}

.city-areas-note {
  font-size: var(--step--1);
  color: hsl(var(--muted-foreground));
}

.city-areas-note a {
  color: hsl(var(--accent));
  text-underline-offset: 3px;
  /* real touch target on phones */
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* ---- FAQ ---- */
.city-faq {
  background: hsl(var(--background));
}

.city-faq .faq-container {
  max-width: 860px;
  border-top: 1px solid hsl(var(--hairline));
}

.city-faq .faq-item {
  border-bottom: 1px solid hsl(var(--border));
}

.city-faq .faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--step-1);
  font-weight: 400;
  color: hsl(var(--foreground));
  min-height: 64px;
  transition: color var(--dur-fast) ease;
}

.city-faq .faq-question:hover {
  color: hsl(var(--accent));
}

.city-faq .faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke-width: 1.25;
  color: hsl(var(--accent));
  transition: transform var(--dur-base) var(--ease-out);
}

.city-faq .faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.city-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}

.city-faq .faq-item.active .faq-answer {
  max-height: 40rem;
}

.city-faq .faq-answer p {
  padding: 0 3rem 1.75rem 0;
  color: hsl(var(--muted-foreground));
  font-size: var(--step-0);
  line-height: 1.8;
  max-width: 66ch;
}

/* ---- Closing CTA ---- */
.city-cta {
  background: hsl(var(--deep));
  color: hsl(var(--deep-foreground));
}

.city-cta h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: hsl(var(--deep-foreground));
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.city-cta p {
  color: hsl(var(--deep-muted));
  font-size: var(--step-1);
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: var(--space-12);
}

.city-cta .btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.city-cta .btn-primary {
  background: hsl(var(--accent-soft));
  border-color: hsl(var(--accent-soft));
  color: hsl(var(--deep)) !important;
}

.city-cta .btn-primary::before {
  background: hsl(var(--deep-foreground));
}

.city-cta .btn-outline {
  color: hsl(var(--deep-foreground));
  border-color: hsl(var(--deep-foreground) / 0.35);
}

.city-cta .btn-outline::before {
  background: hsl(var(--deep-foreground));
}

.city-cta .btn-outline:hover {
  color: hsl(var(--deep));
  border-color: hsl(var(--deep-foreground));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .city-factors {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .city-factor {
    border-right: none;
    padding-inline: 0;
  }

  .city-factor::before {
    right: 0;
  }

  .city-service-list {
    grid-template-columns: 1fr;
  }

  .city-service-list li:nth-child(odd) {
    border-right: none;
  }

  .city-service-list li:nth-child(even) a {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .city-hero {
    padding-block: 8rem 3rem !important;
  }

  .city-hero h1 {
    max-width: none;
  }

  .city-hero .btn-group,
  .city-cta .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .city-faq .faq-answer p {
    padding-right: 0;
  }
}
