/* ============================================================
   Pipe Dream Pros – Main Stylesheet
   Replicates the Next.js / Tailwind design in plain CSS
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --primary:        hsl(211, 64%, 43%);
  --primary-light:  hsl(211, 64%, 95%);
  --primary-dark:   hsl(211, 64%, 35%);

  --secondary:      hsl(185, 65%, 52%);
  --secondary-dark: hsl(185, 65%, 44%);
  --secondary-light:hsl(185, 65%, 94%);

  --bg:             hsl(214, 32%, 96%);
  --foreground:     hsl(222, 47%, 11%);

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --border:   hsl(214.3, 31.8%, 91.4%);
  --radius:   0.75rem;
  --radius-sm:0.5rem;
  --radius-lg:1rem;
  --radius-xl:1.5rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);

  --container-max: 80rem;   /* max-w-7xl = 1280px */
  --header-h:      4rem;    /* h-16 */
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Site Wrapper & Page Content ─────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
}

.page-content-wrapper {
  flex: 1;
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-max);
  background: #fff;
  box-shadow: var(--shadow-sm);
  outline: 1px solid var(--slate-200);
}

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 3rem; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 4rem; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

/* Accent (teal) */
.btn-accent {
  background: var(--secondary);
  color: #fff;
}
.btn-accent:hover { background: var(--secondary-dark); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Sizes */
.btn-sm  { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg  { padding: 0 2rem; height: 3.5rem; font-size: 1.125rem; }
.btn-full{ width: 100%; height: 3rem; font-size: 1.125rem; }

.btn:disabled { opacity: 0.6; pointer-events: none; }

/* Width helper */
.w-full { width: 100%; }

/* ── Text helpers ────────────────────────────────────────── */
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }


/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
  flex-shrink: 0;
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.desktop-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: color 0.15s;
}
.desktop-nav a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
  transition: text-decoration 0.15s;
}
.header-phone:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .header-phone { display: flex; }
}

.header-btns {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .header-btns { display: flex; }
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--slate-700);
}
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-menu { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: block; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
@media (max-width: 767px) {
  .mobile-nav { display: block; }
}
.mobile-nav.is-open {
  max-height: 28rem;
  opacity: 1;
}

.mobile-nav-links { display: flex; flex-direction: column; padding: 1rem 1rem 0; }
.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}


/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  padding: 3rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .hero-section { padding: 6rem 0; } }
@media (min-width: 1024px){ .hero-section { padding: 8rem 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-text { display: flex; flex-direction: column; gap: 1rem; }

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--slate-900);
}
@media (min-width: 640px)  { .hero-text h1 { font-size: 3rem; } }
@media (min-width: 768px)  { .hero-text h1 { font-size: 3.75rem; } }

.hero-text p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 37.5rem;
  line-height: 1.75;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
.hero-actions .btn-primary {
  box-shadow: 0 10px 15px -3px hsl(211 64% 43% / 0.2);
}

/* Badges row */
.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .hero-badges { grid-template-columns: repeat(4, 1fr); }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}
.hero-badge svg { color: var(--primary); flex-shrink: 0; }

/* Hero image */
.hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid #fff;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ══════════════════════════════════════════════════════════
   TRUST SIGNALS
   ══════════════════════════════════════════════════════════ */
.trust-section {
  padding: 3rem 0;
  background-color: var(--slate-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.trust-card:hover { box-shadow: var(--shadow-md); }

.trust-icon {
  padding: 0.75rem;
  background: hsl(185 65% 52% / 0.1);
  border-radius: 9999px;
  color: var(--secondary);
}

.trust-card h3 { font-weight: 700; font-size: 1.125rem; }
.trust-card p  { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.services-section { padding: 5rem 0; }

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 2.25rem; }
}
.section-header p {
  color: var(--slate-600);
  max-width: 43.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: hsl(211 64% 43% / 0.5); }

.service-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(211 64% 43% / 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.875rem; color: var(--slate-600); flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
  transition: gap 0.15s;
}
.service-link:hover { gap: 0.75rem; }


/* ══════════════════════════════════════════════════════════
   WHY CHOOSE US
   ══════════════════════════════════════════════════════════ */
.why-section {
  padding: 5rem 0;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.why-circle {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.why-circle--top-right {
  width: 16rem; height: 16rem;
  top: 0; right: 0;
  transform: translate(50%, -50%);
}
.why-circle--bottom-left {
  width: 24rem; height: 24rem;
  bottom: 0; left: 0;
  transform: translate(-50%, 50%);
}

.why-inner { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-heading { display: flex; flex-direction: column; gap: 1.5rem; }
.why-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .why-heading h2 { font-size: 3rem; } }
.why-heading p { color: rgba(255,255,255,0.8); font-size: 1.125rem; line-height: 1.75; }

.why-reasons { display: flex; flex-direction: column; gap: 1rem; }

.why-reason {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.why-reason:hover { background: rgba(255,255,255,0.08); }

.why-check { color: var(--secondary); flex-shrink: 0; margin-top: 0.125rem; }
.why-reason h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.why-reason p  { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════
   PROJECT SHOWCASE
   ══════════════════════════════════════════════════════════ */
.projects-section {
  padding: 5rem 0;
  background: hsl(214 32% 98% / 0.5);
}

/* Badge outline */
.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: 1fr 1fr; } }

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: var(--shadow-md); }

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 16rem;
  position: relative;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-img-wrap--after { border-left: 2px solid #fff; }
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.project-label--before {
  background: rgba(0,0,0,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.project-label--after {
  background: var(--primary);
  color: #fff;
}

.project-body { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
}
.project-meta span { display: flex; align-items: center; gap: 0.25rem; }

.project-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.15s;
}
.project-card:hover h3 { color: var(--primary); }

.project-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.project-card-link:hover { color: inherit; }

.project-body p { color: var(--slate-600); line-height: 1.75; }

.project-tag-wrap { padding-top: 1rem; border-top: 1px solid var(--slate-100); }

.badge-service {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: hsl(211 64% 43% / 0.05);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}


/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════ */
.testimonials-section { padding: 5rem 0; }

.stars-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.review-stars { display: flex; align-items: center; gap: 0.25rem; }

.review-card blockquote {
  font-style: italic;
  color: var(--slate-700);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.review-card blockquote::before { content: '"'; }
.review-card blockquote::after  { content: '"'; }

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.reviewer-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  flex-shrink: 0;
}

.reviewer-name     { font-weight: 700; font-size: 0.875rem; }
.reviewer-location { font-size: 0.75rem; color: var(--slate-500); }


/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact-section { padding: 5rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* Left column */
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .contact-info h2 { font-size: 2.25rem; } }
.contact-info > div > p { font-size: 1.125rem; color: var(--slate-600); margin-top: 1rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
a.contact-item--primary { transition: color 0.15s; }
a.contact-item--primary:hover .contact-item-value { color: var(--primary); }

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.contact-item-icon--primary {
  background: var(--primary);
  color: #fff;
}
a.contact-item--primary:hover .contact-item-icon--primary { transform: scale(1.1); }

.contact-item-label { font-size: 0.875rem; color: var(--slate-500); font-weight: 500; }
.contact-item-value { font-size: 1.25rem; font-weight: 700; }

/* Form card */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact-form-decoration {
  position: absolute;
  top: 0; right: 0;
  width: 8rem; height: 8rem;
  background: hsl(185 65% 52% / 0.05);
  border-radius: 9999px;
  transform: translate(50%, -50%);
  pointer-events: none;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Address row: street takes 2x width on desktop, wraps on mobile */
@media (min-width: 640px) {
  .form-row--address { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 639px) {
  .form-row--address { grid-template-columns: 1fr 1fr; }
  .form-row--address .form-group--street { grid-column: 1 / -1; }
}

/* Ensure hidden attribute fully hides element */
[hidden] { display: none !important; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-group label span { color: var(--slate-400); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(211 64% 43% / 0.1);
}
.form-group textarea { resize: vertical; min-height: 6.25rem; }

/* Placeholder color */
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-300); }
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder { color: transparent; }

/* Issue chips */
.label-hint { font-size: 0.75rem; color: var(--slate-400); font-weight: 400; margin-left: 0.25rem; }

.issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.issue-chip {
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.issue-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.issue-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.form-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* Form notice */
.form-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-notice.success {
  background: hsl(142 71% 45% / 0.1);
  color: hsl(142 71% 35%);
  border: 1px solid hsl(142 71% 45% / 0.3);
}
.form-notice.error {
  background: hsl(0 84% 60% / 0.1);
  color: hsl(0 84% 40%);
  border: 1px solid hsl(0 84% 60% / 0.3);
}


/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand p { max-width: 28rem; line-height: 1.75; font-size: 0.9375rem; }
.footer-phone   { color: #fff; font-weight: 700; margin-top: 1rem; }

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.footer-col ul  { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a   { font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(217 19% 27%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { transition: color 0.15s; }
.footer-legal a:hover { color: #fff; }


/* ══════════════════════════════════════════════════════════
   FORM SUBMIT BUTTON STATE
   ══════════════════════════════════════════════════════════ */
#submitBtn { position: relative; }
#submitBtn .btn-icon { flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   SINGLE WORK (시공사례 상세)
   ══════════════════════════════════════════════════════════ */
.single-work-main { padding: 3rem 0 6rem; }

.single-work-container { max-width: 900px; }

.breadcrumb { margin-bottom: 2rem; }
.breadcrumb a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--primary); }

.single-work-header { margin-bottom: 2rem; }
.single-work-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .single-work-header h1 { font-size: 2.75rem; } }

/* ── Before/After Comparison Slider ─────────────────── */
.comparison-slider-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.comparison-slider-mini .cs-handle-circle {
  width: 36px;
  height: 36px;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
}
.cs-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: inset(0 50% 0 0);
}
.cs-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
.cs-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--primary);
}
.cs-label-after {
  left: auto !important;
  right: 1rem;
}
.comparison-slider-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.comparison-slider-mini .cs-after,
.comparison-slider-mini .cs-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comparison-slider-mini .cs-before {
  clip-path: inset(0 50% 0 0);
}

.single-work-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (max-width: 600px) { .single-work-images { grid-template-columns: 1fr; } }

.single-work-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.single-work-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-work-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-700);
  margin-bottom: 4rem;
}
.single-work-content h2,
.single-work-content h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}
.single-work-content p { margin-bottom: 1rem; }
.single-work-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.single-work-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.single-work-content li { margin-bottom: 0.4rem; }

.single-work-cta {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
}
.single-work-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.single-work-cta p {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}


/* ══════════════════════════════════════════════════════════
   SINGLE SERVICE (서비스 상세)
   ══════════════════════════════════════════════════════════ */
.single-service-main { padding: 3rem 0 6rem; }
.single-service-container { max-width: 900px; }

.single-service-header {
  text-align: center;
  margin-bottom: 3rem;
}
.single-service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(211 64% 43% / 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.single-service-icon svg { width: 2rem; height: 2rem; }
.single-service-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .single-service-header h1 { font-size: 2.75rem; } }
.single-service-lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
