/* ============================================================
   TeoSolarElectric — Full redesign, green theme
   ============================================================ */

:root {
  /* Brand colors — overridden by admin theme panel */
  --green:         #004638;
  --green-hover:   #005c49;
  --green-deep:    #002d22;
  --lime:          #F2FF46;
  --lime-light:    #FBFFCC;

  /* Admin-controlled palette */
  --color-heading: #004638;   /* h1–h6 text */
  --color-text:    #2d4a45;   /* body text */
  --color-muted:   #5a7a74;   /* secondary/muted text */
  --color-card-bg: #ffffff;   /* card & panel backgrounds */
  --color-bg:      #ffffff;   /* main section backgrounds */
  --color-bg-alt:  #f2f7f5;   /* alternating section backgrounds */

  --shadow:        0 8px 32px rgba(0, 70, 56, 0.09);
  --radius-card:   12px;
}

/* ---------------------------------------------------------------
   BASE
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  overflow-x: hidden;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.72;
}

p { line-height: 1.75; margin-bottom: 1rem; }

a { color: var(--green); transition: color .2s; }
a:hover { color: var(--green-hover); }

.text-primary { color: var(--green) !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.22;
}

/* ---------------------------------------------------------------
   NAVBAR
--------------------------------------------------------------- */
#mainNav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0, 70, 56, 0.08);
  padding: 10px 0;
  transition: padding .3s, box-shadow .3s;
}

#mainNav.navbar-shrink {
  padding: 6px 0;
  box-shadow: 0 4px 32px rgba(0, 70, 56, 0.13);
}

#mainNav .navbar-brand img {
  height: 36px;
  width: auto;
  display: block;
}

#mainNav .navbar-toggler {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 6px 10px;
  font-size: 1rem;
  background: transparent;
  border-radius: 6px;
}

#mainNav .navbar-nav .nav-link {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: .5em 1em;
  transition: color .2s;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: var(--green);
}

.btn-nav-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  padding: .55em 1.7em;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background .2s, transform .15s;
}

.btn-nav-cta:hover {
  background: var(--green-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   HERO / MASTHEAD
--------------------------------------------------------------- */
header.masthead {
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.masthead-overlay {
  position: absolute;
  inset: 0;
  /* Gradient overlay — reduce the rgba alpha values to show more of the background image */
  background: linear-gradient(
    140deg,
    rgba(0, 29, 22, 0.52) 0%,
    rgba(0, 70, 56, 0.38) 55%,
    rgba(0, 92, 73, 0.22) 100%
  );
  z-index: 0;
}

.masthead-content {
  position: relative;
  z-index: 1;
  padding-top: 160px;
  padding-bottom: 120px;
}

.masthead-content .intro-lead-in {
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 255, 70, 0.9);
  margin-bottom: 1rem;
}

.masthead-content .intro-heading {
  font-family: "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.btn-hero {
  display: inline-block;
  background: var(--lime);
  color: var(--green);
  border-radius: 50px;
  padding: .9rem 2.6rem;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background .25s, transform .2s;
}

.btn-hero:hover {
  background: var(--lime-light);
  color: var(--green);
  transform: translateY(-3px);
}

.hero-logo-side {
  max-width: 260px;
  width: 80%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)) brightness(1.08);
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@media (min-width: 768px) {
  .masthead-content { padding-top: 200px; padding-bottom: 150px; }
  .masthead-content .intro-heading { font-size: 4.2rem; }
}

@media (max-width: 767.98px) {
  .masthead-content { padding-top: 120px; padding-bottom: 90px; text-align: center; }
  .masthead-content .intro-heading { font-size: 2rem; }
}

/* ---------------------------------------------------------------
   SECTIONS — shared
--------------------------------------------------------------- */
section { padding: 90px 0; }

#services  { background: var(--color-bg); }
#portfolio { background: var(--color-bg-alt); }
#about     { background: var(--color-bg); }
#team      { background: var(--color-bg-alt); }

.section-title-block { margin-bottom: 56px; }

.section-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
}

/* lime underline bar */
.section-heading::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--lime);
  border-radius: 3px;
  margin: 14px auto 0;
}

.section-subheading {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   SERVICES — image cards
--------------------------------------------------------------- */
.service-card {
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 70, 56, 0.11);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 52px rgba(0, 70, 56, 0.15);
}

.service-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 196px;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.service-card:hover .service-card__img { transform: scale(1.07); }

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 70, 56, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.service-card:hover .service-card__overlay { opacity: 1; }

.service-card__overlay span {
  color: var(--lime);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .06em;
  border: 2px solid var(--lime);
  border-radius: 50px;
  padding: .4em 1.4em;
}

.service-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.service-card__btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}

.service-card__btn:hover {
  color: var(--green-hover);
  border-color: var(--green-hover);
}

/* ---------------------------------------------------------------
   PORTFOLIO GRID
--------------------------------------------------------------- */
.portfolio-item { margin-bottom: 28px; }

.portfolio-item .portfolio-link {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}

.portfolio-item .portfolio-link img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.portfolio-item .portfolio-link:hover img { transform: scale(1.06); }

.portfolio-item .portfolio-link .portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 70, 56, 0.83);
  opacity: 0;
  transition: opacity .3s ease;
}

.portfolio-item .portfolio-link:hover .portfolio-hover { opacity: 1; }

.portfolio-item .portfolio-link .portfolio-hover-content {
  font-size: 1.8rem;
  color: var(--lime);
}

.portfolio-item .portfolio-caption {
  padding: 14px 18px;
  background: var(--color-card-bg);
  border: 1px solid rgba(0, 70, 56, 0.09);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.portfolio-item .portfolio-caption h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 3px;
}

.portfolio-item .portfolio-caption p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---------------------------------------------------------------
   PORTFOLIO MODAL
--------------------------------------------------------------- */
.portfolio-modal .modal-dialog {
  margin: 0;
  height: 100%;
  max-width: none;
}

.portfolio-modal .modal-content {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: var(--color-card-bg);
}

.portfolio-modal .modal-content h2 {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.portfolio-modal .modal-content p { margin-bottom: 28px; }

.portfolio-modal .modal-content p.item-intro {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 16px 0 28px;
}

.portfolio-modal .modal-content ul.list-unstyled {
  font-size: 1rem;
  text-align: left;
}

.portfolio-modal .modal-content img { margin-bottom: 28px; }

.portfolio-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  background-color: transparent;
}

/* ---------------------------------------------------------------
   TIMELINE (About)
--------------------------------------------------------------- */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1px;
  content: "";
  background: linear-gradient(to bottom, var(--lime) 0%, var(--green) 100%);
  border-radius: 2px;
}

.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
  border: 0;
}

.timeline > li::after,
.timeline > li::before { display: table; content: " "; }
.timeline > li::after   { clear: both; }

.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: left;
}

.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  text-align: center;
  color: #fff;
  border: 5px solid var(--lime);
  border-radius: 50%;
  background: var(--green);
  overflow: hidden;
}

.timeline > li .timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline > li .timeline-image h4 {
  font-size: 10px;
  line-height: 14px;
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
}

.timeline-heading h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 2px;
}

.timeline-heading h4.subheading {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
  padding: 0 20px 0 100px;
  text-align: left;
}

.timeline > li:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .timeline::before { left: 50%; }
  .timeline > li { min-height: 100px; margin-bottom: 100px; }
  .timeline > li .timeline-panel { float: left; width: 41%; padding: 0 20px 20px 30px; text-align: right; }
  .timeline > li .timeline-image { left: 50%; width: 100px; height: 100px; margin-left: -50px; }
  .timeline > li .timeline-image h4 { font-size: 13px; line-height: 18px; margin-top: 16px; }
  .timeline > li.timeline-inverted > .timeline-panel { float: right; padding: 0 30px 20px 20px; text-align: left; }
}

@media (min-width: 992px) {
  .timeline > li { min-height: 150px; }
  .timeline > li .timeline-panel { padding: 0 20px 20px; }
  .timeline > li .timeline-image { width: 150px; height: 150px; margin-left: -75px; }
  .timeline > li .timeline-image h4 { font-size: 18px; line-height: 26px; margin-top: 30px; }
  .timeline > li.timeline-inverted > .timeline-panel { padding: 0 20px 20px; }
}

@media (min-width: 1200px) {
  .timeline > li { min-height: 170px; }
  .timeline > li .timeline-panel { padding: 0 20px 20px 100px; }
  .timeline > li .timeline-image { width: 170px; height: 170px; margin-left: -85px; }
  .timeline > li .timeline-image h4 { font-size: 18px; line-height: 26px; margin-top: 40px; }
  .timeline > li.timeline-inverted > .timeline-panel { padding: 0 100px 20px 20px; }
}

/* ---------------------------------------------------------------
   TEAM
--------------------------------------------------------------- */
.team-member { margin-bottom: 50px; text-align: center; }

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--lime);
  display: block;
  margin: 0 auto;
  transition: transform .3s ease, border-color .3s;
}

.team-member:hover img { transform: scale(1.05); border-color: var(--green); }

.team-member h4 { margin-top: 18px; margin-bottom: 4px; font-size: 1.1rem; color: var(--color-heading); }

.team-member p { margin: 0; color: var(--color-muted); font-size: 0.93rem; }

/* ---------------------------------------------------------------
   SOCIAL BUTTONS
--------------------------------------------------------------- */
ul.social-buttons { margin-bottom: 0; }

ul.social-buttons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: #fff;
  border-radius: 50%;
  background: var(--green);
  text-decoration: none;
  transition: background .2s, transform .2s;
}

ul.social-buttons li a:hover {
  background: var(--lime);
  color: var(--green);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   BUTTONS — global
--------------------------------------------------------------- */
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  transition: background .2s, transform .15s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--green-hover) !important;
  border-color: var(--green-hover) !important;
  color: #fff;
  transform: translateY(-1px);
}

.btn-xl { padding: 16px 40px; font-size: 0.95rem; font-weight: 700; border-radius: 50px; }

/* ---------------------------------------------------------------
   CONTACT
--------------------------------------------------------------- */
section#contact { background: var(--color-bg-alt); }

/* Info card — dark green */
.contact-info-card {
  background: var(--green);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  height: 100%;
}

.contact-info-list { list-style: none; padding: 0; margin: 0; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
  line-height: 1.55;
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(242, 255, 70, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 0.85rem;
  margin-top: 2px;
}

.contact-info-item strong {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-info-item a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.contact-info-item a:hover { color: var(--lime); }

/* Form card — white */
.contact-form-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-form-card .form-group { margin-bottom: 18px; }

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  background: var(--color-card-bg);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  height: auto;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form-card .form-group input::placeholder,
.contact-form-card .form-group textarea::placeholder { color: #adb5bd; }

.contact-form-card .form-group textarea.form-control { height: 200px; }

.contact-form-card .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 70, 56, 0.1);
  background: var(--color-card-bg);
  color: var(--color-text);
  outline: none;
}

.contact-form-card .btn-primary { width: 100%; padding: 14px; font-size: 0.95rem; }

section#contact .section-heading { color: var(--color-heading); }
section#contact .section-heading::after { background: var(--lime); }
section#contact .section-subheading { color: var(--color-muted) !important; }

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
footer { padding: 36px 0; text-align: center; background: var(--green-deep); }

footer span.copyright {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.45);
}

footer ul.quicklinks { font-family: "Inter", sans-serif; font-size: 0.85rem; line-height: 40px; margin-bottom: 0; }
footer ul.quicklinks a { color: rgba(255, 255, 255, 0.45); }
footer ul.quicklinks a:hover { color: var(--lime); }

footer ul.social-buttons li a { background: rgba(255, 255, 255, 0.12); }
footer ul.social-buttons li a:hover { background: var(--lime); color: var(--green); }

/* ---------------------------------------------------------------
   MOBILE — portfolio modal
--------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .portfolio-modal .modal-body                { padding: 15px !important; }
  .portfolio-modal .modal-body .container     { padding: 0 !important; max-width: 100% !important; }
  .portfolio-modal .modal-body .row           { margin: 0 !important; }
  .portfolio-modal .modal-body [class*="col"] { padding: 0 !important; }
  .portfolio-modal .modal-body .modal-body    { padding: 0 !important; }
  .portfolio-modal .modal-body h2             { font-size: 1.4rem; }
}
