/* =========================
   BASE / TYPOGRAPHY
========================= */
:root {
  --accent: #e67e22;
  --accent-dark: #d35400;
  --bg-soft: #ecf0f1;
  --text: #333;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0.2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 0 0 15px;
}

p {
  margin: 0 0 18px;
}

section {
  padding: 70px 40px;
}

/* =========================
   HERO
========================= */
.header {
  position: relative;
  aspect-ratio: 16 / 9;
  background: url("images/hero-banner.png") center / cover no-repeat;
  overflow: hidden;
}

/* NAV centered in hero on desktop */
.nav {
  position: absolute;
  left: 50%;
  top: 44%; /* tweak: 42–48% */
  transform: translate(-50%, -50%);
  z-index: 5;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav a {
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.nav a:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.cta-btn:focus-visible,
.nav a:focus-visible {
  outline: 3px solid rgba(230, 126, 34, 0.55);
  outline-offset: 3px;
}

/* CTA top-left */
.hero-content {
  position: absolute;
  top: 24px;
  left: 40px;
  z-index: 6;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

/* =========================
   ABOUT
========================= */
.about {
  position: relative;
  background: #1f2a36;
  padding-top: 110px;
}

/* divider */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

/* Full-width split */
.about-inner {
  width: 100%;
  padding: 0;
}

.about h2 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #1f1f1f;
}

.about-box {
  background: #ffffff;
  padding: 70px;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.about-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  bottom: 36px;
  width: 6px;
  background: var(--accent);
  border-radius: 6px;
}

.about p.about-intro {
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
  font-style: italic;
  line-height: 1.7;
  color: var(--accent);
  max-width: 1100px;
  margin: 0 auto 44px;
  animation: slow-drift 18s linear infinite;
}

@keyframes slow-drift {
  0% {
    transform: translateX(-3%);
  }
  50% {
    transform: translateX(3%);
  }
  100% {
    transform: translateX(-3%);
  }
}

.services-list {
  margin-top: 22px;
  padding-left: 20px;
  list-style: disc;
  column-count: 2;
  column-gap: 40px;
}

.services-list li {
  margin-bottom: 10px;
  font-weight: 500;
  break-inside: avoid;
}

/* ✅ FIX: video h2 overrides .about h2 */
.about h2.video-intro {
  max-width: 760px;
  margin: 36px auto 16px;
  text-align: center;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.video-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #222;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Right-side image */
.about-image {
  width: 100%;
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  display: block;
}

/* =========================
   PROJECTS / CAROUSEL
========================= */
.projects {
  background: #fff;
}

.carousel {
  overflow: hidden;
  margin-top: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 auto;
  width: 300px;
}

.carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.carousel-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* =========================
   CONTACT
========================= */
.contact {
  background-color: var(--bg-soft);
}

.contact-grid {
  display: flex;
  gap: 40px;
  background-color: #f1c40f;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.contact-grid,
.contact-grid p,
.contact-grid a,
.contact-grid h2 {
  color: #1f1f1f;
}

.contact-grid a {
  font-weight: 800;
  text-decoration: none;
}
.contact-grid a:hover {
  text-decoration: underline;
}

.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 22px;
  background-color: #25d366;
  color: #1f1f1f;
  font-weight: 900;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #1f1f1f;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  z-index: 50;
}
.map-wrap {
  margin-top: 24px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* =========================
   ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .about p.about-intro {
    animation: none;
  }
  .cta-btn,
  .nav a,
  .carousel-item img {
    transition: none;
  }
  .cta-btn:hover,
  .nav a:hover,
  .carousel-item img:hover {
    transform: none;
  }
}

/* =========================
   RESPONSIVE (single source of truth)
========================= */

/* Default: mobile CTA never shows on desktop */
.mobile-cta {
  display: none;
}

/* Tablet: stack About split */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .services-list {
    column-count: 1;
  }

  .about-image img {
    height: 360px;
  }
}

/* Mobile baseline */
@media (max-width: 768px) {
  section {
    padding: 55px 22px;
  }

  /* Intro text smaller on mobile */
  .about p.about-intro {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  /* ✅ CRITICAL: disable aspect-ratio on iOS to prevent overflow */
  .header {
    aspect-ratio: auto;
    height: 42vh;
    min-height: 320px;
    background-position: center top;
  }

  /* Keep hero content positioned, but hide the hero CTA (we use mobile-cta instead) */
  .hero-content {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 6;
  }

  .header .cta-btn {
    display: none;
  }

  /* Nav in the hero (mobile) */
  .nav {
    position: absolute;
    left: 50%;
    top: 60%; /* move away from logo; tweak 58–65% */
    transform: translate(-50%, -50%);
    z-index: 5;
    width: auto;
    margin: 0;
  }

  .nav ul {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav a {
    padding: 9px 10px;
    font-size: 0.9rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* Show the CTA BETWEEN hero + about (mobile only) */
  .mobile-cta {
    display: flex;
    justify-content: center; /* change to center if you prefer */
    padding: 12px;
    background: #ffffff; /* remove if you don’t want the white strip */
  }

  .mobile-cta .cta-btn {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .about-inner {
    padding: 0 22px;
  }

  .contact-grid {
    flex-direction: column;
    padding: 26px;
  }

  .carousel-item {
    width: 240px;
  }

  .carousel-item img {
    height: 180px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .header {
    height: 38vh;
    min-height: 280px;
  }

  .nav ul {
    gap: 8px;
  }

  .nav a {
    padding: 9px 10px;
    font-size: 0.9rem;
  }
}

/* iPhone-ish fine tune */
@media (max-width: 420px) {
  .nav {
    top: 62%; /* tiny bump if needed */
  }
}
@media (max-width: 768px) {
  .about p.about-intro {
    font-size: 1.05rem;
    line-height: 1.55;
  }
}

/* =========================
   OVERFLOW SAFETY NET
========================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}
