/* =========================================================
   PMK TECHFLUX GLOBAL — Styles
   Modular, Reusable, and DRY CSS Architecture
========================================================= */

/* ---------------------------
   1. Variables & Base
--------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


:root {
  --brand: #cb9005;
  --lgt-brand: rgba(203,144,5,0.1);
  --primary: #0090ff;
  --accent: #00c896;
  --drk-accent: #44902d;
  --muted: #8C8D8B;
  --text: #242524;
  --span: #E8618CFF;
  --bg: #fff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-xs: 0 0 1px rgba(23, 26, 31, 0.07), 0 0 2px rgba(23, 26, 31, 0.12);
}

.dark-theme {
  --bg: #121212;
  --text: #f1f1f1;
  --muted: #b3b3b3;
  --brand: #cb9005;
  --primary: #64b5f6;
  --accent: #00e6ac;
  --drk-accent: #009b63;
  --lgt-brand: rgba(203,144,5,0.15);
  --span: #ff7ab8;
  --shadow-xs: 0 0 1px rgba(255,255,255,0.08), 0 2px 6px rgba(255,255,255,0.05);
}

* {box-sizing: border-box; margin: 0; padding: 0; 
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------------------------
   2. Utilities
--------------------------- */
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center; }
.section { padding: 4rem; text-align: center; animation: fadeInUp 1s ease forwards;}
.flex-center { margin: 40px 0; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; padding: .5rem 2rem;}
.flex-left { margin: 40px 60px; display: flex; justify-content: start; align-items: center; gap: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.container-narrow { max-width: 960px; margin: 0 auto; }
.section--colored { background: #cb9005; padding: 8rem 2rem; color: var(--bg);}

.slider { 
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; 
    align-items: center; 
    margin: 70px 0; 
    gap: 20px; 
    overflow-x: auto; 
    overflow-y: hidden; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    scroll-snap-type: x mandatory; 
    height: fit-content; 
}

.slider__card { min-width: 200px; height: 100px; transition: transform 0.3s; }
.slider__card:hover { transform: translateY(-5px); }
.slider__card__lg { flex: 0 0 240px;  height: 250px; scroll-snap-align: start; }
.slider__card img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

@media only screen and (max-width: 1024px) {
  .slider { }
  .slider__card { width: 150px; height: 80px; }
  .slider__card__lg { flex: 0 0 200px; height: 200px; }
}

@media only screen and (max-width: 768px) {
  .section { padding: 4rem 1rem; }
}
/* ---------------------------
   3. Typography
--------------------------- */
.heading-xl { font-family: 'Archivo', sans-serif; font-size: 48px; font-weight: 700; }
.heading-lg { font-family: 'Archivo', sans-serif; font-size: 36px; font-weight: 700; }
.heading-md { font-family: 'Archivo', sans-serif; font-size: 24px; font-weight: 600; }
.subheading { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 700px; margin: auto;}

/* ---------------------------
   4. Buttons
--------------------------- */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-align: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn-primary {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 3rem;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
    text-decoration: none;
    color: var(--brand);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 3rem;
  font-weight: 600;
  text-align: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn-brand-lng {
  display: block;
  padding: 0.55rem 2rem;
  width: 100%;
}

.btn-primary-lng {
  display: block;
  padding: 0.55rem 2rem;
  border: 1px solid var(--brand);
  width: 100%;
}

.btn-brand:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.btn-primary:hover {
  background: var(--muted);
  transform: scale(1.05);
  color: var(--bg);
  border: 1px solid var(--muted);
}

.btn-outline-brand {
  border: 0px solid var(--brand);
  color: var(--brand);
  background: transparent;
  /* padding: 0.75rem 2rem; */
  border-radius: var(--radius-sm);
  transition: 0.3s ease;
}
.btn-outline-brand:hover {
  /* background: var(--bg); */
  color: #fff;
}

/* ---------------------------
   5. Header
--------------------------- */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img{ height: 50px;  }
.logo-text p { margin: 0; line-height: 1; font-family: 'Montserrat', sans-serif; }
#frs { font-weight: 800; font-size: 20px; color: var(--brand); }
#snd { font-weight: 800; font-size: 23px; color: var(--brand); }
#trd { font-weight: 500; font-size: 12px; color: var(--drk-accent); }

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

nav a:hover { color: var(--primary); }

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px; width: 0;
  background: var(--primary);
  transition: width 0.3s;
}
nav a:hover::after { width: 100%; }

/* Responsive Header Enhancements */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='__COLOR__' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
}

.navbar-toggler-icon::before {
  content: "";
  display: block;
  width: 1.5em;
  height: 1.5em;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
  background-color: var(--toggler-color);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s ease;
  position: relative;
}
.navbar-nav .nav-link:hover {
  color: var(--primary);
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Button override */
.btn-brand {
  background-color: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border: none;
}
.btn-brand:hover {
  background-color: color-mix(in srgb, var(--brand), black 15%);
  color: #fff;
}


/* ---------------------------
   6. Hero Sections
--------------------------- */
.hero {
  position: relative;
  height: 100vh;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
}
.hero__content { position: relative; z-index: 1; max-width: 60%; }
.hero__title { font-family: 'Archivo'; font-size: 60px; font-weight: 700; line-height: 60px; }
.hero__subtitle { font-size: 20px; color: #eee; margin-top: 1rem; }
.hero--solar { background-image: url('../images/hero/solarservices.jpg'); }
.hero--it { background-image: url('../images/hero/itservices.jpg'); }
.hero--main { background-image: url('../images/hero/hero.png'); }

/* ---------------------------
   7. Cards
--------------------------- */
.card {
  background: var(--bg);
  color: var(--text);
  width: 320px; 
  height: 260px;
  border: 1px solid var(--lgt-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  text-align: left;
  transition: 0.3s ease;
}

.card__md {
  width: 438px; 
  height: 280px;
}

.card__sm {
  width: 438px; 
  height: 200px;
}

.card__sm__lng {
  padding: 0;
  max-width: 280px;
  height: 450px;
}

.card__xl {
  padding: 0;
  width: 420px;
  height: 450px;
}

.card__xl__pad {
  padding: 25px;
  width: 427px;
  height: 362px;
}

.card__lg{
  padding: 0;
  width: 400px;
  height: 458px;
}

.card__sm__wide {
  padding: 2rem;
  width: 800px;
}

.card__md__container{
  width: 1024px;
  height: fit-content;
  padding: 3rem;
  margin: 0 auto;
  background-color: var(--lgt-brand);
  border: none;
}

.card__flx__center{
  align-items: center;
  text-align: center;
}

.card__img {
  width: 100%;
  height: 200px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.card__img__lg {
  height: 220px;
}

.shadded__span{
  padding: 5px 10px;
  margin: 0 10px;
  font-family: Inter;
  background-color: var(--lgt-brand);
  border-radius: 10px;
  font-size: 12px;
}

.card__icon {
  margin-bottom: 1rem;
}

.card__icon__shadded {
  background-color: rgba(0, 0, 0, 0.08);
  min-width: 70px;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: .5rem auto;
  border-radius: 50%;
}

.card__icon img{
  width: 40px;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.card:hover { transform: translateY(-5px); }
.card__title { font-family: 'Archivo'; font-size: 20px; font-weight: 600; color: var(--text); line-height: 28px;}
.card__title__sm { font-size: 18px; line-height: 115%;}
.card__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card__text__center { text-align: center; }
.card__text__sm { font-size: 14px; line-height: 115%; }
.card__text__md { font-size: 16px; line-height: 115%; }
.card__text__lg { font-size: 18px; line-height: 29px; font-weight: 400;}
.card__link__abs { position: absolute; bottom: 15px; right: 1rem; left: 1rem; }
.card__link a { text-decoration: none; color: var(--brand); font-weight: 500; }
.card__link__abs .lng{ position: absolute; bottom: 15px; right: 1rem; left: 1rem; }
.card__span { line-height: 115%; font-size: 20px; font-weight: 700; color: var(--span); }


.card__profile__horizontal {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.profile__image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cb9005;
}

.profile__image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile__icon i {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}


.profile__text {
  margin-left: 1rem;
  text-align: left;
}

.profile__text *{
  margin: 0;
}

.profile__text .bi-star-fill {
  color: var(--brand);
  ;
}

.profile__text__head{
  font-size: 16px;
  color:  var(--brand);
  font-weight: 600;
  font-family: Inter;
}

.profile__text__secondary{
  font-size: 14px;
  color: #8C8D8BFF;
  font-weight: 400;
  font-family: Inter;
}

.containter__text{
  width: 40%;
  margin: 0 auto;
}

.containter__text .subheading{
    color: var(--bg);
    line-height: 125%;
    margin-bottom: 1rem;
}

.section__image {
  width: 80%;
  height: 80%;
  align-self: center;
}

.validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.error-message br+br {
  margin-top: 25px;
}

.sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

/* ---------------------------
   8. Footer
--------------------------- */
/* .footer {
  background: #F7F7F7;
  text-align: center;
  padding: 4rem 2rem;
} */
.footer__content { width: 30rem; margin: 2rem auto; }
.footer__title { font-size: 16px; font-weight: 700; font-family: 'Inter'; }
.footer__text { font-size: 18px; font-family: 'Archivo'; font-weight: 600; }
.footer__social i { color: var(--muted); font-size: 22px; margin: 0 8px; transition: color 0.3s; }
.footer__social i:hover { color: var(--brand); }

.footer {
  text-align: center;
  height: 488px;
  padding: 6rem 0;
  background: var(--lgt-brand);
}

.footer__form .form-group {
  display: flex;
}

.footer__form .form-group .form-control{
  height: 45px;
  margin-right: 10px;
}

.footer__form .form-group button{
  height: 45px;
  padding: 10px 20px;
}

.footer .bottom {
  width: 70%;
  margin: 6rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #a7a4a4;
}

.footer .bottom .btn-outline-secondary {
  pointer-events: none;
}

.footer .bottom .socials i {
  font-size: 24px;
  color: #a7a4a4;
  margin: 0 10px;
  transition: color 0.3s;
}

.pattern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--drk-accent);
    margin: 1rem auto;
    position: relative;
}

.pattern__inner {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--brand);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -25%;
    right: -25%;
    transform: translate(-50%, -50%);
}

.pattern__inner img{
    width: 60%;
}

.patter__txt {
    color: var(--bg);
    font-size: 28px;
    font-weight: 700;
    line-height: 80px;
    text-align: center;
    font-family: 'Archivo';
}

.breadcrumb {
  margin: 70px 20px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb span {
  color: var(--brand);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumbtxt {
  width: 50%;
  margin: 5rem auto;
  text-align: center;
}

.navbar-toggler {
  color: var(--text);
}

.form-control {
  /* background-color: var(--muted); */
}

@media only screen and (max-width: 1024px) {
  .containter__text{ width: 50%; }
  .hero { height: fit-content; padding: 1rem 0;}
}

@media only screen and (max-width: 768px) {
  .hero { min-height: 100vh; padding: 1rem 0;}
  .hero__content { max-width: 90%; }
  .hero__title { font-size: 30px; line-height: 35px; }
  .hero__subtitle { font-size: 14px; line-height: 120%;}
  .heading-xl { font-size: 36px; line-height: 110%;}
  .heading-lg { font-size: 28px; line-height: 110%;}
  .subheading { font-size: 16px; max-width: 100%; line-height: 115%;}
  .container-narrow { padding: 0 1rem; }
  .footer__content { width: 100%; max-width: 30rem; padding: 1rem;}
  .footer .bottom { width: 90%; flex-direction: column; gap: 1rem; }
  .btn-brand, .btn-secondary { font-size: 12px; line-height: 110%;}

  .card__title { font-size: 18px; line-height: 24px;}
  .card__title__sm { font-size: 16px; line-height: 115%;}
  .card__text { font-size: 13px; line-height: 115%; }
  .card__text__sm { font-size: 12px; }
  .card__text__md { font-size: 14px; line-height: 115%; }
  .card__text__lg { font-size: 16px; line-height: 115%; }
  /* .card__link__abs { position: absolute; bottom: 15px; right: 1rem; left: 1rem; } */
  /* .card__link__abs .lng{ position: absolute; bottom: 15px; right: 1rem; left: 1rem; } */
  .profile__text__secondary { font-size: 12px; }
  .containter__text{ width: 90%; }
  .breadcrumbtxt { width: 90%; margin: 3rem auto; }

  .section__image {
    width: 95%;
    height: 95%;
    align-self: center;
}
}


/* =========================================================
   9. Dynamic Theme (Dark/Light Mode)
========================================================= */

/* Automatically switch based on system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #f1f1f1;
    --muted: #b3b3b3;
    --brand: #cb9005;
    --primary: #64b5f6;
    --accent: #00e6ac;
    --drk-accent: #009b63;
    --lgt-brand: rgba(203,144,5,0.15);
    --span: #ff7ab8;
    --toggler-color: rgba(0, 0, 0, 0.7);
  }

  .dark-theme {
  --bg: #121212;
  --text: #f1f1f1;
  --muted: #b3b3b3;
  --brand: #cb9005;
  --primary: #64b5f6;
  --accent: #00e6ac;
  --drk-accent: #009b63;
  --lgt-brand: rgba(203,144,5,0.15);
  --span: #ff7ab8;
  --toggler-color: rgba(255, 255, 255, 0.8);
  }

  .light-theme {
  --bg: #ffffff;
  --text: #242524;
  --muted: #8C8D8B;
  --brand: #cb9005;
  --primary: #0090ff;
  --accent: #00c896;
  --drk-accent: #44902d;
  --lgt-brand: rgba(203,144,5,0.1);
  --span: #E8618CFF;
  }

  /* body {
    background: var(--bg);
    color: var(--text);
  }

  .card, .footer, header {
    background: #1e1e1e;
    color: var(--text);
    box-shadow: none;
  }

  nav a {
    color: var(--accent);
  }

  .footer {
    background: #1c1c1c;
  }

  .btn-brand {
    background: var(--brand);
    color: #fff;
  }

  .btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
  } */
}