/* ==========================================================
   KG H2H – Location service pages (Tiruppur, Chennai)
   Loaded AFTER style.css. Only adds what style.css does not
   already provide; reuses the site's colour tokens (:root).
   Scoped under .loc-page so no other page is affected.
   ========================================================== */

/* Reserve space for the header that site-include.js injects after load,
   so the page content doesn't jump down (CLS). Applies only while empty. */
.loc-page #site-header:empty { min-height: 114px; }
@media (max-width: 1000px) { .loc-page #site-header:empty { min-height: 140px; } }
@media (max-width: 600px)  { .loc-page #site-header:empty { min-height: 183px; } }
@media (max-width: 480px)  { .loc-page #site-header:empty { min-height: 203px; } }

.loc-page .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.loc-page .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.loc-page .btn:focus-visible,
.loc-page .faq-q:focus-visible,
.loc-page .form-submit:focus-visible,
.loc-page a:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 3px; }

/* Breadcrumb as an ordered list (accessible).
   style.css styles every <nav> as the sticky white header bar, so reset it here. */
.loc-page nav.breadcrumb { position: static; z-index: auto; background: none; backdrop-filter: none; border: 0; padding: 0; }
.loc-page .breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.loc-page .breadcrumb li + li::before { content: '›'; margin: 0 6px 0 0; color: rgba(255,255,255,0.45); }
.loc-page .breadcrumb [aria-current] { color: rgba(255,255,255,0.85); }

/* Hero image (Chennai) */
.loc-hero-figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(15,10,60,0.35); background: rgba(255,255,255,0.08); }
.loc-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 465; object-fit: cover; }
.loc-hero-figure figcaption { font-size: 13px; color: rgba(255,255,255,0.75); padding: 10px 16px; }

/* Availability / honesty note */
.loc-note { display: flex; gap: 14px; align-items: flex-start; background: #FFFBEB; border: 1px solid #FDE68A; border-left: 4px solid #F59E0B; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin-top: 28px; }
.loc-note p { font-size: 14.5px; color: #78350F; line-height: 1.65; margin: 0; }
.loc-note strong { color: #92400E; }
.loc-note-icon { font-size: 20px; line-height: 1.3; flex-shrink: 0; }

/* Intro block */
.loc-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.loc-intro p { font-size: 16px; color: #374151; line-height: 1.8; margin-bottom: 16px; }
.loc-facts { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.loc-facts h3 { font-size: 17px; font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.loc-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.loc-facts dt { font-weight: 600; color: var(--slate); }
.loc-facts dd { margin: 0; color: var(--muted); }
.loc-facts dd a { color: var(--teal); font-weight: 600; }

/* Category heading inside the equipment section */
.loc-cat { margin-top: 44px; }
.loc-cat:first-of-type { margin-top: 8px; }
.loc-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; }
.loc-cat-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--slate); margin: 0; }
.loc-cat-head p { font-size: 14px; color: var(--muted); margin: 0; max-width: 560px; }

/* Equipment cards: tidy layout on top of the existing .equipment-card */
.loc-page .equipment-card { display: flex; flex-direction: column; }
.loc-page .equipment-card h4 { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.loc-page .equipment-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.loc-page .equipment-img-wrap img { padding: 0; object-fit: cover; }
.loc-page .equipment-card:hover .equipment-img-wrap img { transform: none; }
.loc-page .loc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.loc-page .loc-tags span { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--teal-light); color: var(--teal-dark); }
.loc-page .loc-tags span.buy { background: #F5F3FF; color: #6D28D9; }
.loc-page .enquire-link { font-size: 14px; font-weight: 600; color: var(--teal); background: none; border: none; padding: 0; cursor: pointer; text-align: left; font-family: var(--font-body); }
.loc-page .enquire-link:hover { color: var(--teal-dark); text-decoration: underline; }

/* Compact list cards (other equipment / services) */
.loc-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loc-list-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.loc-list-card h3, .loc-list-card h4 { font-size: 16px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.loc-list-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.loc-list-card ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.loc-list-card li { font-size: 14px; color: #374151; display: flex; gap: 8px; line-height: 1.55; }
.loc-list-card li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* Care situations (who it's for) */
.loc-care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.loc-care-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--teal); }
.loc-care-card .loc-ico { font-size: 28px; margin-bottom: 10px; display: block; }
.loc-care-card h3 { font-size: 18px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.loc-care-card > p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.loc-care-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.loc-care-card li { font-size: 13.5px; color: #374151; display: flex; gap: 8px; line-height: 1.5; }
.loc-care-card li::before { content: '•'; color: var(--teal); font-weight: 700; }

/* Two-column table-like comparison */
.loc-table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.loc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.loc-table caption { text-align: left; padding: 14px 18px; font-weight: 600; color: var(--slate); }
.loc-table th, .loc-table td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.loc-table thead th { background: var(--soft); color: var(--slate); font-weight: 700; }
.loc-table td { color: #374151; }

/* Enquiry form extras (base styles come from .contact-form) */
.loc-page .contact-info h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; color: var(--slate); line-height: 1.2; margin-bottom: 14px; }
.loc-page .contact-info > p { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.loc-page .contact-form h3 { margin-bottom: 8px; }
.loc-page .contact-info .highlight-box p { color: rgba(255,255,255,0.88); font-size: 14.5px; margin: 0; }
.loc-page .contact-info .warning-box p { color: #78350F; font-size: 14px; margin: 0; }
.loc-form-intro { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.loc-page .form-group .req { color: #B91C1C; }
.loc-page .form-group input[aria-invalid="true"],
.loc-page .form-group select[aria-invalid="true"] { border-color: #DC2626; background: #FEF2F2; }
.field-error { display: block; min-height: 0; font-size: 12.5px; color: #B91C1C; margin-top: 5px; }
.field-error:empty { display: none; }
.loc-form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.loc-form-note a { color: var(--teal); }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; color: #065F46; }
.form-status:empty { display: none; }
.form-status a { color: var(--teal); }
.loc-contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.loc-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #374151; }
.loc-contact-list a { color: var(--teal); font-weight: 600; }
.loc-contact-list .ico { font-size: 18px; width: 28px; flex-shrink: 0; }

/* Internal links */
.loc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.loc-links a { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--slate); font-weight: 600; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.loc-links a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.loc-links a:hover { border-color: var(--teal); box-shadow: var(--shadow); }

/* FAQ: allow longer answers than the site default (300px) */
.loc-page .faq-item.open .faq-a { max-height: 900px; }
.loc-page .faq-q { gap: 16px; }

/* Final CTA: three buttons */
.loc-page .contact-strip .btns .btn { min-width: 170px; justify-content: center; }

/* Leave room above the fixed floating buttons on small screens */
@media (max-width: 1000px) {
  .loc-intro { grid-template-columns: 1fr; gap: 28px; }
  .loc-list-grid, .loc-care-grid { grid-template-columns: 1fr 1fr; }
  .loc-links { grid-template-columns: 1fr 1fr; }
  .loc-hero-figure { max-width: 640px; }
}
@media (max-width: 640px) {
  .loc-page .section { padding: 56px 0; }
  .loc-page .hero { padding: 48px 0 44px; }
  .loc-page .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .loc-list-grid, .loc-care-grid, .loc-links { grid-template-columns: 1fr; }
  .loc-page .equipment-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .loc-page .equipment-card { padding: 12px; }
  .loc-page .equipment-card p { display: none; }
  .loc-page .equipment-card h4 { font-size: 14px; }
  .loc-facts dl { grid-template-columns: 1fr; gap: 2px 0; }
  .loc-facts dd { margin-bottom: 8px; }
  .loc-page .contact-strip .btns .btn { flex: 1 1 100%; }
  .loc-page footer { padding-bottom: 96px; }
}
@media (max-width: 360px) {
  .loc-page .equipment-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-page *, .loc-page *::before, .loc-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
