﻿/*
 * Oto Tuan component styles
 * Phase 2 reusable component layer for Flatsome + UX Builder.
 */

:root {
  --ott-color-primary: #c71117;
  --ott-color-primary-dark: #8f0b10;
  --ott-color-primary-soft: #fff1f1;
  --ott-color-surface: #ffffff;
  --ott-color-surface-soft: #f7f7f8;
  --ott-color-surface-strong: #15181c;
  --ott-color-text: #1a1a1a;
  --ott-color-text-muted: #5a6470;
  --ott-color-text-inverse: #ffffff;
  --ott-color-border: rgba(199, 17, 23, 0.14);
  --ott-color-border-strong: rgba(199, 17, 23, 0.28);
  --ott-shadow-soft: 0 14px 32px rgba(199, 17, 23, 0.12);
  --ott-shadow-card: 0 10px 28px rgba(17, 24, 39, 0.08);
  --ott-radius-sm: 0.875rem;
  --ott-radius-md: 1.125rem;
  --ott-radius-lg: 1.5rem;
  --ott-space-1: 0.5rem;
  --ott-space-2: 0.75rem;
  --ott-space-3: 1rem;
  --ott-space-4: 1.25rem;
  --ott-space-5: 1.5rem;
  --ott-space-6: 2rem;
  --ott-focus-ring: 0 0 0 3px rgba(199, 17, 23, 0.2);
}

.ott-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  width: 100%;
}

.ott-btn:hover,
.ott-btn:active {
  transform: translateY(-1px);
  text-decoration: none;
}

.ott-btn:focus,
.ott-btn:focus-visible,
.ott-category-card__link:focus,
.ott-category-card__link:focus-visible,
.ott-installation-card__link:focus,
.ott-installation-card__link:focus-visible,
.ott-quote-cta__contact:focus,
.ott-quote-cta__contact:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
}

.ott-btn--primary {
  background: linear-gradient(135deg, var(--ott-color-primary), var(--ott-color-primary-dark));
  box-shadow: 0 10px 22px rgba(199, 17, 23, 0.22);
  color: var(--ott-color-text-inverse);
}

.ott-btn--primary:hover,
.ott-btn--primary:focus-visible {
  color: var(--ott-color-text-inverse);
}

.ott-btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.ott-btn--light {
  background: var(--ott-color-surface);
  color: var(--ott-color-primary-dark);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.ott-component-test {
  padding: 1.25rem;
  border: 1px solid var(--ott-color-border);
  border-left: 4px solid var(--ott-color-primary);
  border-radius: var(--ott-radius-sm);
  background: linear-gradient(180deg, var(--ott-color-surface), var(--ott-color-surface-soft));
  box-shadow: var(--ott-shadow-soft);
  color: var(--ott-color-text);
}

.ott-component-test__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--ott-color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ott-component-test__title {
  margin: 0 0 0.5rem;
  color: var(--ott-color-primary-dark);
  font-size: 1.25rem;
  line-height: 1.2;
}

.ott-component-test__text {
  margin: 0;
  line-height: 1.6;
}

.ott-hero {
  width: 100%;
  max-width: 100%;
}

.ott-hero__surface {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1rem;
  border-radius: var(--ott-radius-lg);
  background: linear-gradient(135deg, rgba(21, 24, 28, 0.94), rgba(199, 17, 23, 0.92));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--ott-shadow-soft);
  color: var(--ott-color-text-inverse);
}

.ott-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  max-width: 40rem;
}

.ott-hero__badge,
.ott-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--ott-space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ott-hero__badge {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.ott-hero__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  line-height: 1.08;
}

.ott-hero__subtitle {
  margin: var(--ott-space-3) 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.7;
}

.ott-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ott-space-2);
  margin-top: var(--ott-space-4);
}

.ott-hero--left .ott-hero__surface {
  text-align: left;
}

.ott-hero--center .ott-hero__surface,
.ott-hero--center .ott-hero__content {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ott-hero--center .ott-hero__actions {
  justify-content: center;
}

.ott-hero--compact .ott-hero__surface {
  min-height: 15rem;
}

.ott-hero--normal .ott-hero__surface {
  min-height: 18rem;
}

.ott-hero--large .ott-hero__surface {
  min-height: 21rem;
}

.ott-hero--text-dark .ott-hero__surface {
  background: linear-gradient(135deg, #fff7f7, #ffe5e7);
  color: var(--ott-color-text);
}

.ott-hero--text-dark .ott-hero__badge {
  background: rgba(199, 17, 23, 0.12);
  color: var(--ott-color-primary-dark);
}

.ott-hero--text-dark .ott-hero__subtitle {
  color: rgba(26, 26, 26, 0.82);
}

.ott-hero--text-dark .ott-btn--secondary {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(26, 26, 26, 0.28);
  color: var(--ott-color-text);
}

.ott-category-card,
.ott-trust-card,
.ott-installation-card {
  height: 100%;
}

.ott-category-card__link,
.ott-installation-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ott-color-border);
  border-radius: var(--ott-radius-md);
  background: var(--ott-color-surface);
  box-shadow: var(--ott-shadow-card);
  color: var(--ott-color-text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ott-category-card__link:hover,
.ott-installation-card__link:hover {
  transform: translateY(-2px);
  border-color: var(--ott-color-border-strong);
  box-shadow: var(--ott-shadow-soft);
  color: var(--ott-color-text);
  text-decoration: none;
}

.ott-category-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--ott-radius-md) var(--ott-radius-md) 0 0;
  background: var(--ott-color-surface-soft);
}

.ott-category-card__media img,
.ott-category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ott-category-card__media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ott-space-5);
}

.ott-category-card__body,
.ott-installation-card__header,
.ott-trust-card {
  padding: 1rem;
}

.ott-category-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--ott-space-2);
}

.ott-category-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ott-space-2);
}

.ott-category-card__icon,
.ott-trust-card__icon,
.ott-installation-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ott-category-card__media .ott-category-card__icon,
.ott-installation-card__visual .ott-installation-card__icon {
  width: 3rem;
  height: 3rem;
}

.ott-category-card__icon img,
.ott-trust-card__icon img,
.ott-installation-card__icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.ott-category-card__icon svg,
.ott-trust-card__icon svg,
.ott-installation-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.ott-category-card__badge,
.ott-installation-card__tag,
.ott-trust-card__highlight {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ott-category-card__badge,
.ott-installation-card__tag {
  background: var(--ott-color-surface-soft);
  color: var(--ott-color-primary-dark);
}

.ott-trust-card__highlight {
  margin: 0 0 var(--ott-space-1);
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary-dark);
}

.ott-category-card__title,
.ott-trust-card__title,
.ott-installation-card__title,
.ott-quote-cta__title {
  margin: 0;
  color: inherit;
  line-height: 1.2;
}

.ott-category-card__title,
.ott-installation-card__title {
  font-size: 1.25rem;
}

.ott-category-card__description,
.ott-trust-card__description,
.ott-installation-card__description,
.ott-quote-cta__description {
  margin: 0;
  color: var(--ott-color-text-muted);
  line-height: 1.65;
}

.ott-category-card--highlighted .ott-category-card__link {
  border-color: transparent;
  background: linear-gradient(180deg, #fff7f7, var(--ott-color-surface));
}

.ott-trust-card {
  border: 1px solid var(--ott-color-border);
  border-radius: var(--ott-radius-md);
  background: linear-gradient(180deg, var(--ott-color-surface), #fffafa);
  box-shadow: var(--ott-shadow-card);
}

.ott-trust-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--ott-space-3);
  margin-bottom: var(--ott-space-3);
}

.ott-trust-card__copy {
  flex: 1;
}

.ott-installation-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--ott-space-3);
}

.ott-installation-card__visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.ott-installation-card__visual img,
.ott-installation-card__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.ott-installation-card__copy {
  flex: 1;
}

.ott-installation-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ott-space-2);
  padding: 0 1rem 1rem;
}

.ott-quote-cta {
  width: 100%;
}

.ott-quote-cta__surface {
  overflow: hidden;
  padding: 1.5rem 1rem;
  border-radius: var(--ott-radius-lg);
  background: linear-gradient(135deg, var(--ott-color-primary-dark), var(--ott-color-primary));
  box-shadow: var(--ott-shadow-soft);
  color: var(--ott-color-text-inverse);
}

.ott-quote-cta__content {
  width: min(100%, 42rem);
  max-width: 42rem;
}

.ott-quote-cta__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.ott-quote-cta__description {
  margin-top: var(--ott-space-3);
  color: rgba(255, 255, 255, 0.9);
}

.ott-quote-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ott-space-2);
  margin-top: var(--ott-space-4);
}

.ott-hero__actions .ott-btn,
.ott-quote-cta__actions .ott-btn {
  flex: 1 1 100%;
}

.ott-quote-cta__hotline {
  margin: var(--ott-space-3) 0 0;
}

.ott-quote-cta__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--ott-color-text-inverse);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ott-quote-cta__contact:hover,
.ott-quote-cta__contact:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--ott-color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   ott-branch-map — Branch network map section
   ========================================================================== */

/* -- Section wrapper ------------------------------------------------------- */
.ott-branch-map {
  width: 100%;
  padding: 2.75rem 1rem 6.5rem; /* reduced top, increased bottom clearance above sticky car-search bar */
  background: linear-gradient(160deg, #f4f6f9 0%, #edf0f5 100%);
}

.ott-branch-map__inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* -- Section header -------------------------------------------------------- */
.ott-branch-map__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ott-branch-map__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ott-color-primary);
  margin-bottom: 0.5rem;
}

.ott-branch-map__heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--ott-color-text);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.ott-branch-map__subheading {
  font-size: 1rem;
  color: var(--ott-color-text-muted);
  margin: 0;
}

/* -- Two-column body ------------------------------------------------------- */
.ott-branch-map__grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 2.25rem;
  align-items: start;
}

/* -- Map column ------------------------------------------------------------ */
.ott-branch-map__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Static image container */
.ott-branch-map__image-wrap {
  width: 100%;
  max-width: 100%; /* fill the column — let grid width control size */
  filter: drop-shadow(0 10px 32px rgba(17, 24, 39, 0.14));
}

.ott-branch-map__image-wrap picture {
  display: block;
  width: 100%;
}

.ott-branch-map__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ott-radius-md);
}
/* -- Panel (right column) -------------------------------------------------- */
.ott-branch-map__panel {
  background: var(--ott-color-surface);
  border-radius: var(--ott-radius-lg);
  box-shadow: var(--ott-shadow-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ott-branch-map__panel-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 1rem;
}

.ott-branch-map__panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ott-color-text);
  margin: 0 0 0.25rem;
}

.ott-branch-map__panel-hint {
  font-size: 0.82rem;
  color: var(--ott-color-text-muted);
  margin: 0;
}

/* -- Branch cards ---------------------------------------------------------- */
.ott-branch-map__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ott-branch-map__card {
  background: #ffffff;
  border: 1.5px solid rgba(199, 17, 23, 0.10);
  border-radius: var(--ott-radius-sm);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  cursor: default;
}

.ott-branch-map__card.is-active,
.ott-branch-map__card:hover {
  border-color: rgba(199, 17, 23, 0.38);
  box-shadow: 0 6px 20px rgba(199, 17, 23, 0.12);
  transform: translateY(-2px);
}

.ott-branch-map__card-inner {
  display: flex;
  align-items: flex-start; /* badge and button anchor to the top of the card */
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: inherit;
}

.ott-branch-map__card-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ott-color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0; /* sits flush with the title row, no extra push */
}

.ott-branch-map__card.is-active .ott-branch-map__card-badge {
  background: var(--ott-color-primary-dark);
}

.ott-branch-map__card-body {
  flex: 1;
  min-width: 0;
}

.ott-branch-map__card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ott-color-text);
  display: flex;
  align-items: flex-start; /* pin icon stays top-aligned when title wraps */
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  line-height: 1.35; /* comfortable multi-line title */
}

.ott-branch-map__pin-icon {
  color: var(--ott-color-primary);
  flex-shrink: 0;
  line-height: 0;
}

.ott-branch-map__card-address {
  font-size: 0.825rem;
  color: var(--ott-color-text-muted);
  line-height: 1.65;
  font-style: normal;
}

.ott-branch-map__card-action {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start; /* button top-aligns with badge and title row */
  padding-top: 0.15rem;    /* optical nudge so button cap-height matches the title */
}

.ott-branch-map__card-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 36px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ott-color-primary);
  border: 1.5px solid var(--ott-color-primary);
  text-decoration: none;
  background: transparent;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ott-branch-map__card-btn:hover,
.ott-branch-map__card-btn:focus-visible {
  background: var(--ott-color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199, 17, 23, 0.22);
}

.ott-branch-map__card-btn:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
}

/* -- Support CTA ----------------------------------------------------------- */
.ott-branch-map__support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.ott-branch-map__support-text {
  font-size: 0.85rem;
  color: var(--ott-color-text-muted);
}

.ott-branch-map__support-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ott-color-primary);
  text-decoration: none;
  min-height: 44px;
  transition: color 0.18s ease;
}

.ott-branch-map__support-phone:hover,
.ott-branch-map__support-phone:focus-visible {
  color: var(--ott-color-primary-dark);
  text-decoration: underline;
}

.ott-branch-map__support-phone:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
  border-radius: 4px;
}

/* -- Responsive: desktop — equal-height columns ----------------------------- */
@media (min-width: 1024px) {
  /* Both columns stretch to match the taller sibling */
  .ott-branch-map__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    align-items: stretch;
    gap: 2.5rem;
  }

  /* Map column fills the full grid row height */
  .ott-branch-map__visual {
    height: 100%;
  }

  /* Image wrapper fills the column so the image can scale vertically */
  .ott-branch-map__image-wrap {
    height: 100%;
  }

  /* picture and img fill the wrapper without cropping map labels */
  .ott-branch-map__image-wrap picture {
    height: 100%;
  }

  .ott-branch-map__image {
    height: 100%;
    object-fit: contain; /* contain keeps all labels and island markers visible */
    object-position: top center;
  }

  /* Panel also stretches — its flex column already handles internal spacing */
  .ott-branch-map__panel {
    height: 100%;
    box-sizing: border-box;
  }
}

/* -- Responsive: tablet ---------------------------------------------------- */
@media (max-width: 900px) {
  .ott-branch-map__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ott-branch-map__visual {
    order: -1;
    align-items: center;
  }

  .ott-branch-map__image-wrap {
    max-width: 380px; /* centred portrait image, comfortable on tablet */
  }
}

/* -- Responsive: mobile ---------------------------------------------------- */
@media (max-width: 520px) {
  .ott-branch-map {
    padding: 2rem 0.75rem 5.5rem; /* extra bottom gap on mobile above sticky car-search */
  }

  .ott-branch-map__header {
    margin-bottom: 1.375rem;
  }

  .ott-branch-map__image-wrap {
    max-width: 100%; /* fill screen width, let aspect-ratio do the rest */
  }

  .ott-branch-map__panel {
    padding: 1.25rem;
    border-radius: var(--ott-radius-md);
  }

  .ott-branch-map__card-inner {
    flex-wrap: wrap;
    gap: 0.625rem;
  }

  .ott-branch-map__card-action {
    width: 100%;
    padding-left: calc(32px + 0.875rem);
  }

  .ott-branch-map__card-btn {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: 0.83rem;
  }
}


.ott-catalog-price {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--ott-color-primary-dark);
  font-weight: 700;
}

.ott-catalog-cta {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--ott-color-border);
  border-radius: var(--ott-radius-md);
  background: linear-gradient(180deg, var(--ott-color-surface), #fff7f7);
  box-shadow: var(--ott-shadow-card);
}

.ott-catalog-cta__title {
  margin: 0;
  color: var(--ott-color-primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.ott-catalog-cta__text {
  margin: 0.5rem 0 0;
  color: var(--ott-color-text-muted);
  line-height: 1.6;
}

.ott-catalog-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ott-catalog-cta__button,
.ott-catalog-loop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ott-catalog-cta__button:hover,
.ott-catalog-cta__button:active,
.ott-catalog-loop-cta:hover,
.ott-catalog-loop-cta:active {
  text-decoration: none;
  transform: translateY(-1px);
}

.ott-catalog-cta__button:focus,
.ott-catalog-cta__button:focus-visible,
.ott-catalog-loop-cta:focus,
.ott-catalog-loop-cta:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
}

.ott-catalog-cta__button--primary,
.ott-catalog-loop-cta {
  background: var(--ott-color-primary);
  color: var(--ott-color-text-inverse);
}

.ott-catalog-cta__button--primary:hover,
.ott-catalog-cta__button--primary:focus-visible,
.ott-catalog-loop-cta:hover,
.ott-catalog-loop-cta:focus-visible {
  background: var(--ott-color-primary-dark);
  color: var(--ott-color-text-inverse);
}

.ott-catalog-cta__button--secondary {
  background: var(--ott-color-surface);
  border-color: var(--ott-color-border-strong);
  color: var(--ott-color-primary-dark);
}

.ott-catalog-cta__button--secondary:hover,
.ott-catalog-cta__button--secondary:focus-visible {
  border-color: var(--ott-color-primary);
  color: var(--ott-color-primary-dark);
}

.ott-catalog-loop-cta {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.ott-product-service-info {
  margin: -0.25rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(199, 17, 23, 0.14);
  border-radius: var(--ott-radius-md);
  background: linear-gradient(180deg, var(--ott-color-surface), #fffafa);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  color: var(--ott-color-text);
}

.ott-service-heading {
  margin-bottom: 0.75rem;
}

.ott-service-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.ott-service-heading__title {
  margin: 0.5rem 0 0;
  color: var(--ott-color-primary-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.ott-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.ott-service-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(199, 17, 23, 0.1);
  border-radius: 0.875rem;
  background: var(--ott-color-surface);
}

.ott-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary);
  flex: 0 0 auto;
}

.ott-service-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ott-service-card__content {
  flex: 1;
  min-width: 0;
}

.ott-service-card__title {
  margin: 0;
  color: var(--ott-color-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.ott-service-card__text {
  margin: 0.25rem 0 0;
  color: var(--ott-color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ott-service-note {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(199, 17, 23, 0.12);
  border-radius: 0.875rem;
  background: rgba(199, 17, 23, 0.045);
}

.ott-service-note p {
  margin: 0;
  color: var(--ott-color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ott-service-note__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ott-color-border-strong);
  border-radius: 999px;
  background: var(--ott-color-surface);
  color: var(--ott-color-primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ott-service-note__icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.ott-service-note__link:hover,
.ott-service-note__link:active {
  border-color: var(--ott-color-primary);
  color: var(--ott-color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.ott-service-note__link:focus,
.ott-service-note__link:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
}

body.ott-catalog-mode .cart-item,
body.ott-catalog-mode .header-cart-link,
body.ott-catalog-mode .header-cart-title,
body.ott-catalog-mode .widget_shopping_cart,
body.ott-catalog-mode .woocommerce-mini-cart {
  display: none !important;
}

@media (min-width: 850px) {
  .ott-hero__surface,
  .ott-quote-cta__surface {
    padding: 3rem;
  }

  .ott-category-card__body,
  .ott-installation-card__header,
  .ott-trust-card {
    padding: var(--ott-space-5);
  }

  .ott-installation-card__meta {
    padding-right: var(--ott-space-5);
    padding-bottom: var(--ott-space-5);
    padding-left: var(--ott-space-5);
  }

  .ott-hero--compact .ott-hero__surface {
    min-height: 18rem;
  }

  .ott-hero--normal .ott-hero__surface {
    min-height: 22rem;
  }

  .ott-hero--large .ott-hero__surface {
    min-height: 26rem;
  }

  .ott-hero__actions .ott-btn,
  .ott-quote-cta__actions .ott-btn {
    flex: 0 1 auto;
    width: auto;
  }

  .ott-catalog-cta__actions {
    flex-direction: row;
  }

  .ott-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ott-service-card {
    flex-direction: column;
    gap: 0.6rem;
  }

  .ott-service-note {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ── Phase 5C: Improved Catalog Product Card UI ───────────────────── */

body.ott-catalog-mode .product-small .box {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ott-color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.ott-catalog-mode .product-small .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  border-color: rgba(199, 17, 23, 0.15);
}

/* Image standardization */
body.ott-catalog-mode .product-small .box-image {
  background-color: var(--ott-color-surface-soft);
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

body.ott-catalog-mode .product-small .box-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

body.ott-catalog-mode .product-small .box:hover .box-image img {
  transform: scale(1.04);
}

/* Content wrapper and layout */
body.ott-catalog-mode .product-small .box-text {
  padding: 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
}

/* Product title clamping */
body.ott-catalog-mode .product-small .name.product-title {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 8px 0;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.ott-catalog-mode .product-small .name.product-title a {
  color: var(--ott-color-text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.ott-catalog-mode .product-small .box:hover .name.product-title a {
  color: var(--ott-color-primary);
}

/* Price wrapper and catalog price styling */
body.ott-catalog-mode .product-small .price-wrapper {
  margin-bottom: 10px;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ott-catalog-mode .product-small .ott-catalog-price {
  font-size: 0.88rem;
  color: var(--ott-color-primary-dark);
  font-weight: 700;
}

/* Stable product CTA button style override */
body.ott-catalog-mode .product-small .ott-catalog-loop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--ott-color-primary);
  color: var(--ott-color-text-inverse);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  margin: auto 0 0 0;
  box-shadow: 0 4px 10px rgba(199, 17, 23, 0.15);
}

body.ott-catalog-mode .product-small .ott-catalog-loop-cta:hover {
  background: var(--ott-color-primary-dark);
  box-shadow: 0 6px 16px rgba(199, 17, 23, 0.28);
  transform: translateY(-1px);
  color: var(--ott-color-text-inverse);
}

body.ott-catalog-mode .product-small .ott-catalog-loop-cta:focus-visible {
  outline: none;
  box-shadow: var(--ott-focus-ring);
}

/* CTA note subtext */
body.ott-catalog-mode .product-small .ott-catalog-loop-cta-note {
  font-size: 0.72rem;
  color: var(--ott-color-text-muted);
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}

/* Screen size padding adjustments */
@media (min-width: 850px) {
  body.ott-catalog-mode .product-small .box-text {
    padding: 16px;
  }

  body.ott-catalog-mode .product-small .name.product-title {
    font-size: 0.94rem;
  }
}

/* ==========================================================================
   ott-branch-detail — Premium branch detail page section
   ========================================================================== */

/* -- Main wrapper ---------------------------------------------------------- */
.ott-branch-detail {
  width: 100%;
  background: linear-gradient(180deg, #f9fafb 0%, #f4f6f8 100%);
}

/* -- 1. Branch Hero -------------------------------------------------------- */
.ott-branch-hero {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--ott-color-primary-dark), var(--ott-color-primary));
  color: var(--ott-color-text-inverse);
  text-align: center;
}

.ott-branch-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.ott-branch-hero__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.ott-branch-hero__type {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ott-branch-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: inherit;
}

.ott-branch-hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

.ott-branch-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ott-branch-hero__actions .ott-btn {
  flex: 1 1 100%;
  max-width: 16rem;
}

.ott-branch-hero__actions .ott-btn svg {
  margin-right: 0.5rem;
}

/* -- 2. Storefront + quick summary ----------------------------------------- */
.ott-branch-detail__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 3rem 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.ott-branch-storefront {
  background: #fff;
  border: 1px solid rgba(199, 17, 23, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  min-height: 280px;
}

.ott-branch-storefront__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.ott-branch-storefront__placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}

.ott-branch-storefront__placeholder-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(199, 17, 23, 0.12);
  color: var(--ott-color-primary);
  font-size: 1.2rem;
}

.ott-branch-storefront__placeholder-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ott-color-text);
}

.ott-branch-storefront__placeholder-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ott-color-text-muted);
}

/* -- 2. Quick Info Cards --------------------------------------------------- */
.ott-branch-info {
  padding: 0;
  max-width: none;
  margin: 0;
}

@media (min-width: 1024px) {
  .ott-branch-detail__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .ott-branch-storefront,
  .ott-branch-info {
    height: 100%;
  }
}

@media (max-width: 1023px) {
  .ott-branch-detail__top {
    padding: 2rem 1rem;
  }
}

@media (max-width: 640px) {
  .ott-branch-storefront,
  .ott-branch-storefront__image,
  .ott-branch-storefront__placeholder {
    min-height: 220px;
  }
}

.ott-branch-info {
  padding: 0;
  max-width: none;
  margin: 0;
}

.ott-branch-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.ott-branch-info__card {
  padding: 1.75rem;
  border-radius: var(--ott-radius-lg);
  background: var(--ott-color-surface);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ott-branch-info__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

.ott-branch-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary);
  margin-bottom: 1rem;
}

.ott-branch-info__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ott-color-text);
}

.ott-branch-info__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ott-color-text-muted);
  font-style: normal;
}

.ott-branch-info__link {
  color: var(--ott-color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ott-branch-info__link:hover,
.ott-branch-info__link:focus-visible {
  color: var(--ott-color-primary-dark);
  text-decoration: underline;
}

/* -- 3. Map / Directions Area ---------------------------------------------- */
.ott-branch-map-section {
  padding: 2rem 1rem 3rem;
  max-width: 1140px;
  margin: 0 auto;
}

.ott-branch-map-placeholder {
  padding: 3rem 1.5rem;
  border-radius: var(--ott-radius-lg);
  background: var(--ott-color-surface);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  text-align: center;
}

.ott-branch-map-placeholder__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--ott-color-primary-soft);
  color: var(--ott-color-primary);
  margin-bottom: 1.5rem;
}

.ott-branch-map-placeholder__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ott-color-text);
}

.ott-branch-map-placeholder__text {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ott-color-text-muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.ott-branch-map-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ott-branch-map-placeholder__actions .ott-btn {
  flex: 1 1 100%;
  max-width: 14rem;
}

.ott-branch-map-embed-container {
  margin-top: 2rem;
  border-radius: var(--ott-radius-md);
  overflow: hidden;
}

.ott-branch-map-embed-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* -- 4. Trust Section ------------------------------------------------------ */
.ott-branch-trust {
  padding: 3rem 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.ott-branch-trust__heading {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ott-color-text);
  text-align: center;
}

.ott-branch-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* -- 5. Services Section --------------------------------------------------- */
.ott-branch-services {
  padding: 3rem 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.ott-branch-services__heading {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ott-color-text);
  text-align: center;
}

.ott-branch-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ott-branch-services__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--ott-radius-md);
  background: var(--ott-color-surface);
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ott-branch-services__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.1);
}

.ott-branch-services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ott-color-primary-soft);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ott-branch-services__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ott-color-text);
  line-height: 1.4;
}

/* -- 6. Bottom CTA --------------------------------------------------------- */
.ott-branch-bottom-cta {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--ott-color-primary-dark), var(--ott-color-primary));
  color: var(--ott-color-text-inverse);
}

.ott-branch-bottom-cta__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.ott-branch-bottom-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: inherit;
  line-height: 1.2;
}

.ott-branch-bottom-cta__text {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.95;
}

.ott-branch-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ott-branch-bottom-cta__actions .ott-btn {
  flex: 1 1 100%;
  max-width: 16rem;
}

/* -- Responsive: tablet ---------------------------------------------------- */
@media (min-width: 640px) {
  .ott-branch-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ott-branch-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ott-branch-hero__actions .ott-btn,
  .ott-branch-bottom-cta__actions .ott-btn {
    flex: 0 1 auto;
  }
}

/* -- Responsive: desktop --------------------------------------------------- */
@media (min-width: 900px) {
  .ott-branch-hero {
    padding: 4rem 2rem;
  }

  .ott-branch-info__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ott-branch-trust__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ott-branch-services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .ott-branch-bottom-cta {
    padding: 4rem 2rem;
  }
}
