/* Mobile-first styles for West Lothian Gas */

:root{
  --bg: #071631;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.86);

  --glass: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.16);
  --shadow: 0 14px 38px rgba(0,0,0,0.38);
  --radius: 18px;
  --blur: 10px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg) url("assets/background.jpg") center / cover no-repeat;
  /* Avoid "fixed" backgrounds on mobile (jank + battery) */
  background-attachment: scroll;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.top{
  padding: max(18px, env(safe-area-inset-top)) 14px 16px;
}

.top-inner{
  max-width: 720px;
  margin: 0 auto;
   padding: 14px 14px 16px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.brand-logo{
  display: block;
  width: min(500px, 78vw);
  height: auto;
  margin: 6px auto 10px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}

.trust-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.trust-img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.trust-img--sign{
  object-fit: contain;
}

.tagline{
  margin: 12px 0 12px;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.quick-actions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qa{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.qa-call{ background: #ffd400; color: #111; }
.qa-email{ background: #e50914; }
.qa-wa{ background: #7ac943; }

.content{
  padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
}

.cards{
  display: grid;
  gap: 14px;
}

.card{
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.card-head{
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px;
  align-items: center;
}

.icon{
  width: 120px; height: 120px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48ch;
}

.card--offer .offer{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  border-radius: 40px;
  padding: 40px 40px;
  font size: 100px;
}

.card--offer .offer img{
  width: 200px;
  height: auto;
  display: block;
}

.card--offer .offer span{
  font-weight: 800;
}

/* Bottom sticky contact bar */
.bottom-bar{
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 9999;
}

.bb{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 10px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.42);
}

.bb-email{ background: #e50914; }
.bb-call{ background: #ffd400; color: #111; }
.bb-wa{ background: #7ac943; }

@media (min-width: 820px){
  /* Tablet+ polish: allow two-column cards */
  .cards{ grid-template-columns: 1fr 1fr; }
  .card--offer{ grid-column: 1 / -1; }
  .trust-img{ height: 140px; }
  .brand-logo{ width: 320px; }
}
/* Throbbing / pulsing 20% OFF button */
.card--offer .offer {
  animation: throb 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes throb {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229,9,20,0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(229,9,20,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229,9,20,0);
  }
}
