/*
Theme Name: Mr. Tankless Franchise
Theme URI: https://mrtankless.net/franchise/
Author: Mr. Tankless
Author URI: https://mrtankless.net/
Description: A responsive, conversion-focused franchise theme for Mr. Tankless.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mr-tankless-franchise
*/

:root {
  --e-global-color-primary: #0053A1;
  --e-global-color-secondary: #29CE04;
  --e-global-color-text: #7A7A7A;
  --e-global-color-accent: #51E529;
  --mt-ink: #0053A1;
  --mt-ink-2: #0a3157;
  --mt-blue-light: #78b9e8;
  --mt-paper: #f4f8fb;
  --mt-white: #ffffff;
  --mt-line: #dbe5ed;
  --mt-shadow: 0 22px 70px rgba(6, 29, 51, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mt-ink);
  background: var(--mt-paper);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mt-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mt-eyebrow {
  margin: 0 0 14px;
  color: var(--e-global-color-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, .mt-brand, .mt-metric strong, .mt-step-no {
  font-family: "Barlow Condensed", Arial, sans-serif;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7vw, 6.7rem); line-height: 0.91; letter-spacing: -0.035em; margin-bottom: 24px; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.96; letter-spacing: -0.025em; margin-bottom: 24px; }
h3 { font-size: 1.65rem; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 14px; }
.mt-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; }
.mt-muted { color: var(--e-global-color-text); }
.screen-reader-text,
.mt-skip-link { position: absolute; left: -9999px; }
.mt-skip-link:focus { left: 16px; top: 16px; z-index: 9999; background: #fff; padding: 10px 16px; }

.mt-topline {
  background: var(--e-global-color-secondary);
  color: #071507;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  text-transform: uppercase;
}
.mt-site-header { background: var(--mt-ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.11); }
.mt-nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mt-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: 0.03em; text-decoration: none; }
.mt-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--e-global-color-secondary); border-radius: 50%; color: var(--e-global-color-accent); font-size: 1.05rem; }
.mt-brand em { color: var(--e-global-color-accent); font-style: normal; }
.mt-custom-logo { max-height: 54px; width: auto; }
.mt-nav-links,
.mt-nav-links .menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; }
.mt-nav-links a { text-decoration: none; opacity: 0.84; }
.mt-nav-links a:hover, .mt-nav-links a:focus { opacity: 1; }
.mt-button,
.mt-nav-links .menu > li:last-child > a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--e-global-color-secondary);
  color: #071507;
  padding: 13px 21px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mt-button:hover, .mt-button:focus,
.mt-nav-links .menu > li:last-child > a:hover,
.mt-nav-links .menu > li:last-child > a:focus { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(41,206,4,0.26); background: var(--e-global-color-accent); }
.mt-button--secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,0.36); }
.mt-button--secondary:hover, .mt-button--secondary:focus { border-color: #fff; box-shadow: none; background: rgba(255,255,255,0.08); }
.mt-button--dark { background: var(--e-global-color-primary); color: #fff; }
.mt-button--small,
.mt-nav-links .menu > li:last-child > a { min-height: 42px; padding: 10px 15px; font-size: 0.86rem; }

.mt-hero { position: relative; overflow: hidden; min-height: 730px; color: #fff; background: var(--mt-ink); }
.mt-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,20,36,0.99) 0%, rgba(3,20,36,0.91) 38%, rgba(0,83,161,0.32) 68%, rgba(0,83,161,0.08) 100%), url("assets/mr-tankless-franchise-hero.png") center/cover no-repeat; }
.mt-hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -260px; bottom: -260px; border: 80px solid rgba(0,83,161,0.24); border-radius: 50%; }
.mt-hero-inner { position: relative; z-index: 1; min-height: 650px; display: flex; align-items: center; padding: 88px 0 100px; }
.mt-hero-copy { max-width: 740px; }
.mt-hero-copy h1 span { color: var(--e-global-color-accent); }
.mt-hero-copy .mt-lead { max-width: 670px; color: #d7e3ec; }
.mt-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.mt-rank-badge { display: inline-flex; align-items: center; gap: 12px; max-width: 570px; margin-top: 30px; padding: 12px 16px; border: 1px solid rgba(81,229,41,0.35); border-radius: 8px; background: rgba(0,83,161,0.42); color: #e4f7ff; font-size: 0.88rem; }
.mt-rank-badge strong { color: #fff; }
.mt-rank-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--e-global-color-accent); box-shadow: 0 0 0 6px rgba(81,229,41,0.13); }
.mt-metrics { position: relative; z-index: 2; margin-top: -77px; }
.mt-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: var(--mt-shadow); border-top: 5px solid var(--e-global-color-secondary); }
.mt-metric { padding: 27px 30px; border-right: 1px solid var(--mt-line); }
.mt-metric:last-child { border-right: 0; }
.mt-metric strong { display: block; color: var(--e-global-color-primary); font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.mt-metric span { color: var(--e-global-color-text); font-size: 0.9rem; }

.mt-section { padding: 110px 0; }
.mt-intro-grid, .mt-expert-grid, .mt-fit-grid, .mt-territory-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.mt-statement { max-width: 860px; }
.mt-statement .mt-lead { color: #32475a; }
.mt-accent-rule { width: 76px; height: 5px; background: var(--e-global-color-secondary); margin: 28px 0; }
.mt-quote-box { padding: 34px; background: var(--e-global-color-primary); color: #fff; border-left: 5px solid var(--e-global-color-accent); box-shadow: var(--mt-shadow); }
.mt-quote-box p { margin: 0; font-family: "Barlow Condensed", Arial, sans-serif; font-size: 2rem; line-height: 1.1; text-transform: uppercase; }

.mt-dark-section { position: relative; overflow: hidden; background: var(--mt-ink); color: #fff; }
.mt-dark-section::before { content: ""; position: absolute; inset: 0; opacity: 0.16; background-image: linear-gradient(rgba(0,83,161,0.34) 1px, transparent 1px), linear-gradient(90deg, rgba(0,83,161,0.34) 1px, transparent 1px); background-size: 44px 44px; }
.mt-dark-section .mt-shell { position: relative; z-index: 1; }
.mt-dark-section .mt-muted { color: #adc0cf; }
.mt-section-head { max-width: 760px; margin-bottom: 48px; }
.mt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt-card { min-height: 280px; padding: 30px 27px; background: rgba(255,255,255,0.065); border: 1px solid rgba(255,255,255,0.11); }
.mt-card-no { display: block; color: var(--e-global-color-accent); font: 800 1rem/1 Inter, sans-serif; margin-bottom: 44px; }
.mt-card h3 { color: #fff; }
.mt-card p { color: #b8c9d7; margin-bottom: 0; font-size: 0.93rem; }

.mt-expert-media { position: relative; }
.mt-expert-media img { width: 100%; max-height: 680px; object-fit: cover; box-shadow: var(--mt-shadow); }
.mt-image-note { position: absolute; right: -28px; bottom: 30px; max-width: 280px; padding: 20px 22px; background: var(--e-global-color-secondary); color: #071507; box-shadow: var(--mt-shadow); font-weight: 800; line-height: 1.35; }
.mt-check-list { display: grid; gap: 17px; margin: 30px 0 0; padding: 0; list-style: none; }
.mt-check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 13px; color: #31475a; }
.mt-check { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: rgba(41,206,4,0.14); color: #187b08; font-size: 0.8rem; font-weight: 900; }

.mt-white-section { background: #fff; }
.mt-fit-panel { padding: 44px; background: var(--mt-paper); border-top: 5px solid var(--e-global-color-primary); }
.mt-fit-panel h3 { margin-bottom: 22px; }
.mt-fit-panel ul { margin: 0; padding-left: 21px; }
.mt-fit-panel li + li { margin-top: 11px; }
.mt-not-for { border-top-color: var(--e-global-color-secondary); }
.mt-not-for .mt-eyebrow { color: #187b08; }

.mt-territory-section { background: #eaf1f6; }
.mt-territory-map { position: relative; min-height: 500px; display: grid; align-content: center; padding: 42px; overflow: hidden; background: var(--e-global-color-primary); color: #fff; }
.mt-territory-map::before { content: "NJ"; position: absolute; right: -25px; bottom: -102px; color: rgba(255,255,255,0.07); font: 800 27rem/1 "Barlow Condensed", sans-serif; }
.mt-territory-map h3 { position: relative; z-index: 1; font-size: 3rem; max-width: 390px; }
.mt-territory-map p { position: relative; z-index: 1; color: #d4e6f2; max-width: 410px; }
.mt-county-cloud { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mt-county-cloud span { padding: 7px 10px; border: 1px solid rgba(255,255,255,0.19); border-radius: 999px; background: rgba(255,255,255,0.06); color: #edf7fc; font-size: 0.75rem; }
.mt-territory-copy .mt-lead { color: #31475a; }
.mt-territory-callout { margin-top: 28px; padding: 21px 23px; border-left: 5px solid var(--e-global-color-secondary); background: #fff; font-weight: 700; }

.mt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; }
.mt-step { position: relative; padding-top: 24px; border-top: 2px solid var(--mt-line); }
.mt-step-no { color: var(--e-global-color-secondary); font-size: 2rem; font-weight: 800; }
.mt-step p { color: var(--e-global-color-text); font-size: 0.92rem; }

.mt-cta { padding: 100px 0; background: linear-gradient(120deg, var(--e-global-color-primary), var(--mt-ink) 68%); color: #fff; }
.mt-cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.mt-cta h2 { max-width: 760px; margin-bottom: 15px; }
.mt-cta p { max-width: 710px; margin-bottom: 0; color: #c3d8e6; }
.mt-cta-actions { display: grid; gap: 12px; min-width: 260px; }

.mt-site-footer { padding: 48px 0 95px; background: #03111e; color: #b3c1cc; }
.mt-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.mt-site-footer .mt-brand { margin-bottom: 18px; }
.mt-site-footer p { font-size: 0.82rem; line-height: 1.6; }
.mt-legal { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.12); }
.mt-legal strong { color: #fff; }
.mt-mobile-cta { display: none; }

.mt-content { min-height: 55vh; padding: 80px 0; background: #fff; }
.mt-content article { max-width: 860px; margin-inline: auto; }
.mt-content .entry-title { color: var(--e-global-color-primary); }
.mt-content a { color: var(--e-global-color-primary); }

@media (max-width: 920px) {
  .mt-nav-links > a:not(.mt-button), .mt-nav-links .menu > li:not(:last-child) { display: none; }
  .mt-hero { min-height: 670px; }
  .mt-hero::before { background: linear-gradient(90deg, rgba(3,20,36,0.99) 0%, rgba(3,20,36,0.91) 55%, rgba(0,83,161,0.42) 100%), url("assets/mr-tankless-franchise-hero.png") 64% center/cover no-repeat; }
  .mt-hero-copy { max-width: 650px; }
  .mt-metric-grid { grid-template-columns: 1fr; }
  .mt-metric { border-right: 0; border-bottom: 1px solid var(--mt-line); }
  .mt-metric:last-child { border-bottom: 0; }
  .mt-metrics { margin-top: -52px; }
  .mt-intro-grid, .mt-expert-grid, .mt-fit-grid, .mt-territory-grid { grid-template-columns: 1fr; gap: 48px; }
  .mt-cards { grid-template-columns: 1fr 1fr; }
  .mt-expert-copy { order: 1; }
  .mt-expert-media { order: 2; max-width: 680px; }
  .mt-image-note { right: 20px; }
  .mt-steps { grid-template-columns: 1fr 1fr; }
  .mt-cta-inner { grid-template-columns: 1fr; }
  .mt-cta-actions { display: flex; flex-wrap: wrap; min-width: 0; }
}

@media (max-width: 620px) {
  .mt-shell { width: min(calc(100% - 28px), 1180px); }
  .mt-section { padding: 78px 0; }
  h1 { font-size: clamp(3.2rem, 17vw, 4.9rem); }
  h2 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
  .mt-topline { font-size: 0.67rem; }
  .mt-nav-inner { min-height: 68px; }
  .mt-brand { font-size: 1.45rem; }
  .mt-brand-mark { width: 36px; height: 36px; font-size: 0.9rem; }
  .mt-nav-links .mt-button, .mt-nav-links .menu { display: none; }
  .mt-hero { min-height: 700px; }
  .mt-hero::before { background: linear-gradient(180deg, rgba(3,20,36,0.96) 0%, rgba(3,20,36,0.88) 62%, rgba(0,83,161,0.45) 100%), url("assets/mr-tankless-franchise-hero.png") 70% center/cover no-repeat; }
  .mt-hero-inner { min-height: 700px; padding: 70px 0 115px; align-items: flex-start; }
  .mt-hero-actions { display: grid; }
  .mt-button { width: 100%; }
  .mt-rank-badge { align-items: flex-start; }
  .mt-metrics { margin-top: -40px; }
  .mt-metric { padding: 23px; }
  .mt-cards, .mt-steps { grid-template-columns: 1fr; }
  .mt-card { min-height: 0; }
  .mt-card-no { margin-bottom: 26px; }
  .mt-quote-box, .mt-fit-panel, .mt-territory-map { padding: 29px 24px; }
  .mt-image-note { position: relative; right: auto; bottom: auto; max-width: none; }
  .mt-territory-map { min-height: 520px; }
  .mt-territory-map h3 { font-size: 2.6rem; }
  .mt-cta-actions { display: grid; }
  .mt-footer-grid { grid-template-columns: 1fr; }
  .mt-legal { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .mt-mobile-cta { position: fixed; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -8px 30px rgba(6,29,51,0.16); }
  .mt-mobile-cta a { padding: 14px 8px; text-align: center; text-decoration: none; font-size: 0.78rem; font-weight: 800; }
  .mt-mobile-cta a:first-child { color: #fff; background: var(--e-global-color-primary); }
  .mt-mobile-cta a:last-child { color: #071507; background: var(--e-global-color-secondary); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
