/* Moraira Plumbing & Heating — main stylesheet */

@font-face{font-family:"Plus Jakarta Sans";src:url("../fonts/jakarta-latin.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";src:url("../fonts/jakarta-latin-ext.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Kaushan Script";src:url("../fonts/kaushan-latin.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}

:root{
  --navy:#0E2244;
  --navy-deep:#0A1A36;
  --navy-soft:#16294F;
  --orange:#E88A45;
  --orange-text:#9A4E10;   /* orange for small text on white (AA) */
  --orange-light:#F0A266;  /* orange for text on navy */
  --orange-tint:#FDEEE3;
  --ink:#0A1A36;
  --muted:#475569;
  --line:#E2E8F0;
  --line-strong:#CBD5E1;
  --bg-soft:#F1F5F9;
  --white:#FFFFFF;
  --radius:18px;
  --radius-sm:12px;
  --wrap:1240px;
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --script:"Kaushan Script",cursive;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.6;color:var(--ink);background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy)}
a:hover{color:#C46A22}
h1,h2,h3{margin:0;line-height:1.08;letter-spacing:-.03em;font-weight:800}
p{margin:0}
ul,ol{margin:0;padding:0}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.screen-reader-text,.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;clip:auto;z-index:1000;background:var(--white);padding:10px 14px;border-radius:8px}

.mph-wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.mph-section{padding:96px 0}
.mph-section--soft{background:var(--bg-soft)}
.mph-section--dark{background:var(--navy-deep);color:var(--white)}
.mph-eyebrow{font-size:14px;font-weight:700;color:var(--orange-text);margin-bottom:8px}
.mph-section--dark .mph-eyebrow{color:var(--orange-light)}
.mph-h2{font-size:clamp(30px,4vw,44px)}
.mph-lead{font-size:18px;color:var(--muted)}
.mph-section--dark .mph-lead{color:#C9D3E6}
.mph-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:44px}
.mph-head > div{max-width:660px}
.mph-head > p{max-width:440px;color:var(--muted)}
.mph-center{text-align:center;max-width:720px;margin:0 auto 44px}

/* Buttons */
.mph-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:14px 24px;border-radius:12px;font-weight:700;font-size:16px;text-decoration:none;border:0;cursor:pointer;font-family:inherit;line-height:1.2}
.mph-btn--primary{background:var(--orange);color:var(--navy)}
.mph-btn--primary:hover{background:#DD7A33;color:var(--navy)}
.mph-btn--ghost{background:var(--white);color:var(--navy);border:1px solid var(--line-strong)}
.mph-btn--ghost:hover{border-color:var(--navy);color:var(--navy)}
.mph-btn--navy{background:var(--navy);color:var(--white)}
.mph-btn--navy:hover{background:var(--navy-soft);color:var(--white)}
.mph-link{font-weight:700;text-decoration:none}
.mph-link:hover{text-decoration:underline}

/* ---------- Header ---------- */
.mph-topbar{background:var(--navy);color:#C9D3E6;font-size:13px}
.mph-topbar .mph-wrap{display:flex;flex-wrap:wrap;gap:4px 20px;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.mph-topbar a{color:var(--white);text-decoration:none;font-weight:600}
.mph-topbar__links{display:flex;flex-wrap:wrap;gap:18px}
.mph-header{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line)}
.mph-header .mph-wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:14px;padding-bottom:14px}
.mph-logo img{height:54px;width:auto}
.mph-nav{display:flex;align-items:center;gap:28px}
.mph-nav > ul{list-style:none;display:flex;gap:26px;align-items:center}
.mph-nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.mph-nav a:hover{color:#C46A22}
.mph-has-sub{position:relative}
.mph-has-sub > button{font:inherit;font-weight:600;font-size:15px;color:var(--ink);background:none;border:0;padding:8px 0;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.mph-sub{list-style:none;position:absolute;left:-16px;top:100%;min-width:280px;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 40px -20px rgba(10,26,54,.3);padding:10px;display:none}
.mph-sub a{display:block;padding:9px 12px;border-radius:8px}
.mph-sub a:hover{background:var(--orange-tint);color:var(--navy)}
.mph-has-sub:hover .mph-sub,.mph-has-sub:focus-within .mph-sub,.mph-has-sub.is-open .mph-sub{display:block}
.mph-header__cta{display:flex;align-items:center;gap:16px}
.mph-header__phone{font-weight:700;text-decoration:none;color:var(--ink);white-space:nowrap}
.mph-burger{display:none;width:46px;height:46px;border:1px solid var(--line);border-radius:10px;background:var(--white);align-items:center;justify-content:center;cursor:pointer}

/* ---------- Hero ---------- */
.mph-hero{background:var(--bg-soft);padding:72px 0}
.mph-hero .mph-wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:center}
.mph-pill{display:inline-flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--line);padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700}
.mph-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.mph-hero h1{font-size:clamp(38px,5.4vw,64px);line-height:1.02;letter-spacing:-.035em;margin:22px 0}
.mph-hero h1 span{color:var(--orange)}
.mph-hero__sub{font-size:19px;color:var(--muted);max-width:540px}
.mph-hero__ctas{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 30px}
.mph-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-top:18px;border-top:1px solid var(--line);max-width:580px}
.mph-stats strong{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em}
.mph-stats span{font-size:13px;color:var(--muted)}
.mph-hero__media{position:relative}
.mph-hero__media .mph-ph{height:520px;border-radius:24px}
.mph-badge{position:absolute;left:-20px;bottom:32px;background:var(--white);border-radius:16px;padding:16px 20px;box-shadow:0 20px 40px -20px rgba(10,26,54,.35);display:flex;gap:14px;align-items:center}
.mph-badge strong{font-size:34px;font-weight:800;color:var(--orange);letter-spacing:-.03em}
.mph-badge span{font-size:14px;line-height:1.35;color:var(--muted)}
.mph-badge b{color:var(--ink)}

/* Image placeholder (replace with real photos) */
.mph-ph{background:#DCE6F5;color:#3B5274;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;font-weight:600;font-size:14px;border-radius:var(--radius);overflow:hidden}
.mph-ph img{width:100%;height:100%;object-fit:cover}
.mph-ph--dark{background:var(--navy-soft);color:#9FB0CC}

/* ---------- Brands ---------- */
.mph-brands{border-bottom:1px solid var(--line)}
.mph-brands .mph-wrap{display:flex;flex-wrap:wrap;gap:12px 40px;align-items:center;justify-content:space-between;padding-top:26px;padding-bottom:26px}
.mph-brands__label{font-size:13px;font-weight:700;color:var(--muted)}
.mph-brands span:not(.mph-brands__label){font-weight:800;font-size:19px;color:#64748B}

/* ---------- Services ---------- */
.mph-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mph-card{display:flex;flex-direction:column;gap:12px;padding:26px;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--ink);background:var(--white);transition:border-color .15s,box-shadow .15s,transform .15s}
.mph-card:hover{border-color:var(--orange);box-shadow:0 16px 32px -24px rgba(10,26,54,.4);transform:translateY(-2px);color:var(--ink)}
.mph-card__top{display:flex;justify-content:space-between;align-items:center}
.mph-icon{width:48px;height:48px;border-radius:12px;background:var(--orange-tint);display:flex;align-items:center;justify-content:center}
.mph-icon svg{width:24px;height:24px;stroke:var(--navy)}
.mph-card__num{font-weight:800;color:#94A3B8}
.mph-card h3{font-size:20px;letter-spacing:-.01em}
.mph-card p{color:var(--muted);font-size:15px}
.mph-card__more{margin-top:auto;font-weight:700;font-size:14px;color:var(--orange-text)}

/* ---------- Clients tabs ---------- */
.mph-tabs__list{display:inline-flex;background:var(--navy-soft);border-radius:12px;padding:5px;gap:4px}
.mph-tabs__list button{font:inherit;font-weight:700;border:0;border-radius:9px;padding:11px 20px;min-height:44px;cursor:pointer;background:transparent;color:#C9D3E6}
.mph-tabs__list button[aria-selected="true"]{background:var(--white);color:var(--navy)}
.mph-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;align-items:center}
.mph-panel[hidden]{display:none}
.mph-panel .mph-ph{height:340px;border-radius:20px}
.mph-panel h3{font-size:28px;margin-bottom:14px}
.mph-panel p{color:#C9D3E6;margin-bottom:18px}
.mph-ticks{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-weight:600;color:#E2E8F0;margin-bottom:20px}
.mph-ticks li::before{content:"✓ ";color:var(--orange-light)}
.mph-section--dark a.mph-link{color:var(--orange-light)}

/* ---------- Steps ---------- */
.mph-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mph-steps li{background:var(--bg-soft);border-radius:20px;padding:30px;display:flex;flex-direction:column;gap:10px}
.mph-steps .mph-step-tag{align-self:flex-start;background:var(--orange);color:var(--navy);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:800}
.mph-steps h3{font-size:22px}
.mph-steps p{color:var(--muted)}

/* ---------- Family ---------- */
.mph-family .mph-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:center}
.mph-portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mph-portrait figure{margin:0}
.mph-portrait .mph-ph{height:340px;border-radius:20px}
.mph-portrait figcaption{margin-top:12px}
.mph-portrait figcaption strong{display:block;font-size:17px}
.mph-portrait figcaption span{font-size:14px;color:var(--muted)}
.mph-portrait:nth-child(2){margin-top:48px}
.mph-family__text h2{margin-bottom:18px}
.mph-family__text p{color:var(--muted);font-size:17px;margin-bottom:14px}
.mph-family__text p strong{color:var(--ink)}
.mph-script{font-family:var(--script);font-size:28px;color:var(--orange-text);margin:6px 0 22px;letter-spacing:0;line-height:1.3}
.mph-family__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:26px 0}
.mph-family__stats div{background:var(--white);padding:18px}
.mph-family__stats strong{display:block;font-size:30px;font-weight:800;color:var(--navy);letter-spacing:-.03em}
.mph-family__stats span{font-size:13px;color:var(--muted)}

/* ---------- Reviews ---------- */
.mph-reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mph-review{margin:0;background:var(--white);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:12px}
.mph-stars{color:#C46A22;font-weight:800;letter-spacing:2px}
.mph-review blockquote{margin:0;font-size:17px}
.mph-review figcaption{margin-top:auto;font-weight:700;font-size:14px;color:var(--muted)}
.mph-review--cta{background:var(--navy);color:var(--white);justify-content:center}
.mph-review--cta p{color:#C9D3E6}
.mph-review--cta .mph-h3{font-size:22px;font-weight:800}

/* ---------- Quote ---------- */
.mph-quote{background:var(--navy);color:var(--white)}
.mph-quote .mph-wrap{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:start}
.mph-quote h2{margin-bottom:16px}
.mph-quote__info p{color:#C9D3E6;font-size:18px;margin-bottom:22px}
.mph-contact-list{list-style:none;display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.mph-contact-list a{color:var(--white);font-weight:700;text-decoration:none}
.mph-contact-list a:hover{color:var(--orange-light)}
.mph-contact-list span{display:block;font-size:13px;color:#9FB0CC;font-weight:600}
.mph-quote__office{font-size:15px;color:#C9D3E6}
.mph-form{background:var(--white);color:var(--ink);border-radius:20px;padding:32px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mph-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
.mph-form input,.mph-form select,.mph-form textarea{font:inherit;font-weight:500;padding:13px;border:1px solid var(--line-strong);border-radius:10px;background:var(--white);color:var(--ink);width:100%}
.mph-form input:focus,.mph-form select:focus,.mph-form textarea:focus{outline:2px solid var(--orange);outline-offset:1px;border-color:var(--orange)}
.mph-form .mph-full{grid-column:1 / -1}
.mph-form .mph-consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:500;font-size:13px;color:var(--muted)}
.mph-form .mph-consent input{width:20px;height:20px;flex:0 0 20px;margin-top:1px}
.mph-form .mph-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.mph-form button{grid-column:1 / -1}
.mph-form__msg{grid-column:1 / -1;border-radius:10px;padding:12px 14px;font-weight:600;font-size:15px}
.mph-form__msg--ok{background:#E7F6EC;color:#14532D}
.mph-form__msg--err{background:#FDECEC;color:#7F1D1D}

/* ---------- Footer ---------- */
.mph-footer{background:var(--navy-deep);color:#9FB0CC;font-size:14px;padding:64px 0 0}
.mph-footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:36px}
.mph-footer__logo{background:var(--white);border-radius:10px;padding:12px 14px;display:inline-block}
.mph-footer__logo img{height:56px;width:auto}
.mph-footer .mph-script{color:var(--orange-light);font-size:22px;margin:14px 0 0}
.mph-footer h2{font-size:15px;color:var(--white);letter-spacing:0;margin-bottom:12px}
.mph-footer ul{list-style:none;display:flex;flex-direction:column;gap:6px}
.mph-footer a{color:#C9D3E6;text-decoration:none}
.mph-footer a:hover{color:var(--orange-light)}
.mph-footer__bottom{border-top:1px solid #1E3360;margin-top:48px;padding:18px 0;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;font-size:13px}
.mph-footer__bottom ul{flex-direction:row;flex-wrap:wrap;gap:18px}

/* Mobile sticky bar */
.mph-mbar{display:none}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .mph-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-reviews{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-header__phone{display:none}
}
@media (max-width:900px){
  .mph-section{padding:64px 0}
  .mph-hero{padding:40px 0 48px}
  .mph-hero .mph-wrap,.mph-family .mph-wrap,.mph-quote .mph-wrap,.mph-panel{grid-template-columns:minmax(0,1fr)}
  .mph-hero__media .mph-ph{height:320px}
  .mph-badge{left:12px;bottom:12px}
  .mph-steps{grid-template-columns:minmax(0,1fr)}
  .mph-burger{display:inline-flex}
  .mph-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--white);border-bottom:1px solid var(--line);padding:12px 24px 24px;flex-direction:column;align-items:stretch;gap:12px;box-shadow:0 20px 30px -20px rgba(10,26,54,.3)}
  .mph-nav.is-open{display:flex}
  .mph-nav > ul{flex-direction:column;align-items:stretch;gap:0}
  .mph-nav > ul > li{border-bottom:1px solid var(--line)}
  .mph-nav > ul > li > a,.mph-has-sub > button{display:flex;width:100%;padding:14px 0;justify-content:space-between}
  .mph-sub{position:static;box-shadow:none;border:0;padding:0 0 10px;min-width:0}
  .mph-has-sub:hover .mph-sub{display:none}
  .mph-has-sub.is-open .mph-sub,.mph-has-sub.is-open:hover .mph-sub{display:block}
  .mph-header__cta .mph-btn{display:none}
  .mph-header{position:relative}
  .mph-logo img{height:42px}
  .mph-topbar{display:none}
  .mph-mbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--navy-deep);box-shadow:0 -10px 24px -12px rgba(0,0,0,.5)}
  .mph-mbar a{min-height:50px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;text-decoration:none}
  .mph-mbar a:first-child{background:var(--white);color:var(--navy)}
  .mph-mbar a:last-child{background:var(--orange);color:var(--navy)}
  body{padding-bottom:76px}
}
@media (max-width:640px){
  .mph-wrap{padding:0 16px}
  .mph-services,.mph-reviews,.mph-form,.mph-ticks,.mph-footer__grid{grid-template-columns:minmax(0,1fr)}
  .mph-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mph-hero__ctas .mph-btn{flex:1 1 100%}
  .mph-portrait .mph-ph{height:220px}
  .mph-portrait:nth-child(2){margin-top:24px}
  .mph-family__stats strong{font-size:24px}
  .mph-form{padding:22px}
  .mph-brands .mph-wrap{justify-content:center}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
