/*
  ElectroClean Glasgow - style.v2.css

  Goals:
  - Modern layout and scroll flow with clear hierarchy.
  - Keep brand colours: blue (#4169e1) and orange (#ff8d1e).
  - Not overwhelming: fewer dense paragraphs, more structure, more breathing room.
  - Works with your fixed header navbar (already in navbar.php).

  Notes:
  - This CSS assumes your navbar continues to manage wrapper padding-top on scroll.
  - If you want to fully remove inline navbar styles later, we can extract them into here.
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --brand-blue: #4169e1;
  --brand-orange: #ff8d1e;

  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #121212;
  --muted: #5f6368;
  --border: rgba(0, 0, 0, 0.1);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.08);

  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrapper {
  /* wrapper padding-top is controlled by navbar.php JS for fixed header */
  /* padding-bottom: 40px; */
  min-height: 80vh !important;
}

.mobile-header {
  display: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-orange);
  color: #111;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.btn-ghost:hover {
  opacity: 0.9;
}

/* Section head */
.section-head {
  text-align: center;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(22px, 2.2vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.section-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

/* Hero */
.hero {
  padding: 36px 0 10px;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.1);
  border: 1px solid rgba(65, 105, 225, 0.18);
  color: #0f1f4d;
  font-weight: 600;
  font-size: 13px;
}

.hero-copy h1 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.8px;
}

.hero-copy .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.trust-item i {
  color: var(--brand-blue);
  font-size: 18px;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 14px;
}

.trust-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-media-badge i {
  color: var(--brand-orange);
}

/* Quick paths */
.quick-paths {
  padding: 34px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  min-height: 170px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(65, 105, 225, 0.1);
  border: 1px solid rgba(65, 105, 225, 0.18);
  margin-bottom: 12px;
}

.card-icon i {
  color: var(--brand-blue);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.card-link {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 13px;
}

/* Feature strip */
.feature-strip {
  padding: 10px 0 40px;
}

.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
}

.feature i {
  color: var(--brand-blue);
  font-size: 18px;
  margin-top: 4px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Services preview */
.services-preview {
  padding: 40px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 141, 30, 0.12);
  border: 1px solid rgba(255, 141, 30, 0.22);
}

.service-icon i {
  color: #8a3d00;
}

.service h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Process */
.process {
  padding: 40px 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(65, 105, 225, 0.12);
  border: 1px solid rgba(65, 105, 225, 0.18);
  font-weight: 800;
  color: #0f1f4d;
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Proof */
.proof {
  padding: 40px 0;
}

.proof-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.quote-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

blockquote {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 10px;
  line-height: 1.65;
}

blockquote footer {
  color: var(--muted);
  font-size: 13px;
}

.before-after-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.before-after-card h3 {
  margin: 0 0 6px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.before-after-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.before-after-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.before-after-grid figcaption {
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #0f1f4d;
  background: rgba(65, 105, 225, 0.08);
}

/* Emergency CTA */
.emergency {
  padding: 30px 0 40px;
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(65, 105, 225, 0.15),
    rgba(255, 141, 30, 0.1)
  );
  border: 1px solid rgba(65, 105, 225, 0.18);
}

.emergency-inner h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.emergency-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.emergency-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Blog */
.blog {
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card div {
  padding: 14px;
}

.blog-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.blog-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  padding: 30px 0 10px;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.final-cta-inner h2 {
  margin: 0 0 6px;
}
.final-cta-inner p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 26px;
  background: #003959;
  color: #87969e;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 26px 0;
}

.footer-brand img {
  width: 160px;
  height: auto;
  margin-bottom: 10px;
}

.footer-links h3 {
  margin: 0 0 10px;
  color: #f0f0f0;
  font-size: 14px;
}

.footer-links a {
  display: block;
  color: #87969e;
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
}

.footer-links a:hover {
  color: #f0f0f0;
}

.staff-link {
  opacity: 0.85;
  font-weight: 600;
}

.footer-bottom {
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom small {
  color: #87969e;
}

/* ===============================
   Blog Mid-Article Banner
   =============================== */

.article-body .mid-banner{
  position: relative;
  margin: 36px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background-color: #003959;
}

.article-body .mid-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(0,57,89,0.92) 0%,
      rgba(0,57,89,0.75) 50%,
      rgba(0,57,89,0.45) 100%
    ),
    url("https://www.electrocleanglasgow.com/assets/imgs/blogBannerImg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.article-body .mid-banner-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  flex-wrap: wrap;
}

.article-body .mid-banner-content{
  max-width: 600px;
  color: #fff;
}

.article-body .mid-banner-eyebrow{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 14px 0;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.article-body .mid-banner-content h3{
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.4px;
}

.article-body .mid-banner-content p{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.article-body .mid-banner-actions{
  display: flex;
  align-items: center;
}

.article-body a.mid-banner-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: #ff8d1e;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-body a.mid-banner-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

@media (max-width: 768px){
  .article-body .mid-banner-inner{
    padding: 24px;
  }
  .article-body .mid-banner-content h3{
    font-size: 20px;
  }
  .article-body a.mid-banner-btn{
    width: 100%;
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 420px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip .container {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-split {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .emergency-inner,
  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .mobile-header {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .mobile-navigation {
    overflow: hidden;
    background-color: #003959;
    position: relative;
    display: block;
  }

  .mobile-navigation a > img {
    width: 20%;
    height: 20%;
    padding-right: 0;
    margin-right: 0;
  }

  .mobile-navigation #myLinks {
    display: none;
  }

  .mobile-navigation a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
    display: block;
  }

  .mobile-navigation a.icon {
    background: var(--header-color);
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }

  .mobile-navigation a:hover {
    background-color: var(--mobile-navigation-hover);
    color: black;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-media img {
    height: 320px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
