/* ==========================================================================
   Miller Brothers Auto Care - Exact 1:1 Stylesheet
   Precision-matched from Squarespace production deployment
   ========================================================================== */

@font-face {
  font-family: "halyard-micro";
  src: url("fonts/halyard-micro-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "halyard-micro";
  src: url("fonts/halyard-micro-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-navy: #00103E;
  --color-yellow: #EEFF05;
  --color-yellow-hover: #e0f202;
  --color-charcoal: #212020;
  --color-blue: #3866EE;
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  --font-heading: "halyard-micro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", monospace;
  
  --max-width: 1320px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 97px;
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-navy);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 4vw;
  padding-right: 4vw;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   Pill Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 300px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-pill-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.btn-pill-yellow:hover {
  background-color: var(--color-yellow-hover);
}

.btn-pill-dark {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

.btn-pill-dark:hover {
  background-color: #1a1a1a;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 97px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.3vw, 33.3px);
  font-weight: 700;
  color: var(--color-yellow);
  letter-spacing: -0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-yellow);
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  border-bottom-color: var(--color-yellow);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 1002;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--color-yellow);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
}

.mobile-nav-toggle.is-open .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 97px;
  left: 0;
  right: 0;
  background-color: var(--color-navy);
  border-bottom: 2px solid var(--color-yellow);
  padding: 24px 4vw 30px;
  flex-direction: column;
  gap: 16px;
  z-index: 1001;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.is-open {
  display: flex;
}

.mobile-menu-drawer .mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-yellow);
  padding: 8px 0;
  border-bottom: 1px solid rgba(238, 255, 5, 0.15);
  transition: padding-left 0.15s ease, color 0.15s ease;
}

.mobile-menu-drawer .mobile-nav-link:hover {
  padding-left: 6px;
  color: var(--color-white);
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.section-hero {
  background-color: var(--color-navy);
  padding-top: 50px;
  padding-bottom: 90px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 50.5px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--color-yellow);
  margin-bottom: 45px;
}

.hero-image-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Section 2: Intro Statement
   ========================================================================== */
.section-intro {
  background-color: var(--color-yellow);
  color: var(--color-charcoal);
  padding: 80px 0;
}

.intro-container {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 48px;
  align-items: center;
}

.intro-image-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--color-black);
  margin-bottom: 24px;
}

.intro-p {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.68;
  color: var(--color-black);
  margin-bottom: 34px;
}

/* ==========================================================================
   Section 3: Our Services
   ========================================================================== */
.section-services {
  background-color: var(--color-charcoal);
  padding: 85px 0 95px 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 50.5px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 45px;
}

.text-white {
  color: var(--color-white);
}

.text-black {
  color: var(--color-charcoal);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-box {
  background-color: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
}

.service-icon-wrap {
  height: 48px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.service-icon-wrap img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 12px;
}

.service-desc {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: #333333;
}

.services-cta {
  margin-top: 45px;
}

/* ==========================================================================
   Section 4: Our Team
   ========================================================================== */
.section-team {
  background-color: var(--color-white);
  padding: 85px 0 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #EFEFEF;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-black);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-member-role {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: #444444;
  text-transform: uppercase;
  min-height: 1.2rem;
}

/* ==========================================================================
   Section 5: What Our Clients Say (Sliding Track Carousel)
   ========================================================================== */
.section-testimonials {
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 95px 0 95px 0;
  text-align: center;
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 50.5px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 45px;
}

.testimonials-carousel-container {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonials-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: opacity 0.3s ease;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 26.5px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.05em;
  color: var(--color-white);
  text-align: center;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  color: var(--color-navy);
  border: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  stroke: var(--color-navy);
}

.carousel-btn:hover {
  background-color: var(--color-yellow-hover);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Section 6: Contact Us & Footer
   ========================================================================== */
.section-contact-footer {
  position: relative;
  background-color: #101d4a;
  background-image: url("images/isometric-cubes-bg.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 95px 0 75px 0;
  overflow: hidden;
}

.footer-bg-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.isometric-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 40px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 50.5px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.contact-text {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-white);
  margin-bottom: 35px;
}

.tel-link,
.map-link {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tel-link:hover,
.map-link:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.contact-designer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 8px;
}

.designer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.designed-by-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-white);
}

.ninja-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.ninja-logo:hover {
  opacity: 1;
}

.footer-utility-links {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-utility-links .footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-utility-links .footer-link:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.footer-link-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Lightbox Modal ("GET IN TOUCH")
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  background-color: var(--color-white);
  color: var(--color-charcoal);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.2rem;
  line-height: 1;
  color: #444444;
}

.lightbox-close:hover {
  color: var(--color-black);
}

.modal-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hidden-field {
  display: none !important;
}

.form-group-name {
  border: none;
  padding: 0;
  margin: 0;
}

.name-fields-row {
  display: flex;
  gap: 1.25rem;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.field-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.field-sublabel {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #555555;
  margin-bottom: 0.35rem;
}

.req {
  font-size: 0.78rem;
  color: #888888;
  font-weight: 400;
}

.sqs-input, .sqs-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #CCCCCC;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background-color: #FAFAFA;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sqs-input:focus, .sqs-textarea:focus {
  outline: none;
  border-color: var(--color-black);
  background-color: var(--color-white);
}

.sqs-textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-submit-wrap {
  margin-top: 0.5rem;
}

/* In-place Success */
.form-success-box {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-msg {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .contact-designer-col {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .name-fields-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .lightbox-dialog {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Sitemap Page Styles
   ========================================================================== */
.section-sitemap {
  padding: 60px 0 100px;
  background-color: var(--color-navy);
  color: var(--color-white);
  min-height: 70vh;
}

.sitemap-breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8892b0;
  margin-bottom: 30px;
}

.sitemap-breadcrumb a {
  color: var(--color-yellow);
}

.sitemap-breadcrumb a:hover {
  text-decoration: underline;
}

.sitemap-breadcrumb-sep {
  margin: 0 8px;
  color: #495670;
}

.sitemap-header {
  margin-bottom: 50px;
}

.sitemap-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-yellow);
  line-height: 1.1;
  margin-bottom: 18px;
}

.sitemap-desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  color: #ccd6f6;
  max-width: 780px;
  line-height: 1.6;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sitemap-card {
  background-color: #0b1a4a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sitemap-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-2px);
}

.sitemap-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-yellow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(238, 255, 5, 0.2);
  padding-bottom: 12px;
}

.sitemap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sitemap-list-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sitemap-item-link,
.sitemap-item-title-static {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sitemap-item-link:hover {
  color: var(--color-yellow);
  transform: translateX(4px);
}

.sitemap-item-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #8892b0;
  line-height: 1.4;
  padding-left: 18px;
}

.sitemap-bullet {
  color: var(--color-yellow);
  font-size: 10px;
}
