/*
Theme Name: DetailX
Theme URI: https://example.com/detailx
Author: OpenAI
Author URI: https://openai.com
Description: A premium auto detailing WordPress theme built for high-converting service businesses.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detailx
Tags: custom-logo, custom-menu, one-column, two-columns, right-sidebar, featured-images, theme-options, translation-ready
*/

:root {
  --bg: #07090c;
  --bg-elevated: #0f1318;
  --bg-soft: #131922;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f7fb;
  --muted: #a8b3c7;
  --accent: #e1b84b;
  --accent-2: #f6d77a;
  --success: #2ecc71;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1240px;
  --space: clamp(1rem, 2vw, 1.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(225, 184, 75, 0.16), transparent 25%),
    radial-gradient(circle at 80% 15%, rgba(71, 119, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #06080b 0%, #0b1015 100%);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-shell {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-title {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(225, 184, 75, 0.25);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(225, 184, 75, 0.08);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.05;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

p {
  margin-top: 0;
  color: var(--muted);
}

.btn,
.button,
.wp-block-button__link,
.wp-element-button,
.form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  box-shadow: 0 15px 40px rgba(225, 184, 75, 0.18);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 12, 0.65);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.65rem;
}

.site-brand img {
  max-height: 44px;
  width: auto;
}

.site-brand span {
  color: var(--text);
}

.site-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(225, 184, 75, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(225, 184, 75, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.hero-copy p {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.metric {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 560px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0.08), rgba(6, 8, 11, 0.76));
}

.hero-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(8, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-card strong {
  font-size: 1.1rem;
}

.hero-card span {
  color: var(--muted);
}

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

.trust-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.surface-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
}

.surface-card h3 {
  margin-bottom: 0.65rem;
}

.surface-card p:last-child {
  margin-bottom: 0;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(225, 184, 75, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(225, 184, 75, 0.18);
  color: var(--accent-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 460px;
  background: rgba(255, 255, 255, 0.04);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
  background: rgba(46, 204, 113, 0.18);
  color: var(--success);
  font-weight: 700;
}

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

.comparison-wrap,
.addon-showcase {
  display: grid;
  gap: 1.25rem;
}

.comparison-header {
  display: grid;
  gap: 0.8rem;
  max-width: 780px;
}

.comparison-table {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr repeat(5, 0.55fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.comparison-row > div {
  color: var(--muted);
}

.comparison-row strong {
  display: block;
  color: var(--text);
}

.comparison-row span {
  color: var(--accent-2);
}

.comparison-row-head {
  border-top: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.comparison-row.is-highlighted {
  background: rgba(225, 184, 75, 0.07);
}

.comparison-row svg,
.comparison-row .check {
  color: var(--success);
}

.comparison-row svg {
  width: 18px;
  height: 18px;
}

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

.addon-card,
.addon-option {
  display: grid;
  gap: 0.8rem;
}

.addon-panel {
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.addon-panel-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.addon-option {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.addon-option.is-featured {
  border-color: rgba(225, 184, 75, 0.28);
  box-shadow: 0 0 0 1px rgba(225, 184, 75, 0.08);
}

.addon-option input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.addon-option strong,
.addon-option em,
.addon-option small {
  display: block;
}

.addon-option em {
  color: var(--accent-2);
  font-style: normal;
}

.addon-option small {
  color: var(--muted);
}

.addon-option strong {
  color: var(--text);
}

.booking-summary {
  justify-content: space-between;
  align-items: center;
}

.booking-summary strong {
  color: var(--accent-2);
}

.workflow-step {
  position: relative;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.workflow-step .number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(225, 184, 75, 0.16);
  color: var(--accent-2);
  font-weight: 800;
}

.pricing-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.pricing-card.is-featured {
  border-color: rgba(225, 184, 75, 0.28);
  box-shadow: 0 0 0 1px rgba(225, 184, 75, 0.08), 0 20px 55px rgba(0, 0, 0, 0.35);
}

.price {
  color: var(--accent-2);
  font-size: 3rem;
}

.price small {
  color: var(--muted);
  font-size: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(8, 11, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-item .answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

.faq-item.is-open .answer {
  display: block;
}

.booking-form {
  display: grid;
  gap: 1rem;
}

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

.booking-form input,
.booking-form select,
.booking-form textarea,
.comment-form input,
.comment-form textarea,
.search-form .search-field {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-sizing: border-box;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1.25rem;
}

.footer-note {
  color: var(--muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
}

.site-credit {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card {
  display: grid;
  gap: 1rem;
}

.post-card .thumb {
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alignwide {
  width: min(calc(100% - 2rem), 1400px);
}

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

.content-area {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.page-hero .container {
  display: grid;
  gap: 1rem;
}

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

.no-results {
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
}

.woocommerce div.product {
  display: grid;
  gap: 2rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .footer-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .service-grid,
  .gallery-grid,
  .pricing-grid,
  .testimonial-grid,
  .faq-grid,
  .workflow,
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 780px) {
  .site-nav {
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(10, 13, 18, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-metrics,
  .trust-bar,
  .card-grid,
  .service-grid,
  .gallery-grid,
  .pricing-grid,
  .testimonial-grid,
  .faq-grid,
  .workflow,
  .addon-showcase-grid,
  .addon-grid,
  .booking-form .grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .hero-panel img,
  .media-frame img {
    min-height: 360px;
  }
}
