*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b1120;
  --bg-elevated: #020617;
  --card: #020617;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.15);
  --accent: #facc15;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.6);
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d283a 0, #020617 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.75));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: radial-gradient(circle at 30% 0, #facc15, #ea580c);
  color: #020617;
  box-shadow: 0 12px 35px rgba(234, 88, 12, 0.55);
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 600;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding-block: 0.1rem;
  color: #e5e7eb;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #fb923c);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #facc15, #ea580c);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.7);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 2.6vw + 1.5rem, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: radial-gradient(circle at 10% 0, #3b82f6, #1d4ed8);
  color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.8);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn.full-width {
  width: 100%;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 1.7rem;
  background-image: url("paint-job-5.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-badge {
  position: absolute;
  bottom: 12%;
  left: -5%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  max-width: 180px;
}

.badge-main {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #facc15;
}

.badge-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* GENERIC SECTIONS */

.section {
  padding: 3rem 0 2.5rem;
}

.section-header {
  text-align: left;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* SERVICES */

.services {
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #d1d5db;
  font-size: 0.85rem;
}

.service-card ul li + li {
  margin-top: 0.3rem;
}

/* GALLERY */

.gallery {
  background: radial-gradient(circle at top, #020617 0, #020617 50%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  font-size: 0.8rem;
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  color: #d1d5db;
}

/* ABOUT */

.about {
  background: radial-gradient(circle at top, #020617 0, #020617 55%);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 0.93rem;
}

.about-text p + p {
  margin-top: 0.7rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 0.88rem;
}

.about-list li + li {
  margin-top: 0.3rem;
}

.highlight-box {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  font-size: 0.88rem;
  color: #d1d5db;
}

.highlight-box + .highlight-box {
  margin-top: 1rem;
}

.highlight-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

/* TESTIMONIALS */

.testimonials {
  background: radial-gradient(circle at top, #020617 0, #020617 55%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  font-size: 0.88rem;
  color: #d1d5db;
}

.testimonial p {
  margin: 0;
}

.testimonial p + p {
  margin-top: 0.7rem;
}

.testimonial-name {
  color: var(--muted);
  font-size: 0.8rem;
}

/* CONTACT PREVIEW */

.contact-preview {
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-detail {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-detail a {
  font-weight: 500;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem 0 1.7rem;
  background: linear-gradient(to top, #020617, rgba(2, 6, 23, 0.9));
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* CONTACT PAGE */

.contact-page main {
  padding-top: 2.25rem;
}

.contact-hero {
  padding-bottom: 3.25rem;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-hero h1 {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
  font-size: 1.8rem;
}

.contact-hero p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font: inherit;
  font-size: 0.85rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.7);
  border-color: transparent;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-image {
    order: -1;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--nav-height);
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.25rem 1.15rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .main-nav a {
    width: 100%;
    padding-block: 0.3rem;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-photo {
    max-width: 320px;
  }

  .hero-badge {
    left: 3%;
    bottom: 9%;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.75rem, 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 1.2rem 1rem;
  }
}
