/*
Theme Name: Estimate
Description: Professional product theme for home-service estimating tools.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: estimate-t7mel-global-v2
License: GPL-2.0-or-later
*/

:root{
  --est-canvas:#f7fafc;
  --est-surface:#fff;
  --est-ink:#102a2e;
  --est-muted:#52646a;
  --est-accent:#155e75;
  --est-accent-strong:#0e4b5e;
  --est-line:#dce5e8;
  --est-soft:#edf5f6;
  --est-dark:#0e2930;
  --est-success:#166534;
  --est-warning:#92400e;
  --est-radius:14px;
  --est-radius-lg:22px;
  --est-shadow-sm:0 8px 28px rgba(16,42,46,.07);
  --est-shadow-md:0 18px 50px rgba(16,42,46,.12);
  --est-container:min(1180px,calc(100% - 40px));
  --est-reading:min(820px,calc(100% - 40px));
  --est-focus:#eab308;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.estimate-site{
  margin:0;
  background:var(--est-canvas);
  color:var(--est-ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
  text-rendering:optimizeLegibility;
}
body.admin-bar .estimate-header{top:32px}
img,svg{max-width:100%}
a{color:var(--est-accent);text-underline-offset:3px}
a:hover{color:var(--est-accent-strong)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid var(--est-focus);
  outline-offset:3px;
}
button,input,select,textarea{font:inherit}
button{color:inherit}
.estimate-container{width:var(--est-container);margin-inline:auto}
.estimate-main{padding:clamp(28px,5vw,56px) 0 72px}
.estimate-main>.wp-block-post-title,
.estimate-main>.wp-block-post-content,
.estimate-main>.wp-block-shortcode{width:var(--est-reading);margin-inline:auto}
.estimate-page-title{
  margin:14px auto 18px!important;
  max-width:820px;
  font-size:clamp(2rem,5vw,3.35rem);
  line-height:1.08;
  letter-spacing:-.035em;
}
.estimate-skip-link{
  position:fixed;
  top:10px;
  left:10px;
  transform:translateY(-160%);
  z-index:10000;
  padding:10px 14px;
  border-radius:10px;
  background:#fff;
  color:var(--est-ink);
  box-shadow:var(--est-shadow-md);
  font-weight:750;
}
.estimate-skip-link:focus{transform:none}

/* Header */
.estimate-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(220,229,232,.9);
  backdrop-filter:saturate(160%) blur(14px);
  transition:box-shadow .18s ease,background .18s ease;
}
.estimate-header[data-scrolled=true]{box-shadow:0 8px 30px rgba(16,42,46,.08)}
.estimate-header__inner{
  min-height:74px;
  display:flex;
  align-items:center;
  gap:24px;
}
.estimate-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  color:var(--est-ink);
  text-decoration:none;
}
.estimate-brand:hover{color:var(--est-ink)}
.estimate-brand__mark{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  flex:0 0 32px;
}
.estimate-brand__mark img{
  display:block;
  width:100%;
  height:100%;
  max-width:32px;
  max-height:32px;
  object-fit:contain;
}
.estimate-brand--footer .estimate-brand__mark{width:30px;height:30px;flex-basis:30px}
.estimate-brand--footer .estimate-brand__mark img{max-width:30px;max-height:30px}
.estimate-brand__name{font-size:1.2rem;font-weight:850;letter-spacing:-.03em}
.estimate-nav{
  display:flex;
  align-items:center;
  gap:5px;
  margin-left:auto;
}
.estimate-nav__link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#29434a;
  text-decoration:none;
  font-size:.95rem;
  font-weight:680;
  cursor:pointer;
}
.estimate-nav__link:hover,
.estimate-nav__group[data-open]>.estimate-nav__link,
.estimate-nav__group:focus-within>.estimate-nav__link{
  color:var(--est-ink);
  background:#edf4f5;
}
.estimate-nav__button svg{transition:transform .16s ease}
.estimate-nav__button[aria-expanded=true] svg{transform:rotate(180deg)}
.estimate-nav__group{position:relative}
.estimate-nav__dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  width:330px;
  padding:10px;
  border:1px solid var(--est-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--est-shadow-md);
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,-6px);
  transition:opacity .15s ease,transform .15s ease,visibility .15s;
}
.estimate-nav__group:hover .estimate-nav__dropdown,
.estimate-nav__group:focus-within .estimate-nav__dropdown,
.estimate-nav__group[data-open] .estimate-nav__dropdown{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}
.estimate-nav__dropdown-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:7px 9px 10px;
  border-bottom:1px solid var(--est-line);
  margin-bottom:5px;
}
.estimate-nav__dropdown-head strong{font-size:.88rem}
.estimate-nav__dropdown-head a{font-size:.8rem;font-weight:700}
.estimate-nav__dropdown>a{
  display:flex;
  flex-direction:column;
  gap:1px;
  padding:9px;
  border-radius:10px;
  color:var(--est-ink);
  text-decoration:none;
}
.estimate-nav__dropdown>a:hover{background:var(--est-soft)}
.estimate-nav__dropdown>a span{font-size:.91rem;font-weight:730}
.estimate-nav__dropdown>a small{color:var(--est-muted);font-size:.78rem}
.estimate-nav__cta{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  margin-left:5px;
  border-radius:11px;
  color:#fff;
  background:var(--est-accent);
  text-decoration:none;
  font-size:.92rem;
  font-weight:780;
  box-shadow:0 8px 20px rgba(21,94,117,.18);
}
.estimate-nav__cta:hover{color:#fff;background:var(--est-accent-strong)}
.estimate-menu-toggle{
  display:none;
  margin-left:auto;
  min-height:44px;
  padding:0 12px;
  align-items:center;
  gap:8px;
  border:1px solid var(--est-line);
  border-radius:10px;
  background:#fff;
  font-weight:720;
}

/* Typography and generic product UI */
.estimate-kicker{
  display:inline-block;
  margin-bottom:10px;
  color:var(--est-accent);
  font-size:.79rem;
  font-weight:820;
  letter-spacing:.055em;
}
.estimate-section h2,
.estimate-hero h1,
.estimate-error-page h1{
  margin:0;
  color:var(--est-ink);
  letter-spacing:-.04em;
}
.estimate-section h2{font-size:clamp(1.7rem,3.5vw,2.65rem);line-height:1.1}
.estimate-section h3{letter-spacing:-.02em}
.estimate-section p{color:var(--est-muted)}
.estimate-button{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:12px;
  text-decoration:none;
  font-weight:780;
}
.estimate-button--primary{color:#fff;background:var(--est-accent)}
.estimate-button--primary:hover{color:#fff;background:var(--est-accent-strong)}
.estimate-button--secondary{color:var(--est-ink);background:#fff;border-color:var(--est-line)}
.estimate-button--secondary:hover{color:var(--est-ink);border-color:#b9cbd0;background:#f9fbfb}
.estimate-text-link{font-weight:760;text-decoration:none}

/* Hero */
.estimate-hero{
  padding:clamp(52px,8vw,98px) 0;
  overflow:hidden;
  background:
    radial-gradient(circle at 88% 14%,rgba(21,94,117,.14),transparent 28%),
    radial-gradient(circle at 5% 85%,rgba(14,75,94,.08),transparent 30%),
    linear-gradient(180deg,#fbfdfd 0%,#f3f8f9 100%);
  border-bottom:1px solid var(--est-line);
}
.estimate-hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);
  align-items:center;
  gap:clamp(34px,6vw,76px);
}
.estimate-hero__copy h1{
  max-width:760px;
  font-size:clamp(2.65rem,6vw,5.25rem);
  line-height:.99;
}
.estimate-hero__copy>p{
  max-width:680px;
  margin:22px 0 0;
  color:var(--est-muted);
  font-size:clamp(1.04rem,2vw,1.23rem);
}
.estimate-hero__actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:28px}
.estimate-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  list-style:none;
  padding:0;
  margin:24px 0 0;
  color:#3b555c;
  font-size:.88rem;
  font-weight:670;
}
.estimate-trust-row li::before{content:"✓";margin-right:7px;color:var(--est-success);font-weight:900}
.estimate-hero__panel{position:relative}
.estimate-hero__panel::before{
  content:"";
  position:absolute;
  inset:-25px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(21,94,117,.12),transparent 67%);
  pointer-events:none;
}
.estimate-mini-tool{
  position:relative;
  padding:24px;
  border:1px solid rgba(220,229,232,.9);
  border-radius:var(--est-radius-lg);
  background:rgba(255,255,255,.94);
  box-shadow:var(--est-shadow-md);
}
.estimate-mini-tool__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid var(--est-line);
}
.estimate-mini-tool__top span{color:var(--est-muted);font-size:.86rem}
.estimate-mini-tool__metric{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:12px;padding:10px 0}
.estimate-mini-tool__metric span{
  width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--est-soft);color:var(--est-accent);font-weight:850
}
.estimate-mini-tool__metric p{margin:0;color:#314b52}
.estimate-mini-tool>a{display:inline-block;margin-top:14px;font-weight:800;text-decoration:none}

/* Sections */
.estimate-section{padding:clamp(54px,7vw,88px) 0}
.estimate-section--soft{background:#edf4f5;border-block:1px solid #dfe9eb}
.estimate-section--dark{background:var(--est-dark);color:#fff}
.estimate-section--dark h2,.estimate-section--dark h3{color:#fff}
.estimate-section--dark p{color:#c9d7da}
.estimate-section--dark .estimate-kicker{color:#83c7d8}
.estimate-section__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:28px;
}
.estimate-section__head>div{max-width:720px}
.estimate-section__head>a{flex:0 0 auto;font-weight:760;text-decoration:none}
.estimate-card-grid{display:grid;gap:16px}
.estimate-card-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.estimate-tool-card-link{
  min-height:220px;
  display:flex;
  flex-direction:column;
  padding:22px;
  border:1px solid var(--est-line);
  border-radius:16px;
  background:#fff;
  color:var(--est-ink);
  text-decoration:none;
  box-shadow:0 7px 24px rgba(16,42,46,.04);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.estimate-tool-card-link:hover{
  color:var(--est-ink);
  transform:translateY(-2px);
  border-color:#b8cdd2;
  box-shadow:var(--est-shadow-sm);
}
.estimate-tool-card-link__icon{
  width:40px;height:40px;display:grid;place-items:center;margin-bottom:24px;border-radius:12px;background:var(--est-soft);color:var(--est-accent);font-size:.78rem;font-weight:850
}
.estimate-tool-card-link h3{margin:0 0 8px;font-size:1.04rem}
.estimate-tool-card-link p{margin:0 0 18px;font-size:.9rem}
.estimate-tool-card-link strong{margin-top:auto;color:var(--est-accent);font-size:.86rem}
.estimate-split{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);
  gap:clamp(36px,7vw,90px);
  align-items:start;
}
.estimate-split--reverse .estimate-split__intro{order:2}
.estimate-split__intro{position:sticky;top:110px}
.estimate-split__intro p{max-width:56ch}
.estimate-link-list{
  display:grid;
  border:1px solid var(--est-line);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
.estimate-link-list>a{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:18px 20px;
  color:var(--est-ink);
  text-decoration:none;
  border-bottom:1px solid var(--est-line);
}
.estimate-link-list>a:last-child{border-bottom:0}
.estimate-link-list>a:hover{background:#f8fbfb}
.estimate-link-list span{font-weight:780}
.estimate-link-list small{color:var(--est-muted)}
.estimate-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.estimate-steps article{
  padding:24px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
  background:rgba(255,255,255,.045);
}
.estimate-steps article>span{
  width:38px;height:38px;display:grid;place-items:center;margin-bottom:28px;border-radius:11px;background:#fff;color:var(--est-dark);font-weight:900
}
.estimate-audience-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.estimate-audience-grid article{
  padding:28px;
  border:1px solid var(--est-line);
  border-radius:18px;
  background:#fff;
}
.estimate-audience-grid h3{font-size:1.35rem}
.estimate-audience-grid a{font-weight:780;text-decoration:none}
.estimate-pill{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:var(--est-soft);
  color:var(--est-accent);
  font-size:.78rem;
  font-weight:820;
}
.estimate-market-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.estimate-market-row>div{
  display:flex;flex-direction:column;gap:3px;padding:17px;border-radius:14px;background:#fff;border:1px solid var(--est-line)
}
.estimate-market-row span{color:var(--est-muted);font-size:.86rem}
.estimate-cta-panel{
  display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;border:1px solid var(--est-line);border-radius:20px;background:#fff;box-shadow:var(--est-shadow-sm)
}
.estimate-cta-panel>div{max-width:730px}
.estimate-cta-panel p{margin-bottom:0}

/* Breadcrumbs */
.estimate-breadcrumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:0 auto 14px;
  color:#52646a;
  font-size:.86rem;
}
.estimate-breadcrumbs a{color:#566c72;text-decoration:none}
.estimate-breadcrumbs a:hover{text-decoration:underline}

/* Footer */
.estimate-footer{
  border-top:1px solid var(--est-line);
  background:#fff;
  color:var(--est-ink);
}
.estimate-footer__grid{
  display:grid;
  grid-template-columns:1.5fr repeat(3,1fr);
  gap:48px;
  padding:54px 0 42px;
}
.estimate-footer__brand p{max-width:420px;color:var(--est-muted);font-size:.9rem}
.estimate-brand--footer{margin-bottom:13px}
.estimate-footer__grid h2{margin:3px 0 13px;font-size:.88rem}
.estimate-footer__grid>div:not(.estimate-footer__brand){display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.estimate-footer__grid>div:not(.estimate-footer__brand)>a{color:#4b6167;text-decoration:none;font-size:.88rem}
.estimate-footer__grid>div:not(.estimate-footer__brand)>a:hover{color:var(--est-ink);text-decoration:underline}
.estimate-footer__bottom{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:20px 0 28px;
  border-top:1px solid var(--est-line);
  color:#52646a;
  font-size:.8rem;
}
.estimate-footer__bottom p{margin:0;max-width:850px}
.estimate-footer__bottom a{white-space:nowrap;color:#566c72;text-decoration:none}

/* Generic WordPress content */
.wp-block-post-content{font-size:1rem}
.wp-block-post-content h2{margin-top:2.1em;font-size:clamp(1.45rem,3vw,2rem);line-height:1.2;letter-spacing:-.025em}
.wp-block-post-content h3{margin-top:1.7em;font-size:1.22rem}
.wp-block-post-content p,.wp-block-post-content li{color:#3e555b}
.wp-block-post-content a{font-weight:650}
.estimate-error-page{min-height:58vh;display:grid;align-items:center;padding:70px 0}
.estimate-error-page h1{max-width:700px;font-size:clamp(2.5rem,7vw,5rem);line-height:1}
.estimate-error-page p{max-width:560px;color:var(--est-muted);font-size:1.1rem}

/* Responsive */

.estimate-home-faq{max-width:860px}
.estimate-home-faq details{
  margin:0 0 10px;
  padding:16px 18px;
  border:1px solid var(--est-line);
  border-radius:13px;
  background:#fff;
}
.estimate-home-faq summary{
  cursor:pointer;
  color:var(--est-ink);
  font-weight:780;
}
.estimate-home-faq details p{margin:12px 0 2px;color:var(--est-muted)}

@media(max-width:1000px){
  .estimate-card-grid--4{grid-template-columns:repeat(2,1fr)}
  .estimate-market-row{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  body.admin-bar .estimate-header{top:46px}
  .estimate-header__inner{min-height:68px}
  .estimate-menu-toggle{display:inline-flex}
  .estimate-nav{
    position:absolute;
    top:100%;
    left:20px;
    right:20px;
    display:none;
    align-items:stretch;
    flex-direction:column;
    gap:3px;
    padding:10px;
    border:1px solid var(--est-line);
    border-radius:16px;
    background:#fff;
    box-shadow:var(--est-shadow-md);
  }
  .estimate-nav[data-open=true]{display:flex}
  .estimate-nav__link,.estimate-nav__cta{width:100%;justify-content:space-between;margin:0;padding-inline:12px}
  .estimate-nav__group{width:100%}
  .estimate-nav__dropdown{
    position:static;
    width:100%;
    display:none;
    opacity:1;
    visibility:visible;
    transform:none!important;
    box-shadow:none;
    border:0;
    border-radius:10px;
    background:#f8fbfb;
    margin:3px 0 6px;
  }
  .estimate-nav__group:hover .estimate-nav__dropdown,
  .estimate-nav__group:focus-within .estimate-nav__dropdown{display:none}
  .estimate-nav__group[data-open] .estimate-nav__dropdown{display:block}
  .estimate-hero__grid{grid-template-columns:1fr}
  .estimate-hero__panel{max-width:620px}
  .estimate-split,.estimate-split--reverse{grid-template-columns:1fr}
  .estimate-split--reverse .estimate-split__intro{order:0}
  .estimate-split__intro{position:static}
  .estimate-steps{grid-template-columns:1fr}
  .estimate-footer__grid{grid-template-columns:1.5fr 1fr 1fr;gap:34px}
  .estimate-footer__brand{grid-column:1/-1}
}
@media(max-width:620px){
  :root{--est-container:min(100% - 28px,1180px);--est-reading:min(100% - 28px,820px)}
  .estimate-header__inner{gap:10px}
  .estimate-brand__mark{width:30px;height:30px;flex-basis:30px}
  .estimate-menu-toggle span{display:none}
  .estimate-nav{left:14px;right:14px}
  .estimate-hero{padding:48px 0 56px}
  .estimate-hero__copy h1{font-size:clamp(2.4rem,13vw,4rem)}
  .estimate-hero__actions{flex-direction:column}
  .estimate-button{width:100%}
  .estimate-trust-row{display:grid;grid-template-columns:1fr}
  .estimate-card-grid--4,.estimate-audience-grid,.estimate-market-row{grid-template-columns:1fr}
  .estimate-section__head{align-items:flex-start;flex-direction:column}
  .estimate-cta-panel{align-items:flex-start;flex-direction:column;padding:24px}
  .estimate-footer__grid{grid-template-columns:1fr 1fr;gap:30px}
  .estimate-footer__brand{grid-column:1/-1}
  .estimate-footer__bottom{flex-direction:column}
}
@media(max-width:430px){
  .estimate-footer__grid{grid-template-columns:1fr}
  .estimate-footer__brand{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}
}
@media print{
  .estimate-header,.estimate-footer,.estimate-skip-link,.estimate-menu-toggle{display:none!important}
  body.estimate-site{background:#fff}
  .estimate-main{padding:0}
}
