/* Qzacko HT Solar Consultancy — brand theme */
:root {
  --qz-teal: #0a3d39;
  --qz-teal-mid: #0e6b63;
  --qz-teal-light: #b8e6e2;
  --qz-mint: #e8f4f2;
  --qz-gold: #f5b301;
  --qz-gold-dark: #c48f00;
  --qz-dark: #1a2523;
  --qz-footer: #243330;
  --qz-white: #ffffff;
  --qz-text: #2c3e3a;
  --qz-muted: #5a6f6b;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 32px rgba(10, 61, 57, 0.12);
  --radius: 12px;
  --radius-pill: 999px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--qz-text);
  line-height: 1.6;
  background: var(--qz-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--qz-teal-mid);
  text-decoration: none;
}

a:hover {
  color: var(--qz-gold-dark);
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--qz-teal-mid);
  color: var(--qz-white);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.top-bar a {
  color: var(--qz-gold);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--qz-white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--qz-teal);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-link:hover {
  color: var(--qz-teal);
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--qz-muted);
  letter-spacing: 0.12em;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qz-text);
  border-radius: 6px;
}

.nav-main a:hover,
.nav-main a.active {
  background: var(--qz-mint);
  color: var(--qz-teal);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--qz-teal-mid);
  color: var(--qz-white);
  border-color: var(--qz-teal-mid);
}

.btn-primary:hover {
  background: var(--qz-teal);
  color: var(--qz-white);
}

.btn-outline {
  background: transparent;
  color: var(--qz-teal);
  border-color: var(--qz-teal);
}

.btn-gold {
  background: var(--qz-gold);
  color: var(--qz-dark);
  border-color: var(--qz-gold);
}

.btn-gold:hover {
  background: var(--qz-gold-dark);
  color: var(--qz-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--qz-teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--qz-white);
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  touch-action: pan-y pinch-zoom;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide.is-active img {
  animation: hero-ken-burns 12s ease-out forwards;
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(10, 61, 57, 0.88) 0%,
    rgba(14, 107, 99, 0.72) 50%,
    rgba(10, 61, 57, 0.9) 100%
  );
}

.hero-carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--qz-gold);
  transform-origin: left center;
}

.hero--carousel.is-playing .hero-carousel-progress-bar {
  animation: hero-progress var(--hero-autoplay, 5.5s) linear forwards;
}

@keyframes hero-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hero-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 61, 57, 0.45);
  backdrop-filter: blur(6px);
}

.hero-carousel-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--qz-white);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.hero-carousel-dots {
  display: flex;
  gap: 0.4rem;
  max-width: min(52vw, 280px);
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-carousel-dots::-webkit-scrollbar {
  display: none;
}

.hero-carousel-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel-dot.is-active {
  background: var(--qz-gold);
  transform: scale(1.25);
}

.hero-carousel-dot:hover,
.hero-carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.35s ease;
  }

  .hero-slide.is-active img {
    animation: none;
  }

  .hero--carousel.is-playing .hero-carousel-progress-bar {
    animation: none;
    width: 100%;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 4rem 0 5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.wave-divider {
  position: relative;
  margin-top: -2px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* Service cards */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--qz-mint);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--qz-teal);
  margin: 0 0 0.5rem;
}

.section-title p {
  color: var(--qz-muted);
  max-width: 640px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--qz-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--qz-teal);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--qz-muted);
  margin-bottom: 1.25rem;
}

/* CEO spotlight */
.ceo-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.ceo-photo {
  aspect-ratio: 4/3;
  min-height: 280px;
  background: linear-gradient(145deg, var(--qz-teal-mid), var(--qz-teal));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qz-teal-light);
  font-size: 4rem;
  overflow: hidden;
}

.ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.profile-card.featured .ceo-photo {
  aspect-ratio: 3/4;
  min-height: 320px;
}

.profile-portrait img {
  object-position: center top;
}

.profile-credentials {
  font-size: 1rem;
  color: var(--qz-teal-mid);
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
}

.profile-subtitle {
  font-size: 0.95rem;
  color: var(--qz-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.profile-bio p {
  margin-bottom: 1rem;
}

.profile-bio h3 {
  color: var(--qz-teal);
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.profile-bio ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.profile-bio li {
  margin-bottom: 0.5rem;
}

.profile-bio .edu-list li {
  margin-bottom: 0.85rem;
}

.ceo-block h2 {
  color: var(--qz-teal);
  margin-top: 0;
}

.ceo-block .tagline {
  color: var(--qz-gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page header */
.page-hero {
  background: linear-gradient(135deg, var(--qz-teal) 0%, var(--qz-teal-mid) 100%);
  color: var(--qz-white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Services list */
.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(10, 61, 57, 0.1);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-num {
  width: 48px;
  height: 48px;
  background: var(--qz-gold);
  color: var(--qz-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--qz-mint);
  padding: 2rem;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c5d9d5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info-box h3 {
  color: var(--qz-teal);
  margin-top: 0;
}

.contact-email-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-email-list li {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-email-list a {
  font-weight: 600;
}

.phone-big {
  display: inline-block;
  background: var(--qz-teal-mid);
  color: var(--qz-white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0;
}

/* Profiles */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.profile-card {
  background: var(--qz-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.profile-card-header {
  background: var(--qz-teal);
  color: var(--qz-white);
  padding: 1.5rem;
  text-align: center;
}

.profile-card-body {
  padding: 1.5rem 2rem;
}

/* CTA band */
.cta-band {
  background: var(--qz-mint);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-band h2 {
  color: var(--qz-teal);
  margin: 0 0 1rem;
}

.cta-band .highlight {
  color: var(--qz-teal-mid);
}

/* Footer */
.site-footer {
  background: var(--qz-footer);
  color: #c8d9d6;
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--qz-white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: #a8c4bf;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--qz-gold);
}

.footer-logo {
  width: 64px;
  margin-bottom: 1rem;
}

.newsletter input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #2d403c;
  color: var(--qz-white);
}

.footer-lang {
  padding: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-lang__label {
  font-size: 0.85rem;
  color: #a8c4be;
}

.footer-lang__select {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #3a524d;
  background: #2d403c;
  color: var(--qz-white);
  font-size: 0.85rem;
  max-width: 100%;
}

.footer-bottom {
  border-top: 1px solid #3a524d;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.seo-keywords {
  font-size: 0.75rem;
  color: #6a8a84;
  line-height: 1.8;
  padding: 1rem 0 2rem;
}

/* Forms */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert--compact {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.form-alert--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer address */
.footer-address {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a8c4be;
  margin: 0.5rem 0;
}

/* Contact map */
.contact-map-section {
  padding-top: 0;
}

.contact-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 61, 57, 0.12);
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 320px;
}

.contact-map-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-map-caption a {
  color: var(--qz-teal-mid);
}

.contact-address {
  line-height: 1.65;
}

/* Email masking only — address is never masked */
.show-details-wrap {
  margin: 0 0 1.25rem;
}

.btn-show-emails {
  width: 100%;
  max-width: 320px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
}

.btn-show-emails--footer {
  max-width: 100%;
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
}

.email-mask-item__hidden {
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.02em;
  color: var(--qz-muted);
}

.email-mask-panel.emails-visible .email-mask-item__hidden {
  display: none;
}

.email-mask-panel.emails-visible .email-mask-item__shown {
  display: inline !important;
}

.email-mask-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.email-mask-item__shown a {
  color: var(--qz-teal-mid);
  word-break: break-all;
}

.email-mask-item__shown a:hover {
  color: var(--qz-teal);
}

.contact-email-list .email-mask-item {
  list-style: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--qz-border, #e0ece9);
}

.contact-email-list .email-mask-item:last-child {
  border-bottom: none;
}

.contact-address {
  line-height: 1.65;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.contact-map-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-map-open {
  font-weight: 600;
  color: var(--qz-teal-mid);
}

.site-footer .email-mask-item__hidden {
  color: #a8c4be;
}

.site-footer .email-mask-item__shown a {
  color: var(--qz-gold);
}

.site-footer .footer-email-ceo {
  margin-top: 0.25rem;
}

.site-footer .email-mask-panel--footer {
  margin-top: 0.5rem;
}

/* FAQ (SEO + users) */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--qz-border, #c5ddd8);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
  background: var(--qz-white);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  color: var(--qz-teal-dark);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--qz-muted);
  line-height: 1.65;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--qz-muted);
}

.breadcrumb a {
  color: var(--qz-teal-mid);
}

/* Mobile layout: see css/mobile.css */
