/*
 * Marafiki Plumbing - Shortcode Stylesheet
 * Version: 0.1.4
 * Description: Styles for all Divi 5 shortcode pages.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
.mp-section,
.mp-section * {
  box-sizing: border-box;
}

.mp-section {
  --mp-navy:        #0C2D48;
  --mp-blue:        #145DA0;
  --mp-sky:         #2E86C1;
  --mp-orange:      #E8531A;
  --mp-orange-lt:   #FF6B35;
  --mp-light-bg:    #F0F4F8;
  --mp-white:       #FFFFFF;
  --mp-text:        #1C2833;
  --mp-muted:       #566573;
  --mp-border:      #D5DBDB;
  --mp-shadow:      0 4px 20px rgba(12,45,72,.10);
  --mp-shadow-hov:  0 8px 30px rgba(12,45,72,.18);
  --mp-radius:      8px;
  --mp-radius-lg:   14px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--mp-text);
  line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.mp-section h1,
.mp-section h2,
.mp-section h3,
.mp-section h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--mp-navy);
  margin: 0 0 1rem 0;
}
.mp-section h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
.mp-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.mp-section h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.mp-section h4 { font-size: 1rem; }

.mp-section p {
  margin: 0 0 1rem 0;
  color: var(--mp-muted);
  font-size: 1.05rem;
}

.mp-tagline {
  font-size: .9rem;
  font-weight: 700;
  color: var(--mp-orange-lt);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: .5rem;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.mp-hero {
  background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-blue) 60%, var(--mp-sky) 100%);
  color: white;
  padding: clamp(3.5rem,8vw,6.5rem) clamp(1.5rem,5vw,5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mp-hero::before {
  content: '';
  position: absolute; top: -30%; right: -8%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.03); pointer-events: none;
}
.mp-hero::after {
  content: '';
  position: absolute; bottom: -20%; left: -5%;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.mp-hero h1,
.mp-hero h2 { color: white; }
.mp-hero p  { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 720px; margin: 1rem auto 1.5rem; }

/* ============================================================
   CONTACT BAR
   ============================================================ */
.mp-contact-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .75rem 2rem; margin: 1.5rem 0;
}
.mp-contact-item {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.92); font-size: 1rem; font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.mp-btn {
  display: inline-block;
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s; letter-spacing: .5px;
}
.mp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.25); }
.mp-btn-primary {
  background: var(--mp-orange); color: white;
  box-shadow: 0 4px 15px rgba(232,83,26,.35);
}
.mp-btn-secondary {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.6);
}
.mp-btn-secondary:hover { background: rgba(255,255,255,.1); border-color: white; }
.mp-btn-group {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1rem; margin-top: 2rem;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.mp-content-section {
  padding: clamp(2.5rem,6vw,5rem) clamp(1.5rem,5vw,5rem);
  background: var(--mp-white);
}
.mp-content-section.mp-alt-bg { background: var(--mp-light-bg); }

.mp-section-header { text-align: center; margin-bottom: 3rem; }
.mp-section-header h2 { margin-bottom: .75rem; }
.mp-section-header p  { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ============================================================
   GRID
   ============================================================ */
.mp-grid { display: grid; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.mp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.mp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.mp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }

/* ============================================================
   CARDS
   ============================================================ */
.mp-card {
  background: var(--mp-white);
  border-radius: var(--mp-radius-lg);
  padding: 2rem;
  box-shadow: var(--mp-shadow);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--mp-border);
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--mp-shadow-hov); }
.mp-card-icon  { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.mp-card h3    { font-size: 1.15rem; margin-bottom: .5rem; }
.mp-card p     { font-size: .95rem; margin: 0; }

/* Dark feature card */
.mp-feature-card {
  background: var(--mp-navy);
  color: white;
  border-radius: var(--mp-radius-lg);
  padding: 2rem; border: none;
}
.mp-feature-card h3 { color: white; }
.mp-feature-card p  { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0; }
.mp-feature-card .mp-card-icon {
  background: rgba(255,255,255,.1);
  width: 54px; height: 54px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}

/* ============================================================
   LISTS
   ============================================================ */
.mp-checklist { list-style: none; padding: 0; margin: 0; }
.mp-checklist li {
  padding: .65rem 0 .65rem 2rem; position: relative;
  color: var(--mp-text); font-size: 1rem;
  border-bottom: 1px solid var(--mp-border);
}
.mp-checklist li:last-child { border-bottom: none; }
.mp-checklist li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--mp-orange); font-weight: 900;
}

.mp-list-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: .5rem; list-style: none; padding: 0; margin: 0;
}
.mp-list-grid li {
  padding: .7rem 1rem .7rem 2.25rem; background: var(--mp-light-bg);
  border-radius: var(--mp-radius); position: relative;
  font-weight: 500; font-size: .95rem; color: var(--mp-text);
}
.mp-list-grid li::before {
  content: '✓'; position: absolute; left: .75rem;
  color: var(--mp-orange); font-weight: 900;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.mp-process { counter-reset: steps; list-style: none; padding: 0; margin: 0; }
.mp-process li {
  counter-increment: steps;
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--mp-white); border-radius: var(--mp-radius-lg);
  box-shadow: var(--mp-shadow); margin-bottom: 1rem;
  border-left: 4px solid var(--mp-orange);
}
.mp-process li::before {
  content: counter(steps);
  min-width: 40px; height: 40px;
  background: var(--mp-orange); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; flex-shrink: 0;
}
.mp-process li span { align-self: center; font-size: 1rem; font-weight: 500; color: var(--mp-text); }

/* ============================================================
   VALUE STRIP
   ============================================================ */
.mp-value-strip {
  background: var(--mp-navy);
  padding: 3rem clamp(1.5rem,5vw,5rem);
  display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 2rem; text-align: center;
}
.mp-value-item .mp-vi-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.mp-value-item h4 { color: white; margin: 0 0 .25rem; font-size: .95rem; }
.mp-value-item p  { color: rgba(255,255,255,.7); font-size: .82rem; margin: 0; }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.mp-areas-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; list-style: none; padding: 0; margin: 0;
}
.mp-areas-grid li {
  background: var(--mp-navy); color: white;
  padding: .45rem 1.25rem; border-radius: 50px;
  font-size: .88rem; font-weight: 600;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.mp-cta-section {
  background: linear-gradient(135deg, var(--mp-orange) 0%, #c0392b 100%);
  padding: clamp(3rem,7vw,5rem) clamp(1.5rem,5vw,5rem);
  text-align: center; color: white;
}
.mp-cta-section h2 { color: white; margin-bottom: 1rem; }
.mp-cta-section p  { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1rem; }
.mp-cta-phone {
  font-size: 1.75rem; font-weight: 900;
  color: white; display: block; margin: 1rem 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.mp-contact-grid-main {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 2rem; max-width: 960px; margin: 0 auto;
}
.mp-contact-card {
  background: var(--mp-white); border-radius: var(--mp-radius-lg);
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: var(--mp-shadow); border-top: 4px solid var(--mp-orange);
}
.mp-contact-card .mp-ci-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.mp-contact-card h3 {
  color: var(--mp-muted); text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .78rem; margin-bottom: .5rem;
}
.mp-contact-card .mp-contact-value {
  font-size: 1.25rem; font-weight: 800;
  color: var(--mp-navy); display: block; text-decoration: none;
}
.mp-contact-card .mp-contact-value:hover { color: var(--mp-orange); }

/* ============================================================
   TANK SECTION
   ============================================================ */
.mp-tank-section {
  background: var(--mp-navy);
  padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,5rem);
  text-align: center; color: white;
}
.mp-tank-section h2 { color: var(--mp-orange-lt); }
.mp-tank-emoji  { font-size: 5rem; display: block; margin-bottom: 1.5rem; }
.mp-tank-tagline { font-size: 1.5rem; font-weight: 900; color: white; margin: 1.5rem 0 1rem; display: block; }
.mp-tank-facts {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1rem; max-width: 900px; margin: 2rem auto 0; text-align: left;
}
.mp-tank-fact {
  background: rgba(255,255,255,.08); border-radius: var(--mp-radius);
  padding: 1rem 1.25rem; color: rgba(255,255,255,.9);
  font-size: .95rem; border-left: 3px solid var(--mp-orange);
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.mp-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 768px) { .mp-two-col { grid-template-columns: 1fr; } }

/* ============================================================
   INTRO BLOCK
   ============================================================ */
.mp-intro-block {
  max-width: 800px; margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,5vw,4rem);
}

/* ============================================================
   ACCENT HELPERS
   ============================================================ */
.mp-divider {
  height: 4px; margin: 0; border: none;
  background: linear-gradient(90deg, var(--mp-orange), var(--mp-blue), var(--mp-navy));
}
.mp-accent-bar {
  display: block; width: 50px; height: 4px;
  background: var(--mp-orange); border-radius: 2px; margin-bottom: 1.25rem;
}
.mp-pill {
  display: inline-block; padding: .3rem .9rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; background: var(--mp-orange); color: white; margin-bottom: 1rem;
}

/* ============================================================
   EMERGENCY BAR
   ============================================================ */
.mp-emergency-bar {
  background: #c0392b; color: white;
  padding: 1.5rem 2rem; text-align: center;
  border-radius: var(--mp-radius); margin-bottom: 2rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.mp-emergency-bar h3 { color: white; margin-bottom: .4rem; font-size: 1.3rem; }
.mp-emergency-bar p  { color: rgba(255,255,255,.9); margin: 0; }
.mp-emergency-phone  { font-size: 1.8rem; font-weight: 900; color: white; display: block; margin: .75rem 0 0; }

/* ============================================================
   LOGO
   ============================================================ */
.mp-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 200px;
  height: auto;
}

/* On dark backgrounds (hero, tank section) — invert black logo to white */
.mp-hero .mp-logo,
.mp-tank-section .mp-logo,
.mp-cta-section .mp-logo {
  filter: brightness(0) invert(1);
}

/* On light backgrounds — keep it black */
.mp-content-section .mp-logo {
  filter: none;
}

/* ============================================================
   BLOCK: SITE HEADER
   ============================================================ */
.mp-site-header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  box-sizing: border-box;
  width: 100%;
}

.mp-sh-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  box-sizing: border-box;
}

.mp-sh-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.mp-sh-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin: 0; }

.mp-sh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}

.mp-sh-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

.mp-sh-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.mp-sh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mp-sh-phone {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}

.mp-sh-phone:hover { color: #fff; }

.mp-sh-cta-btn {
  background: #E8531A;
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s;
}

.mp-sh-cta-btn:hover { background: #c94315; }


/* ============================================================
   BLOCK: SITE FOOTER
   ============================================================ */
.mp-site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  box-sizing: border-box;
  width: 100%;
}

.mp-sf-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 28px 40px;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  .mp-sf-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .mp-sf-inner { grid-template-columns: 1fr; }
}

.mp-sf-logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin: 0 0 14px; display: block; }
.mp-sf-tagline { color: #fff; font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.mp-sf-sub { margin: 0 0 16px; font-size: .82rem; }

.mp-sf-socials { display: flex; gap: 10px; flex-wrap: wrap; }

.mp-sf-social-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  padding: 5px 10px;
  transition: background .15s, color .15s;
}

.mp-sf-social-link:hover { background: #E8531A; color: #fff; border-color: #E8531A; }

.mp-sf-col h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 14px;
}

.mp-sf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-sf-col ul li { margin-bottom: 8px; }

.mp-sf-col ul a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
}

.mp-sf-col ul a:hover { color: #E8531A; }

.mp-sf-contact-list li { display: flex; align-items: flex-start; }

.mp-sf-areas {
  color: rgba(255,255,255,.45);
  font-size: .76rem;
  margin: 14px 0 0;
  line-height: 1.6;
}

.mp-sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  box-sizing: border-box;
}

.mp-sf-tank { font-style: italic; }
