/*
Theme Name: Eugenio Moreno - Construcciones y Reformas
Description: Tema a medida para Eugenio Moreno, construcciones y reformas en Andratx, Mallorca. Creado por BmNexus (https://bmnexus.es).
Author: BmNexus
Author URI: https://bmnexus.es
Version: 1.0
Text Domain: eugenio-moreno
*/


  :root{
    --sun:#f6ec01;
    --terracotta:#d9662e;
    --sea:#01408d;
    --stone:#f6f1e3;
    --charcoal:#2a2620;
    --azulejo:#2f7a8c;
    --paper:#fbf8ef;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--paper);
    color:var(--charcoal);
    font-family:'Nunito Sans', sans-serif;
    font-weight:400;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
  }
  .mono{ font-family:'IBM Plex Mono', monospace; }
  a{color:inherit; text-decoration:none;}
  img,svg{display:block; max-width:100%;}
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }

  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 5vw;
  }
  header .logo-mark{ display:flex; align-items:center; gap:10px; }
  header .logo-mark img{ height:52px; width:auto; }
  header nav{display:flex; align-items:center; gap:26px; font-family:'Baloo 2'; font-weight:600; font-size:14px;}
  header nav a{ opacity:0.85; transition:opacity .25s; color:var(--paper); }
  header nav a:hover{opacity:1;}
  header nav .call{
    background:var(--sun); color:var(--charcoal); padding:10px 20px; border-radius:100px;
    font-family:'IBM Plex Mono'; font-weight:500; font-size:13px;
  }
  @media (max-width:760px){ header nav a:not(.call){display:none;} }

  .hero{
    position:relative;
    min-height:100vh;
    background:
      radial-gradient(circle at 82% 8%, rgba(246,236,1,0.9) 0%, rgba(246,236,1,0.0) 32%),
      linear-gradient(200deg, var(--sea) 0%, #023374 55%, #011f4d 100%);
    color:var(--paper);
    display:flex; flex-direction:column; justify-content:flex-end;
    overflow:hidden;
    padding:0 5vw 64px;
  }
  .sun-rays{
    position:absolute; top:-10vh; right:-6vw;
    width:min(60vw, 620px);
    transform-origin:center;
  }
  .sun-rays .ray{ transform-box:fill-box; transform-origin:center; }
  .sun-core{ fill:var(--sun); }
  .hero-eyebrow{
    font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.16em; text-transform:uppercase;
    color:var(--sun); margin-bottom:16px; position:relative; z-index:2;
  }
  .hero h1{
    position:relative; z-index:2;
    font-size:clamp(42px, 8vw, 100px);
    max-width:15ch;
    line-height:1.02;
  }
  .hero h1 em{ font-style:normal; color:var(--sun); }
  .hero-sub{
    position:relative; z-index:2; margin-top:24px; max-width:46ch;
    font-size:clamp(15px,1.6vw,18px); font-weight:300; color:rgba(251,248,239,0.82); line-height:1.6;
  }
  .hero-meta{ position:relative; z-index:2; margin-top:40px; display:flex; gap:44px; flex-wrap:wrap; }
  .hero-meta div{ font-family:'IBM Plex Mono'; font-size:12px; color:rgba(251,248,239,0.65); }
  .hero-meta strong{ display:block; font-family:'Baloo 2'; font-weight:700; font-size:22px; color:var(--sun); }
  .scroll-cue{
    position:absolute; bottom:28px; left:5vw; display:flex; align-items:center; gap:10px;
    font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:rgba(251,248,239,0.5);
  }
  .scroll-cue .line{ width:1px; height:34px; background:rgba(251,248,239,0.35); position:relative; overflow:hidden; }
  .scroll-cue .line::after{ content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--sun); animation:cue 1.8s infinite; }
  @keyframes cue{ to{top:100%;} }

  .section-head{ padding:120px 5vw 40px; display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; }
  .section-head .tag{ font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--terracotta); margin-bottom:14px; display:block; }
  .section-head h2{ font-size:clamp(32px,5vw,56px); }
  .section-head p{ max-width:38ch; font-weight:300; color:#5c564a; font-size:15px; line-height:1.6; }

  .reveal-wrap{ padding:0 5vw 40px; display:flex; flex-direction:column; gap:14vh; }
  .reveal-row{ display:flex; align-items:center; gap:6vw; }
  .reveal-row.reverse{ flex-direction:row-reverse; }
  .reveal-panel{
    flex:1.15; aspect-ratio:4/3; border-radius:56px; overflow:hidden; position:relative;
    transform:scale(0.72); box-shadow:0 40px 80px -30px rgba(28,75,87,0.35);
  }
  .reveal-panel .tex{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
  .reveal-panel .icon{
    position:absolute; bottom:28px; left:28px; width:64px; height:64px;
    display:flex; align-items:center; justify-content:center; background:rgba(251,248,239,0.92); border-radius:16px;
  }
  .reveal-panel .icon svg{ width:32px; height:32px; }
  .reveal-copy{ flex:0.85; }
  .reveal-copy .num{ font-family:'IBM Plex Mono'; color:#8a8474; font-size:13px; letter-spacing:0.1em; margin-bottom:10px; display:block;}
  .reveal-copy h3{ font-size:clamp(26px,3.2vw,40px); margin-bottom:16px; }
  .reveal-copy p{ font-weight:300; color:#5c564a; line-height:1.7; font-size:15px; max-width:40ch; margin-bottom:22px;}
  .reveal-copy .specs{ display:flex; gap:26px; }
  .reveal-copy .specs div{ font-family:'IBM Plex Mono'; font-size:11px; color:#8a8474; }
  .reveal-copy .specs strong{ display:block; color:var(--charcoal); font-family:'Baloo 2'; font-size:20px; }
  @media (max-width:860px){
    .reveal-row, .reveal-row.reverse{ flex-direction:column; }
    .reveal-panel{ width:100%; border-radius:32px; }
  }

  .services{ background:var(--sea); color:var(--paper); padding:110px 5vw; }
  .services .section-head p{ color:rgba(251,248,239,0.72); }
  .services .section-head .tag{ color:var(--sun); }
  .service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(251,248,239,0.14); margin-top:50px; }
  .service-card{ background:var(--sea); padding:34px 26px 40px; transition:background .3s; }
  .service-card:hover{ background:#0d4fa0; }
  .service-card .icon{ width:38px; height:38px; margin-bottom:24px; }
  .service-card .icon svg{ width:100%; height:100%; stroke:var(--sun); }
  .service-card h4{ font-family:'Baloo 2'; font-weight:700; font-size:19px; margin-bottom:10px; }
  .service-card p{ font-weight:300; font-size:13.5px; color:rgba(251,248,239,0.62); line-height:1.6; }
  @media (max-width:860px){ .service-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:520px){ .service-grid{ grid-template-columns:1fr; } }

  .historia{ padding:110px 5vw; display:flex; gap:6vw; align-items:center; flex-wrap:wrap; }
  .historia-badge{
    flex:0 0 auto; width:180px; height:180px; border-radius:50%;
    background:var(--sun); display:flex; align-items:center; justify-content:center; text-align:center;
    font-family:'Baloo 2'; font-weight:800; color:var(--charcoal); font-size:15px; line-height:1.3; padding:20px;
    box-shadow:0 30px 60px -20px rgba(217,102,46,0.4);
  }
  .historia-text{ flex:1; min-width:280px; }
  .historia-text .tag{ font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--terracotta); margin-bottom:14px; display:block; }
  .historia-text h2{ font-size:clamp(30px,4.5vw,48px); margin-bottom:20px; max-width:16ch; }
  .historia-text p{ font-weight:300; color:#5c564a; font-size:16px; line-height:1.7; max-width:56ch; }

  .process{ padding:110px 5vw; background:var(--stone); }
  .process-list{ margin-top:50px; border-top:1px solid #ddd2b3; }
  .process-item{ display:grid; grid-template-columns:90px 1fr 1fr; gap:24px; padding:38px 0; border-bottom:1px solid #ddd2b3; align-items:center; }
  .process-item .n{ font-family:'IBM Plex Mono'; font-size:14px; color:var(--terracotta); }
  .process-item h4{ font-family:'Baloo 2'; font-size:22px; font-weight:700; }
  .process-item p{ font-weight:300; font-size:14px; color:#5c564a; line-height:1.6; }
  @media (max-width:720px){ .process-item{ grid-template-columns:50px 1fr; } .process-item p{grid-column:2 / 3;} }

  .trust{ background:var(--terracotta); color:var(--paper); padding:60px 5vw; display:flex; flex-wrap:wrap; gap:40px; justify-content:space-between; align-items:center; text-align:center; }
  .trust div{ min-width:150px; }
  .trust strong{ font-family:'Baloo 2'; font-size:clamp(20px,2.4vw,26px); font-weight:700; display:block; }
  .trust span{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.04em; color:rgba(251,248,239,0.85); }

  .contact{ background:var(--sea); color:var(--paper); padding:130px 5vw; text-align:center; }
  .contact .tag{ font-family:'IBM Plex Mono'; color:var(--sun); letter-spacing:0.16em; font-size:12px; text-transform:uppercase; }
  .contact h2{ font-size:clamp(32px,5.5vw,64px); margin:20px auto 26px; max-width:18ch; }
  .contact p{ max-width:44ch; margin:0 auto 40px; font-weight:300; color:rgba(251,248,239,0.72); line-height:1.7; }
  .contact-actions{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
  .btn{ font-family:'IBM Plex Mono'; font-size:13px; letter-spacing:0.04em; padding:16px 30px; border-radius:100px; border:1px solid rgba(251,248,239,0.35); transition:all .25s; }
  .btn.primary{ background:var(--sun); border-color:var(--sun); color:var(--charcoal); font-weight:500; }
  .btn.primary:hover{ background:#fff59a; }
  .btn:hover{ border-color:var(--paper); }

  footer{
    background:var(--sea); color:rgba(251,248,239,0.5); padding:26px 5vw 34px;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
    font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.04em;
    border-top:1px solid rgba(251,248,239,0.1);
  }
  footer a{ text-decoration:underline; text-underline-offset:3px; }
