:root{
  --black:#080d13; --charcoal:#151b22; --white:#fff; --text:#11161d;
  --muted:#6f7780; --line:#e7eaed; --green:#79c51b; --blue:#1386e8;
  --container:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:#fff}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
.container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}

/* HERO */
.hero{
    min-height:700px;
    color:#fff;
    position:relative;
    overflow:hidden;

    background:
        linear-gradient(
            90deg,
            rgba(6,10,15,.97) 0%,
            rgba(6,10,15,.86) 34%,
            rgba(6,10,15,.40) 63%,
            rgba(6,10,15,.12) 100%
        ),
        url("../images/backgrounds/hero-bg.jpg")
        center / cover no-repeat;
}
.site-header{position:relative;z-index:5;padding:22px 0}
.header-inner{
  position:relative;display:grid;grid-template-columns:220px 1fr 220px;
  align-items:center;min-height:64px;gap:24px;
}
.brand img{width:175px;max-height:62px;object-fit:contain}
.main-nav{
  justify-self:center;display:flex;align-items:center;gap:36px;
  font-size:12px;font-weight:800;letter-spacing:.04em;
}
.main-nav a{color:#f2f4f7;white-space:nowrap}
.header-cta{justify-self:end;border:1px solid rgba(255,255,255,.36);padding:13px 18px;font-size:12px;font-weight:800}
.hero-content{
  position:relative;z-index:3;display:flex;align-items:center;min-height:570px;
}
.hero-copy{width:min(590px,100%);padding-bottom:32px}
.hero h1{
  font-size:clamp(56px,6.25vw,88px);line-height:.93;letter-spacing:-.052em;
  text-transform:uppercase;margin:18px 0 24px;
}
.gray{color:#adb4bc}.green{color:var(--green)}.blue{color:var(--blue)}
.hero p{font-size:18px;line-height:1.62;color:#d7dce1;max-width:555px}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.btn{display:inline-flex;align-items:center;padding:14px 22px;border:1px solid #68717a;font-size:12px;font-weight:800;text-transform:uppercase}
.btn-primary{background:var(--green);border-color:var(--green);color:#0d1217}

/* SERVICES */
.section{padding:80px 0}
.section-head{text-align:center;max-width:810px;margin:0 auto 44px}
.eyebrow{color:var(--green);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.section-head h2{font-size:clamp(34px,4vw,52px);line-height:1.08;margin:9px 0 0}
.services{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--line);background:#fff}
.service{padding:30px 22px;min-height:300px;border-right:1px solid var(--line)}
.service:last-child{border-right:0}
.service img{width:52px;height:52px;margin:0 0 20px}
.service:nth-child(odd){color:var(--green)} .service:nth-child(even){color:var(--blue)}
.service h3{color:var(--text);font-size:16px;line-height:1.25;text-transform:uppercase}
.service p{color:var(--muted);font-size:13px;line-height:1.65}

/* PROCESS */
.process{background:linear-gradient(90deg,#11161c,#1a2027);color:#fff}
.process-grid{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:30px;align-items:start}
.process h2{font-size:40px;line-height:1.05;margin:8px 0}
.step{border-left:1px solid #3b434b;padding-left:20px}
.step img{width:44px;height:44px;margin-bottom:12px}
.step:nth-child(2){color:var(--green)} .step:nth-child(3){color:var(--blue)} .step:nth-child(4){color:#aeb5bc}
.step h3{color:#fff;margin:0 0 8px}.step p{color:#c9cfd5;font-size:13px;line-height:1.65}

/* SMART HOME */
.smart-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:58px;align-items:center}
.smart h2{font-size:50px;line-height:1.04;margin:10px 0 18px}
.smart p{font-size:16px;line-height:1.72;color:var(--muted)}
.grenton-products{width:min(650px,100%);margin-inline:auto}
.smart-icons{display:flex;gap:28px;flex-wrap:wrap;margin-top:30px}
.smart-item{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:800;text-transform:uppercase}
.smart-item img{width:29px;height:29px}

/* =========================================================
   PARTNERS MODULE - DESKTOP / TABLET
   Joomla position: partners
   START PARTNERS MODULE
   ========================================================= */

.partners{
  padding:34px 0;
  background:#f6f7f8;
  border-top:1px solid #eceff1;
  border-bottom:1px solid #eceff1;
}

/* Wrapper-ul din modulul Joomla Custom HTML */
.cts-partners-static{
  display:grid;
  grid-template-columns:repeat(6, minmax(100px, 150px));
  gap:34px;
  align-items:center;
  justify-content:center;   /* centrează întreg grupul */
  width:100%;
  margin:0 auto;
}

/* Fiecare partener */
.cts-partner-item{
  display:flex;
  align-items:center;
  justify-content:center;   /* centrează logo-ul în celulă */
  min-height:72px;
  text-align:center;
}

.cts-partner-item img{
  display:block;
  width:auto;
  height:auto;
  max-width:150px;
  max-height:54px;
  object-fit:contain;
  margin:0 auto;
}

/* =========================================================
   END PARTNERS MODULE - DESKTOP BASE
   ========================================================= */

/* FOOTER */
.footer{
    background:
        linear-gradient(
            rgba(8,12,17,.90),
            rgba(8,12,17,.90)
        ),
        url("../images/backgrounds/footer-bg.jpg")
        center / cover no-repeat;

    color:#d8dde2;
    padding:38px 0;
}
.footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:30px;align-items:center}
.footer-logo{width:165px}.contact{font-size:14px}

@media(max-width:1000px){
  .header-inner{grid-template-columns:180px 1fr}
  .main-nav{display:none}
  .header-cta{grid-column:2;grid-row:1}
  .services{grid-template-columns:repeat(2,1fr)}
  .service{border-bottom:1px solid var(--line)}
  .process-grid,.smart-grid{grid-template-columns:1fr}
  .step{border-left:0;border-top:1px solid #39414a;padding:20px 0 0}
.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .container{width:min(100% - 28px,var(--container))}
  .header-inner{grid-template-columns:1fr}
  .header-cta{display:none}
  .brand img{width:145px}
  .hero{min-height:640px}
  .hero h1{font-size:48px}
  .hero p{font-size:16px}
  .services{grid-template-columns:1fr}
  .service{border-right:0}
.footer-grid{grid-template-columns:1fr}
}

/* Hero camera is baked into the background for clean edges and correct perspective. */
@media (min-width:1001px){
  .header-inner{grid-template-columns:220px minmax(440px,1fr) 220px}
  .main-nav{justify-self:center}
  .header-cta{justify-self:end}
}


/* ---------- FINAL RESPONSIVE REFINEMENTS ---------- */
.menu-toggle,.mobile-nav{display:none}

@media(max-width:1000px){
  .header-inner{
    grid-template-columns:170px 1fr auto;
    min-height:58px;
    gap:16px;
  }
  .brand img{width:150px}
  .header-cta{display:none}
  .menu-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:42px;
    height:42px;
    padding:8px;
    border:1px solid rgba(255,255,255,.28);
    background:rgba(8,12,17,.45);
    color:#fff;
    cursor:pointer;
    justify-self:end;
  }
  .menu-toggle span{
    display:block;
    width:100%;
    height:2px;
    background:#fff;
    transition:.25s ease;
  }
  .menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-toggle.is-open span:nth-child(2){opacity:0}
  .menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .mobile-nav{
    position:absolute;
    z-index:20;
    top:74px;
    left:20px;
    right:20px;
    padding:12px;
    background:rgba(8,13,19,.96);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 18px 45px rgba(0,0,0,.35);
  }
  .mobile-nav.is-open{display:grid}
  .mobile-nav a{
    color:#fff;
    padding:12px 10px;
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:13px;
    font-weight:800;
  }
  .mobile-nav a:last-child{border-bottom:0}

  .hero{
    min-height:610px;
    background-position:68% center;
  }
  .hero-content{
    min-height:500px;
    align-items:flex-end;
    padding-bottom:42px;
  }
  .hero-copy{
    max-width:520px;
    padding-bottom:0;
  }
  .hero h1{
    font-size:clamp(44px,9vw,64px);
    line-height:.94;
    margin-bottom:18px;
  }
  .hero p{font-size:16px}
  .section{padding:56px 0}
  .section-head{margin-bottom:30px}
  .section-head h2{font-size:36px}
  .services{grid-template-columns:repeat(2,1fr)}
  .service{min-height:250px;padding:24px 20px}
  .process-grid{gap:22px}
  .smart-grid{gap:34px}
  .partners{padding:26px 0}
  /* =========================================================
     PARTNERS MODULE - TABLET
     ========================================================= */
.cts-partners-static{
  grid-template-columns:repeat(2, minmax(100px, 120px));
  gap:18px 24px;
  justify-content:center;
}

  .cts-partner-item{
    min-height:64px;
  }

  .cts-partner-item img{
    max-width:135px;
    max-height:48px;
  }

  .footer{padding:28px 0}
  .footer-logo{width:125px}
}

@media(max-width:640px){
  .container{width:min(100% - 28px,var(--container))}
  .site-header{padding:16px 0}
  .header-inner{grid-template-columns:1fr auto}
  .brand img{width:135px}
  .hero{
    min-height:580px;
    background-position:70% center;
  }
  .hero-content{
    min-height:470px;
    align-items:flex-end;
    padding-bottom:34px;
  }
  .hero-copy{max-width:100%}
  .hero h1{
    font-size:46px;
    line-height:.95;
    margin:12px 0 18px;
  }
  .hero p{
    font-size:15px;
    line-height:1.55;
    max-width:95%;
  }
  .actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:24px;
  }
  .btn{
    justify-content:center;
    width:100%;
    min-height:46px;
  }

  .section{padding:44px 0}
  .section-head{
    margin-bottom:24px;
    padding-inline:4px;
  }
  .section-head h2{
    font-size:30px;
    line-height:1.12;
  }

  .services{
    grid-template-columns:1fr;
    border-radius:0;
  }
  .service{
    min-height:0;
    padding:26px 22px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .service:last-child{border-bottom:0}
  .service img{
    width:46px;
    height:46px;
    margin-bottom:14px;
  }
  .service h3{
    margin:0 0 10px;
    font-size:15px;
  }
  .service p{
    margin:0;
    font-size:13px;
  }

  .process{padding:44px 0}
  .process-grid{
    gap:20px;
  }
  .process h2{
    font-size:31px;
    margin-bottom:6px;
  }
  .step{
    padding:18px 0 0;
  }
  .step img{
    width:40px;
    height:40px;
  }

  .smart{padding:44px 0}
  .smart h2{
    font-size:34px;
  }
  .grenton-products{
    max-width:92%;
  }
  .smart-icons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 14px;
  }
  .smart-item{
    align-items:flex-start;
    font-size:10px;
  }
.footer{
    padding:24px 0;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:14px;
    text-align:left;
  }
  .footer-logo{
    width:95px;
    margin-bottom:4px;
  }
  .contact{
    font-size:13px;
  }
}

/* ARTICLE / BLOG */
.article-header{background:#0b1016;color:#fff;padding:34px 0 64px}
.article-header-small{padding-bottom:28px}
.article-brand img{width:150px;margin-bottom:34px}
.article-header h1{font-size:48px;margin:0 0 10px}
.article-header p{color:#b9c0c7;max-width:700px}
.article-main,.single-main{padding:64px 0;background:#fff}
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.post-card{border:1px solid var(--line);background:#fff}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card-body{padding:22px}
.post-meta{font-size:12px;color:var(--green);font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.post-card h2{font-size:24px;line-height:1.15;margin:10px 0}
.post-card p{color:var(--muted);line-height:1.65}
.read-more{font-weight:800;font-size:13px}
.pagination{margin-top:34px}
.single-layout{max-width:900px}
.single-article h1{font-size:52px;line-height:1.08;margin:12px 0 24px}
.single-image{margin:24px 0 34px}
.article-content{font-size:18px;line-height:1.8}
.article-content h2{font-size:34px;margin-top:42px}
.article-content h3{font-size:26px;margin-top:32px}
.article-content img{height:auto}
@media(max-width:900px){.article-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
 .article-header{padding:24px 0 40px}
 .article-brand img{width:115px;margin-bottom:24px}
 .article-header h1{font-size:34px}
 .article-main,.single-main{padding:40px 0}
 .article-grid{grid-template-columns:1fr}
 .single-article h1{font-size:36px}
 .article-content{font-size:16px}
}