/*
Theme Name: East Central Auto Recycling
Theme URI: https://autorecyclingeastcentralnorthdakota.com/
Author: Right Direction Web Builds
Author URI: https://rightdirectionproperties.com/
Description: A polished, SEO-baked WordPress theme for a local East Central North Dakota auto recycling business. Includes local SEO metadata, schema, homepage, sell your vehicle, what we buy, service area, contact form, sticky header, customizer options, and mobile-first CTA design.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ec-auto-recycling
*/

:root{
  --maroon:#6f1118;
  --maroon-2:#8e1923;
  --red:#b7202d;
  --charcoal:#101114;
  --ink:#17181d;
  --steel:#292e35;
  --muted:#626b76;
  --paper:#f5f2eb;
  --cream:#fffaf1;
  --line:rgba(255,255,255,.14);
  --shadow:0 22px 58px rgba(14,14,18,.16);
  --radius:22px;
  --max:1180px;
}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink);line-height:1.58;overflow-x:hidden;width:100%}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.ec-wrap{width:min(var(--max),calc(100% - 40px));margin-inline:auto}

/* Professional fixed-width-safe header */
.ec-header{position:sticky;top:0;z-index:999;background:rgba(13,14,17,.985);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.10);box-shadow:0 12px 36px rgba(0,0,0,.22);width:100%;overflow:visible}
.admin-bar .ec-header{top:32px}
.ec-header-inner{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr) auto;align-items:center;gap:22px;padding:16px 0}
.ec-brand{color:#fff;display:flex;align-items:center;min-width:0;max-width:100%;overflow:hidden}
.ec-brand-copy{display:flex;flex-direction:column;min-width:0;max-width:100%}
.ec-brand-title{display:block;font-weight:1000;letter-spacing:-.055em;font-size:clamp(25px,2.35vw,36px);line-height:.96;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.ec-brand-tag{display:block;margin-top:7px;color:#d8d8d8;font-size:13px;font-weight:850;line-height:1.2;letter-spacing:.015em;white-space:normal;overflow-wrap:break-word}
.ec-logo-wrap{display:none!important}
.ec-nav{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}
.ec-nav a{color:#fff;padding:10px 11px;border-radius:999px;font-weight:850;font-size:14px;opacity:.92;white-space:nowrap}
.ec-nav a:hover,.ec-nav a:focus{background:rgba(255,255,255,.10);opacity:1}
.ec-header-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;white-space:nowrap}
.ec-mobile-toggle{display:none;background:#fff;color:#111316;border:0;border-radius:18px;padding:13px 20px;font-weight:1000;font-size:18px;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.18);cursor:pointer}

.ec-btn,.ec-submit{border:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 18px;font-weight:1000;letter-spacing:-.015em;cursor:pointer;transition:.18s ease;line-height:1.1;text-align:center}
.ec-btn-primary,.ec-submit{background:linear-gradient(135deg,var(--red),var(--maroon));color:#fff;box-shadow:0 13px 28px rgba(111,17,24,.28)}
.ec-btn-primary:hover,.ec-submit:hover{transform:translateY(-1px);filter:saturate(1.07)}
.ec-btn-light{background:#fff;color:var(--charcoal)}
.ec-btn-ghost{background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.18)}
.ec-btn-outline{border:2px solid var(--maroon);color:var(--maroon);background:#fff}

.ec-hero{position:relative;min-height:700px;color:#fff;background:#101214;overflow:hidden}
.ec-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,7,10,.90) 0%,rgba(6,7,10,.68) 42%,rgba(6,7,10,.24) 76%,rgba(6,7,10,.54) 100%),var(--hero-image);background-size:cover;background-position:center;transform:scale(1.01)}
.ec-hero:after{content:"";position:absolute;inset:auto 0 0;height:110px;background:linear-gradient(0deg,var(--paper),transparent)}
.ec-hero-content{position:relative;z-index:2;padding:104px 0 145px;max-width:760px}
.ec-kicker{display:inline-flex;gap:9px;align-items:center;padding:8px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.10);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.ec-hero h1{font-size:clamp(42px,7vw,82px);line-height:.92;letter-spacing:-.075em;margin:18px 0}
.ec-hero p{font-size:clamp(18px,2vw,24px);max-width:650px;color:#f3f0e9;margin:0 0 30px}
.ec-hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.ec-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px;max-width:760px}
.ec-trust{border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.25);border-radius:18px;padding:14px}
.ec-trust strong{display:block;font-size:22px}.ec-trust span{font-size:13px;color:#ddd}

.ec-section{padding:82px 0}.ec-section-tight{padding:54px 0}
.ec-title-row{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.ec-eyebrow{color:var(--maroon);font-weight:1000;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.ec-section h2,.ec-content h2{font-size:clamp(32px,4.5vw,55px);line-height:1;letter-spacing:-.055em;margin:8px 0 0}
.ec-section-lead{max-width:650px;color:#58606b;font-size:18px}.ec-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.ec-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;align-items:start}
.ec-card{background:#fff;border-radius:var(--radius);box-shadow:0 16px 42px rgba(15,15,20,.08);border:1px solid rgba(20,20,20,.08);overflow:hidden}.ec-card-pad{padding:28px}.ec-card h3{font-size:25px;line-height:1.05;letter-spacing:-.035em;margin:0 0 10px}.ec-card p{color:#5e6570;margin:0}.ec-card-img{height:235px;object-fit:cover;width:100%}.ec-icon{width:52px;height:52px;border-radius:17px;background:linear-gradient(135deg,var(--maroon),var(--red));color:#fff;display:grid;place-items:center;font-weight:1000;font-size:22px;margin-bottom:16px}
.ec-dark{background:linear-gradient(135deg,#111316,#24272d);color:#fff;position:relative;overflow:hidden}.ec-dark:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 0%,rgba(183,32,45,.35),transparent 38%);pointer-events:none}.ec-dark .ec-wrap{position:relative}.ec-dark .ec-section-lead,.ec-dark p{color:#d9dce1}.ec-steps{counter-reset:steps;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ec-step{counter-increment:steps;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:22px}.ec-step:before{content:counter(steps);width:36px;height:36px;border-radius:50%;background:#fff;color:var(--maroon);display:grid;place-items:center;font-weight:1000;margin-bottom:16px}.ec-step h3{margin:0 0 8px;font-size:20px}
.ec-area{background:#fff;border-radius:30px;box-shadow:var(--shadow);display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}.ec-area-content{padding:42px}.ec-town-cloud{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.ec-town-cloud span{background:var(--paper);border:1px solid rgba(0,0,0,.08);border-radius:999px;padding:9px 12px;font-weight:850}.ec-area-photo{min-height:430px;background:var(--area-image);background-size:cover;background-position:center}
.ec-quote-band{background:linear-gradient(135deg,var(--maroon),#33070b);color:#fff;border-radius:32px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 24px 70px rgba(111,17,24,.28)}.ec-quote-band h2{font-size:clamp(28px,4vw,48px);margin:0;letter-spacing:-.05em;line-height:1}.ec-quote-band p{margin:8px 0 0;color:#ffe9e9}

.ec-form{background:#fff;border-radius:28px;padding:30px;box-shadow:var(--shadow);border:1px solid rgba(0,0,0,.08);width:100%;max-width:100%}.ec-form-heading{margin-bottom:18px}.ec-form-heading h2{margin:0 0 8px;font-size:clamp(27px,4vw,42px);line-height:1;letter-spacing:-.05em}.ec-form-heading p{margin:0;color:#59616d}.ec-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.ec-field{display:flex;flex-direction:column;gap:7px}.ec-field.full{grid-column:1/-1}.ec-field label{font-weight:900;font-size:14px}.ec-field input,.ec-field select,.ec-field textarea{border:1px solid #d9d8d4;border-radius:14px;padding:13px 14px;font:inherit;background:#fff;width:100%;max-width:100%}.ec-field textarea{min-height:120px;resize:vertical}.ec-field input:focus,.ec-field select:focus,.ec-field textarea:focus{outline:3px solid rgba(183,32,45,.16);border-color:var(--red)}.ec-form-note{font-size:13px;color:#667;margin-top:12px}.ec-alert{padding:14px 16px;border-radius:14px;margin-bottom:16px;font-weight:800}.ec-alert-ok{background:#eaf8ed;color:#155b25}.ec-alert-bad{background:#fdebea;color:#7c1212}

.ec-page-hero{background:linear-gradient(135deg,#111316,#2b0a0e);color:#fff;padding:62px 0}.ec-page-hero h1{font-size:clamp(38px,6vw,68px);line-height:.95;letter-spacing:-.065em;margin:0 0 12px;overflow-wrap:break-word}.ec-page-hero p{font-size:20px;color:#eee;margin:0;max-width:760px}.ec-content{padding:70px 0;overflow:hidden}.ec-content :where(h2,h3){letter-spacing:-.035em;line-height:1.1}.ec-content a:not(.ec-btn){color:var(--maroon);font-weight:900}

.ec-footer{background:#0b0c0f;color:#fff;padding:50px 0 26px}.ec-footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:30px}.ec-footer h3{margin:0 0 12px}.ec-footer a{display:block;color:#e7e7e7;margin:7px 0;overflow-wrap:anywhere}.ec-footer p{color:#c9c9c9;margin:0}.ec-subfooter{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;margin-top:30px;color:#aaa;font-size:14px;display:flex;justify-content:space-between;gap:14px}.ec-sticky-mobile{display:none}

@media(max-width:1180px){
  .ec-header-inner{grid-template-columns:minmax(0,1fr) auto auto}
  .ec-nav{display:none}
  .ec-mobile-toggle{display:block}
}
@media(max-width:980px){
  .ec-header-actions{display:none}
  .ec-header.is-open .ec-nav{display:flex;position:absolute;left:18px;right:18px;top:calc(100% + 10px);flex-direction:column;background:#17191d;border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:14px;align-items:stretch;box-shadow:0 24px 60px rgba(0,0,0,.32)}
  .ec-header.is-open .ec-nav a{display:block;padding:14px 16px;font-size:16px;border-radius:14px;white-space:normal}
  .ec-hero{min-height:auto}
  .ec-hero-content{padding:78px 0 122px}
  .ec-trust-row,.ec-grid-3,.ec-grid-2,.ec-steps,.ec-area,.ec-footer-grid{grid-template-columns:1fr}
  .ec-title-row,.ec-quote-band{align-items:flex-start;flex-direction:column}
  .ec-area-photo{min-height:280px;order:-1}
  .ec-form-grid{grid-template-columns:1fr}
  .ec-sticky-mobile{display:grid;position:fixed;z-index:1000;left:0;right:0;bottom:0;grid-template-columns:1fr 1fr;background:#0b0c0f;padding:10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));border-top:1px solid rgba(255,255,255,.12);gap:8px}
  .ec-sticky-mobile .ec-btn{width:100%;padding:14px 10px}
  .ec-footer{padding-bottom:100px}
}
@media(max-width:700px){
  .ec-wrap{width:calc(100% - 28px)}
  .ec-header-inner{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 0}
  .ec-brand{width:100%;max-width:calc(100vw - 132px)}
  .ec-brand-title{font-size:20px;line-height:1;letter-spacing:-.04em;max-width:100%}
  .ec-brand-tag{font-size:11.5px;line-height:1.25;margin-top:5px;max-width:100%;color:#d8d8d8}
  .ec-mobile-toggle{padding:12px 16px;border-radius:16px;font-size:17px;min-width:82px}
  .ec-header.is-open .ec-nav{left:14px;right:14px;top:calc(100% + 8px)}
  .ec-hero h1{font-size:43px}
  .ec-hero p{font-size:18px}
  .ec-kicker{font-size:10px;letter-spacing:.06em;white-space:normal}
  .ec-hero-actions .ec-btn{width:100%}
  .ec-trust-row{gap:10px}
  .ec-section{padding:58px 0}
  .ec-page-hero{padding:42px 0}
  .ec-page-hero p{font-size:17px}
  .ec-content{padding:48px 0}
  .ec-card-pad,.ec-area-content,.ec-form{padding:22px}
  .ec-quote-band{padding:26px}
  .ec-subfooter{flex-direction:column}
}
@media(max-width:420px){
  .ec-wrap{width:calc(100% - 24px)}
  .ec-brand{max-width:calc(100vw - 120px)}
  .ec-brand-title{font-size:18px;letter-spacing:-.035em}
  .ec-brand-tag{font-size:10.5px}
  .ec-mobile-toggle{padding:11px 14px;font-size:16px;min-width:76px}
  .ec-hero h1{font-size:39px}
}


/* v1.3.1 polish: long email/mobile contact cleanup */
.ec-contact-card a[href^="mailto:"],
.ec-contact-email,
.ec-footer a[href^="mailto:"]{
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  line-height:1.25 !important;
}
.ec-contact-card a[href^="mailto:"]{
  display:block !important;
  font-size:clamp(13px,3.4vw,18px) !important;
  letter-spacing:-.02em !important;
}
.ec-contact-card h3{margin-bottom:6px !important}
@media(max-width:700px){
  .ec-contact-card{padding:24px 20px !important}
  .ec-contact-card a[href^="mailto:"]{font-size:14px !important}
  .ec-contact-card a[href^="tel:"]{font-size:20px !important;letter-spacing:.06em !important}
  .ec-form-heading h2{font-size:32px !important;line-height:1.03 !important}
}
@media(max-width:380px){
  .ec-contact-card a[href^="mailto:"]{font-size:12.5px !important}
}


/* v1.4.0 sticky header + SEO cleanup polish */
.ec-header{
  position:sticky !important;
  position:-webkit-sticky !important;
  top:0 !important;
  left:0;
  right:0;
  z-index:9999 !important;
}
.ec-header-inner{min-height:74px}
.ec-brand-title{word-break:normal !important;overflow-wrap:normal !important;hyphens:none !important}
.ec-brand-tag{word-break:normal !important;overflow-wrap:normal !important}
.ec-seo-copy{background:#fff;border-radius:28px;padding:30px;box-shadow:0 16px 42px rgba(15,15,20,.08);border:1px solid rgba(20,20,20,.08);margin-top:24px}
.ec-seo-copy h2,.ec-seo-copy h3{margin-top:0}.ec-seo-copy ul{padding-left:20px}.ec-seo-copy li{margin:7px 0;color:#555d68}.ec-faq{display:grid;gap:14px;margin-top:26px}.ec-faq details{background:#fff;border:1px solid rgba(20,20,20,.09);border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(15,15,20,.05)}.ec-faq summary{cursor:pointer;font-weight:1000;color:#15161a}.ec-faq p{margin:10px 0 0;color:#5e6570}
@media(max-width:700px){
  .ec-header-inner{min-height:68px;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .ec-brand{max-width:calc(100vw - 118px) !important;overflow:visible !important}
  .ec-brand-title{font-size:18px !important;line-height:1.04 !important;letter-spacing:-.035em !important;display:block !important;max-width:100% !important}
  .ec-brand-tag{font-size:10.5px !important;line-height:1.15 !important;margin-top:4px !important;max-width:100% !important;display:block !important;letter-spacing:.01em !important}
}
@media(max-width:390px){
  .ec-brand-title{font-size:16.5px !important}
  .ec-brand-tag{font-size:9.8px !important}
  .ec-mobile-toggle{min-width:72px !important;padding:10px 13px !important}
}


/* v1.4.1 TRUE fixed header patch - reliable on mobile Safari/Chrome */
html{overflow-x:clip !important;}
body{overflow-x:clip !important;padding-top:var(--ec-header-height,78px) !important;}
body.admin-bar .ec-header{top:32px !important;}
.ec-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:99999 !important;
  transform:translateZ(0);
}
.ec-header-inner{min-height:78px !important;}
.ec-page-hero{padding-top:54px;}
.ec-hero{margin-top:0;}
@media(max-width:782px){
  body.admin-bar .ec-header{top:46px !important;}
}
@media(max-width:700px){
  body{padding-top:84px !important;}
  .ec-header-inner{min-height:84px !important;padding-top:10px !important;padding-bottom:10px !important;}
  .ec-brand{max-width:calc(100vw - 118px) !important;}
  .ec-brand-title{font-size:18px !important;line-height:1.03 !important;}
  .ec-brand-tag{font-size:10px !important;line-height:1.15 !important;}
}
@media(max-width:390px){
  body{padding-top:82px !important;}
  .ec-header-inner{min-height:82px !important;}
  .ec-brand-title{font-size:16px !important;}
  .ec-brand-tag{font-size:9.4px !important;}
}
