/* DJ City Taxi — layout and component styles. Load theme.css first. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  margin: 0;
}
h1 { font-size: 4rem; font-weight: 800; line-height: 1.3; }
h2 { font-size: 3.625rem; font-weight: 800; line-height: 1.3; }
h3 { font-size: 3rem; font-weight: 700; line-height: 1.4; }
h4 { font-size: 2.5rem; font-weight: 700; line-height: 1.4; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 800; }

:focus-visible { outline: 0.125rem solid #4d65ff; outline-offset: 0.125rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.padding-global { padding-left: var(--gutter); padding-right: var(--gutter); }
.container-large { width: 100%; max-width: var(--container-width); margin: 0 auto; }
.container-small { width: 100%; max-width: 56rem; margin: 0 auto; }
.section-pad { padding-top: var(--space-xhuge); padding-bottom: var(--space-xhuge); }
.text-center { text-align: center; }

/* ---------- Text styles ---------- */
.text-muted { opacity: 0.6; }
.text-medium { font-size: 1.125rem; }
.title-small { font-size: 1.5rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.03em; }
.heading-h5 { font-size: 2rem; font-weight: 700; line-height: 1.5; }
.heading-h6 { font-size: 1.5rem; font-weight: 600; line-height: 1.5; }
.caption { opacity: 0.7; font-weight: 500; line-height: 1.5; }
.text-link { transition: color 0.2s; }
.text-link:hover { color: var(--color-primary); }

/* ---------- Buttons ---------- */
.button,
.button-dark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75;
  cursor: pointer;
  transition: background-color 0.3s, transform var(--duration) var(--ease);
}
.button { background-color: var(--color-primary); padding: 0.75rem 1.5rem; }
.button:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); }
.button-dark { background-color: var(--color-text); padding: 1rem 2.5rem; }
.button-dark:hover { background-color: var(--color-dark-hover); transform: translateY(-2px); }

/* ---------- Header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-bg-steel);
  padding: 1rem var(--gutter);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}
.nav-logo img { width: 150px; height: auto; }
.nav-right { display: flex; align-items: center; }
.nav-divider { width: 1.5px; height: 1.75rem; background: var(--color-bg-steel); margin: 0 2rem 0 0.75rem; }
.nav-phone { display: flex; align-items: center; gap: 1rem; }
.phone-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  transition: background-color 0.2s;
}
.phone-icon:hover { background: var(--color-blue-hover); }
.phone-icon svg { width: 1.25rem; height: 1.25rem; }
.nav-phone-text { line-height: 1.5; }
.nav-spacer { height: 5.3rem; }

/* ---------- Hero ---------- */
.hero { padding-top: 5rem; padding-bottom: var(--space-xhuge); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: center;
}
.hero-content { padding-top: var(--space-medium); }
.hero-content h1 { margin-bottom: var(--space-large); }
.hero-hours { display: flex; align-items: center; gap: 1.5rem; margin-top: var(--space-small); }
.hero-hours svg { width: 2rem; height: 2rem; color: var(--color-bg-steel); flex: none; }
.hero-hours-text { line-height: 1.75; }
.hero-media { position: relative; }
.hero-image { width: 100%; height: 36rem; object-fit: cover; }
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  background: var(--color-white);
  background-clip: padding-box;
  border: 0.6rem solid rgba(225, 225, 225, 0.35);
  border-radius: 4rem;
}
.hero-badge--service { top: 7%; left: -3rem; padding: 1rem; }
.hero-badge--rating { right: -2rem; bottom: 2rem; padding: 1rem 1.25rem; gap: 1.5rem; }
.hero-badge-hours {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-right: 1rem;
  padding: 1rem 0.75rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
}
.hero-badge-hours .text-medium { line-height: 1.75; }
.hero-badge-rating-text { line-height: 1.5; }
.stars { display: flex; gap: 0.25rem; color: var(--color-star); }
.stars svg { height: 1.875rem; width: 1.875rem; }

/* Hero entrance (CSS only) */
.hero-content { animation: fadeUp 1s var(--ease-out) both; }
.hero-media { animation: fadeLeft 1s 0.15s var(--ease-out) both; }

/* ---------- Quote ---------- */
.quote { background: var(--color-bg-steel); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.quote-services { display: grid; gap: 2rem; max-width: 26rem; margin-top: 3rem; }
.quote-service { display: flex; align-items: flex-start; }
.quote-icon {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--color-white);
}
.quote-icon img { width: 2rem; height: 2rem; }
.quote-service-content { margin-left: 1rem; padding-top: 0.5rem; }
.quote-service-content .heading-h6 { margin-bottom: 1rem; font-size: 1.25rem; }
.quote-right h3 { margin-bottom: var(--space-medium); }
.quote-form { display: grid; gap: 0.25rem; }
.form-input {
  width: 100%;
  min-height: 4.5rem;
  padding: 1.5rem 2.5rem;
  border: 1.5px solid transparent;
  border-radius: 0.125rem;
  background: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--color-primary); }
.form-input::placeholder { color: #999; }
.quote-form .button { margin-top: var(--space-medium); justify-self: start; }
.honeypot { display: none; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
.process-intro { max-width: 32rem; margin: var(--space-small) 0 var(--space-medium); }
.process-steps { display: grid; gap: 1rem; }
.process-step { display: flex; align-items: stretch; }
.process-left { display: flex; flex-direction: column; align-items: center; margin-right: 1.5rem; }
.step-number {
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.6s var(--ease-out);
}
.step-number-shape {
  position: absolute;
  bottom: -1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}
.process-line {
  width: 1px;
  height: 100%;
  border-left: 0.125rem dashed var(--color-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s 0.3s var(--ease-out);
}
.process-step.is-visible .step-number { transform: scale(1); }
.process-step.is-visible .process-line { transform: scaleY(1); }
.process-right { max-width: 20rem; padding-top: 1rem; }
.process-right .heading-h5 { margin-bottom: 1rem; }

/* ---------- Services ---------- */
.services { background: var(--color-bg-alt); }
.services-head { max-width: 48rem; margin: 0 auto; }
.services-head .title-small { margin-bottom: 1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
  padding: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 16em;
  padding: 2rem 1rem;
  background: var(--color-white);
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.service-card img { width: 64px; height: 64px; }
.service-card h3 { font-size: 2.5rem; line-height: 1.4; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
  background: url("../images/taxi-cta-background.jpg") 50% 75% / cover no-repeat;
}
.cta-content {
  position: relative;
  width: 60%;
  padding: 8rem 5rem;
  background: var(--color-primary);
}
.cta-content h2 {
  margin-bottom: var(--space-large);
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.4;
}

/* ---------- Stats ---------- */
.stats { background: var(--color-bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-number {
  color: var(--color-navy);
  font-size: 3.625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--color-bg-alt); }
.testimonials h2 { max-width: 64rem; margin: 0 auto var(--space-huge); }
.slider { position: relative; margin-bottom: 5.3rem; }
.slider-mask { overflow: hidden; margin: 0 -1.5%; }
.slider-track { display: flex; transition: transform 0.65s ease; }
.slide {
  flex: 0 0 47%;
  margin: 0 1.5%;
  padding: 4.5rem;
  border-radius: 0.25rem;
  background: var(--color-white);
}
.slide-client { margin-bottom: 1.5rem; }
.slide-client .title-small { line-height: 1.5; }
.slider-arrow {
  position: absolute;
  right: 0;
  bottom: -5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.slider-arrow:hover { background: var(--color-text); color: var(--color-white); }
.slider-arrow svg { height: 1rem; width: auto; }
.slider-arrow--prev { right: 5rem; }
.slider-arrow--next svg { transform: rotate(180deg); }
.slider-dots { position: absolute; left: 0; bottom: -4.3rem; display: flex; gap: 8px; }
.slider-dot {
  width: 2rem;
  height: 0.25rem;
  padding: 0;
  border: 0;
  background: var(--color-dot);
  cursor: pointer;
}
.slider-dot.is-active { background: var(--color-dot-active); }

/* ---------- FAQ ---------- */
.faq { background: var(--color-bg-steel); }
.faq h2 { margin-bottom: var(--space-huge); }
.faq-item { margin-top: 1rem; padding: 2.5rem; background: var(--color-white); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  margin-left: 2rem;
  background: var(--color-primary);
  transition: background-color 0.3s;
}
.faq-question:hover .faq-icon { background: var(--color-primary-hover); }
.faq-icon-line { position: absolute; width: 1rem; height: 0.125rem; background: var(--color-white); }
.faq-icon-line.is-vertical { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-icon-line.is-vertical { transform: rotate(0deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 40rem;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--color-footer); color: var(--color-white); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 2rem; }
.footer-left { padding-right: 1rem; }
.footer-left h2 { margin-bottom: var(--space-xlarge); font-size: 2.5rem; line-height: 1.4; }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-social { color: var(--color-white); transition: color 0.3s; }
.footer-social:hover { color: var(--color-primary); }
.footer-social svg { height: 1.5rem; width: 1.5rem; }
.footer-right { display: grid; gap: 2rem; align-content: start; }
.footer-right .text-medium { margin-bottom: 1rem; }
.footer-bottom { background: var(--color-text); color: var(--color-white); }
.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.5rem 1rem;
  align-items: center;
  padding-top: var(--space-xlarge);
  padding-bottom: var(--space-xlarge);
}
.footer-logo img { height: 1.5rem; width: auto; }
.footer-links { justify-self: center; }
.footer-link { padding: 0 1rem; transition: color 0.3s; }
.footer-link:hover { color: var(--color-primary); }
.footer-copy a { text-decoration: underline; }

/* ---------- Tablet (≤ 991px) ---------- */
@media (max-width: 991px) {
  .hero-grid, .quote-grid, .process-grid { column-gap: 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slide { padding: 3rem; }
  .footer-top { column-gap: 3rem; }
  .footer-bottom-inner { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; margin-left: -1rem; }
  .nav-divider { display: none; }
  .nav-spacer { height: 5.1rem; }
}

/* ---------- Mobile landscape (≤ 767px) ---------- */
@media (max-width: 767px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
  .button, .button-dark { padding: 0.75rem 1.5rem; font-size: 1rem; }
  .title-small { font-size: 1.25rem; }
  .heading-h5 { font-size: 1.5rem; }
  .heading-h6 { font-size: 1.25rem; }
  .text-medium { font-size: 1rem; }
  .section-pad { padding-top: 5rem; padding-bottom: 5rem; }

  .nav { padding: 0.5rem 1.5rem; }
  .nav-logo img { width: 110px; }
  .nav-spacer { height: 4.05rem; }
  .nav-phone .caption { display: none; }
  .nav-phone { gap: 0.6rem; }

  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { height: auto; max-height: 32rem; }
  .hero-badge { display: none; }

  .quote-grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .quote-services { row-gap: 1.25rem; margin-top: 2rem; }
  .form-input { padding: 1.25rem 1.5rem; min-height: 4rem; }

  .process-grid { grid-template-columns: 1fr; }
  .step-number { width: 4rem; height: 4rem; font-size: 1.5rem; }
  .step-number-shape { width: 2rem; height: 2rem; bottom: -1rem; }
  .process-right { max-width: 24rem; }

  .services-grid { grid-template-columns: 1fr; padding: 20px 0; }
  .service-card { min-height: 12em; }
  .service-card h3 { font-size: 1.75rem; }

  .cta { padding: 0 1.25rem; }
  .cta-content { width: 70%; padding: 6rem 3rem; left: -2.5rem; }
  .cta-content h2 { font-size: 2rem; }

  .stat-number { font-size: 2.5rem; }

  .slider { margin-bottom: 7.2rem; }
  .slide { padding: 2rem; }
  .slider-arrow { bottom: -4.5rem; }
  .slider-dots { bottom: -3.5rem; }

  .footer-top { row-gap: 3rem; }
  .footer-left h2 { font-size: 2rem; }
}

/* ---------- Mobile portrait (≤ 479px) ---------- */
@media (max-width: 479px) {
  .process-left { margin-right: 1.25rem; }
  .cta { padding: 0; }
  .cta-content { width: 100%; left: 0; padding: 5rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .slider { margin-bottom: 4.5rem; }
  .slider-mask { margin: 0; }
  .slide { flex-basis: 100%; margin: 0; }
  .slider-dots { left: 0; right: 0; justify-content: center; top: -2.5rem; bottom: auto; }
  .slider-arrow { bottom: -5rem; }
  .faq-item { padding: 2rem; }
  .faq-icon { margin-left: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-right { row-gap: 1.25rem; }
  .nav-phone-text a { font-size: 0.9rem; }
}

/* ---------- Simple pages (thank-you, 404) ---------- */
.simple-page { min-height: 60vh; background: var(--color-bg-alt); }
.simple-page h1 { animation: fadeUp 0.8s var(--ease-out) both; }
.simple-page-text { margin: 1.5rem auto 2rem; max-width: 32rem; }
