/* =========================================================
   NOAH'S WAX N' WRENCH
   Modern Website Redesign
   ========================================================= */

:root {
  --bg: #080a0c;
  --bg-light: #101419;
  --card: #151a1f;
  --card-light: #1c2329;

  --accent: #66ccff;
  --accent-dark: #3399ff;

  --white: #ffffff;
  --text: #f2f4f5;
  --muted: #aeb6bd;

  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);

  --radius: 14px;
  --max-width: 1180px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;

  font-family:
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  background:
    radial-gradient(
      circle at top right,
      rgba(51, 153, 255, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 40%,
      rgba(102, 204, 255, 0.035),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 80px 0;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(8, 10, 12, 0.94);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-main {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 90px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;
}

.logo {
  width: 70px;
  height: 70px;

  object-fit: contain;
}

.header-text h1 {
  margin: 0;

  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;

  letter-spacing: -1px;
  font-weight: 800;

  color: var(--white);
}

.header-text p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 0.85rem;
}


/* =========================================================
   DESKTOP NAV
   ========================================================= */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.desktop-nav a {
  padding: 9px 14px;

  border-radius: 8px;

  color: var(--muted);
  text-decoration: none;

  font-size: 0.92rem;
  font-weight: 600;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--white);
  background: rgba(102, 204, 255, 0.08);
}

.desktop-nav .nav-quote {
  background: var(--accent);
  color: #071018;

  margin-left: 5px;
}

.desktop-nav .nav-quote:hover {
  background: var(--accent-dark);
  color: var(--white);
}


/* =========================================================
   MOBILE NAV
   ========================================================= */

.menu-toggle {
  display: none;

  padding: 8px;

  border: 0;
  background: transparent;

  color: var(--white);

  font-size: 1.8rem;

  cursor: pointer;
}

.mobile-nav {
  display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 650px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding-top: 105px;
  padding-bottom: 90px;
}

.eyebrow {
  margin-bottom: 15px;

  color: var(--accent);

  font-size: 0.8rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.hero h2 {
  max-width: 950px;

  margin: 0 auto 25px;

  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 1;

  letter-spacing: -2.5px;

  color: var(--white);
}

.hero h2 span {
  color: var(--accent);
}

.hero > p {
  max-width: 760px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-block;

  padding: 14px 24px;

  border-radius: 9px;

  text-decoration: none;

  font-weight: 800;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: #071018;
}

.primary-button:hover {
  background: var(--accent-dark);
  color: var(--white);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(51, 153, 255, 0.25);
}

.secondary-button {
  background: transparent;

  color: var(--white);

  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.06);

  transform: translateY(-2px);
}

.hero-features {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 25px;

  margin-top: 45px;

  color: var(--muted);

  font-size: 0.9rem;
}

.hero-features strong {
  color: var(--accent);

  margin-right: 5px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  text-align: center;

  margin-bottom: 45px;
}

.section-heading h2 {
  margin: 0 0 18px;

  color: var(--white);

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;

  letter-spacing: -1px;
}

.section-heading h2::after {
  content: "";

  display: block;

  width: 55px;
  height: 3px;

  margin: 15px auto 0;

  border-radius: 99px;

  background: var(--accent);
}

.section-heading p {
  max-width: 700px;

  margin: 0 auto;

  color: var(--muted);
}


/* =========================================================
   GALLERY
   ========================================================= */

.photo-gallery {
  padding-top: 45px;
}

.carousel {
  position: relative;

  max-width: 1000px;

  margin: 0 auto;
}

.carousel-image-wrapper {
  overflow: hidden;

  border-radius: var(--radius);

  border: 1px solid var(--border);

  background: var(--card);

  box-shadow: var(--shadow);
}

.carousel img {
  width: 100%;
  height: 560px;

  object-fit: cover;

  opacity: 1;

  transition: opacity 0.25s ease;
}

.carousel button {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 5;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.65);

  color: var(--white);

  font-size: 1.5rem;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel button:first-child {
  left: 18px;
}

.carousel button:last-child {
  right: 18px;
}

.carousel button:hover {
  background: var(--accent);

  color: #071018;

  transform: translateY(-50%) scale(1.05);
}

.carousel-dots {
  display: flex;

  justify-content: center;

  gap: 7px;

  margin-top: 18px;
}

.carousel-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #46515a;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent);

  transform: scale(1.3);
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
  padding-top: 90px;
}

.service-category {
  margin-top: 55px;
}

.category-title {
  margin: 0 0 20px;

  color: var(--accent);

  font-size: 1.1rem;

  text-transform: uppercase;

  letter-spacing: 2px;
}

.package {
  position: relative;

  padding: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01)
    ),
    var(--card);

  border: 1px solid var(--border);

  border-left: 3px solid var(--accent);

  border-radius: var(--radius);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.package:hover {
  transform: translateY(-3px);

  border-color: rgba(102, 204, 255, 0.35);

  box-shadow: var(--shadow);
}

.package h3 {
  margin: 0 0 8px;

  color: var(--white);

  font-size: 1.5rem;
}

.starting-price {
  margin: 0 0 20px;

  color: var(--muted);
}

.starting-price strong {
  color: var(--accent);

  font-size: 1.2rem;
}

.package-note {
  margin-bottom: 15px;

  color: var(--muted);

  font-size: 0.9rem;
}

.package ul {
  margin: 20px 0;

  padding-left: 20px;
}

.package li {
  margin-bottom: 8px;

  color: #d8dde1;

  line-height: 1.6;
}

.package-footer {
  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 0.92rem;
}

.package-footer strong {
  color: var(--white);
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.service-grid .package {
  border-left-width: 2px;
}

.package-badge {
  display: inline-block;

  margin-bottom: 12px;

  padding: 5px 9px;

  border-radius: 5px;

  background: rgba(102, 204, 255, 0.08);

  color: var(--accent);

  font-size: 0.7rem;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.addons-banner {
  max-width: 850px;

  margin: 35px auto 0;

  padding: 20px 25px;

  text-align: center;

  background: rgba(102, 204, 255, 0.06);

  border: 1px solid rgba(102, 204, 255, 0.15);

  border-radius: 12px;
}

.addons-banner strong {
  color: var(--accent);
}

.addons-banner p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 0.92rem;
}


/* =========================================================
   WHY MOBILE
   ========================================================= */

.why-mobile {
  padding-top: 35px;
  padding-bottom: 70px;
}

.why-card {
  max-width: 900px;

  margin: 0 auto;

  padding: 50px 35px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(102, 204, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );

  border: 1px solid rgba(102, 204, 255, 0.15);

  border-radius: 18px;
}

.why-card h2 {
  margin: 0 0 15px;

  color: var(--white);

  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.why-card p {
  max-width: 680px;

  margin: 0 auto 25px;

  color: var(--muted);
}


/* =========================================================
   QUOTE FORM
   ========================================================= */

.quote-form {
  padding-top: 70px;
  padding-bottom: 100px;
}

form {
  max-width: 820px;

  margin: 0 auto;

  padding: clamp(25px, 5vw, 45px);

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    ),
    var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;

  box-shadow: var(--shadow);
}

form > label {
  margin-top: 20px;

  color: #e4e8eb;

  font-size: 0.95rem;
  font-weight: 600;
}

form > label:first-child {
  margin-top: 0;
}

form input,
form select,
form textarea {
  width: 100%;

  margin-top: 7px;

  padding: 13px 15px;

  background: #0d1114;

  color: var(--white);

  border: 1px solid #303840;

  border-radius: 9px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: #69737c;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(102, 204, 255, 0.1);
}

form textarea {
  min-height: 130px;

  resize: vertical;
}

fieldset {
  margin: 25px 0 0;

  padding: 20px;

  border: 1px solid #303840;

  border-radius: 10px;

  background: rgba(0, 0, 0, 0.15);
}

fieldset legend {
  padding: 0 8px;

  color: var(--white);

  font-weight: 700;
}

.addons-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 5px 25px;
}

.addons-grid label {
  display: flex;

  align-items: center;

  gap: 9px;

  padding: 8px 0;

  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;

  cursor: pointer;
}

.addons-grid input[type="checkbox"] {
  appearance: none;

  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  margin: 0;

  padding: 0;

  background: #0b0e10;

  border: 1px solid #46515a;

  border-radius: 4px;

  cursor: pointer;
}

.addons-grid input[type="checkbox"]:checked {
  background: var(--accent);

  border-color: var(--accent);
}

.addons-grid input[type="checkbox"]:checked::after {
  content: "✓";

  display: flex;

  align-items: center;
  justify-content: center;

  height: 100%;

  color: #071018;

  font-size: 13px;
  font-weight: 900;
}

form button[type="submit"] {
  margin-top: 30px;

  padding: 15px 20px;

  background: var(--accent);

  color: #071018;

  border: none;

  border-radius: 9px;

  font-size: 1.05rem;

  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

form button[type="submit"]:hover {
  background: var(--accent-dark);

  color: var(--white);

  transform: translateY(-2px);

  box-shadow:
    0 8px 25px rgba(51, 153, 255, 0.25);
}

form button:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}

#form-messages {
  max-width: 820px;

  margin: 0 auto 20px;

  padding: 14px 18px;

  border-radius: 9px;

  background: var(--card);

  font-weight: 600;

  text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 40px 20px;

  text-align: center;

  background: #07090b;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 0.9rem;
}

footer img {
  width: 75px;
  height: 75px;

  margin: 0 auto 15px;

  object-fit: contain;
}

footer h3 {
  margin: 0 0 5px;

  color: var(--white);

  font-size: 1.1rem;
}

footer p {
  max-width: 650px;

  margin: 0 auto 12px;

  line-height: 1.6;
}

footer .copyright {
  margin-top: 20px;

  font-size: 0.8rem;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(102, 204, 255, 0.45);

  outline-offset: 2px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;

    padding: 8px 15px 15px;

    border-top: 1px solid var(--border);

    background: #101419;
  }

  header.menu-open .mobile-nav {
    display: flex;

    flex-direction: column;

    gap: 3px;
  }

  .mobile-nav a {
    padding: 12px 14px;

    border-radius: 7px;

    color: var(--text);

    text-decoration: none;

    font-weight: 600;
  }

  .mobile-nav a:hover {
    background: rgba(102, 204, 255, 0.08);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .container {
    width: min(calc(100% - 28px), var(--max-width));

    padding: 60px 0;
  }

  .header-main {
    width: calc(100% - 28px);

    min-height: 75px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .header-text h1 {
    font-size: 1.45rem;
  }

  .header-text p {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;

    padding-top: 75px;
    padding-bottom: 60px;
  }

  .hero h2 {
    font-size: 2.7rem;

    letter-spacing: -1.5px;
  }

  .hero > p {
    font-size: 1rem;
  }

  .hero-features {
    flex-direction: column;

    gap: 8px;
  }

  .carousel img {
    height: 380px;
  }

  .carousel button {
    width: 42px;
    height: 42px;
  }

  .carousel button:first-child {
    left: 10px;
  }

  .carousel button:last-child {
    right: 10px;
  }

  .package {
    padding: 23px 20px;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }

  form {
    padding: 25px 18px;

    border-radius: 14px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .container {
    width: calc(100% - 22px);
  }

  .header-main {
    width: calc(100% - 22px);
  }

  .brand {
    gap: 10px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .header-text h1 {
    font-size: 1.22rem;

    letter-spacing: -0.5px;
  }

  .header-text p {
    font-size: 0.65rem;
  }

  .hero h2 {
    font-size: 2.15rem;
  }

  .hero-buttons {
    width: 100%;

    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;

    text-align: center;
  }

  .carousel img {
    height: 280px;
  }

  .carousel button {
    width: 38px;
    height: 38px;

    font-size: 1.1rem;
  }

  .why-card {
    padding: 35px 20px;
  }

  .package h3 {
    font-size: 1.3rem;
  }

  form input,
  form select,
  form textarea {
    font-size: 16px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
