/* ECRA - based on the first design (navy + orange + white), with less content */
:root{
  --navy:#14274E;
  --navy-dark:#0C1A36;
  --orange:#F85701;      /* ECRA logo orange */
  --orange-dark:#C2410C;  /* readable orange for small text */
  --sand:#F6F3EE;
  --line:#E3DED5;
  --text:#1E2430;
  --muted:#5B6474;
  --radius:10px;
  --font:'Inter',Arial,sans-serif;
  --head:'Archivo',Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{font-family:var(--font);color:var(--text);line-height:1.6;background:#fff;overflow-x:clip}
body.menu-open{overflow:hidden}
h1,h2,h3{font-family:var(--head);line-height:1.15;color:var(--navy)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}
.wrap{width:min(1160px,92%);margin:0 auto}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--navy);color:#fff;padding:10px 16px;z-index:200;border-radius:6px}
.skip:focus{left:12px}

.btn{display:inline-block;padding:14px 28px;border-radius:6px;font-weight:700;font-size:19px;transition:.2s;cursor:pointer;border:2px solid transparent;text-align:center;font-family:var(--font)}
.btn-orange{background:var(--orange);color:#fff}
.btn-orange:hover{background:var(--orange-dark)}
.btn-ghost{border-color:#fff;color:#fff}
.btn-ghost:hover{background:#fff;color:var(--navy)}
.eyebrow{font-size:14px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--orange-dark);margin-bottom:12px}

/* Top bar */
.topbar{background:#CC4000;color:#fff;font-size:14px;font-weight:600}  /* white text: slightly deeper orange so it stays readable */
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:8px 0;gap:12px;flex-wrap:wrap}
.topbar a{font-weight:800}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand img{height:48px;width:auto}
.nav{display:flex;gap:30px;align-items:center}
.nav a{font-weight:500;color:var(--navy);font-size:15px}
.nav a:not(.btn):hover{color:var(--orange-dark)}
.nav .btn{color:#fff;padding:10px 22px;font-size:16px;background:var(--orange-dark)}
.nav .btn:hover{background:#9A3412}
.menu-btn{display:none;background:none;border:0;width:44px;height:44px;font-size:28px;color:var(--navy);cursor:pointer}

/* Hero */
.hero{position:relative;overflow:hidden;color:#fff;padding:96px 0 104px;min-height:620px;display:flex;align-items:center;
  background:
    linear-gradient(90deg,#0A1222 0%,#0A1222 30%,rgba(10,18,34,.75) 52%,rgba(10,18,34,.15) 80%,rgba(10,18,34,0) 100%),
    url('images/wireframe-house.svg') right -40px center/auto 105% no-repeat,
    #0A1222}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--orange)}
.hero .wrap{position:relative;width:min(1160px,92%)}
.hero .wrap>div{max-width:600px}
.hero .eyebrow{color:#fff}
.hero h1{color:#fff;font-size:clamp(38px,5.2vw,62px);font-weight:800;margin-bottom:20px;letter-spacing:-.02em}
.hero h1 span{color:#fff}
.hero p{font-size:19px;color:#fff;max-width:540px;margin-bottom:34px}
.actions{display:flex;gap:14px;flex-wrap:wrap}

.promises{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:34px;padding-top:22px;border-top:1px solid rgba(255,255,255,.18);list-style:none}
.promises li{display:flex;align-items:center;gap:8px;font-size:15px;color:#fff;font-weight:500}
.promises li::before{content:"";width:18px;height:18px;border-radius:50%;flex:none;background:var(--orange-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat}

section{padding:90px 0}
.head{max-width:680px;margin-bottom:48px}
.head h2{font-size:clamp(30px,3.6vw,42px);margin-bottom:12px}
.head p{color:var(--muted);font-size:17px}

/* Services */
.services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.svc{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 10px 24px rgba(20,39,78,.07),0 4px 0 var(--orange);transition:transform .25s,box-shadow .25s}
.svc:hover{transform:translateY(-6px);box-shadow:0 22px 40px rgba(20,39,78,.14),0 4px 0 var(--orange)}
.svc-img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--navy)}
.svc-body{padding:22px 22px 26px}
.svc-title{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.svc .ic{flex:none;display:grid;place-items:center;width:40px;height:40px;padding-right:14px;border-right:2px solid var(--line);box-sizing:content-box}
.svc .ic svg{width:34px;height:34px;stroke:var(--orange);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.svc h3{font-size:21px;line-height:1.15;color:var(--navy)}
.svc p{color:var(--muted);font-size:15px}

/* Process */
.process{background:var(--sand)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;counter-reset:s}
.step{padding-top:24px;border-top:3px solid var(--line)}
.step::before{counter-increment:s;content:"0" counter(s);font-family:var(--head);font-weight:800;font-size:42px;color:var(--orange);display:block;margin-bottom:8px}
.step h3{font-size:19px;margin-bottom:8px}
.step p{color:var(--muted);font-size:15px}

/* Gallery (hidden until photos are uploaded) */
.gallery-sec{background:var(--navy)}
.gallery-sec .head h2{color:#fff}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gallery figure{border-radius:8px;overflow:hidden;background:#2A3D66}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery figcaption{color:#fff;padding:12px 16px;font-weight:600;font-size:15px}
.gallery figure.empty,#work.no-photos{display:none}

/* Band */
.band{background:var(--orange);padding:60px 0}
.band .wrap{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.band h2{color:#fff;font-size:clamp(28px,3vw,38px)}
.band .btn{background:var(--navy);color:#fff}
.band .btn:hover{background:var(--navy-dark)}

/* Contact */
.contact .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px}
.info h2{font-size:clamp(30px,3.6vw,42px);margin-bottom:30px}
.info li{margin-bottom:22px}
.info span{display:block;font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:2px}
.info a,.info b{font-size:20px;font-weight:600;color:var(--navy)}
form{background:var(--sand);padding:36px;border-radius:var(--radius);display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field.full,.consent,.fine,.form-msg,form .btn{grid-column:1/-1}
label{font-size:14px;font-weight:600;color:var(--navy);display:block;margin-bottom:6px}
label .req{color:var(--orange-dark)}
input,select,textarea{width:100%;padding:13px 14px;border:1px solid #B9B3A8;border-radius:6px;font:inherit;font-size:16px;background:#fff;min-height:48px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--orange);border-color:transparent}
textarea{min-height:120px;resize:vertical}
.choices{border:0;min-width:0}
.choices legend{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:8px;padding:0}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.choice{margin:0;position:relative;cursor:pointer}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 14px;background:#fff;border:1.5px solid #B9B3A8;border-radius:8px;font-size:15px;font-weight:500;color:var(--navy);transition:.15s;line-height:1.3}
.choice span::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;border:2px solid #8A8478;background:#fff;transition:.15s}
.choice:hover span{border-color:var(--orange)}
.choice input:checked + span{border-color:var(--orange-dark);background:#FFF1E8;box-shadow:inset 0 0 0 1px var(--orange-dark)}
.choice input:checked + span::before{border-color:var(--orange-dark);background:var(--orange-dark);box-shadow:inset 0 0 0 3px #fff}
.choice input:focus-visible + span{outline:3px solid var(--orange);outline-offset:2px}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;font-weight:400;color:var(--muted);line-height:1.5}
.consent input{width:20px;height:20px;min-height:0;flex:none;margin-top:2px;accent-color:var(--orange)}
.fine{font-size:13px;color:var(--muted)}
.fine a{color:var(--navy);text-decoration:underline}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-msg{padding:14px;border-radius:6px;font-weight:600;display:none}
.form-msg.ok{display:block;background:#E3F4E8;color:#1D6B37}
.form-msg.err{display:block;background:#FBE5E1;color:#A33A22}

/* Footer */
.site-footer{background:var(--navy-dark);color:rgba(255,255,255,.78);padding:56px 0 28px;font-size:14px}
.site-footer .top{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.14);margin-bottom:22px}
.site-footer img{height:46px;width:auto;margin-bottom:14px}
.site-footer h2{color:#fff;font-size:15px;margin-bottom:10px;font-family:var(--font)}
.site-footer ul{display:grid;gap:8px}
.site-footer a:hover{color:var(--orange)}
.site-footer .bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

.call-float{display:none}

/* Legal pages */
.doc{padding:60px 0 90px}
.doc .wrap{max-width:780px}
.doc h1{font-size:clamp(34px,4.6vw,48px);margin-bottom:8px}
.doc .updated{color:var(--muted);margin-bottom:34px}
.doc h2{font-size:23px;margin:36px 0 10px}
.doc p,.doc li{color:#3A4252;margin-bottom:10px}
.doc ul{list-style:disc;padding-left:22px}
.doc a:not(.btn){color:var(--orange-dark);text-decoration:underline}

/* Tablet */
@media (max-width:960px){
  .hero .wrap,.contact .wrap{grid-template-columns:1fr}
  .hero{padding-top:calc(52vw + 24px);background:linear-gradient(180deg,rgba(10,18,34,0) 0%,rgba(10,18,34,0) 30%,#0A1222 calc(52vw + 10px)),url('images/wireframe-house.svg') 55% -4vw/135% auto no-repeat,#0A1222;min-height:0}
  .services,.steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{grid-template-columns:1fr 1fr}
  .menu-btn{display:block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:12px 4% 24px;border-bottom:1px solid var(--line);gap:0;box-shadow:0 12px 24px rgba(0,0,0,.08)}
  .nav.open{display:flex}
  .nav li a:not(.btn){display:block;padding:16px 0;font-size:18px;border-bottom:1px solid var(--line)}
  .nav .btn{margin-top:16px;display:block}
}
/* Phone */
@media (max-width:620px){
  section{padding:64px 0}
  .hero{padding-bottom:64px}
  .promises{display:grid;gap:10px}
  .services,.steps,.gallery{grid-template-columns:1fr}
  form{grid-template-columns:1fr;padding:24px}
  .topbar .hide-sm{display:none}
  .brand img{height:40px}
  .actions .btn{width:100%}
  .call-float{display:block;position:fixed;bottom:16px;left:16px;right:16px;z-index:60;box-shadow:0 8px 20px rgba(0,0,0,.25)}
  .site-footer{padding-bottom:100px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
