/* !IMPORT FONTS */
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sawarabi+Gothic&display=swap");

/* !RESET/BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* !ROOT VARIABLES */
:root {
  --body-font-family: "Montserrat", "Open Sans", sans-serif;
  --body-font-color: #fff;
  --light-color: #fff;
  --dark-color: #0b0b0b; /* main background */
  --dark-color-lighter: #111; /* gallery/footer background */
  --darker-color: #000000; /* gallery/footer background */
  --muted: #bdb6ad;
  --accent-1: #c59b2e;
  --accent-2: #d4b86a;
  --accent-3: #ffcf40; /* gold/yellow accent */
  --white: #ffffff;
  --radius: 14px;
  --gap: 10px;
  --max-width: 1100px;
}

/* !BASE STYLING */
html {
  font-size: 62.5%; /* 10px */
}

body {
  font-size: 1.6rem;
  font-family: var(--body-font-family);
  font-weight: 400;
  color: var(--body-font-color);
  line-height: 1.6;
  text-align: center;
  scroll-behavior: smooth;
  background-color: var(--dark-color);
}

svg {
  vertical-align: middle;
}

a:active {
  color: var(--white);
}

h2 {
  font-weight: 250;
  font-size: 2.8rem;
  letter-spacing: 0.08rem;
  text-align: left;
}

strong {
  font-weight: 600;
}

.white-line {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.white-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 0.05rem;
  background-color: var(--white);
}

/* HEADER */
.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.7
  ); /* semi-transparent for sleek overlay look */
  backdrop-filter: blur(0.6rem);
  z-index: 1000;
}

.sticky-header .header-content {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between; /* logo left, links right */
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto; /* center content block horizontally */
  gap: 3rem;
  flex-wrap: nowrap;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 2rem; /* space between phone and email links */
  white-space: nowrap;
}

.logo {
  height: 7rem;
  width: auto;
  object-fit: contain;
  padding-top: 0.2rem;
}

.header-link {
  color: var(--accent-2);
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-size: 1.6rem;
  font-size: clamp(0.5rem, 3vw, 1.6rem);
  transition: color 0.3s ease;
}

.header-link:hover {
  color: var(--light-color);
}

.btn {
  display: inline-block;
  padding: 1rem 1.4rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  color: #08120b;
  box-shadow: 0 0.6rem 2rem rgba(198, 158, 56, 0.18);
}
.btn-outline-1 {
  color: var(--accent-2);
  border: 0.1rem solid var(--accent-2);
  background: transparent;
}
.btn-outline-2 {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
}

/* !HERO */
.hero {
  background: url("assets/hero.png") center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h2 {
  text-align: center;
  width: 100%;
  display: block;
  margin: 0 auto;
  margin-bottom: 2.5rem;
  font-size: 3rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.cursive {
  font-family: "Great Vibes", cursive;
  font-size: 5.2rem;
  color: var(--accent-3);
  margin-left: 6px;
}
section:not(.hero) {
  padding: 6rem 10%;
}
/* !ABOUT */
.about {
  background-color: var(--dark-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-content h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--accent-3);
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0.05rem;
  background-color: var(--accent-3);
  border-radius: 0.2rem;
}

.about-img-1 {
  max-width: 20vh;
  border-radius: 50%;
  box-shadow: 0 1rem 2rem rgba(198, 158, 56, 0.45);
  object-fit: cover;
  display: block;
  margin-bottom: 2.8rem;
}

.about-img-2 {
  width: clamp(31rem, 40vw, 45rem);
  border-radius: 15px;
  box-shadow: 0.5rem 0.5rem 0.5rem rgba(198, 158, 56, 0.25);
  object-fit: cover;
  display: none;
  margin-right: 3rem;
}

.about-content {
  text-align: center;
}

.about-content p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.about-content ul {
  color: var(--muted);
  list-style-type: none;
  
}

.about-content ul a {
  color: var(--accent-1);
}

/* !GALLERY */
.gallery {
  align-items: center;
  background: var(--darker-color);
  text-align: left;
}

.vehicle-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.slider-wrapper,
.slider,
.slides {
  width: 100%;
}

/* !SLIDER */
.slider-wrapper {
  position: relative;
  margin: 1.5em auto;
}

.slider {
  position: relative;
  overflow: hidden; /* clips slides outside container */
}

.slides {
  display: flex;
  justify-content: flex-start; /* keep slides aligned left */
  max-height: 70vh;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 70%; /* image takes 70% inside its slide */
  object-fit: cover; /* preserves proportions */
  margin-left: auto; /* centers image horizontally in its 70% */
  margin-right: auto;
  display: block;
  transform: translateX(
  calc((30 / 70) * 100%)
); /* caption overlay width divided by image width */
}

.slides img:hover {
  cursor: zoom-in;
}

.caption-overlay {
  position: absolute;
  top: 0;
  left: 0; /* keep overlay on the left (or switch to right if needed) */
  width: 30%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column; /* stack h3 + p vertically */
  justify-content: center;
  align-items: flex-end; /* aligns text to the right */
  padding: clamp(1rem, 3vw, 3rem);
  text-align: right;
  overflow: hidden;
  box-sizing: border-box;
}

/* Caption heading */
.caption-overlay h3 {
  color: var(--accent-3);
  font-size: clamp(1rem, 3.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 0 0.6rem rgba(245, 197, 24, 0.3);
  letter-spacing: 0.15rem;
  margin-bottom: 1rem;
  word-break: break-word;
  max-width: 100%;
}

/* Caption subtext */
.caption-overlay p {
  display: block;
  font-size: clamp(0.75rem, 2.5vw, 2rem);
  color: #fff;
  padding: 0.3rem;
  line-height: 1.3;
  opacity: 0.95;
  word-break: break-word;
  max-width: 100%;
}

.caption-overlay p svg {
  transform: translateY(-13%);
  width: clamp(0.75rem, 2.5vw, 2rem);
  height: clamp(0.75rem, 2.5vw, 2rem);
}

#rate {
  font-weight: 600;
  letter-spacing: 0.1rem;
}

/* Adjust navigation arrows */
.prev {
  display: none; /* keep prev arrow visible */
}

.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 10;
  right: 1rem;
}

.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots {
  text-align: center;
  margin-top: 1rem; /* spacing from slider */
}

.dot {
  display: inline-block;
  width: clamp(0.8rem, 1.2vw, 1.4rem); /* scales between 8px and 14px */
  height: clamp(0.8rem, 1.2vw, 1.4rem); /* keeps it square */
  margin: 0 clamp(0.3rem, 0.5vw, 0.6rem); /* horizontal spacing */
  background-color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.dot.active {
  background-color: var(--white);
  transform: scale(1.2); /* slightly bigger when active */
}

/* !SERVICES */
.services {
  text-align: left;
  background-color: var(--dark-color);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.card {
  background-color: var(--dark-color);
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  box-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  width: auto;
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.4rem;
}

/* !CONTACT */
.contact {
  background: var(--darker-color);
}

.yellow-line {
  text-align: center;
  color: var(--accent-2);
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.yellow-line::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0.05rem;
  background-color: var(--accent-2);
  border-radius: 0.2rem;
}

.contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: var(--body-font-color);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* !ICONS */
.contact-content svg,
.btn svg {
  width: 2rem;
  height: 2rem;
}

.contact-icon-2 {
  transform: translateY(-0.1rem);
}

/* !FOOTER */
footer {
  background: var(--dark-color-lighter);
  padding: 2rem;
  color: #777;
  font-size: 1.2rem;
}


@media (min-width: 480px) {
  .about-content p {
    margin: 1rem 10vw;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .side-text-aligned,
  .about-content p,
  .about-content ul {
    text-align: left;
  }
  .about {
    display: flex;
    flex-direction:row;
    justify-content: space-between; /* logo left, links right */
    align-items: center;
  }
  .about-content {
    text-align: left;
  }
  .about-img-1 {
    display: none;
  }
  .about-img-2 {
    display: block;
  }
  .about-content h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--white);
    font-weight: 250;
    font-size: 2.8rem;
    letter-spacing: 0.08rem;
  }

  .about-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 0.01rem;
    background-color: var(--white);
    transform: none; /* IMPORTANT: removes mobile centering */
  }
  .about-content p {
    margin: 1rem 0;
  }
}

/* !RESPONSIVE */
@media (max-width: 1024px) {
  html {
    font-size: 57%;
  }
  .hero-content {
    padding: 0 2rem;
  }
  .gallery,
  .about,
  .contact {
    padding: 4rem 5%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .hero {
    height: 70vh;
    background-position: center top;
  }
  h2::after {
    width: 50%;
    bottom: -0.6rem;
  }
  .slider {
    max-width: 100%;
    margin: 1.5rem auto;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 48%;
  }
  .hero {
    height: 60vh;
  }
  .white-line {
    margin-bottom: 1rem;
  }
  .hero-content h2 {
    margin-bottom: 1rem;
  }
  .gallery {
    text-align: left;
  }
}

@media (max-width: 390px) {
  html {
    font-size: 45%;
  }
  .hero {
    height: 55vh;
  }
}
