/* ═══════════════════════════════════════════════
   ANSIKA INTERIORS — SERVICE.CSS
   Individual service detail pages
   Full mobile-first responsive coverage
═══════════════════════════════════════════════ */

/* ─── BREADCRUMB (service pages add margin-top here) */
.breadcrumb-bar {
  margin-top: 70px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--blue); }
.bc-sep { color: #cbd5e1; }
.bc-current { color: var(--text); font-weight: 600; }

/* ─── HERO SPLIT ─────────────────────────────── */
.sp-hero {
  padding: 3rem 0 2.5rem;
  background: #fff;
}
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;  /* both columns same height */
}

/* Right panel — scrolls internally if content taller than image */
.sp-details {
  display: flex;
  flex-direction: column;
  max-height: 580px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: .25rem;
}

/* ─── IMAGE CARD ─────────────────────────────── */
.sp-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  height: 100%;
  min-height: 480px;
  max-height: 580px;
}
.sp-img {
  width: 100%; height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.sp-img-wrap:hover .sp-img { transform: scale(1.03); }

.sp-img-badge {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  background: rgba(0,122,151,.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sp-img-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.sp-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(10,18,35,.9) 0%, rgba(10,18,35,.3) 70%, transparent 100%);
}
.sp-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.sp-tagline {
  font-size: .9375rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

/* ─── DETAILS PANEL ──────────────────────────── */
.sp-details-h {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .875rem;
}
.sp-details-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-bottom: 1.75rem;
}
.sp-list li {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  font-size: .9625rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.sp-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: .5rem;
}

.sp-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sp-meta-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
}
.sp-meta-card strong {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.sp-meta-card p { font-size: .875rem; color: var(--text-mid); line-height: 1.55; }

/* ─── GALLERY ────────────────────────────────── */
.sp-gallery-section { padding: 3rem 0; background: #fff; }
.sp-gallery-h {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.sp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sp-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  /* Fixed height — every image identical regardless of source dimensions */
  height: 260px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  cursor: pointer;
}
.sp-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,122,151,0);
  transition: background .35s ease;
  border-radius: 14px;
  pointer-events: none;
}
.sp-gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,122,151,.22);
}
.sp-gallery-item:hover::after {
  background: rgba(0,122,151,.08);
}
.sp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.sp-gallery-item:hover img { transform: scale(1.08); }

/* ─── CTA SECTION ────────────────────────────── */
.sp-cta-section { padding: 2.5rem 0 3.5rem; background: var(--bg-light); }
.sp-cta-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,122,151,.07);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.sp-cta-h {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: .875rem;
}
.sp-cta-desc {
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.sp-cta-tags { display: flex; flex-wrap: wrap; gap: .625rem; }
.sp-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .375rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-light);
}
.sp-tag-dot { color: var(--blue); font-size: .5rem; }

/* ─── FORM ───────────────────────────────────── */
.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  margin-bottom: .875rem;
}
.sp-input {
  width: 100%;
  padding: .8125rem 1.125rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg-light);
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
  /* Fix iOS font size zoom */
  font-size: max(16px, .9375rem);
}
.sp-input::placeholder { color: #94a3b8; }
.sp-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,151,.1); background: #fff; }
.sp-textarea { display: block; margin-bottom: .875rem; }
.sp-submit-btn {
  width: 100%;
  padding: .9375rem;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 20px rgba(0,122,151,.35);
  transition: all .25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sp-submit-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

.sp-success { text-align: center; padding: 1.5rem; }
.sp-success-icon {
  width: 64px; height: 64px;
  background: #dcfce7; color: #16a34a;
  font-size: 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.sp-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.sp-success p { color: var(--text-light); margin-bottom: 1rem; }
.sp-reset-btn { background: none; color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* ─── OTHER SERVICES ─────────────────────────── */
.sp-other-section { padding: 3.5rem 0 5rem; background: #fff; }
.sp-other-h { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 1.75rem; }
.sp-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.sp-other-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sp-other-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,122,151,.12); border-color: rgba(0,122,151,.3); }
.sp-other-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.sp-other-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp-other-card:hover .sp-other-img-wrap img { transform: scale(1.07); }
.sp-other-body { padding: 1.125rem 1.25rem 1.375rem; }
.sp-other-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.sp-other-body p { font-size: .84rem; color: var(--text-light); line-height: 1.55; margin-bottom: .75rem; }
.sp-other-link { font-size: .84rem; font-weight: 700; color: var(--blue); }
.sp-other-card:hover .sp-other-link { text-decoration: underline; }

.dropdown-item.active-item { background: var(--blue-pale); color: var(--blue); font-weight: 700; }

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */

/* ─── ≤900px — single column hero ───────────── */
@media (max-width: 900px) {
  .sp-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sp-details { max-height: none; overflow-y: visible; }
  .sp-img-wrap { max-height: 400px; }
  .sp-img { min-height: 360px; }
  .sp-cta-card { grid-template-columns: 1fr; gap: 2rem; }
  .sp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-gallery-item { height: 220px; }
}

/* ─── ≤640px — tablet/large phone ───────────── */
@media (max-width: 640px) {
  .sp-hero { padding: 2rem 0 1.75rem; }
  .sp-img-wrap { min-height: 300px; max-height: 320px; }
  .sp-img { min-height: 300px; }
  .sp-details { max-height: none; overflow-y: visible; }
  .sp-img-overlay { padding: 1.5rem; }
  .sp-title { font-size: 1.625rem; }
  .sp-details-h { font-size: 1.5rem; }
  .sp-gallery-section { padding: 2rem 0; }
  .sp-cta-section { padding: 1.75rem 0 2.5rem; }
  .sp-cta-card { padding: 1.75rem; }
  .sp-other-section { padding: 2.5rem 0 4rem; }
  .sp-other-grid { grid-template-columns: 1fr; }
}

/* ─── ≤480px — small phones ─────────────────── */
@media (max-width: 480px) {
  .sp-hero { padding: 1.5rem 0; }
  .sp-img-wrap { min-height: 240px; max-height: 260px; border-radius: 12px; }
  .sp-img { min-height: 240px; }
  .sp-details { max-height: none; overflow-y: visible; }
  .sp-img-overlay { padding: 1.25rem; }
  .sp-title { font-size: 1.375rem; }
  .sp-tagline { font-size: .875rem; }
  .sp-details-h { font-size: 1.25rem; }
  .sp-details-intro { font-size: .9375rem; }
  .sp-meta-row { grid-template-columns: 1fr; gap: .75rem; }
  .sp-gallery-grid { grid-template-columns: 1fr; gap: .875rem; }
  .sp-cta-card { padding: 1.25rem; }
  .sp-cta-h { font-size: 1.25rem; }
  .sp-form-row { grid-template-columns: 1fr; }
}

/* ─── Touch — always show overlays, no hover transforms */
@media (hover: none) {
  .sp-img-wrap:hover .sp-img { transform: none; }
  .sp-gallery-item:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
  .sp-gallery-item:hover img { transform: none; }
  .sp-other-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .sp-other-card:hover .sp-other-img-wrap img { transform: none; }
  .sp-submit-btn:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════
   SERVICE PAGE MOBILE FIXES — v2
═══════════════════════════════════════════════════ */

/* ─── Breadcrumb on mobile ───────────────────────── */
@media (max-width: 767px) {
  .breadcrumb-bar { margin-top: 62px; }
}

/* ─── Hero split ─────────────────────────────────── */
@media (max-width: 767px) {
  .sp-hero { padding: 1.5rem 0 2rem; }
  .sp-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sp-img-wrap { min-height: 260px; max-height: 320px; border-radius: 12px; }
  .sp-img { min-height: 260px; }
  .sp-details { max-height: none; overflow-y: visible; padding-right: 0; }
  .sp-img-overlay { padding: 1.25rem; }
  .sp-title { font-size: clamp(1.375rem, 5vw, 1.75rem); }
  .sp-tagline { font-size: .875rem; }
  .sp-details-h { font-size: 1.375rem; }
  .sp-details-intro { font-size: .9375rem; }
  .sp-meta-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .sp-meta-row { grid-template-columns: 1fr; }
  .sp-img-wrap { min-height: 220px; }
  .sp-img { min-height: 220px; }
}

/* ─── Gallery ────────────────────────────────────── */
@media (max-width: 767px) {
  .sp-gallery-section { padding: 2rem 0; }
  .sp-gallery-grid { grid-template-columns: 1fr 1fr; gap: .875rem; }
  .sp-gallery-item { height: 200px; }
  .sp-gallery-h { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .sp-gallery-grid { grid-template-columns: 1fr; }
  .sp-gallery-item { height: 220px; }
}

/* ─── CTA card ───────────────────────────────────── */
@media (max-width: 767px) {
  .sp-cta-section { padding: 1.75rem 0 2.5rem; }
  .sp-cta-card { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; border-radius: 14px; }
  .sp-cta-h { font-size: 1.375rem; }
  .sp-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sp-cta-card { padding: 1.125rem; }
  .sp-input { padding: .75rem .875rem; font-size: .9rem; }
  .sp-submit-btn { padding: .875rem; font-size: .9375rem; }
}

/* ─── Other services ─────────────────────────────── */
@media (max-width: 767px) {
  .sp-other-section { padding: 2.5rem 0 3.5rem; }
  .sp-other-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sp-other-h { font-size: 1.25rem; margin-bottom: 1.25rem; }
}
@media (max-width: 480px) {
  .sp-other-grid { grid-template-columns: 1fr; }
}

/* ─── Touch: always-visible gallery items ────────── */
@media (hover: none) {
  .sp-gallery-item { transform: none !important; }
  .sp-gallery-item:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
  .sp-gallery-item:hover::after { background: rgba(0,122,151,0); }
  .sp-gallery-item:hover img { transform: none; }
  .sp-other-card:hover { transform: none; box-shadow: none; }
}

/* ─── Touch targets ──────────────────────────────── */
.sp-submit-btn { min-height: 48px; }

