/*
Theme Name: Estpresto - bensiinipihustid V3
Theme URI: https://uus.estpresto.ee/
Author: Estpresto OU
Description: Estpresto originaaldisain, MPI/GDI/PIEZO bensiinipihustid, erialateenused ja fotokollaaž.
Version: 1.3.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: estpresto
License: GPL-2.0-or-later
*/


:root{--bg:#0b111b;--panel:#121e2c;--panel2:#182637;--text:#f2f7fc;--muted:#a6b7cb;--line:#2d4052;--a:#59bbff;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--a)}.wrap{max-width:var(--max);padding:0 24px;margin:auto}.top{background:#050a11;color:#b4c5d7;font-size:.85rem;padding:9px 0}.top .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}header{position:sticky;top:0;z-index:50;background:#0b111bf2;border-bottom:1px solid var(--line);backdrop-filter:blur(15px)}.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-size:1.6rem;font-weight:900;letter-spacing:.06em;line-height:1}.brand span{color:var(--a)}.brand small{display:block;font-size:.63rem;letter-spacing:.18em;color:var(--muted);margin-top:8px}.links{display:flex;align-items:center;gap:18px;font-size:.9rem}.links a[aria-current=page]{color:var(--a)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 18px;border:1px solid var(--a);border-radius:9px;background:var(--a);color:#07101c;font-weight:750;line-height:1.2}.btn:hover{background:#a2dfff;color:#07101c}.btn.secondary{background:transparent;color:var(--text);border-color:#54718a}.btn.secondary:hover{border-color:var(--a);color:var(--a)}.menu-btn{display:none;background:transparent;color:var(--text);border:1px solid var(--line);padding:9px 12px;border-radius:8px}.hero{padding:98px 0 84px;background:radial-gradient(ellipse at 83% 20%,#133c5a 0%,transparent 48%),linear-gradient(#0b111b,#101c2a)}.eyebrow{font-size:.8rem;text-transform:uppercase;letter-spacing:.18em;color:var(--a);font-weight:750}.hero h1{font-size:clamp(2.3rem,5.3vw,4.85rem);line-height:1.09;letter-spacing:-.045em;max-width:920px;margin:19px 0 22px}.lead{font-size:1.18rem;max-width:760px;color:#cbdaea}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:42px}.chip{border:1px solid #41617b;border-radius:99px;padding:7px 13px;color:#bfd5e8;font-size:.86rem}.section{padding:75px 0}.section.alt{background:#101a27}.section h2{font-size:clamp(1.8rem,3.3vw,2.65rem);line-height:1.2;margin:10px 0 18px;letter-spacing:-.025em}.intro{color:var(--muted);max-width:790px;font-size:1.05rem}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.card{display:flex;flex-direction:column;padding:26px;border:1px solid var(--line);background:var(--panel);border-radius:14px;min-height:235px}.card h3{font-size:1.25rem;line-height:1.25;margin:10px 0}.card p{color:var(--muted);flex:1}.card a{color:var(--a);font-weight:650}.card .num{font-size:.8rem;color:var(--a);font-weight:800}.two{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}.panel{padding:28px;border:1px solid var(--line);background:var(--panel2);border-radius:14px}.panel li{margin:10px 0}.section ul{padding-left:21px}.steps{counter-reset:step;display:grid;gap:13px;margin-top:24px}.step{padding:17px 20px;border:1px solid var(--line);background:var(--panel);border-radius:9px}.step b{color:var(--a)}.notice{border-left:3px solid var(--a);padding:14px 18px;background:#172b3c;color:#c9d9e8;border-radius:0 8px 8px 0}.contact{background:linear-gradient(120deg,#15354d,#0e1927);border-top:1px solid #36536b;padding:65px 0}.contact-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:30px}.contact a{text-decoration:underline;text-underline-offset:4px}.fine{color:#a9bfd4;font-size:.88rem}footer{padding:27px 0;background:#060c15;color:#9eafc1;font-size:.88rem}footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}a:focus-visible,button:focus-visible{outline:3px solid #fff;outline-offset:3px} .breadcrumb{font-size:.85rem;color:var(--muted);padding-top:24px}.breadcrumb a{color:var(--a)}@media(max-width:1000px){.links{gap:10px;font-size:.8rem}}@media(max-width:800px){.menu-btn{display:inline-block}.links{display:none;position:absolute;top:78px;left:0;right:0;background:#0b111b;flex-direction:column;align-items:stretch;padding:20px 24px;border-bottom:1px solid var(--line);font-size:1rem}.links.open{display:flex}.links a{padding:7px 0}.grid{grid-template-columns:1fr 1fr}.two,.contact-grid{grid-template-columns:1fr}.hero{padding:65px 0}.section{padding:54px 0}}@media(max-width:540px){.grid{grid-template-columns:1fr}.top{font-size:.75rem}.hero h1{font-size:2.5rem}.actions .btn{width:100%}}
/* V3 enhancements */
.links {gap:14px; flex-wrap:wrap;justify-content:flex-end}.links a {font-size:13px}
.photo-section {background:linear-gradient(115deg,#111c2a,#0b1220)}
.photo-layout {display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.photo-placeholder {border:1px dashed #42607e;border-radius:18px;min-height:275px;padding:35px;display:flex;flex-direction:column;justify-content:end;background:linear-gradient(135deg,#10273b,#101521 70%,#192c42);position:relative;overflow:hidden;color:#e2edf7}
.photo-placeholder:before {content:"";position:absolute;width:230px;height:230px;border:1px solid #3f7296;border-radius:50%;right:-65px;top:-75px;opacity:.45;box-shadow:0 0 0 32px #102639,0 0 0 33px #36556c}
.photo-placeholder span {letter-spacing:2px;font-size:10px;color:#82c7ff;position:relative}.photo-placeholder strong {font-size:30px;line-height:1.1;margin:12px 0;position:relative}.photo-placeholder small {opacity:.72;position:relative}
.news-title {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.news-title .intro {margin-bottom:0}
.page-head {padding:85px 0 74px;background:radial-gradient(circle at 88% 10%,#1e4f72 0%,transparent 42%),#0b111b;color:#f3f8fc}.page-head h1 {max-width:900px;font-size:clamp(36px,5vw,62px);line-height:1.08}.page-head .lead {max-width:760px}
.experience-band {background:#143d5e;color:#fff;padding:15px 0;font-size:14px}.experience-band span {opacity:.75}
.school-list li {margin:13px 0}.notice {border:1px solid #376482;border-radius:16px;padding:22px 25px;margin-top:30px;background:#112333}.notice p {margin:8px 0 0}
.request {display:flex;flex-direction:column;gap:16px}.request label {display:flex;flex-direction:column;gap:8px;font-weight:600}.request input,.request select,.request textarea {padding:13px;border-radius:9px;background:#fff;color:#172336;border:1px solid #8d9cac;font:inherit;width:100%}.request button {border:0;cursor:pointer;align-self:flex-start}.text-link {color:#6cbaff}
@media(max-width:900px){.photo-layout{grid-template-columns:1fr}.news-title{align-items:flex-start;flex-direction:column}.links{flex-wrap:nowrap}.photo-placeholder{min-height:250px}}


/* Estpresto v4: hero-photo layout */
.hero{padding:58px 0 64px}
.hero .hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:44px;max-width:1350px}
.hero .hero-copy{min-width:0}
.hero h1{font-size:clamp(2.5rem,3.35vw,3.75rem);line-height:1.13;max-width:none;letter-spacing:-.034em;margin:22px 0 24px}
.hero-subtitle{font-size:clamp(1.2rem,1.75vw,1.55rem);line-height:1.35;margin:0 0 22px;font-weight:750;color:#f2f7fc}
.hero .lead{font-size:1.04rem;line-height:1.75;max-width:590px}
.hero .actions{margin-top:32px}
.hero-tags{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px;color:#bcd3e8;font-size:.83rem}
.hero-tags span{border-left:2px solid #65c5ff;padding-left:10px}
.hero-gallery{min-width:0;margin:0}
.hero-gallery img{width:100%;height:auto;display:block;object-fit:contain;border-radius:12px;box-shadow:0 20px 45px #04091255}
.hero-gallery figcaption{margin-top:8px;color:#a2b3c7;font-size:.72rem;text-align:right}
@media(max-width:980px){.hero .hero-layout{gap:28px;grid-template-columns:1fr}.hero h1{max-width:800px}.hero-gallery{max-width:820px}}
@media(max-width:540px){.hero{padding:35px 0 48px}.hero h1{font-size:clamp(2rem,8.8vw,2.8rem)}.hero .lead{font-size:.98rem}.hero-gallery figcaption{text-align:center}.hero-tags{gap:9px;font-size:.76rem}}

/* Estpresto WordPress theme styling */
body.admin-bar { min-height:100vh; }
.lead-equipment { margin-top: 0.4em; }
.hero-copy .lead:not(.lead-equipment) { margin-bottom: 0; }
#pihustid, #bmw-piezo, #dpf-gpf {scroll-margin-top: 105px;}
#saatmine, #meetod, #kogemus, #kontakt {scroll-margin-top: 95px;}
.shipping-section {background:#101d2b;}
.shipping-section .intro {max-width:890px;}
.shipping-cta {margin-top:25px;}
.photo-placeholder {min-height:275px;}
.photo-placeholder small{font-size:14px;max-width:360px;line-height:1.7;}
.contact .fine{opacity:.85}
.wp-content {min-height:40vh;padding:65px 0 100px;}
.wp-content .entry-content {max-width:900px;}
.wp-content .entry-content a{color:#79c6ff;}
.wp-content .entry-content img{max-width:100%;height:auto;}
.wp-content h1{font-size:clamp(2.2rem,4.5vw,3.65rem);line-height:1.15;}
.posts-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;}
.entry-card{background:#132338;border:1px solid #29405a;border-radius:12px;padding:24px;}
.entry-card h2{font-size:1.5rem;}
.entry-card a{color:#88ceff;}
.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute;width:1px;height:1px;overflow:hidden;}
@media (max-width: 680px) { .top .wrap {flex-wrap:wrap; gap:2px} .hero .lead{line-height:1.65} }

/* V2 – usable contact form */
.estpresto-request-form {margin:28px 0 18px;gap:14px}
.request-row {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.estpresto-request-form label {display:flex;flex-direction:column;gap:5px;font-size:.94rem;font-weight:650;color:#e7f3fc}
.estpresto-request-form label span[aria-hidden]{color:#9bd8ff}
.estpresto-request-form input:not([type="checkbox"]),.estpresto-request-form select,.estpresto-request-form textarea {min-width:0;padding:12px 14px;border-radius:8px;background:#f8fbff;color:#152239;border:1px solid #7c9eb5;font:inherit;width:100%}
.estpresto-request-form input:focus,.estpresto-request-form textarea:focus,.estpresto-request-form select:focus {outline:3px solid #7bc8ff;outline-offset:2px}
.estpresto-request-form textarea {resize:vertical}
.estpresto-request-form .request-consent {display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:.88rem;line-height:1.45;font-weight:450;margin-top:6px}
.estpresto-request-form .request-consent input {flex:none;width:18px;height:18px;margin-top:2px;accent-color:#59bbff}
.estpresto-request-form .request-consent span {flex:1}
.estpresto-request-form .btn {cursor:pointer;margin-top:6px}
.estpresto-request-form .fine {font-size:.82rem;margin:0}
.request-honeypot {position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.request-alert {padding:14px 16px;border-radius:8px;margin:20px 0;border:1px solid #78c5ed;background:#16374d;color:#f4fbff}
.request-alert.request-error {border-color:#ffc0aa;background:#513128}
.request-alternatives{margin-top:18px}
@media(max-width:600px){.request-row {grid-template-columns:1fr}}

/* V3: compact inquiry form; three fields only */
.estpresto-request-form {max-width:740px}
.estpresto-request-form textarea {min-height:140px}

/* V3 1.3.0 – editable service pages */
.wp-content .entry-content{max-width:1050px}
.wp-content .entry-content>article>h1{margin:0 0 28px;font-size:clamp(2rem,4vw,3rem)}
.wp-content .entry-content p{color:#c9d9e8;font-size:1.04rem;line-height:1.8;max-width:850px}
.wp-content .entry-content h2{font-size:clamp(1.4rem,2.4vw,1.95rem);margin:34px 0 12px}
.wp-content .entry-content ul{color:#c9d9e8;line-height:1.75;max-width:870px;padding-left:24px}
.wp-content .entry-content li{margin:7px 0}
.wp-content .entry-content figure{margin:28px auto 18px;max-width:850px}
.wp-content .entry-content figure img{width:100%;height:auto;object-fit:contain;border-radius:12px;display:block}
.wp-content .entry-content figcaption{font-size:.84rem;color:#a8bbcf;text-align:center;margin-top:8px}
.wp-content .entry-content .wp-block-columns.estpresto-photo-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:28px 0}
.wp-content .entry-content .wp-block-columns.estpresto-photo-columns figure{margin:0}
.wp-content .entry-content .wp-block-columns.estpresto-photo-columns img{width:100%;height:300px;object-fit:cover}
.wp-content .entry-content p:has(>a.btn){margin-top:34px}
.wp-content .entry-content p>a.btn{color:#07101c;text-decoration:none}
.wp-content .entry-content h2[id]{scroll-margin-top:140px}
@media(max-width:1130px){.menu-btn{display:inline-block}.links{display:none;position:absolute;top:78px;left:0;right:0;background:#0b111b;flex-direction:column;align-items:stretch;padding:20px 24px;border-bottom:1px solid var(--line);font-size:1rem}.links.open{display:flex}.links a{padding:8px 0}}
@media(max-width:660px){.wp-content .entry-content .wp-block-columns.estpresto-photo-columns{grid-template-columns:1fr 1fr;gap:12px}.wp-content .entry-content .wp-block-columns.estpresto-photo-columns img{height:230px}}
@media(max-width:480px){.wp-content .entry-content .wp-block-columns.estpresto-photo-columns{grid-template-columns:1fr}.wp-content .entry-content .wp-block-columns.estpresto-photo-columns img{height:auto}.wp-content{padding:40px 0 80px}}


/* V3 1.3.2: injector gallery – original portrait photos, never cropped. */
.wp-content.estpresto-injector-page .entry-content .wp-block-columns.estpresto-photo-columns{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;max-width:880px;margin:28px auto;align-items:start!important;
}
.wp-content.estpresto-injector-page .entry-content .estpresto-photo-columns>.wp-block-column{min-width:0;margin:0!important}
.wp-content.estpresto-injector-page .entry-content .estpresto-photo-columns figure{margin:0 auto;max-width:200px;width:100%}
.wp-content.estpresto-injector-page .entry-content .estpresto-photo-columns figure img{
  display:block;width:100%;max-width:200px;height:auto!important;max-height:none;
  aspect-ratio:auto;object-fit:contain!important;object-position:center;margin:0 auto;
}
@media(max-width:700px){
  .wp-content.estpresto-injector-page .entry-content .wp-block-columns.estpresto-photo-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  }
}

/* V3 1.3.2 – editable price list and high-roof van section */
.wp-content .entry-content .estpresto-price-tax{font-weight:800;color:var(--a);border-left:3px solid var(--a);background:#142b3e;padding:12px 16px;max-width:none;margin:0 0 24px}
.estpresto-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.estpresto-price-col{display:grid;gap:18px;min-width:0}
.estpresto-price-card,.estpresto-price-notes{padding:20px;border:1px solid var(--line);background:var(--panel);border-radius:12px;min-width:0}
.wp-content .entry-content .estpresto-price-card h2,.wp-content .entry-content .estpresto-price-notes h2{font-size:1.3rem;margin:0 0 10px}
.wp-content .entry-content .estpresto-price-card .estpresto-price-sub{font-size:.88rem;margin:0 0 8px;color:var(--muted)}
.wp-content .entry-content .estpresto-price-card figure{margin:0;max-width:none}
.estpresto-price-card table{border-collapse:collapse;width:100%;table-layout:auto!important;color:var(--text)}
.estpresto-price-card table td{padding:12px 4px;border:0;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.estpresto-price-card table tr:last-child td{border-bottom:0}
.estpresto-price-card table td:last-child{text-align:right;white-space:nowrap;color:var(--a);font-weight:750;overflow-wrap:normal}
.estpresto-price-notes{margin-top:22px}
.wp-content .entry-content .estpresto-price-notes p{margin:8px 0;font-size:.94rem}
@media(max-width:1240px){.menu-btn{display:inline-block}.links{display:none;position:absolute;top:78px;left:0;right:0;background:#0b111b;flex-direction:column;align-items:stretch;padding:20px 24px;border-bottom:1px solid var(--line);font-size:1rem}.links.open{display:flex}.links a{padding:8px 0}}
@media(max-width:720px){.estpresto-price-grid{grid-template-columns:1fr}.estpresto-price-card,.estpresto-price-notes{padding:16px}}
