/*
Theme Name: AfendrasCon
Theme URI: https://afendrascon.gr
Author: ChatGPT
Description: Custom dark premium WordPress theme for ΑΦΕΝΔΡΑΣ ΜΟΝΩΣΕΙΣ & ΕΦΑΡΜΟΓΕΣ.
Version: 1.1.4
Text Domain: afendrascon
*/

:root{
  --bg:#0a0a0a;
  --bg2:#151515;
  --text:#ffffff;
  --muted:#cfcfcf;
  --orange:#f97316;
  --orange2:#fb923c;
  --border:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(10,10,10,.84);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.brand{display:flex;align-items:center;gap:12px}
.logo-mark{width:46px;height:46px;border-radius:17px;border:1px solid rgba(249,115,22,.55);display:grid;place-items:center;background:rgba(249,115,22,.10);font-weight:900;color:var(--orange)}
.brand-title{font-size:20px;font-weight:900;letter-spacing:.03em;line-height:1}
.brand-sub{font-size:11px;color:var(--orange2);font-weight:800;letter-spacing:.22em;margin-top:5px}
.nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:800;color:#e8e8e8}
.nav a:hover{color:var(--orange2)}
.call-btn{background:var(--orange);color:#111;padding:12px 18px;border-radius:999px;font-weight:900}
.mobile-menu-btn{display:none;background:none;border:0;color:#fff;font-size:30px}
.hero{position:relative;min-height:100vh;overflow:hidden;padding-top:86px}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1s ease, transform 6s ease;transform:scale(1)}
.slide.active{opacity:1;transform:scale(1.04)}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0a0a0a 0%,rgba(10,10,10,.86) 45%,rgba(10,10,10,.35) 100%);z-index:2}
.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 22%,rgba(249,115,22,.25),transparent 34%);z-index:3}
.hero-content{position:relative;z-index:4;min-height:calc(100vh - 86px);display:flex;align-items:center;padding:64px 0}
.badge{display:inline-flex;border:1px solid rgba(249,115,22,.45);background:rgba(249,115,22,.11);color:#fed7aa;padding:10px 15px;border-radius:999px;font-weight:900;font-size:14px}
h1{font-size:clamp(42px,7vw,78px);line-height:.98;margin:24px 0 0;font-weight:950;letter-spacing:-.04em;max-width:850px}
.hero p{font-size:19px;line-height:1.75;color:#e7e7e7;max-width:720px;margin:24px 0 0}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:15px 24px;border-radius:999px;font-weight:950;border:1px solid transparent}
.btn-primary{background:var(--orange);color:#111;box-shadow:0 14px 36px rgba(249,115,22,.20)}
.btn-secondary{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20);color:#fff}
.section{padding:92px 0}
.eyebrow{font-size:13px;font-weight:950;color:var(--orange2);letter-spacing:.32em;text-transform:uppercase}
.section h2{font-size:clamp(32px,5vw,54px);line-height:1.05;letter-spacing:-.035em;margin:14px 0 0}
.grid{display:grid;gap:18px}
.services-grid{grid-template-columns:repeat(3,1fr);margin-top:42px}
.card{border:1px solid var(--border);background:rgba(255,255,255,.045);border-radius:28px;padding:26px;transition:.25s ease}
.card:hover{border-color:rgba(249,115,22,.62);background:rgba(249,115,22,.07);transform:translateY(-3px)}
.icon{width:50px;height:50px;border-radius:18px;background:rgba(249,115,22,.12);color:var(--orange2);display:grid;place-items:center;font-size:24px;margin-bottom:18px}
.card h3{font-size:22px;margin:0;font-weight:950}
.card p{color:#cfcfcf;line-height:1.7}
.projects{background:rgba(255,255,255,.035);border-block:1px solid var(--border)}
.project-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:42px}
.project-head p{max-width:540px;color:#cfcfcf;line-height:1.65;margin:0}
.projects-grid{grid-template-columns:repeat(3,1fr)}
.project-tile{min-height:260px;border-radius:28px;overflow:hidden;position:relative;border:1px solid var(--border);background:#222}
.project-tile img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:.7s ease}
.project-tile:hover img{transform:scale(1.08)}
.project-tile:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#070707 0%,rgba(7,7,7,.62) 45%,transparent 100%)}
.project-title{position:absolute;z-index:2;left:24px;right:24px;bottom:24px}
.project-title h3{font-size:25px;margin:0;font-weight:950}
.project-title span{display:block;color:#d4d4d4;margin-top:7px;font-size:14px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}
.about-box{border:1px solid var(--border);background:rgba(255,255,255,.045);border-radius:30px;padding:32px;font-size:18px;line-height:1.85;color:#d6d6d6}
.contact{background:var(--orange);color:#111}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.contact h2{color:#111}
.contact p{font-weight:800;font-size:18px}
.contact-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-card{background:#0a0a0a;color:white;border-radius:26px;padding:24px;font-weight:950;min-height:112px;display:flex;align-items:end}
.floating{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;flex-direction:column;gap:12px}
.float-btn{width:58px;height:58px;border-radius:999px;display:grid;place-items:center;background:var(--orange);color:#111;font-size:22px;box-shadow:0 16px 36px rgba(0,0,0,.35)}
.float-btn.white{background:#fff}
.footer{padding:32px 0;color:#aaa;border-top:1px solid var(--border);font-size:14px}
@media(max-width:900px){
  .nav,.call-btn{display:none}
  .mobile-menu-btn{display:block}
  .nav.open{display:flex;position:absolute;top:78px;left:0;right:0;background:#0a0a0a;flex-direction:column;align-items:flex-start;padding:22px 16px;border-bottom:1px solid var(--border)}
  .services-grid,.projects-grid,.about-grid,.contact-grid{grid-template-columns:1fr}
  .project-head{display:block}
  .contact-cards{grid-template-columns:1fr}
  .brand-title{font-size:17px}
  .brand-sub{letter-spacing:.14em}
}




/* v6 header/logo fix */
.header-inner{
  min-height:76px;
}
.brand{
  min-width:0;
  flex-shrink:0;
}
.brand-logo{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
}
.brand-logo .custom-logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
}
.brand-logo img,
.custom-logo{
  width:auto !important;
  height:auto !important;
  max-width:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  display:block !important;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.logo-mark{
  width:46px;
  height:46px;
  border-radius:17px;
  border:1px solid rgba(249,115,22,.55);
  display:grid;
  place-items:center;
  background:rgba(249,115,22,.10);
  font-weight:900;
  color:var(--orange);
  flex:0 0 46px;
}
@media(max-width:900px){
  .brand-logo,
  .brand-logo .custom-logo-link{
    width:48px;
    height:48px;
  }
  .brand-logo img,
  .custom-logo{
    max-width:48px !important;
    max-height:48px !important;
  }
}


/* v7 fixed embedded logo */
.brand-logo-fixed{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  max-width:56px !important;
  max-height:56px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  border-radius:14px !important;
  background:#080808 !important;
  border:1px solid rgba(249,115,22,.35) !important;
}
.brand-logo-fixed img{
  width:100% !important;
  height:100% !important;
  max-width:56px !important;
  max-height:56px !important;
  object-fit:contain !important;
  display:block !important;
}
.brand{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-width:0 !important;
  flex-shrink:0 !important;
}
.brand-text{
  display:flex !important;
  flex-direction:column !important;
  line-height:1 !important;
  min-width:0 !important;
}
.header-inner{
  min-height:76px !important;
}
@media(max-width:900px){
  .brand-logo-fixed{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    max-height:48px !important;
  }
  .brand-logo-fixed img{
    max-width:48px !important;
    max-height:48px !important;
  }
  .brand-title{font-size:16px !important;}
  .brand-sub{font-size:9px !important;letter-spacing:.12em !important;}
}


/* v8 smaller logo */
.brand-logo-fixed{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  max-height:42px !important;
}

.brand-logo-fixed img{
  max-width:42px !important;
  max-height:42px !important;
}

.brand{
  gap:10px !important;
}

.brand-title{
  font-size:15px !important;
}

.brand-sub{
  font-size:8px !important;
  letter-spacing:.10em !important;
}

.header-inner{
  min-height:68px !important;
}


/* v9 ultra small logo */
.brand-logo-fixed{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  border-radius:5px !important;
}

.brand-logo-fixed img{
  max-width:18px !important;
  max-height:18px !important;
}

.brand{
  gap:7px !important;
}

.brand-title{
  font-size:14px !important;
}

.brand-sub{
  font-size:7px !important;
  letter-spacing:.08em !important;
}

.header-inner{
  min-height:60px !important;
}


/* v10 REALLY small logo */
.brand-logo-fixed{
  width:9px !important;
  height:9px !important;
  min-width:9px !important;
  max-width:9px !important;
  max-height:9px !important;
  overflow:hidden !important;
}

.brand-logo-fixed img{
  width:9px !important;
  height:9px !important;
  max-width:9px !important;
  max-height:9px !important;
  object-fit:contain !important;
}

.brand{
  gap:5px !important;
}


/* v11 final locked header logo */
#af-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-decoration:none !important;
  flex:0 0 auto !important;
  max-width:280px !important;
  overflow:hidden !important;
}

#af-brand-logo{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  max-width:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  object-fit:contain !important;
  display:block !important;
  position:static !important;
  transform:none !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:10px !important;
}

#af-brand-text{
  display:flex !important;
  flex-direction:column !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

#af-brand-text strong{
  display:block !important;
  color:#fff !important;
  font-size:18px !important;
  font-weight:950 !important;
  letter-spacing:.03em !important;
}

#af-brand-text small{
  display:block !important;
  margin-top:5px !important;
  color:#fb923c !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.20em !important;
}

/* kill old logo containers if any remain */
.brand-logo-fixed,
.brand-logo,
.custom-logo-wrap{
  width:auto !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
}

@media(max-width:900px){
  #af-brand-logo{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    min-height:40px !important;
    max-height:40px !important;
  }
  #af-brand-text strong{
    font-size:15px !important;
  }
  #af-brand-text small{
    font-size:8px !important;
    letter-spacing:.12em !important;
  }
}


/* v12 header spacing fix */
.header{
  top:0 !important;
}

.admin-bar .header{
  top:32px !important;
}

.header-inner{
  min-height:88px !important;
  padding-top:14px !important;
  padding-bottom:14px !important;
  align-items:center !important;
}

#af-brand{
  align-items:center !important;
}

#af-brand-logo{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  min-height:42px !important;
  max-height:42px !important;
}

.nav{
  align-items:center !important;
  line-height:1 !important;
}

.call-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1.1 !important;
  min-height:52px !important;
}

.hero{
  padding-top:120px !important;
}

@media(max-width:782px){
  .admin-bar .header{
    top:46px !important;
  }
}

@media(max-width:900px){
  .header-inner{
    min-height:78px !important;
  }
  .hero{
    padding-top:110px !important;
  }
}


/* v13 final top cut fix - force navbar lower and cleaner */
body.admin-bar .header{
  top:32px !important;
}

.header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  overflow:visible !important;
}

.header-inner{
  height:96px !important;
  min-height:96px !important;
  max-height:96px !important;
  padding-top:22px !important;
  padding-bottom:18px !important;
  display:flex !important;
  align-items:center !important;
}

#af-brand{
  height:58px !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  overflow:visible !important;
  margin-top:6px !important;
}

#af-brand-logo{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  max-width:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  object-fit:contain !important;
  display:block !important;
  margin-top:0 !important;
}

#af-brand-text{
  justify-content:center !important;
}

.nav{
  height:58px !important;
  display:flex !important;
  align-items:center !important;
  margin-top:6px !important;
}

.call-btn{
  margin-top:6px !important;
  height:52px !important;
  min-height:52px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

.hero{
  padding-top:150px !important;
}

@media(max-width:782px){
  body.admin-bar .header{
    top:46px !important;
  }
}

@media(max-width:900px){
  .header-inner{
    height:88px !important;
    min-height:88px !important;
    max-height:88px !important;
    padding-top:18px !important;
    padding-bottom:14px !important;
  }
  #af-brand-logo{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    min-height:34px !important;
    max-height:34px !important;
  }
  .hero{
    padding-top:135px !important;
  }
}


/* v14 project gallery readability + clickable images */
.project-single-title{
  font-size:clamp(34px,5vw,56px) !important;
  margin:14px 0 28px !important;
  line-height:1.05 !important;
}

.project-main-image{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  max-height:520px !important;
  overflow:hidden !important;
  border-radius:28px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:#111 !important;
  margin-bottom:28px !important;
  cursor:zoom-in !important;
}

.project-main-image img{
  width:100% !important;
  height:auto !important;
  max-height:520px !important;
  object-fit:contain !important;
  display:block !important;
  background:#111 !important;
}

.project-content{
  overflow:visible !important;
}

.project-content .wp-block-gallery,
.project-content .gallery{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
  gap:16px !important;
  margin-top:22px !important;
}

.project-content figure,
.project-content .wp-block-image{
  margin:0 !important;
}

.project-content img{
  width:100% !important;
  height:220px !important;
  object-fit:cover !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  display:block !important;
  cursor:zoom-in !important;
  background:#111 !important;
}

.project-content-image-link{
  display:block !important;
  text-decoration:none !important;
}

#af-lightbox{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.92) !important;
  padding:24px !important;
}

#af-lightbox.open{
  display:flex !important;
}

#af-lightbox-img{
  max-width:94vw !important;
  max-height:88vh !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:14px !important;
  box-shadow:0 24px 80px rgba(0,0,0,.55) !important;
}

#af-lightbox-close{
  position:fixed !important;
  top:22px !important;
  right:26px !important;
  width:48px !important;
  height:48px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.25) !important;
  background:#f97316 !important;
  color:#111 !important;
  font-size:34px !important;
  font-weight:900 !important;
  line-height:42px !important;
  cursor:pointer !important;
}

@media(max-width:700px){
  .project-main-image{
    max-height:360px !important;
  }
  .project-main-image img{
    max-height:360px !important;
  }
  .project-content .wp-block-gallery,
  .project-content .gallery{
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
  }
  .project-content img{
    height:150px !important;
    border-radius:12px !important;
  }
}
