/*
Theme Name: Ersi Ehitaja
Description: Ersi Ehitaja OÜ V18 kujundus
Version: 1.0.0
Text Domain: ersi-ehitaja
*/

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.65 Arial,sans-serif;color:#343638;background:white}h1,h2,h3{line-height:1.2;color:#303537;margin:0 0 16px}h1{font-size:clamp(36px,4.6vw,65px);letter-spacing:-1.6px;color:white}h2{font-size:34px}h3{font-size:21px}p{margin:0 0 16px}a{color:inherit;text-decoration:none}.wrap{max-width:1180px;margin:auto;padding:0 28px}header{background:white;position:sticky;top:0;z-index:5;box-shadow:0 1px 8px #0001}header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:20px;padding-bottom:20px}header img{width:205px;display:block}nav{display:flex;gap:26px;align-items:center;font-size:14px;font-weight:bold}.btn{display:inline-block;background:#303537;color:white;border:0;border-radius:4px;padding:13px 22px;font:inherit;font-weight:bold;cursor:pointer}.hero{background:#f0ede7;min-height:540px;display:flex;align-items:center;color:white}.hero .wrap{width:100%;padding-top:70px;padding-bottom:70px}.hero p{max-width:510px;font-size:19px}.hero h1{max-width:650px}.eyebrow{font-size:12px;font-weight:bold;letter-spacing:2px;text-transform:uppercase;margin-bottom:17px}.hero .btn{background:white;color:#303537;margin-top:12px}.facts{background:#f0ede7}.facts .wrap{display:grid;grid-template-columns:repeat(4,1fr);padding-top:28px;padding-bottom:28px;text-align:center}.facts div+div{border-left:1px solid #d5cdc1}.facts strong{display:block;color:#303537;font-size:23px}.facts span{font-size:14px}section{padding:76px 0;scroll-margin-top:100px}.intro{max-width:680px;margin-bottom:30px}.services{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}article{border:1px solid #ddd6cc;padding:28px;border-radius:5px}article svg{width:36px;height:36px;color:#947653;margin-bottom:20px}article p{margin:0;color:#55534f}.about{background:#f0ede7}.about .wrap{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.about img{width:100%;border-radius:4px}.contact{display:grid;grid-template-columns:1fr 1.4fr;gap:65px}.contact a{color:#303537}.form{background:#f5f2ed;padding:30px;border-radius:5px}label{display:block;font-size:14px;font-weight:bold;margin:12px 0 5px}input,select,textarea{width:100%;border:1px solid #cfc6ba;background:white;padding:11px;border-radius:3px;font:inherit}textarea{min-height:110px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notice{font-size:13px;color:#615b53;margin-top:14px}footer{background:#303537;color:white;padding:24px 0;font-size:13px}footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}details{font-size:13px;margin:12px 0}summary{cursor:pointer} @media(max-width:760px){header{position:static}header .wrap{flex-direction:column;gap:12px}nav{flex-wrap:wrap;justify-content:center;gap:12px}.hero{min-height:460px;background-position:60% center}.services,.about .wrap,.contact{grid-template-columns:1fr;gap:24px}.facts strong{font-size:17px}.facts span{font-size:12px}.wrap{padding-left:20px;padding-right:20px}section{padding:48px 0}.form{padding:20px}.pair{grid-template-columns:1fr}}

.eyebrow{color:#806344}.hero .eyebrow{color:#eee2d0}article{background:#fff;border-top:3px solid #947653}.facts strong{color:#303537}.btn:hover{background:#51483e;color:white}.hero .btn:hover{background:#e8dfd1;color:#303537}

.service-photo{display:block;width:100%;aspect-ratio: 16/10;object-fit:cover;border-radius:3px;margin-bottom:20px}.contact-photo{display:block;width:100%;aspect-ratio: 4/3;object-fit:cover;border-radius:4px;margin-top:24px} article svg{display:none}
.why{text-align:center}.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:36px}.why-item{padding:18px 10px}.why-item svg{width:42px;height:42px;color:#947653;margin-bottom:16px}.why-item h3{font-size:19px;margin-bottom:10px}.why-item p{color:#55534f;margin:0}.cta{background:#303537;color:white;text-align:center;padding:52px 0}.cta h2{color:white}.cta p{color:#e4dfd6}.cta .btn{background:#947653;color:white}.cta .btn:hover{background:#806344}.cta-phone{display:block;margin-top:14px;color:white}#paring{scroll-margin-top:110px}@media(max-width:760px){.why-grid{grid-template-columns:repeat(2,1fr);gap:12px}.why-item{padding:12px 4px}.cta{padding:40px 0}}
.clients,.process{text-align:center;background:#f0ede7}.clients h2{max-width:780px;margin:0 auto}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;list-style:none;padding:0;margin:36px 0 0}.steps li{position:relative}.step-num{display:grid;place-items:center;margin:0 auto 18px;width:42px;height:42px;border:1px solid #947653;border-radius:50%;color:#806344;font-weight:bold;font-size:19px}.steps h3{font-size:18px}.steps p{font-size:15px;color:#55534f;margin:0}.company-data{border-bottom:1px solid #ddd6cc;padding-bottom:16px}.registry-link a{text-decoration:underline;text-underline-offset:3px;font-size:14px}.form{align-self:start}@media(max-width:760px){.steps{grid-template-columns:1fr;text-align:left;gap:22px}.steps li{padding-left:58px}.step-num{position:absolute;left:0;top:0}.steps h3{margin-bottom:5px}}
/* Alternative editorial layout */
body{font-family:Arial,sans-serif} .wrap{max-width:1320px;padding-left:44px;padding-right:44px} header .wrap{padding-top:12px;padding-bottom:12px} header img{width:180px} header{box-shadow:none;border-bottom:1px solid #e1dcd3} nav{gap:30px} .btn{border-radius:0;padding:16px 25px} h2{font-size:clamp(30px,3.4vw,48px);letter-spacing:-1.6px} h3{letter-spacing:-.4px} section{padding:90px 0}
.hero{background:#f0ede7!important;display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);min-height:0;color:#303537;max-width:1500px;margin:auto;align-items:stretch}.hero .wrap{padding:85px 45px 85px 44px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;margin:0}.hero h1{color:#303537;font-size:clamp(38px,4.4vw,70px);letter-spacing:-2.5px;line-height:1.04}.hero .eyebrow{color:#806344}.hero p{font-size:18px}.hero .btn{background:#303537;color:white}.hero-photo{width:100%;height:100%;min-height:500px;object-fit:cover;display:block}.facts{background:white;border-bottom:1px solid #ddd6cc}.facts .wrap{text-align:left;padding-top:32px;padding-bottom:32px;gap:25px}.facts .wrap>div{padding-left:22px;border-left:3px solid #947653}.facts strong{font-size:24px}.facts span{display:block}
#teenused .intro{display:grid;grid-template-columns:1fr 1fr;max-width:none;align-items:end;column-gap:40px;margin-bottom:38px}#teenused .intro .eyebrow{grid-column:1/-1}#teenused .intro h2,#teenused .intro p{margin:0}.services{display:flex;flex-direction:column;gap:0;counter-reset:service}.services article{counter-increment:service;display:grid;grid-template-columns:42% 1fr;grid-template-rows:auto auto 1fr;column-gap:48px;align-items:start;padding:32px 0;border:0;border-top:1px solid #ddd6cc;border-radius:0;background:white}.services article:before{content:'0' counter(service);grid-column:2;grid-row:1;color:#947653;font-size:15px;letter-spacing:2px;font-weight:bold;margin:8px 0 12px}.services article img{grid-column:1;grid-row:1/4;aspect-ratio:16/9;margin:0;border-radius:0;align-self:stretch;height:100%;max-height:300px}.services article h3{grid-column:2;grid-row:2;font-size:28px;margin-bottom:12px}.services article p{grid-column:2;grid-row:3;max-width:680px}.services article:nth-child(even){grid-template-columns:1fr 42%}.services article:nth-child(even) img{grid-column:2}.services article:nth-child(even):before,.services article:nth-child(even) h3,.services article:nth-child(even) p{grid-column:1}.services article:last-child{border-bottom:1px solid #ddd6cc}
.about .wrap{grid-template-columns:42% 1fr;gap:70px}.about .wrap>div{grid-column:2;grid-row:1}.about img{grid-column:1;grid-row:1;height:100%;min-height:440px;object-fit:cover;border-radius:0}.clients{background:white;text-align:left}.clients .wrap,.why .wrap{display:grid;grid-template-columns:32% 1fr;column-gap:65px;align-items:start}.clients .eyebrow{grid-column:1/-1}.clients h2,.why h2{margin:0;text-align:left;font-size:36px}.clients .why-grid,.why .why-grid{grid-template-columns:1fr 1fr;margin:0;gap:0}.why-item{text-align:left;padding:22px 18px;border-top:1px solid #ddd6cc}.why-item svg{float:left;width:32px;height:32px;margin:0 15px 40px 0}.why-item h3{font-size:20px}.why{background:#f0ede7}.process{background:white;text-align:left}.process .wrap{display:grid;grid-template-columns:40% 1fr;column-gap:60px}.process .eyebrow{grid-column:1/-1}.process h2{grid-column:1}.steps{grid-column:2;grid-row:2;display:block;margin:0;text-align:left}.steps li{padding:0 0 25px 70px;min-height:85px;border-left:1px solid #ddd6cc;margin-left:20px}.steps li:last-child{border:0;padding-bottom:0}.step-num{position:absolute;left:-21px;top:0;background:white;margin:0}.steps h3{font-size:21px;margin-bottom:6px}.cta{text-align:left;padding:55px 0}.cta .wrap{display:grid;grid-template-columns:1fr auto;column-gap:35px;align-items:center}.cta h2{grid-column:1;grid-row:1}.cta p{grid-column:1;grid-row:2;margin:0}.cta .btn{grid-column:2;grid-row:1}.cta-phone{grid-column:2;grid-row:2;text-align:center}.contact{grid-template-columns:1fr 1fr;gap:75px}.contact-photo{aspect-ratio:16/8;border-radius:0}.form{border-radius:0;padding:40px;border-top:4px solid #947653}input,select,textarea{border-radius:0}footer{padding:32px 0}
@media(max-width:900px){.wrap{padding-left:24px;padding-right:24px}.hero .wrap{padding:50px 24px}.hero-photo{min-height:380px}.services article{column-gap:25px}.clients .wrap,.why .wrap,.process .wrap{column-gap:25px}.contact{gap:30px}.about .wrap{gap:30px}}
@media(max-width:760px){header .wrap{padding:12px 20px}nav{gap:12px}.hero{grid-template-columns:1fr}.hero .wrap{padding:45px 24px}.hero-photo{min-height:0;height:270px}.facts .wrap{grid-template-columns:1fr;gap:14px;padding:24px}.facts .wrap>div{padding-left:14px}.facts strong{font-size:20px}section{padding:48px 0}#teenused .intro{display:block}#teenused .intro h2{margin-bottom:12px}.services article,.services article:nth-child(even){display:flex;flex-direction:column;gap:0;padding:24px 0}.services article img{order:-2;height:auto;max-height:none;aspect-ratio:16/9;margin-bottom:12px}.services article:before{order:-1}.services article h3{font-size:24px}.about .wrap,.clients .wrap,.why .wrap,.process .wrap,.contact{display:flex;flex-direction:column;gap:22px}.about img{min-height:0;height:300px}.clients .why-grid,.why .why-grid{grid-template-columns:1fr 1fr;gap:10px;width:100%}.why-item{padding:12px 0}.why-item svg{float:none;margin:0 0 10px}.why-item h3{font-size:18px}.steps{margin-left:10px}.cta .wrap{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.cta-phone{margin:0}.form{width:100%;padding:22px}.contact>div{width:100%}}
/* Hero: keep both columns within their own grid tracks. */
.hero .wrap{min-width:0;max-width:100%}
.hero-photo{min-width:0;max-width:100%}
/* Image sizing and accessible CTA contrast */
header img{height:auto;aspect-ratio:1632/584}
.cta .btn{background:#806344;color:#fff}.cta .btn:hover{background:#6e5338}
@media(max-width:760px){.hero-photo{height:270px;aspect-ratio:auto}.about img{height:300px}.services article img{height:auto;aspect-ratio:16/9}.contact>div,.form,.why-item{min-width:0}input[type=file]{max-width:100%}}


/* Teenuste lingid: kirjeldusest eraldi, ka mobiilivaates. */
.services article > p + p {
    grid-row: 4;
    margin-top: 16px;
    margin-bottom: 0;
}
.services article .service-more {
    display: inline-block;
    font-weight: 600;
    color: #303537;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.services article .service-more:hover {
    color: #947653;
}
@media (min-width: 761px) {
    .services article {
        grid-template-rows: auto auto auto 1fr;
    }
    .services article img {
        grid-row: 1 / 5;
    }
}
/* Salveihall kujundus – 04.12.2026 */
body, .facts, .clients, .process, .step-num, .services article {background:#E9EBE3;}
.hero {background:#D8DDD1!important;}
.about, .why, .form {background:#D8DDD1;}
header {background:#fff;}
.content-section {background:#E9EBE3;}
.services article, .services article:last-child, .facts, .why-item, .steps li, .company-data {border-color:#C4C9BD;}
.services article .service-photo {width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:contain;align-self:start;border-radius:12px;}
.services article > svg {display:block;width:30px;height:30px;color:#806344;margin:0 0 8px;grid-column:2;grid-row:1;justify-self:end;}
.services article:nth-child(even) > svg {grid-column:1;}
.service-detail-photo img {border-radius:12px;}
@media(max-width:760px){.services article > svg {display:none;}.services article .service-photo {height:auto;aspect-ratio:4/3;}}

/* Avalehe foto: originaalfoto, pronksjas kaar ja ümardatud nurgad. */
.hero .hero-photo {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    height: calc(100% - 44px);
    margin: 22px 32px 22px 0;
    border-radius: 22px 22px 85% 22px / 22px 22px 20% 22px;
    border-bottom: 5px solid #947653;
    object-fit: cover;
}
@media (max-width:760px) {
    .hero .hero-photo {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        height: 270px;
        min-height: 0;
        margin: 0 20px 24px;
        border-radius: 16px 16px 85% 16px / 16px 16px 20% 16px;
    }
}


/* Siledad vektorkaared – teenused, ettevõttest ja kontakt */
.services article img[src$="/service-3.webp"], .service-detail-photo img[src$="/service-3.webp"] { content: url("assets/service-3-kaar.svg"); }
.services article img[src$="/service-4.webp"], .service-detail-photo img[src$="/service-4.webp"] { content: url("assets/service-4-kaar.svg"); }
.services article img[src$="/service-6.webp"], .service-detail-photo img[src$="/service-6.webp"] { content: url("assets/service-6-kaar.svg"); }
.services article img[src$="/service-7.webp"], .service-detail-photo img[src$="/service-7.webp"] { content: url("assets/service-7-kaar.svg"); }
.services article img[src$="/service-8.webp"], .service-detail-photo img[src$="/service-8.webp"] { content: url("assets/service-8-kaar.svg"); }
 .about img, .contact-photo {
    box-sizing: border-box;
    border-radius: 16px 16px 85% 16px / 16px 16px 20% 16px;
    border-bottom: 4px solid #947653;
    object-fit: cover;
}

/* Ersi värvistuudio */
header nav{gap:clamp(12px,2vw,26px)}
header nav .studio-nav{background:#D8DDD1;padding:10px 14px;border-bottom:2px solid #947653;white-space:nowrap}
header nav .studio-nav:hover{background:#cbd2c3}
.services article .studio-service-link{margin-left:20px;color:#806344}
.studio-feature{background:#D8DDD1;border-top:1px solid #C4C9BD;border-bottom:1px solid #C4C9BD}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,70px);align-items:center}
.studio-image-link{display:block;min-width:0}
.studio-image-link img{display:block;width:100%;height:auto;border-radius:16px 16px 85% 16px / 16px 16px 20% 16px;border-bottom:4px solid #947653}
.studio-swatches{display:flex;gap:5px;margin:24px 0}
.studio-swatches span{flex:1;height:48px;border-radius:3px;border:1px solid #30353718}
.studio-copy .studio-note{font-size:13px;margin:12px 0 0;color:#55534f}
@media(min-width:768px) and (max-width:1000px){header .wrap{gap:12px;padding-left:16px;padding-right:16px}header img{width:135px}header nav{gap:10px;font-size:12px}header nav .btn{padding:10px 12px}header nav .studio-nav{padding:8px}}
@media(max-width:767px){.studio-layout{grid-template-columns:1fr;gap:24px}.studio-swatches span{height:36px}.services article .studio-service-link{margin-left:0;display:block;margin-top:10px}header nav .studio-nav{margin:4px 0}}
