/* CPME Services — static site styles
   Colours mirror the Kadence theme palette previously used:
   #354555 (dark slate), #eb983d (orange accent), #f1f2f3 (light grey) */

*,*::before,*::after { box-sizing: border-box; }
:root {
  --slate: #354555;
  --slate-d: #243240;
  --orange: #eb983d;
  --orange-d: #d8842a;
  --bg: #ffffff;
  --bg-soft: #f1f2f3;
  --text: #1f2937;
  --muted: #5b6675;
  --border: #e2e6ea;
  --wa: #25d366;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(53,69,85,.10);
  --shadow-lg: 0 24px 60px rgba(53,69,85,.18);
  --container: 1200px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* Utility bar */
.utility-bar { background: var(--slate); color: #fff; font-size: 14px; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 22px; }
.utility-text { opacity: .9; }
.utility-phone { color: var(--orange); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--slate); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--slate);
  color: var(--orange);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--slate); font-weight: 500; font-size: 15px;
}
.nav a:hover { color: var(--orange-d); text-decoration: none; }

.cta-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 600;
  box-shadow: var(--shadow);
}
.cta-phone:hover { background: var(--orange-d); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 60px 0 70px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--orange-d); margin-bottom: 14px;
}
.eyebrow-light { color: var(--orange); }
h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; margin: 0 0 18px; color: var(--slate); font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .3px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; }
.btn-block { width: 100%; }

.hero-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
  font-size: 13px; color: var(--slate); font-weight: 500;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}
.hero-image img {
  border-radius: 18px; box-shadow: var(--shadow-lg);
  aspect-ratio: 1024/682; object-fit: cover;
}

/* Generic sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--slate); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.85); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--slate); margin: 0 0 12px; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(235,152,61,.12);
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; color: var(--slate); font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Two-column block */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col-image img { border-radius: 18px; box-shadow: var(--shadow); }
.two-col-copy h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--slate); margin: 0 0 18px; font-weight: 800; }

.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li {
  position: relative; padding: 8px 0 8px 30px;
  font-size: 16px; color: var(--text);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* Boiler quote */
.quote-section { background: #fff; }
.quote-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 46px;
  align-items: start;
}
.quote-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--slate);
  margin: 0 0 14px;
  font-weight: 800;
}
.quote-list { margin-top: 24px; }
.quote-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.quote-form h3 {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.quote-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 14px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.quote-form select {
  min-height: 48px;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.contact-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.contact-item {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 16px 18px; border-radius: var(--radius);
  color: #fff;
}
a.contact-item:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.ci-value { font-weight: 600; font-size: 16px; }

.contact-form {
  background: #fff; color: var(--text);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { margin: 0 0 18px; color: var(--slate); font-size: 22px; }
.contact-form label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--slate); margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; margin-top: 6px;
  padding: 12px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--slate-d); color: #fff; padding: 28px 0; }
.footer-inner { text-align: center; }
.footer-inner p { margin: 4px 0; }
.footer-sub { color: rgba(255,255,255,.65); font-size: 14px; }

/* Floating WhatsApp button — top right */
.wa-float {
  position: fixed;
  top: 86px;          /* sits below header */
  right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  z-index: 100;
  animation: waPulse 2.2s ease-in-out infinite;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
  50%      { box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner,
  .two-col,
  .quote-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .utility-text { display: none; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-items { grid-template-columns: 1fr; }
  .cta-phone span { display: none; }
  .cta-phone { padding: 10px 12px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 50px; }
  .brand-tag { display: none; }
  .wa-float { top: auto; bottom: 22px; }   /* avoid clashing on small screens */
}
