:root {
  --fenasa-blue: #0201ff;
  --fenasa-blue-light: #4b86fe;
  --fenasa-navy: #14213d;
  --fenasa-ink: #1d2939;
  --fenasa-muted: #667085;
  --fenasa-surface: #f5f7fb;
  --fenasa-border: #e4e9f1;
  --fenasa-white: #fff;
  --fenasa-radius: 1rem;
  --fenasa-shadow: 0 1rem 2.5rem rgba(20, 33, 61, 0.09);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  overflow-x: hidden;
  color: var(--fenasa-ink);
  background: var(--fenasa-white);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
}

p,
li {
  line-height: 1.75;
}

a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
}

.btn {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 0.6rem;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--fenasa-blue);
  background: var(--fenasa-blue);
  box-shadow: 0 0.5rem 1.25rem rgba(2, 1, 255, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: #0000c9;
  background: #0000c9;
  transform: translateY(-2px);
}

#mainNav {
  min-height: 5.25rem;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.35rem 1.5rem rgba(20, 33, 61, 0.07);
  backdrop-filter: blur(12px);
}

#mainNav .navbar-brand {
  margin-right: 1.5rem;
}

#mainNav .navbar-brand img {
  width: 10.5rem !important;
  height: 3.2rem !important;
  max-height: none;
  object-fit: contain;
}

#mainNav .navbar-nav {
  gap: 0.15rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.7rem;
  color: var(--fenasa-navy) !important;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:focus-visible {
  color: var(--fenasa-blue) !important;
}

.nav-contact-item {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--fenasa-border);
}

#mainNav .navbar-toggler {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--fenasa-border);
  border-radius: 0.6rem;
  color: var(--fenasa-blue);
  box-shadow: none;
}

header.masthead {
  min-height: 41rem;
  display: flex;
  align-items: center;
  padding: 9rem 0 7rem;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(10, 20, 45, 0.93) 0%, rgba(10, 20, 45, 0.82) 43%, rgba(10, 20, 45, 0.28) 100%),
    url("../assets/img/header-bg.jpg") center 42% / cover no-repeat;
  opacity: 1 !important;
}

.hero-content {
  max-width: 47rem;
}

.hero-eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--fenasa-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #a9c5ff;
}

header.masthead h1 {
  max-width: 45rem;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

header.masthead h1 span {
  color: var(--fenasa-blue-light);
}

.hero-copy {
  max-width: 39rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .btn {
  min-width: 11rem;
  min-height: 3.15rem;
}

.hero-actions .btn-outline-light:hover {
  color: var(--fenasa-navy);
}

.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: -2.35rem;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--fenasa-border);
  border-radius: var(--fenasa-radius);
  background: #fff;
  box-shadow: var(--fenasa-shadow);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5.6rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--fenasa-border);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item > i {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: rgba(2, 1, 255, 0.07);
  color: var(--fenasa-blue);
  font-size: 1.05rem;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: var(--fenasa-navy);
  font-size: 0.82rem;
}

.trust-item span {
  margin-top: 0.2rem;
  color: var(--fenasa-muted);
  font-size: 0.72rem;
}

.service-prompt {
  margin-top: 3.5rem;
  padding: 2rem 0;
  background: var(--fenasa-surface);
  border-top: 1px solid var(--fenasa-border);
  border-bottom: 1px solid var(--fenasa-border);
}

.service-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.service-prompt span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--fenasa-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-prompt h2 {
  margin: 0;
  color: var(--fenasa-navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}

.page-section {
  padding: 6rem 0;
}

.page-section h2 {
  margin-bottom: 1rem;
  color: var(--fenasa-navy);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--fenasa-muted);
  font-size: 1rem;
}

.services-section {
  background: #fff;
}

.service-card {
  height: 100%;
  padding: 2rem 1.5rem;
  border: 1px solid var(--fenasa-border);
  border-top: 3px solid transparent;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(20, 33, 61, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-0.3rem);
  border-top-color: var(--fenasa-blue);
  box-shadow: 0 1rem 2rem rgba(20, 33, 61, 0.1);
}

.service-card-icon {
  width: 4rem;
  height: 4rem;
  display: inline-grid;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #f0f3ff;
  color: var(--fenasa-blue);
}

.service-card h4 {
  margin-bottom: 0.75rem;
  color: var(--fenasa-navy);
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--fenasa-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.expertise-panel,
.visit-card {
  overflow: hidden;
  border: 1px solid var(--fenasa-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--fenasa-shadow);
}

.expertise-panel img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.expertise-content,
.visit-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.expertise-content h3 {
  margin-bottom: 0.8rem;
  color: var(--fenasa-navy);
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}

.expertise-content > p,
.visit-content > p {
  color: var(--fenasa-muted);
}

.inverter-feature {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--fenasa-border);
  border-radius: 0.65rem;
  color: var(--fenasa-ink);
  font-size: 0.85rem;
}

.inverter-feature i {
  color: var(--fenasa-blue);
}

.brand-strip {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid var(--fenasa-border);
  border-radius: 1rem;
  background: var(--fenasa-surface);
}

.brand-strip h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.brand-logo-card {
  min-height: 5rem;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--fenasa-border);
}

.brand-logo-card img {
  max-width: 8.5rem;
  max-height: 3.1rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-logo-card:hover img {
  filter: none;
  opacity: 1;
}

.inverter-section {
  background: var(--fenasa-surface);
}

.inverter-panel {
  height: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--fenasa-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.75rem rgba(20, 33, 61, 0.06);
}

.inverter-panel h3 {
  margin-bottom: 1rem;
  color: var(--fenasa-navy);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.inverter-panel p,
.inverter-panel li {
  color: var(--fenasa-muted);
  font-size: 0.92rem;
}

.inverter-panel ul {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.inverter-panel li {
  margin-bottom: 0.45rem;
}

.inverter-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #f1d98c;
  border-radius: 999px;
  background: #fff9e8;
  color: #735600;
  font-size: 0.72rem;
  font-weight: 800;
}

.visit-section {
  background: #fff;
}

.visit-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.visit-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.visit-list li {
  display: flex;
  gap: 0.7rem;
  color: var(--fenasa-muted);
  font-size: 0.92rem;
}

.visit-list i {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  color: var(--fenasa-blue);
}

.visit-image {
  width: 100%;
  height: 100%;
  min-height: 27rem;
  object-fit: cover;
}

.discount-banner {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(120deg, var(--fenasa-blue) 0%, #1716cb 58%, var(--fenasa-blue-light) 100%);
  color: #fff;
}

.discount-content {
  position: relative;
  z-index: 1;
}

.discount-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #dce5ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.discount-banner h2 {
  max-width: 48rem;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.discount-banner p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.5rem;
  margin: 1.5rem 0;
}

.discount-banner p span {
  white-space: nowrap;
}

.discount-banner p i {
  margin-right: 0.35rem;
  color: #b6edda;
}

.discount-banner .btn {
  color: var(--fenasa-blue);
  font-weight: 800;
}

section.contact {
  padding: 6rem 0;
  background: #eef2fa;
}

.contact-shell {
  overflow: hidden;
  border: 1px solid var(--fenasa-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.25rem 3rem rgba(20, 33, 61, 0.12);
}

.contact-info {
  height: 100%;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--fenasa-navy);
  color: #fff;
}

.contact-info .section-kicker {
  color: #9fbaff;
}

.contact-info h2 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.contact-info > p {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-method i {
  width: 1.25rem;
  color: #9fbaff;
  text-align: center;
}

.contact-method a {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-method a:hover {
  color: #9fbaff;
}

section.contact form#contactForm {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-heading {
  margin-bottom: 1.5rem;
}

.form-heading h3 {
  margin-bottom: 0.4rem;
  color: var(--fenasa-navy);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-heading p {
  margin: 0;
  color: var(--fenasa-muted);
  font-size: 0.9rem;
}

section.contact form#contactForm .form-label {
  margin-bottom: 0.4rem;
  color: var(--fenasa-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

section.contact form#contactForm .form-control {
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d5dce7;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: none;
  font-size: 0.9rem;
}

section.contact form#contactForm .form-control::placeholder {
  color: #78859a;
  opacity: 1;
}

section.contact form#contactForm textarea.form-control {
  min-height: 8.5rem;
  resize: vertical;
}

section.contact form#contactForm .form-control:focus {
  border-color: var(--fenasa-blue-light);
  box-shadow: 0 0 0 0.2rem rgba(75, 134, 254, 0.16);
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-submit .btn {
  min-width: 12rem;
}

.footer {
  padding: 1.75rem 0;
  background: #0e1830;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.footer .btn-social {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  margin: 0 0.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer .btn-social:hover {
  border-color: var(--fenasa-blue-light);
  background: var(--fenasa-blue);
}

.whatsapp {
  position: fixed;
  z-index: 1030;
  right: 1.25rem;
  bottom: 6rem;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(37, 211, 102, 0.35);
  font-size: 1.65rem;
  text-decoration: none;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  background: #128c7e;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    padding-inline: 0.45rem;
    font-size: 0.7rem;
  }

  .nav-contact-item {
    margin-left: 0.35rem;
    padding-left: 0.35rem;
  }
}

@media (max-width: 991.98px) {
  #mainNav {
    min-height: 4.75rem;
  }

  #mainNav .navbar-brand img {
    width: 9.5rem !important;
  }

  #mainNav .navbar-collapse {
    max-height: calc(100vh - 5.5rem);
    margin-top: 0.6rem;
    padding: 0.65rem;
    overflow-y: auto;
    border: 1px solid var(--fenasa-border);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: var(--fenasa-shadow);
  }

  #mainNav .navbar-nav {
    align-items: stretch !important;
  }

  #mainNav .navbar-nav .nav-link {
    width: 100%;
    min-height: 2.8rem;
    padding-inline: 0.85rem;
    font-size: 0.8rem;
  }

  .nav-contact-item {
    display: block;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0 0;
    border-top: 1px solid var(--fenasa-border);
    border-left: 0;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--fenasa-border);
  }

  .brand-logo-card {
    border: 0;
  }
}

@media (max-width: 767.98px) {
  .page-section,
  section.contact {
    padding: 4.25rem 0;
  }

  header.masthead {
    min-height: 38rem;
    padding: 7.5rem 0 5rem;
    background-position: 58% center;
  }

  .service-prompt {
    margin-top: 2.25rem;
  }

  .service-prompt-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .service-prompt .btn {
    width: 100%;
  }

  .expertise-panel img,
  .visit-image {
    min-height: 18rem;
    max-height: 23rem;
  }

  .contact-info {
    padding: 1.75rem;
  }

  #contactForm {
    padding: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  header.masthead {
    min-height: 37rem;
    padding-top: 7.25rem;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(10, 20, 45, 0.82), rgba(10, 20, 45, 0.94)),
      url("../assets/img/header-bg.jpg") center / cover no-repeat;
  }

  header.masthead h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-bar {
    margin-top: 1rem;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    min-height: 4.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--fenasa-border);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .service-card {
    padding: 1.5rem;
  }

  .brand-strip {
    padding: 1.25rem 0.75rem;
  }

  .brand-logo-card {
    min-height: 4.25rem;
  }

  .brand-logo-card img {
    max-width: 7rem;
    max-height: 2.6rem;
  }

  .discount-banner {
    padding: 3.5rem 0;
  }

  .discount-banner p {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit .btn {
    width: 100%;
  }

  .g-recaptcha {
    max-width: 100%;
    transform-origin: left center;
  }

  .whatsapp {
    right: 0.85rem;
    bottom: 5.75rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (max-width: 370px) {
  #contactForm,
  .contact-info {
    padding: 1.25rem;
  }

  .g-recaptcha {
    transform: scale(0.88);
    margin-right: -1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
