/* =========================================================
   AVENREACH – INFLUENCER MARKETING AGENCY WEBSITE STYLES
   ========================================================= */

/* ========== GLOBAL RESETS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ========== FONT SYSTEM ========== */
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background-color: #FAF6EF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== BRAND COLORS ========== */
:root {
  --primary: #1F8A61;
  --mint: #7DC9A5;
  --secondary: #FAF6EF;
  --text: #222;
  --light: #ffffff;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
  width: 100%;
  background: rgba(31, 138, 97, 0.95);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 85px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.2rem;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-small {
  height: 60px;
  transition: height 0.3s ease;
  filter: brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(324%)
          hue-rotate(24deg) brightness(99%) contrast(96%);
}

.nav-logo-text {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FAF6EF;
  margin-left: -10px;
  transition: font-size 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #FAF6EF;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--mint);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--mint);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--mint);
}

.nav-links a.active::after {
  width: 100%;
  height: 2px;
  background-color: var(--mint);
}

.contact-btn {
  background: var(--mint);
  color: var(--light) !important;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #5fbf97;
}

.hamburger {
  display: none;
  font-size: 2.1rem;
  cursor: pointer;
  color: #FAF6EF;
  transition: color 0.4s ease;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  height: auto;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-logo {
  width: 160px;
  margin-bottom: -65px;
  filter: brightness(0) saturate(100%) invert(26%) sepia(21%) saturate(1261%)
          hue-rotate(106deg) brightness(93%) contrast(89%);
}

.logo {
  font-size: 4.2rem;
  color: var(--primary);
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #444;
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-transform: uppercase;
}

.hero-cta {
  margin-top: 0.4rem;
}

.cta-btn {
  background: var(--mint);
  color: #fff;
  padding: 1rem 2.2rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* =========================================================
   WELLNESS REALMS CAROUSEL — CONTINUOUS + FAST SCROLL
   ========================================================= */
.carousel-section {
  width: 100%;
  overflow: hidden;
  text-align: center;
  margin: 3rem auto;
}

.carousel-section .carousel-title {
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2.2rem;
}

/* Carousel container */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Track — continuous left scroll */
.carousel-track {
  display: flex;
  gap: 1rem;
  animation: scrollLoop 45s linear infinite;
  will-change: transform;
}

/* Continuous loop across full width */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.carousel-item {
  position: relative;
  flex: 0 0 auto;
}

.carousel-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  filter: brightness(0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover zoom only on desktop */
@media (hover: hover) {
  .carousel-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
  }
}

/* Label overlay */
.carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 138, 97, 0.65);
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem;
  border-radius: 0 0 16px 16px;
  font-weight: 500;
}

/* Responsive sizes */
@media (max-width: 1200px) {
  .carousel-item img {
    width: 260px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  .carousel-item img {
    width: 220px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .carousel-item img {
    width: 180px;
    height: 120px;
  }

  .carousel-section .carousel-title {
    font-size: 1.8rem;
  }

  /* slightly slower on phones */
  .carousel-track {
    animation: scrollLoop 20s linear infinite;
  }
}



/* =========================================================
   RESPONSIVE OPTIMIZATION
   ========================================================= */
@media (max-width: 1200px) {
  .carousel-item img {
    width: 260px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  .carousel-item img {
    width: 220px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .carousel-item img {
    width: 180px;
    height: 120px;
  }

  .carousel-section .carousel-title {
    font-size: 1.8rem;
  }

  /* Slightly slower for smoother mobile scrolling */
  .carousel-track {
    animation: scrollLoop 55s linear infinite;
  }
}


/* =========================================================
   HERO VIDEO — FULL DESKTOP, SMALLER MOBILE, MINT LINES VISIBLE
   ========================================================= */
.hero-video {
  margin-top: 2rem;
  width: 100%;
  height: 100vh;              /* full screen on desktop */
  min-height: 700px;
  overflow: hidden;
  border-top: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);  /* mint line always visible */
  position: relative;
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* smaller hero on phones */
@media (max-width: 768px) {
  .hero-video {
    height: 55vh;
    min-height: 400px;
    border-top: 3px solid var(--mint);
    border-bottom: 3px solid var(--mint);
  }
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about {
  background: linear-gradient(to bottom, #FAF6EF, #F5FAF8);
  border-bottom: 4px solid var(--mint);
  padding: 60px 2rem 80px 2rem; /* 🔥 reduced top padding */
  margin-top: 0px; /* ✅ pulls section up to align with video border */
}


.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  text-align: right;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-subtitle {
  color: var(--mint);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.values {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0;
}

.values li {
  background: #fff;
  border: 2px solid var(--mint);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact {
  padding: 50px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1.05rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 550px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

button[type="submit"] {
  background: var(--mint);
  color: #fff;
  border: none;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

button[type="submit"]:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 2rem 1rem 2rem;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  margin-bottom: 2rem;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  height: 50px;
  margin-bottom: 0.8rem;
}

.footer-left p {
  color: #ddd;
  font-size: 0.95rem;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-right a:hover {
  color: var(--mint);
}

footer p {
  font-size: 0.9rem;
  color: #ccc;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 768px) {
  .hero-video {
    height: 50vh;
    margin-bottom: -3rem;
    border-top-width: 3px;
    border-bottom-width: 3px;
  }

  .logo {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
  }

  .values {
    justify-content: center;
  }

  .services {
    padding: 60px 1.5rem;
  }
}
/* =========================================================
   SERVICES SECTION (Fixed for layout consistency)
   ========================================================= */

.services {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  background: #FAF6EF;
  border-top: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);
}

.services h2 {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--mint);
}

.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.service-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* =========================================================
   ABOUT PAGE ENHANCEMENTS
   ========================================================= */
.about-hero {
  text-align: center;
  background: linear-gradient(to right, #FAF6EF, #F5FAF8);
  padding: 140px 2rem 100px;
}

.about-hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

/* =========================================================
   TEAM SECTION
   ========================================================= */
.team {
  text-align: center;
  background: #FAF6EF;
  padding: 100px 2rem;
  border-top: 4px solid var(--mint);
}

.team h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.team-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.team-member {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.team-member h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.team-member .role {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.team-member p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.team-member a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
}

.team-member a:hover {
  color: var(--primary);
}
/* =========================================================
   CTA SECTION WITH ORGANIC CURVES
   ========================================================= */
.cta {
  position: relative;
  background: linear-gradient(135deg, #1F8A61, #7DC9A5);
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  border-top: 4px solid var(--mint);
}

.curve-top,
.curve-bottom {
  line-height: 0;
  width: 100%;
  overflow: hidden;
}

.curve-top svg,
.curve-bottom svg {
  display: block;
  width: 100%;
  height: 100px;
}

.cta-content {
  padding: 100px 2rem;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: #fff;
}

.cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.2rem;
  color: #f3f3f3;
  line-height: 1.6;
}

.cta .cta-btn {
  background: var(--mint);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.cta .cta-btn:hover {
  background: #5fbf97;
  transform: translateY(-3px);
}

/* Keep footer separate and clean */
footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
}
/* =========================================================
   TEAM IMAGE + EMAIL FIXES (APPENDED WITHOUT REMOVALS)
   ========================================================= */

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps image perfectly square */
  object-fit: cover;   /* fills space without distortion */
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* keep email addresses on one line */
.team-member a {
  white-space: nowrap;
  word-break: keep-all;
  display: inline-block;
  font-size: 0.95rem;
}
/* =========================================================
   MINT DIVIDERS ABOVE "OUR STORY" AND "OUR PHILOSOPHY"
   ========================================================= */
.about:nth-of-type(2),
.about:nth-of-type(4) {
  border-top: 4px solid var(--mint);
  padding-top: 80px; /* keeps spacing nice under the divider */
}

/* =========================================================
   EXTRA SPACE ABOVE THE BOTTOM MINT LINE IN "OUR APPROACH"
   ========================================================= */
.about:nth-of-type(3) {
  padding-bottom: 150px; /* increase this number if you want more room */
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--mint); /* mint accent */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.03);
  border-color: var(--primary); /* deepens to green on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
/* =========================================================
   🔧 FINAL PATCH — HERO VIDEO + NAVBAR BEHAVIOR REFINED
   ========================================================= */

/* ----- HERO VIDEO: full height desktop, scales correctly on all phones ----- */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh; /* desktop full screen */
  min-height: 700px;
  overflow: hidden;
  border-top: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);
  background: #000;
  z-index: 2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile: scale video height properly */
@media (max-width: 768px) {
  .hero-video {
    height: 100svh;     /* safe viewport height */
    min-height: 100vh;  /* fallback for older browsers */
    border-top: 3px solid var(--mint);
    border-bottom: 3px solid var(--mint);
  }

  .hero-video video {
    object-fit: cover;  /* fills the screen */
    object-position: center;
  }
}

/* ----- Ensure next section doesn't overlap the bottom mint line ----- */
.about {
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

/* ----- RESPONSIVE NAVBAR + HAMBURGER FIX ----- */
@media (max-width: 900px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: rgba(31, 138, 97, 0.97);
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 1.5rem 1rem;
    transform: translateY(-150%); /* hides menu above navbar */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.3s ease;
    z-index: 999; /* keeps under hamburger but above content */
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
  }

  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .hamburger span::before {
    top: -8px;
  }

  .hamburger span::after {
    top: 8px;
  }

  .hamburger.open span {
    background: transparent;
  }

  .hamburger.open span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hamburger.open span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* Prevent horizontal scrolling */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================================================
   🎥 FINAL HERO VIDEO FIX — FULL ON DESKTOP, SMALLER ON MOBILE
   ========================================================= */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh; /* full screen desktop */
  min-height: 700px;
  overflow: hidden;
  border-top: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);
  background: #000;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills screen by default */
  object-position: center;
  display: block;
}

/* make it smaller on tablets and phones */
@media (max-width: 1024px) {
  .hero-video {
    height: 70vh; /* medium devices */
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-video {
    height: 55vh; /* smaller on mobile */
    min-height: 350px;
    border-top: 3px solid var(--mint);
    border-bottom: 3px solid var(--mint);
  }

  .hero-video video {
    object-fit: cover; /* keeps cinematic look */
    object-position: center;
  }
}

/* =========================================================
   🎥 HYBRID HERO VIDEO — COVER ON DESKTOP, CONTAIN ON MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .hero-video {
    height: auto; /* let it size naturally */
    border-top: 3px solid var(--mint);
    border-bottom: 3px solid var(--mint);
    background: #000;
    overflow: hidden;
  }

  .hero-video video {
    width: 100%;
    height: auto;
    max-height: 65vh;    /* keeps video visible but not huge */
    object-fit: contain; /* show entire video */
    object-position: center;
    background: #000;
    display: block;
  }
}
/* =========================================================
   🩹 Fix: Remove black gap below hero video on mobile
   ========================================================= */
@media (max-width: 768px) {
  .hero-video {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* removes extra black space */
  }

  .hero-video video {
    display: block;
    margin-bottom: -2px; /* pulls the bottom edge flush with mint line */
  }
}
/* =========================================================
   ⚡ FAST CAROUSEL SPEED ON MOBILE
   ========================================================= */

/* Default speed for desktop */
.carousel-track {
  animation: scrollLoop 45s linear infinite;
}

/* Faster on phones */
@media (max-width: 768px) {
  .carousel-track {
    animation: scrollLoop 20s linear infinite; /* 🔥 faster on mobile */
  }
}
/* =========================================================
   🩹 Fix for Mobile Carousel Not Scrolling All the Way
   ========================================================= */
.carousel-track {
  animation: scrollLoop var(--carousel-duration, 45s) linear infinite;
  will-change: transform;
}

/* Use JS-calculated exact distance instead of -100% */
@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--carousel-distance, 100%))); }
}

/* Make sure it scrolls faster on small screens */
@media (max-width: 768px) {
  .carousel-track {
    animation-duration: 20s !important; /* faster mobile scroll */
  }
}

/* HOMEPAGE CONTACT BUTTONS */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.cta-btn.secondary {
  background: var(--primary);
}

.cta-btn.secondary:hover {
  background: #166b4d;
}

.cta-btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--mint);
}

.cta-btn.outline:hover {
  background: var(--mint);
  color: #fff;
}
.contact-form h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-form p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
}
.form-help {
  font-size: 0.9rem;
  color: #666;
  margin: 0.2rem 0 0.6rem;
}
.contact-form label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: block;
  color: #333;
}
.contact-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
  margin-right: 6px;
}
.contact-form button {
  background: #009dff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}
.contact-form button:hover {
  background: #007acc;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.98rem;
  color: #333;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
  cursor: pointer;
}

/* =========================================================
   📱 MOBILE OPTIMIZATION FOR LARGE TABS
   ========================================================= */
@media (max-width: 900px) {
  .contact-tabs {
    flex-direction: column; /* ensure stacking */
    gap: 0.8rem;
  }

  .tab-btn {
    font-size: 1.05rem;      /* slightly smaller text */
    padding: 1rem 1.2rem;    /* reduced padding for mobile */
    border-radius: 12px;
  }
}

@media (max-width: 500px) {
  .tab-btn {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
}

/* =========================================================
   🩹 FIX — Ensure Services Section Shows Fully on Mobile
   ========================================================= */
@media (max-width: 900px) {
  .services {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 80px 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  body {
    overflow-y: auto !important;
  }
}

/* Optional: Ensure hero/video sections above it don’t overlap */
@media (max-width: 900px) {
  .hero-video,
  .about,
  .team {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
}
