/* Homepage only: Algarve Electric's structure, Algarve Air Conditioning's own media and brand. */
.ac-electric-home{--ac-graphite:#211e1c;--ac-paper:#f6f0e8;--ac-terracotta:#a9381a;--ac-terracotta-light:#ffc0a5;--ac-line:#ddcec2;background:var(--ac-paper)}
.ac-electric-home .header:is(.is-scrolled,.menu-open){background:#211e1c;color:#fff;border-color:#ffffff29}
.ac-electric-home .header:is(.is-scrolled,.menu-open) :is(.brand,.nav-links>a:not(.btn),.menu-toggle){color:#fff}
.ac-electric-home .header .brand-name{font-weight:700}.ac-electric-home .header .brand-name span{font-weight:500}
.ac-electric-home .header .brand-mark.ac-home-slashes{width:auto;height:auto;display:inline-flex;gap:3px;transform:skewX(-13deg);padding:0 3px;background:none}
.ac-electric-home .ac-home-slashes i{display:block;width:4px;height:23px;background:#ef885e}.ac-electric-home .ac-home-slashes i+i{background:#bcb097}
.ac-electric-home .menu-toggle span{background:currentColor}
.ac-electric-home .hero.hero-home{min-height:max(660px,100svh);padding-bottom:56px;background:var(--ac-graphite)}
.ac-electric-home .hero.hero-home .hero-content{transform:none;padding-top:clamp(156px,28svh,282px)}
.ac-electric-home .hero.hero-home .hero-content::before{display:none}
.ac-electric-home .hero.hero-home picture::after{background:linear-gradient(180deg,#100e0d9c 0%,#100e0d30 19%,#100e0db3 42%,#100e0de0 75%,#211e1c 100%)}
.ac-electric-home .hero.hero-home h1{color:#fff;line-height:1.04;letter-spacing:-.056em;font-size:clamp(51px,7.25vw,110px);margin:0 auto 23px;text-wrap:balance}
.ac-electric-home .hero.hero-home h1 em{color:var(--ac-terracotta-light);line-height:1.08}
.ac-electric-home .hero.hero-home p{font-size:clamp(17px,2vw,22px);line-height:1.48;margin-bottom:26px}
.ac-electric-home .hero.hero-home .hero-call,.ac-electric-home .ac-angle{position:relative;isolation:isolate;z-index:0;color:#fff;background:transparent;border:0;box-shadow:none;border-radius:0;text-decoration:none}
.ac-electric-home .hero.hero-home .hero-call::before,.ac-electric-home .ac-angle::before{content:"";position:absolute;z-index:-1;inset:0;background:var(--ac-terracotta);transform:skewX(-9deg);box-shadow:0 9px 24px #5b261c38}
.ac-electric-home .hero.hero-home .hero-call:hover::before,.ac-electric-home .ac-angle:hover::before{background:#842a17}
.ac-electric-home .hero.hero-home .hero-call strong{color:#fff}
.ac-electric-home .hero.hero-home .hero-call{max-width:min(390px,calc(100% - 25px))}
.ac-electric-home .hero.hero-home .hero-call:focus-visible{outline-offset:8px;box-shadow:none}
.ac-electric-home #services{background:#f3ece4}.ac-electric-home #services .section-head h2{max-width:18ch}
.ac-electric-home .ac-feature-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.ac-electric-home .ac-feature-card{min-width:0;position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(395px,38vw,510px);border-radius:9px;overflow:hidden;background:var(--ac-graphite);color:#fff}
.ac-electric-home .ac-card-media,.ac-electric-home .ac-feature-card::after{position:absolute;inset:0;z-index:-1}
.ac-electric-home .ac-card-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.ac-electric-home .ac-feature-card::after{content:"";background:linear-gradient(180deg,transparent 0%,#1c181657 34%,#1c1816f0 71%,#211e1c 100%)}
.ac-electric-home .ac-card-copy{padding:17px clamp(16px,2vw,23px) 24px}
.ac-electric-home .ac-card-copy h3{font-size:clamp(23px,2.6vw,33px);line-height:1.08;letter-spacing:-.04em;color:#fff;margin:0 0 12px}
.ac-electric-home .ac-card-copy p{font-size:14px;line-height:1.55;color:#f4ede9;margin:0 0 17px}
.ac-electric-home .ac-angle{display:inline-flex;align-items:center;justify-content:center;padding:8px 17px;min-height:44px;margin:0 5px;font-size:14px;font-weight:700}.ac-electric-home .ac-angle:focus-visible{outline:2px solid white;outline-offset:5px}
.ac-electric-home .ac-feature-progress{display:none}
.ac-electric-home .ac-why{background:#e9e0d7;border-block:1px solid #ded2c6}
.ac-electric-home .ac-detail-list{list-style:none;margin:0;padding:0}.ac-electric-home .ac-detail-list li{padding:13px 0;border-bottom:1px solid #cfc1b4}.ac-electric-home .ac-detail-list li:first-child{border-top:1px solid #cfc1b4}
.ac-electric-home .ac-detail-list :is(strong,span){display:block}.ac-electric-home .ac-detail-list strong{font-size:19px;color:#25211e}.ac-electric-home .ac-detail-list span{font-size:14px;color:#544842}
.ac-electric-home .ac-region-intro{background:#f6f0e8}.ac-electric-home .ac-region-intro h2{margin:10px 0 18px}
.ac-electric-home #approach{background:#eee5dc}.ac-electric-home #approach .article h3{border-top:1px solid var(--ac-line);padding-top:16px}
.ac-electric-home .area-section{background:#e9e0d7}
.ac-electric-home .faq details{border-radius:8px;background:#fffaf6;border:1px solid #e5d7cb;margin-bottom:7px;padding:10px 14px}
.ac-electric-home .contact-section{background:#211e1c;color:#fff}
@media(max-width:1099px){
 .ac-electric-home .header .nav-links.open{background:#211e1c;color:#fff}.ac-electric-home .header .nav-links.open>a:not(.btn){color:#fff}
}
@media(min-width:768px) and (max-width:1023px){.ac-electric-home .ac-feature-track{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .ac-electric-home .hero.hero-home{min-height:max(565px,100lvh);padding-bottom:50px}
 .ac-electric-home .hero.hero-home .hero-content{padding-top:clamp(145px,29lvh,230px)}
 .ac-electric-home .hero.hero-home h1{font-size:clamp(43px,11vw,75px)}
 .ac-electric-home .ac-feature-track{grid-auto-flow:column;grid-template-columns:repeat(4,88%) calc(12% - 12px);gap:12px;overflow:auto hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:none;padding-bottom:9px}
 .ac-electric-home .ac-feature-track::after{content:"";width:0}
 .ac-electric-home .ac-feature-track::-webkit-scrollbar{display:none}
 .ac-electric-home .ac-feature-card{scroll-snap-align:start;min-height:clamp(375px,109vw,500px)}
 .ac-electric-home .ac-feature-progress:not([hidden]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .ac-electric-home .ac-feature-progress button{display:grid;place-items:center;min-height:44px;background:transparent;border:0;padding:0 2px;cursor:pointer}
 .ac-electric-home .ac-feature-progress button::after{content:"";width:100%;height:5px;border-radius:8px;background:#cdbfb4}
 .ac-electric-home .ac-feature-progress button[aria-current="true"]::after{height:7px;background:var(--ac-terracotta)}
}
@media(max-height:520px) and (orientation:landscape){.ac-electric-home .hero.hero-home{min-height:480px}.ac-electric-home .hero.hero-home .hero-content{padding-top:111px}.ac-electric-home .hero.hero-home h1{font-size:clamp(41px,7vw,65px)}}
.ac-electric-home .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(9px) rotate(45deg)}
.ac-electric-home .menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
.ac-electric-home .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-9px) rotate(-45deg)}
.ac-electric-home .contact-section .contact-aside .btn[data-contact="call"]{background:var(--ac-terracotta);border-color:var(--ac-terracotta);color:#fff;transform:skewX(-8deg)}
.ac-electric-home .contact-section .contact-aside .btn[data-contact="call"]:hover{background:#842a17;border-color:#842a17}
/* Keep the desktop call button readable after the fixed header turns solid. */
.ac-electric-home .header .nav-links .btn[data-contact="call"]{background:#eee9df;border-color:#eee9df;color:#383127}
.ac-electric-home .header:is(.is-scrolled,.menu-open) .nav-links .btn[data-contact="call"]{background:var(--ac-terracotta);border-color:var(--ac-terracotta);color:#fff}
.ac-electric-home .header:is(.is-scrolled,.menu-open) .nav-links .btn[data-contact="call"]:hover{background:#842a17;border-color:#842a17;color:#fff}
.ac-electric-home .header .nav-links .btn[data-contact="call"]:focus-visible{outline:2px solid #fff;outline-offset:4px}
