/* Maatla Power site stylesheet */

:root {
  --ink: #0d0d0f;
  --panel: #14141a;
  --panel-2: #1b1b22;
  --white: #ffffff;
  --muted: #b9b9c2;
  --pink: #e6197e;
  --blue: #6d9be0;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Inter", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.nav-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
}

nav.site-nav {
  position: absolute;
  top: 72px;
  right: 24px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 10px;
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
nav.site-nav.open { display: flex; }
nav.site-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
}
nav.site-nav a:hover { background: var(--panel-2); }
nav.site-nav .nav-disabled {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  cursor: not-allowed;
}
nav.site-nav .nav-disabled em {
  display: inline-block;
  margin-left: 5px;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  vertical-align: middle;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  nav.site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
}
@media (max-width: 640px) {
  .hero { min-height: 62vh; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,0.15) 0%, rgba(13,13,15,0.55) 55%, rgba(13,13,15,0.92) 100%);
  z-index: -1;
}
.hero-inner {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 52px);
  max-width: 820px;
}
.hero p.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: var(--white);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn:hover { filter: brightness(1.1); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid rgba(255,255,255,0.06); }
section:first-child, .testimonials { border-top: none; }
#process, #contact { background: var(--panel); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.eyebrow {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink);
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }

/* Process / how we work */
.steps {
  display: flex;
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--pink);
  opacity: 0.35;
}
.step {
  flex: 1;
  position: relative;
  padding-top: 56px;
  text-align: center;
}
.step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--pink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 800px) {
  .steps { flex-direction: column; gap: 36px; }
  .steps::before { top: 0; bottom: 0; left: 20px; right: auto; width: 2px; height: auto; }
  .step { padding-top: 0; padding-left: 56px; text-align: left; }
  .step-num { left: 0; top: 0; transform: none; }
}

/* Testimonials */
.testimonials {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 0;
}
.testimonials .overlay {
  background: rgba(13,13,15,0.72);
  padding: 70px 0;
}
.testi-head {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 560px;
}
.testi-slider { max-width: 560px; margin: 0 auto; }
.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testi-card {
  flex: 0 0 100%;
  text-align: center;
  background: rgba(20,20,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}
.testi-card blockquote {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.testi-card cite {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testi-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
}
.testi-dot.is-active {
  background: var(--pink);
  border-color: transparent;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-grid h2 { font-size: clamp(26px, 3.4vw, 40px); }
.about-grid .lede { font-size: 19px; color: var(--white); }
.about-grid .muted { color: var(--muted); }

/* Contact */
.contact-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .contact-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding: 0;
    align-items: stretch;
  }
}
.contact-card h3 { color: var(--pink); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.contact-card .val { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.contact-card .val:last-child { margin-bottom: 0; }

.contact-map { display: flex; }
.map-embed {
  position: relative;
  flex: 1;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 860px) {
  .map-embed { border-radius: var(--radius) 0 0 var(--radius); border: none; border-right: 1px solid rgba(255,255,255,0.08); }
}
.map-embed iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-embed .map-link { position: absolute; inset: 0; display: block; }
.map-embed .map-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(13,13,15,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 860px) {
  .contact-info { padding: 40px 40px 40px 0; }
}
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 480px) {
  .contact-details { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 16px; }
.contact-form h3 { margin-bottom: 2px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-form button { border: none; cursor: pointer; justify-self: start; }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { font-size: 14px; margin: 0; min-height: 20px; }
.form-status.success { color: #7cdb8a; }
.form-status.error { color: #ff8a8a; }

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 0 100px;
}
.legal-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 44px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 16px; }
.legal-content ul { padding-left: 20px; margin: 0 0 1em; }
.legal-content li { margin-bottom: 8px; }
.legal-content .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal-content a { color: var(--blue); text-decoration: underline; }

/* Projects listing */
.page-hero {
  position: relative;
  padding: 120px 0 70px;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,13,15,0.72);
  z-index: -1;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.page-hero .eyebrow {
  background: rgba(13,13,15,0.6);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
}

.project {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.project h4 { font-size: clamp(20px, 2.6vw, 28px); max-width: 800px; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.project-gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* Footer */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 50px 0 34px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-addr { color: var(--muted); font-size: 14px; }

/* Floating contact buttons */
.floating-social {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 14px);
  z-index: 60;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-social.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-btn {
  width: clamp(40px, 6vw, 52px);
  height: clamp(40px, 6vw, 52px);
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.float-btn:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.float-btn svg { width: 46%; height: 46%; fill: currentColor; }

.footer-bottom {
  flex-basis: 100%;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--white); }
