/*
Theme Name: PDS Painting & Decorating (Kadence Child)
Theme URI: https://example.com/
Description: Child theme for Kadence with CRO-optimised hero + per-page overrides.
Author: PDS
Template: kadence
Version: 1.0.0
Text Domain: pds-painting
*/

/* ---------------------------
   CRO Hero (Painting/Decorating)
   --------------------------- */

.pds-hero{
  position: relative;
  overflow: hidden;
  padding: 18px 0 26px;
  margin: 0 0 22px;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(27, 115, 187, 0.12), rgba(255,255,255,0) 55%),
    radial-gradient(900px 420px at 20% 30%, rgba(52, 168, 83, 0.10), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}
.pds-hero:before{
  content:"";
  position:absolute;
  inset:-1px;
  background-image: var(--pds-hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: .14;
  pointer-events:none;
}
.pds-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 45%, rgba(255,255,255,.75) 70%, rgba(255,255,255,.55) 100%);
  pointer-events:none;
}

.pds-hero__container{
  position: relative;
  z-index: 1;
}
.pds-hero__topbar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(27,115,187,.18);
  background: rgba(27,115,187,.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.pds-hero__topbar strong{ font-weight: 700; }
.pds-hero__topbar a{ text-decoration: none; }
.pds-hero__topbar a:hover{ text-decoration: underline; }

.pds-hero__card{
  max-width: 860px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 28px rgba(2,6,23,.08);
}

.pds-hero__h1{
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pds-hero__sub{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(15,23,42,.78);
}

.pds-hero__badges{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin: 0 0 14px;
}
.pds-badge{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
}
.pds-badge svg{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.pds-badge__title{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 2px;
}
.pds-badge__desc{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15,23,42,.72);
  margin: 0;
}

.pds-hero__ctaRow{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
  margin: 0 0 8px;
}
.pds-hero__cta{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 0;
  text-decoration:none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  background: #1b73bb;
  color: #fff;
  min-width: min(360px, 100%);
  box-shadow: 0 10px 18px rgba(27,115,187,.22);
}
.pds-hero__cta:hover{ filter: brightness(.98); }
.pds-hero__cta svg{ width: 16px; height: 16px; }

.pds-hero__micro{
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(15,23,42,.66);
}

.pds-hero__trust{
  display:flex;
  flex-wrap: wrap;
  gap:10px 14px;
  align-items:center;
  padding-top: 10px;
  border-top: 1px dashed rgba(15,23,42,.18);
  font-size: 12px;
  color: rgba(15,23,42,.74);
}
.pds-hero__trust span{
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.pds-hero__trust svg{
  width: 14px;
  height: 14px;
}

/* Mobile sticky call */
.pds-stickycall{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(15,23,42,.12);
  backdrop-filter: blur(10px);
}
.pds-stickycall__btn{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 900;
  font-size: 16px;
  background: #1b73bb;
  color: #fff;
}
.pds-stickycall__btn svg{ width: 18px; height: 18px; }

/* Give space so content isn't hidden behind sticky bar */
@media (max-width: 1024px){
  body.pds-has-stickycall{
    padding-bottom: 76px;
  }
}

/* Desktop layout tweaks */
@media (min-width: 1024px){
  .pds-hero{
    padding: 24px 0 34px;
  }
  .pds-hero__card{
    padding: 22px 22px 16px;
  }
  .pds-hero__badges{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pds-stickycall{ display:none; }
}
