/* =========================================================
   Spanish Home Insurance — site-specific overrides
   Loaded AFTER styles.css (the shared design system).
   Keeps the shared sheet untouched.
   ========================================================= */

/* ---- 5-column footer on desktop (brand + 3 link cols + contact) ---- */
@media (min-width: 1081px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }

/* ---- 6-up product grid: 3 cols desktop, responsive down ---- */
.tiers.tiers--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .tiers.tiers--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .tiers.tiers--3 { grid-template-columns: 1fr; } }

/* ---- Sleeker mobile action bar (less bubbly, on-brand) ---- */
@media (max-width: 760px) {
  .mobilecta {
    padding: 7px 8px;
    gap: 7px;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(0,31,63,.08);
  }
  .mobilecta a {
    flex: 1;
    border-radius: 10px;
    padding: 10px 6px;
    font-size: .82rem;
    font-weight: 600;
    gap: 6px;
    letter-spacing: -0.01em;
  }
  .mobilecta svg { width: 16px; height: 16px; }
  .mobilecta .m-quote { background: var(--teal); color: #fff; flex: 1.35; }
  .mobilecta .m-wa    { background: var(--teal-wash); color: var(--teal); }
  .mobilecta .m-call  { background: var(--teal-wash); color: var(--teal); }

  /* tighten the header so the logo + CTA sit comfortably */
  .brand img { width: 156px; }
  .header .container { min-height: 70px; gap: 8px; }
}

/* slightly calmer logo size on the very smallest screens */
@media (max-width: 380px) {
  .brand img { width: 140px; }
  .mobilecta a { font-size: .78rem; }
}

/* ---- Cookie consent banner ---- */
.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 34px rgba(0,31,63,.18);
}
.cookiebar[hidden] { display: none; }
.cookiebar__text { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink); }
.cookiebar__text a { color: var(--teal); }
.cookiebar__btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookiebar__btns .btn { padding: 9px 16px; font-size: .85rem; }

@media (max-width: 640px) {
  .cookiebar {
    flex-direction: column;
    align-items: stretch;
    left: 10px;
    right: 10px;
    bottom: 78px; /* sit above the mobile action bar */
    gap: 12px;
    padding: 14px;
  }
  .cookiebar__btns .btn { flex: 1; text-align: center; }
}

/* ---- Location page: wide content + sticky sidebar ---- */
.loc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.loc-main { min-width: 0; }
.loc-main.prose { max-width: none; }          /* fill the column, override .measure */
.loc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sidecard--quote { background: var(--teal-wash, #eef6f7); border-color: transparent; }
.sidecard h3 { margin: 0 0 6px; font-size: 1.05rem; }
.sidecard p { margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); }
.sidecard .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.sidecard ul { list-style: none; padding: 0; margin: 0; }
.sidecard li { margin: 0; }
.sidecard li + li { border-top: 1px solid var(--line); }
.sidecard li a { display: block; padding: 9px 0; font-size: .9rem; color: var(--ink); }
.sidecard li a:hover { color: var(--teal); }

@media (max-width: 980px) {
  .loc-layout { grid-template-columns: 1fr; gap: 32px; }
  .loc-side { position: static; }
}

/* ---- Author byline box (E-E-A-T) ---- */
.authorbox {
  margin: 32px 0 0;
  padding: 20px 22px;
  background: var(--teal-wash, #eef6f7);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.authorbox__name { margin: 0 0 6px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.authorbox__bio { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.authorbox__bio a { color: var(--teal); }

/* ---- Why-trust-us grid ---- */
.trustgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.trustgrid__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.trustgrid__item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.trustgrid__item p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.trustgrid__item a { color: var(--teal); }
@media (max-width: 980px) { .trustgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trustgrid { grid-template-columns: 1fr; } }
