/* ==========================================================================
   KHIDMAT — DESIGN SYSTEM
   Signature element: the "dispatch ticket" card — service, blog, and
   testimonial cards are styled like a technician's job ticket/work order,
   a real artifact from the trades world this brand operates in.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ---- Color tokens ---- */
  --ink:        #15192B;
  --ink-soft:   #4A4F63;
  --ink-faint:  #7A8094;
  --paper:      #FFFFFF;
  --paper-deep: #F5F6F8;
  --line:       #E4E6EC;
  --line-on-ink: rgba(255,255,255,0.14);
  --brass:      #C8862E;
  --brass-deep: #A66A1E;
  --brass-tint: #FDF0DC;
  --whatsapp:   #25D366;
  --whatsapp-deep: #1DA851;
  --white:      #FFFFFF;
  --danger:     #C0392B;

  /* ---- Type ---- */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ---- Scale ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(21,25,43,0.06), 0 8px 24px -12px rgba(21,25,43,0.18);
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p { color: rgba(255,255,255,0.72); }
.section--deep { background: var(--paper-deep); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-deep);
  margin-bottom: 12px;
}
.section--ink .eyebrow { color: var(--brass); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: var(--brass-deep); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-deep); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.section--ink .btn--outline:hover, .hero .btn--outline:hover { border-color: var(--brass); }
.section--ink .btn--outline, .hero .btn--outline { border-color: var(--line-on-ink); color: var(--white); }
.btn--ghost-light { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.18); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink);
  color: var(--brass); display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700;
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px; width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 16px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--ink); }
.dropdown a:hover { background: var(--paper-deep); }
.dropdown a .icon { width: 17px; height: 17px; color: var(--brass-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 16px; font-size: 0.88rem; }
.nav-toggle { display: flex; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 60; background: var(--white);
  padding: 20px; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.mobile-menu__close { background: none; border: none; }

/* ---- Sticky mobile action bar ---- */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.18); padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 6px; color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 600;
  font-family: var(--font-display); border-right: 1px solid var(--line-on-ink);
}
.mobile-action-bar a:last-child { border-right: none; }
.mobile-action-bar a.whatsapp { color: var(--whatsapp); }
.mobile-action-bar a.primary { background: var(--brass); color: var(--white); }
@media (min-width: 960px) { .mobile-action-bar { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* ---- Hero ---- */
.hero {
  padding: 56px 0 64px;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Background image — drop assets/img/hero.jpg to activate */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Dark overlay so text stays readable regardless of image brightness */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(21,25,43,0.88) 0%,
    rgba(21,25,43,0.75) 55%,
    rgba(21,25,43,0.55) 100%
  );
}
/* Decorative warm glow — sits above overlay */
.hero__glow {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,134,46,0.22), transparent 68%);
  z-index: 1;
  pointer-events: none;
}
/* All hero content sits above bg+overlay */
.hero > .container { position: relative; z-index: 2; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__pretitle { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.hero__pretitle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--whatsapp); }
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--brass); }
.hero__sub { font-size: 1.08rem; color: rgba(255,255,255,0.75); max-width: 540px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.hero__trust-item { display: flex; align-items: center; gap: 10px; }
.hero__trust-item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.hero__trust-item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ---- Hero lead form (ticket-styled) ---- */
.lead-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-card); position: relative;
}
.lead-card__tab {
  position: absolute; top: -14px; left: 26px; background: var(--brass); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  padding: 6px 14px; border-radius: 999px; letter-spacing: 0.03em;
}
.lead-card h3 { margin-bottom: 4px; }
.lead-card p.muted { font-size: 0.85rem; margin-bottom: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brass); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.76rem; color: var(--ink-faint); margin-top: 12px; text-align: center; }

@media (min-width: 880px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 16px 0; font-size: 0.82rem; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brass-deep); }
.breadcrumbs span.sep { margin: 0 6px; }

/* ---- Service grid + Ticket Card (signature component) ---- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem;
  font-weight: 500; background: var(--white); cursor: pointer; font-family: var(--font-body);
}
.filter-chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: 1fr 1fr; } }

.ticket {
  display: flex; background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--line); position: relative;
}
.ticket__stub {
  width: 64px; flex-shrink: 0; background: var(--ink); color: var(--brass);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ticket__stub .icon { width: 26px; height: 26px; }
.ticket__perf {
  position: absolute; right: -7px; top: 0; bottom: 0; width: 14px;
  background-image: radial-gradient(circle, var(--paper) 4px, transparent 4.5px);
  background-size: 14px 18px; background-repeat: repeat-y; background-position: center;
}
.ticket__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.ticket__cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--brass-deep); margin-bottom: 6px; }
.ticket__body h3 { margin-bottom: 6px; font-size: 1.08rem; }
.ticket__body p { font-size: 0.88rem; margin-bottom: 14px; flex: 1; }
.ticket__cities { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket__cities a {
  font-size: 0.78rem; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--paper-deep); border: 1px solid var(--line);
}
.ticket__cities a:hover { border-color: var(--brass); color: var(--brass-deep); }

/* Photo variant — used automatically when a service photo exists */
.ticket--photo { flex-direction: column; }
.ticket--photo .ticket__photo { width: 100%; height: 210px; object-fit: cover; object-position: center; background: var(--paper-deep); }
.ticket--photo .ticket__strip {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--ink); color: var(--brass);
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.ticket--photo .ticket__strip .icon { width: 15px; height: 15px; }
.ticket--photo .ticket__body { padding: 16px 20px 20px; }

/* ---- Why-us / Process ---- */
.feature-card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.feature-card .icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brass-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-card .icon-wrap .icon { color: var(--brass-deep); width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; margin: 0; }

.process-list { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 760px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--brass);
  display: block; margin-bottom: 10px;
}
.process-step h3 { font-size: 0.98rem; margin-bottom: 4px; }
.process-step p { font-size: 0.85rem; margin: 0; }

/* ---- Areas / chips ---- */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip { font-size: 0.82rem; padding: 7px 13px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---- Price box ---- */
.price-box { background: var(--ink); color: var(--white); border-radius: var(--radius-md); padding: 22px; }
.price-box__amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--brass); }
.price-box p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 8px 0 0; }

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--ink);
}
.faq-q .icon { width: 18px; height: 18px; color: var(--brass-deep); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 4px 18px; font-size: 0.92rem; margin: 0; }

/* ---- Testimonials ---- */
.testi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.testi-card__stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 12px; }
.testi-card__stars .icon { width: 15px; height: 15px; fill: currentColor; }
.testi-card p.quote { font-size: 0.94rem; color: var(--ink); margin-bottom: 14px; }
.testi-card__name { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.testi-card__area { font-size: 0.78rem; color: var(--ink-faint); }

/* ---- Blog cards ---- */
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.blog-card__top { background: var(--paper-deep); padding: 16px 20px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brass-deep); }
.blog-card__body { padding: 18px 20px 22px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { font-size: 0.88rem; margin-bottom: 14px; }
.blog-card__meta { font-size: 0.76rem; color: var(--ink-faint); display: flex; gap: 10px; }
.blog-card a.stretched { color: var(--brass-deep); font-weight: 600; font-size: 0.85rem; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--ink), #1F2440); color: var(--white);
  border-radius: var(--radius-lg); padding: 44px 32px; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--brass); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.footer-grid p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid var(--line-on-ink); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ---- Misc page bits ---- */
.prose { font-size: 1rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; }
.table-of-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.table-of-rows .row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.table-of-rows .row:last-child { border-bottom: none; }
.table-of-rows .row:nth-child(even) { background: var(--paper-deep); }

.alert-success { background: #E7F6EC; border: 1px solid #BCE6C9; color: #1D6B36; padding: 16px 18px; border-radius: var(--radius-md); font-size: 0.92rem; }
.alert-error { background: #FBEAEA; border: 1px solid #F0BDBD; color: var(--danger); padding: 16px 18px; border-radius: var(--radius-md); font-size: 0.92rem; }

.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 940px) { .two-col { grid-template-columns: 2fr 1fr; align-items: start; } }
.sticky-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

/* ====================================================
   MOBILE IMPROVEMENTS — full responsive polish
   ==================================================== */

/* ---- Filter chips scroll on mobile ---- */
@media (max-width: 639px) {
  .filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }
}

/* ---- Hero: stack on mobile, comfortable padding ---- */
@media (max-width: 879px) {
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero__sub { font-size: 0.97rem; }
  .hero__trust { gap: 14px; }
  /* On mobile keep the image but shift focus to center so a technician face/hands stay visible */
  .hero__bg { background-position: center center; }
}

/* ---- Lead card full-width on mobile ---- */
@media (max-width: 879px) {
  .lead-card { margin-top: 8px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Sections less padding on mobile ---- */
@media (max-width: 639px) {
  .section { padding: 44px 0; }
  .section--tight { padding: 28px 0; }
  .container { padding: 0 16px; }
}

/* ---- Service ticket cards: single column on small phones ---- */
@media (max-width: 519px) {
  .grid--3 { grid-template-columns: 1fr; }
}

/* ---- Process steps: 2-col on tablet ---- */
@media (min-width: 520px) and (max-width: 759px) {
  .process-list { grid-template-columns: 1fr 1fr; }
}

/* ---- Feature cards grid: 2-col on tablet ---- */
@media (min-width: 520px) and (max-width: 879px) {
  .grid--3 .feature-card { /* already handled by grid */ }
}

/* ---- CTA band: smaller padding on mobile ---- */
@media (max-width: 639px) {
  .cta-band { padding: 30px 20px; border-radius: var(--radius-md); }
  .cta-band h2 { font-size: 1.4rem; }
}

/* ---- Two-col contact: stack on mobile ---- */
@media (max-width: 939px) {
  .sticky-side { position: static; }
}

/* ---- Testimonials: 1-col on mobile, 2-col on tablet ---- */
@media (min-width: 520px) and (max-width: 879px) {
  .grid--3.testi-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Footer: readable on small screens ---- */
@media (max-width: 479px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Booking form: contact preference label ---- */
.form-row select option { font-size: 0.95rem; }

/* ---- Dropdown: don't overflow on tablets ---- */
@media (max-width: 1100px) {
  .dropdown { width: 220px !important; left: 0; }
}

/* ---- Header: tighter on small/medium screens (covers the gap up to where
   the desktop nav takes over at 960px) ---- */
@media (max-width: 599px) {
  .site-header__bar { padding: 10px 0; }
  .brand { font-size: 1.05rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 11px 12px; }
}

/* ---- Service ticket photo: consistent height on 2-col ---- */
@media (min-width: 520px) and (max-width: 879px) {
  .ticket--photo .ticket__photo { height: 180px; }
}

/* ---- Grid items must never force horizontal overflow ---- */
.grid > * { min-width: 0; }
.two-col > * { min-width: 0; }
.form-grid-2 > * { min-width: 0; }
.form-row input, .form-row select, .form-row textarea { min-width: 0; }

/* ---- Long/dynamic-text buttons wrap instead of overflowing the
   viewport on narrow phones (service names, area links, etc. vary
   in length and aren't always inside a flex/grid context) ---- */
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---- Hero image fallback ----
   If hero.jpg is not yet uploaded, .hero__bg has no visible image
   and the section gracefully falls back to the solid --ink background.
   No JS or PHP needed — CSS handles it silently. */
