/* Targeted overrides; original Dimension layout and transitions remain in main.css. */
:root {
  --tint-accent: #00A4FC;
  --tint-primary: #ffffff;
  --tint-secondary: #b8bec5;
  --tint-background: #15191e;
  --tint-panel: #1b1f22;
  --tint-background-image: url("../../additional_images/glossy-black-camry-background.webp");
}
[hidden] {
  display: none !important;
}
body {
  background-color: var(--tint-background);
  color: var(--tint-primary);
}
h1, h2, h3, label, strong, input, select, textarea {
  color: var(--tint-primary);
}
a:hover {
  color: var(--tint-accent);
}
/* Hero contrast adjustments */
#bg:before {
  background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.4) 75%), url("../../images/overlay.png");
}
#header .content h1,
#header .content p,
#header nav a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
#header .content #hero-description {
  letter-spacing: 0.12rem;
  line-height: 1.8;
}
#header .content .hero-highlight {
  color: #000;
  padding: 1px 6px;

  background: linear-gradient(
    175deg,
    transparent 8%,
    var(--tint-accent) 15%,
    var(--tint-accent) 85%,
    transparent 92%
  );

  clip-path: polygon(
    0% 25%,
    3% 12%,
    97% 8%,
    100% 22%,
    98% 86%,
    3% 92%,
    0% 75%
  );

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: none;
  white-space: nowrap;
}
#header .content .hero-highlight-la {
  background: linear-gradient(
    185deg,
    transparent 8%,
    var(--tint-accent) 15%,
    var(--tint-accent) 85%,
    transparent 92%
  );
  clip-path: polygon(
    0% 22%,
    5% 8%,
    96% 14%,
    100% 29%,
    97% 92%,
    4% 84%,
    0% 70%
  );
}
#header nav ul {
  background-color: rgba(0, 0, 0, 0.14);
}
/* End hero contrast adjustments */
#bg:after {
  background-image: var(--tint-background-image);
}
@media screen and (max-width: 736px) {
  #bg:after {
    background-image: url("../../additional_images/mobile-detailing-garage-background.webp");
  }
}
#main article {
  background-color: var(--tint-panel);
}
#header .content .inner {
  max-width: 54rem;
}
#header h1 {
  font-size: clamp(1.35rem, 3.8vw, 2.25rem);
  overflow-wrap: anywhere;
}
#business-name {
  color: var(--tint-accent);
  font-weight: 600;
}
#header .logo {
  border: 0;
}
#business-logo {
  width: 95%;
  height: 95%;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0.9);
}
.service-item + .service-item, .package-item {
  border-top: solid 1px rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}
.service-item h3, .package-item h3 {
  color: var(--tint-accent);
}
#gallery-list figure {
  margin: 0 0 2rem;
}
#gallery-list .image {
  margin-bottom: 0.75rem;
}
figcaption, #form-status {
  color: var(--tint-secondary);
  font-size: 0.9rem;
}
#contact-details p {
  overflow-wrap: anywhere;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--tint-accent);
  box-shadow: 0 0 0 1px var(--tint-accent);
}
/* Match phone and vehicle dimensions to the other contact fields. */
#contact #vehicle,
#contact input[type="tel"] {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
/* Match the Gallery icon to the navigation text and hover color. */
#header nav .gallery-nav-icon {
  margin-left: 0.05rem;
  color: inherit;
  font-size: 0.9em;
  letter-spacing: 0;
}
/* Instagram showcase stays inside the existing Gallery panel. */
#instagram-gallery .ig-gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
#instagram-gallery .ig-gallery-icon {
  font-size: 2rem;
  color: var(--tint-accent);
}
#instagram-gallery .ig-gallery-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--tint-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
#instagram-gallery .ig-gallery-account {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  border-bottom: 0;
}
#main article#work {
  width: 45rem;
}
#instagram-gallery .ig-gallery-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}
#instagram-gallery .ig-gallery-post {
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
#instagram-gallery .ig-gallery-post-title {
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
}
#instagram-gallery .ig-gallery-viewport {
  --ig-crop-top: 55px; /* Increase to crop more from the top. */
  max-width: 320px;
  height: calc(440px - var(--ig-crop-top)); /* Adjust the first value to move the bottom edge. */
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border-radius: 4px;
}
#instagram-gallery .ig-gallery-embed {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 650px;
  margin: calc(0px - var(--ig-crop-top)) 0 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}
#instagram-gallery .ig-gallery-post-link,
#instagram-gallery .ig-gallery-note {
  font-size: 0.8rem;
  color: var(--tint-secondary);
}
#instagram-gallery .ig-gallery-footer {
  margin-top: 2rem;
}
#instagram-gallery .ig-gallery-note {
  margin: 1rem 0 0;
}
@media screen and (max-width: 540px) {
  #instagram-gallery .ig-gallery-posts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep contact preference choices within the existing half-width form field. */
#contact .contact-preference {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#contact .contact-preference legend {
  margin-bottom: 1rem;
  padding: 0;
  color: var(--tint-primary);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  line-height: 1.5;
  text-transform: uppercase;
}
#contact .contact-preference-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
#contact .contact-preference-options label {
  min-height: 44px;
  margin: 0;
  letter-spacing: 0.05rem;
}
/* Text-first detailing menu within Dimension's existing Services panel. */
#intro .detailing-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--tint-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#intro .detailing-intro {
  margin-bottom: 2rem;
}
#intro .detailing-service {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
#intro .detailing-service h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}
#intro .detailing-icon,
#intro .detailing-prices {
  color: var(--tint-accent);
}
#intro .detailing-prices {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
#intro .detailing-description {
  margin-bottom: 1.5rem;
  color: var(--tint-secondary);
}
#intro .detailing-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
#intro .detailing-group:only-child {
  grid-column: 1 / -1;
}
#intro .detailing-group h4 {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
#intro .detailing-features {
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
#intro .detailing-features li {
  padding-left: 0.15rem;
  margin-bottom: 0.5rem;
}
#intro .detailing-features li::marker {
  color: var(--tint-accent);
}
#intro .detailing-quote {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
#intro .detailing-note {
  color: var(--tint-secondary);
  font-size: 0.8rem;
}
@media screen and (max-width: 480px) {
  #intro .detailing-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
