/*
Theme Name: Malarvent Clean v3c
Author: Janne + Nova
Version: 1.0.0
Text Domain: malarvent-clean
*/
:root{
  --ink:#111316; --paper:#ffffff; --accent:#FF7A00;
  --w:1400px; --pad:20px; --radius:12px;
  --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--font)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{opacity:.9}
.wrapper{max-width:var(--w);margin:0 auto;padding:0 var(--pad)}

/* Header */
.header{border-bottom:2px solid var(--accent);}
.header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand img{height:96px}
.menu{display:flex;gap:22px;list-style:none;margin:0;padding:0;font-weight:600}
.menu li a{padding:10px 0;border-bottom:2px solid transparent}
.menu li a:hover,.menu li.current-menu-item a{border-bottom-color:var(--accent)}

/* Hero */
.hero{position:relative;text-align:center;color:#fff}
.hero img.bg{width:100%;height:60vh;object-fit:cover;filter:brightness(0.5)}
.hero .content{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 20px}
.hero h1{font-size:clamp(28px,4vw,52px);margin:0 0 8px}
.hero p{max-width:760px;margin:0 0 18px;opacity:.95;hyphens:none}
.btn{display:inline-block;padding:12px 20px;border-radius:8px;background:var(--accent);color:#fff;font-weight:700}
.btn:hover{filter:brightness(.95)}

/* Sections */
.section{padding:50px 0}
.section h2{margin:0 0 20px;font-size:26px}
.services{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.card{background:#f8f9fa;border-radius:var(--radius);padding:20px;border:1px solid #eee}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:#444}
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
@media(max-width:900px){.two-col{grid-template-columns:1fr;}}

/* Footer */
.footer{background:#111;color:#eee;padding:22px 0;margin-top:40px}
.footer a{color:#eee}
.footer .wrap{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;align-items:center;text-align:center;font-size:14px}
.social{display:flex;gap:14px;align-items:center}
.social a svg{width:22px;height:22px;opacity:.8;transition:opacity .2s, transform .2s}
.social a:hover svg{opacity:1;transform:translateY(-1px)}
.social a svg path{fill:#eee}
.social a:hover svg path{fill:#FF7A00}

@media(max-width:640px){
  .brand img{height:64px}
  .hero img.bg{height:50vh}
}

/* v3d: overlap services onto hero */
.hero::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;height:120px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

.home .services .card{box-shadow:0 10px 24px rgba(0,0,0,.06)}

/* v3d: mobile menu */
.menu-toggle{
  display:none;
  background:none;border:0;padding:8px;margin:0;cursor:pointer;
}
.menu-toggle svg{width:28px;height:28px}
@media(max-width:860px){
  .menu{display:none;position:absolute;top:60px;right:20px;background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:10px 14px;flex-direction:column;gap:6px;min-width:200px}
  body.menu-open .menu{display:flex}
  .menu li a{padding:8px 0;border:0}
  .menu-toggle{display:block}
}

/* v3e: proper overlap on static front page */
body.front-page .section--services{
  margin-top:-110px;
  position:relative;
  z-index:2;
}
@media(max-width:900px){
  body.front-page .section--services{ margin-top:-60px; }
}
/* slightly taller gradient for desktop */
.hero::after{ height:160px; }

/* v3f: force overlap via class only */
.section--services{ margin-top:-120px; position:relative; z-index:2; }
@media(max-width:900px){ .section--services{ margin-top:-60px; } }

/* v3g: medium overlap and white heading for services */
.section--services { margin-top:-160px; position:relative; z-index:2; }
@media(max-width:900px){ .section--services { margin-top:-80px; } }

.section--services h2 { color:#fff; }


/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}


/* Fancy button */
.btn{display:inline-block;padding:14px 22px;border-radius:999px;background:var(--accent);color:#fff;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.12);transition:transform .05s ease, box-shadow .2s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.16)}
.btn.ghost{background:transparent;color:var(--accent);border:2px solid var(--accent)}

/* Service cards pop */
.services .card{background:#fff;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.06);padding:18px}
.section--services .services{gap:16px}

/* Links hover/focus */
a:hover, a:focus-visible{text-decoration:underline}
