@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, sans-serif;
  font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter/Inter-Regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body,
html {
  scroll-behavior: smooth;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  max-width: 100vw;
}

.hero-header {
  position: relative;

  width: 100vw;
  padding: 30px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  color: white;
  box-sizing: border-box;
}
#details {
  color: #b1b5be;
}
/* Background */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Brand */
.brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  z-index: 1;
}

/* Nav */
.navbar {
  z-index: 1;
}
.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
}
.nav-list li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 300;
}
.nav-list li a:hover {
  color: #b1b5be;
  transform: scale(1.5);
}
#btn:hover {
  background: #ccc;
}
/* Button */
.nav-button {
  z-index: 1;
  color: black;
  font-weight: 600;
  background: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}
.nav-button:hover {
  background: #ccc;
}

/* === Hamburger Button === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 28px;

  top: 24px;
  left: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  position: fixed;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hide hamburger when nav is open */
body.nav-open .hamburger {
  visibility: hidden;
}

/* === Overlay === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: opacity 0.3s ease;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === Mobile Nav === */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 80%;
  max-width: 320px;
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 30px;
  z-index: 9999;
  transition: left 0.35s ease-in-out;
}
.mobile-nav.active {
  left: 0;
}

/* === Header Inside Nav (brand + close button) === */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand */
.mobile-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* Close Button */
.close-btn {
  font-size: 2.2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: translateY(2px);
}

/* === Nav Links === */
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.mobile-nav-list li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mobile-nav-list li a:hover {
  color: #f5f5f5;
  transform: translateX(6px);
}
.mobile-nav-list li a:active {
  color: #f5f5f5;
  transform: translateX(6px);
}

/* === Call to Action === */
.mobile-quote {
  margin-top: auto;
  background: white;
  color: black;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  align-self: start;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.mobile-quote:hover {
  background-color: #ccc;
  transform: scale(1.03);
}

/* === Scroll Lock === */
body.no-scroll {
  overflow: hidden;
}
/* Floating navbar styles */
.navbar.floating {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5f5f5;
  padding: 10px 40px;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  z-index: 9999;
  color: black;
}

/* Make nav links black when floating */
.navbar.floating .nav-list li a {
  color: black;
  font-family: "Inter" sans-serif;
  font-weight: 300;
  font-size: 20px;
}

/* Hide Free Quote button when floating */
.navbar.floating .nav-button {
  display: none;
}

/* hero-content styling, add margin-top to push it down from navbar */
/* Hero content (below nav) */
.hero-content {
  grid-column: 1 / -1; /* full width */
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}
.choose-subheading {
  font-size: 28px;
}
.choose-heading {
  font-size: 36px;
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 40px;
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
}

#btn {
  padding: 12px 28px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 60px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  font-size: 16px;
}

.hero-content {
  text-align: center;
  margin: 250px 0px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
}
#btn {
  padding: 10px 20px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 60px;
}

.services {
  padding: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.tab-content-title {
  font-size: 27.65px;
}
.services h2,
p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
}
.services h2 {
  font-size: 39px;
}
.services p {
  font-size: 16px;
}
#subheading {
  font-size: 14px;
}
.process {
  background-color: #f5f5f5;
  margin-left: 2.5rem; /* approx mx-10 */
  margin-right: 2.5rem;
  padding-top: 3rem; /* py-12 */
  padding-bottom: 3rem;
}

.process h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
  /* Responsive font size with clamp */
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.process .max-w-5xl {
  max-width: 80rem; /* Tailwind's max-w-5xl ~ 80rem */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.process-box {
  flex: 1 1 0;
  min-width: 250px; /* Prevent shrinking too small */
  text-align: center;
  margin-bottom: 2rem;
}

.process-box > div:first-child {
  font-weight: 800;
  color: #2d3748; /* Tailwind's text-gray-800 */
  margin-bottom: 1rem;
  /* Responsive big number */
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.process-box h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: clamp(1.125rem, 3vw, 1.25rem); /* text-xl scale */
}

.process-box p {
  color: #4a5568; /* Tailwind's text-gray-700 */
  font-size: clamp(0.875rem, 2.5vw, 1rem); /* base text */
  margin: 0 auto;
  max-width: 280px; /* keep lines readable */
}
.services {
  padding-left: 1rem;
  padding-right: 1rem;
}

.services img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tab buttons should wrap or stack on smaller screens */
.services .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  padding: 1rem;
}
.Faq {
  margin-bottom: 150px;
  margin-top: 150px;
}
.hamburger {
  display: none;
}
.contact h2 {
  font-size: 36px;
}
#about h2 {
  font-size: 36px;
}
@media screen and (max-width: 768px) {
  .choose-subheading {
    font-size: 20px;
    text-align: center;
  }
  .choose-heading {
    font-size: 28px;
  }
  .choose-us p {
    margin: 0px 8px;
  }
  #about {
    text-align: center;
  }

  .hamburger.scrolled {
    background-color: white;
    width: 48px; /* bigger circle */
    height: 48px; /* bigger circle */
    border-radius: 50%; /* circle */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);

    /* Keep flex column layout and spacing */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 15px; /* create internal spacing inside the circle */
    box-sizing: border-box; /* so padding doesn't increase size */
  }

  /* Hamburger lines turn black on scroll */
  .hamburger.scrolled span {
    background-color: black;
  }
  .navbar,
  .nav-button,
  .brand {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    margin: 100px 0px;
  }
  .hero-header {
    min-height: 25svh;
  }
  .hero-content h1 {
    font-size: 25px;
    margin-bottom: 20px;
    margin-top: 70px;
  }

  .process .max-w-5xl {
    flex-direction: column;
    align-items: center;
  }

  .process-box {
    max-width: 100%;
  }

  .choose-us .grid {
    grid-template-columns: 1fr;
    margin-left: 2rem;
    margin-right: 2rem;
    gap: 1.5rem;
  }

  .choose-us .right-image img {
    max-width: 100%;
  }

  .choose-us .max-w-5xl {
    flex-direction: column;
    align-items: center;
  }

  .choose-us .max-w-5xl > div {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .services .tab-content-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .services .tab-content-flex img {
    max-width: 50%;
  }

  .services .tab-content-flex .text-content {
    flex: 1;
  }

  .services .bullet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    text-align: left;
  }
}
/* Small screen layout */
@media (max-width: 767px) {
  .services h2,
  .services h3,
  .services h4,
  .services p {
    text-align: center;
  }

  .services .bullet-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-header {
    min-height: 10svh; /* even smaller on small phones */
  }
  .hero-bg-image img {
    width: 480px;
    height: 679px;
  }
}
