/*
  Car MechaniX - Master Stylesheet
  Theme: Professional High-End Automotive Care
  Fonts: Outfit (Headings) & Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-primary: #0b0b0e;
  --bg-secondary: #131317;
  --bg-tertiary: #1b1b22;
  --accent-red: #e31b23;
  --accent-red-rgb: 227, 27, 35;
  --accent-orange: #ff5e00;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #ffffff;
  --border-color: #26262f;
  --border-focus: #e31b23;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7);
  --shadow-red-glow: 0 0 20px rgba(227, 27, 35, 0.35);

  /* Font Families */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max-width: 1240px;
  --header-height-large: 96px;
  --header-height-small: 70px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) var(--bg-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(227, 27, 35, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 94, 0, 0.02) 0%, transparent 40%);
  background-attachment: fixed;
  padding-top: var(--header-height-large);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  position: relative;
  margin-bottom: 1.5rem;
}

/* Title Underlines */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.5rem auto 0 auto;
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

strong {
  color: var(--text-light);
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Helper Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-red); }
.text-glow {
  text-shadow: 0 0 15px rgba(227, 27, 35, 0.4);
}

.gradient-text {
  background: linear-gradient(90deg, var(--text-light) 30%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #b30f15);
  color: var(--text-light);
  box-shadow: var(--shadow-red-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff2a31, var(--accent-red));
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(227, 27, 35, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-orange), #d44b00);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(255, 94, 0, 0.25);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #ff7e33, var(--accent-orange));
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 94, 0, 0.5);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-large);
  background: rgba(11, 11, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  height: var(--header-height-small);
  background: rgba(11, 11, 14, 0.95);
  border-bottom: 1px solid rgba(227, 27, 35, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Scroll driven animation setup for modern browsers */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }
  }
}

@keyframes shrink-header {
  to {
    height: var(--header-height-small);
    background: rgba(11, 11, 14, 0.95);
    border-bottom: 1px solid rgba(227, 27, 35, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(227, 27, 35, 0.45);
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
  box-shadow: 0 0 22px rgba(227, 27, 35, 0.8), 0 0 35px rgba(227, 27, 35, 0.35);
  transform: scale(1.05);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.turbo-rotor {
  transform-origin: 24px 24px;
  animation: logo-spin 12s linear infinite;
  transition: animation-duration 0.5s ease;
}

.logo:hover .turbo-rotor {
  animation: logo-spin 3s linear infinite;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo span {
  font-weight: 800;
}
.logo span.logo-alt {
  color: var(--accent-red);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.5rem;
}
.menu-toggle svg {
  width: 30px;
  height: 30px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height-large));
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11, 11, 14, 0.4) 0%, var(--bg-primary) 100%);
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) contrast(1.1);
  opacity: 0.85;
}

/* Subtle overlay grid */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(227, 27, 35, 0.1);
  border: 1px solid rgba(227, 27, 35, 0.3);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-red);
}

.hero-content p.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-image {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  transform: perspective(800px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-card-image {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) scale(1.02);
}

/* Tech Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(19, 19, 23, 0.9);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  bottom: -20px;
  left: -20px;
  animation-delay: 0s;
}

.floating-badge-2 {
  top: 10px;
  right: -20px;
  animation-delay: 2s;
}

.floating-badge-3 {
  bottom: 40px;
  right: -30px;
  animation-delay: 1s;
}

.fb-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-weight: bold;
}

.fb-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.fb-text p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Service Highlights Section */
.section {
  padding: 6.5rem 0;
}

.bg-dark-sec {
  background-color: var(--bg-secondary);
}

/* Brand Marquee */
.brand-marquee {
  background: #08080a;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-container:hover {
  animation-play-state: paused;
}

.marquee-slide {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}

.brand-name-item {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.55;
  white-space: nowrap;
  transition: var(--transition-smooth);
  cursor: default;
  display: inline-block;
}

.brand-name-item:hover {
  color: var(--text-light);
  opacity: 1;
  text-shadow: 0 0 16px rgba(227, 27, 35, 0.45);
  transform: scale(1.06);
}

.brand-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.65;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(227, 27, 35, 0.6);
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Focus Services (Engine & Suspension Specialization) */
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.specialty-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 27, 35, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-red-glow);
}

.specialty-image-wrapper {
  height: 260px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.specialty-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, var(--bg-secondary) 100%);
}

.specialty-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.specialty-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--accent-red);
  margin-bottom: 1.25rem;
}

.specialty-icon svg {
  width: 28px;
  height: 28px;
}

.specialty-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.specialty-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.specialty-features {
  list-style: none;
  margin-bottom: 2rem;
  margin-top: auto;
}

.specialty-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.specialty-features svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-red);
  flex-shrink: 0;
}

/* General Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 2.25rem 2rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-red);
  transition: var(--transition-smooth);
  border-radius: 4px 0 0 4px;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 27, 35, 0.2);
  box-shadow: var(--shadow-md);
}

.service-card-icon {
  width: 46px;
  height: 46px;
  color: var(--accent-orange);
  margin-bottom: 1.25rem;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-red);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Google Reviews Section */
.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  text-align: center;
}

.g-rating {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--text-light);
  line-height: 1;
}

.stars-wrapper {
  display: flex;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.stars-wrapper svg {
  width: 22px;
  height: 22px;
  fill: #ffb800;
}

.reviews-summary p {
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.review-card:hover {
  border-color: rgba(227, 27, 35, 0.25);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  background: #2b2b35;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--font-headings);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.reviewer-name h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.reviewer-name span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.google-logo svg {
  width: 24px;
  height: 24px;
}

.review-content {
  font-size: 0.92rem;
  line-height: 1.6;
  font-style: italic;
}

.review-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.review-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Split Forms layout (Estimate Form on home) */
.form-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.form-info-content h2 {
  margin-bottom: 1.5rem;
}

.form-info-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent-red);
  margin-top: 0.5rem;
}

.form-info-content p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-bullet {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.ib-icon {
  width: 44px;
  height: 44px;
  background: rgba(227, 27, 35, 0.1);
  border: 1px solid rgba(227, 27, 35, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}
.ib-icon svg {
  width: 20px;
  height: 20px;
}

.ib-desc h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.ib-desc p {
  font-size: 0.9rem;
  margin: 0;
}

.form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(227, 27, 35, 0.15);
  background: var(--bg-secondary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form success/error overlay styling inside wrapper */
.form-container {
  position: relative;
}

.submit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.submit-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 213, 115, 0.1);
  border: 2px solid #2ed573;
  color: #2ed573;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.overlay-icon svg {
  width: 32px;
  height: 32px;
}

.submit-overlay.error .overlay-icon {
  background: rgba(227, 27, 35, 0.1);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Call to Action Footer Section */
.cta-banner {
  background: linear-gradient(135deg, #1b0204 0%, #0d0a0b 100%);
  border-top: 1px solid rgba(227, 27, 35, 0.2);
  border-bottom: 1px solid rgba(227, 27, 35, 0.2);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}
.cta-flex-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Footer styling */
footer {
  background-color: #060608;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-info .logo {
  margin-bottom: 1.25rem;
}

.footer-info p {
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-icon:hover {
  background: var(--accent-red);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-glow);
}

.footer-heading {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--accent-red);
  margin-top: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-red);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact a {
  color: var(--text-muted);
}
.footer-contact a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
}
.footer-bottom-links a:hover {
  color: var(--accent-red);
}

/* Interior Pages Banner Header */
.page-header {
  background: linear-gradient(135deg, #131317 0%, #08080a 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(227, 27, 35, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.page-header-container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  list-style: none;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* About Us Interior Page Elements */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.stack-img {
  width: 85%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.stack-img-2 {
  position: absolute;
  width: 55%;
  bottom: -30px;
  left: -10px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.25rem 2rem;
  border-radius: 8px;
  text-align: center;
}

.value-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(227, 27, 35, 0.08);
  border: 1px solid rgba(227, 27, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin: 0 auto 1.5rem auto;
}
.value-icon svg {
  width: 24px;
  height: 24px;
}

/* Services Interior Page Grid */
.detail-services-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.detail-service-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.detail-service-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}
.detail-service-item:nth-child(even) .detail-service-info {
  order: 2;
}

.detail-service-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-service-info h2::after {
  content: '';
  display: block;
  width: 45px;
  height: 4px;
  background: var(--accent-orange);
  margin-top: 0.5rem;
}

.detail-service-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.detail-service-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.detail-service-features svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-orange);
}

.detail-service-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: 380px;
  background-size: cover;
  background-position: center;
}

/* Service Calculator Widget */
.calc-widget {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  max-width: 800px;
  margin: 4rem auto 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-widget-title {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.calc-result-box {
  background: var(--bg-primary);
  border: 1px solid rgba(227, 27, 35, 0.2);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--accent-red);
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(227, 27, 35, 0.15);
}

.calc-result-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Gallery page custom elements */
/* Interactive Before/After slider */
.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.slider-container-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto 5rem auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  user-select: none;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%; /* JS will control this */
  border-right: 2px solid var(--accent-red);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%; /* JS will control this */
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent-red);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 15px rgba(227, 27, 35, 0.8);
  border: 3px solid var(--text-light);
}

.ba-handle svg {
  width: 20px;
  height: 20px;
}

.ba-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

.ba-label-before {
  left: 1.5rem;
}

.ba-label-after {
  right: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 14, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-orange);
}

/* Contact Interior Page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.contact-info-panel h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-info-panel h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent-red);
  margin-top: 0.5rem;
}

.contact-details-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(227, 27, 35, 0.1);
  border: 1px solid rgba(227, 27, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}
.cd-icon svg {
  width: 20px;
  height: 20px;
}

.cd-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.cd-text p,
.cd-text a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cd-text a:hover {
  color: var(--accent-red);
}

.map-container {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  background: #181820;
}

.map-placeholder-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.map-placeholder-content svg {
  width: 40px;
  height: 40px;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
}

/* Legal Pages (Terms / Privacy) */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-light);
}

.legal-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Feedback Modal Dialog Styling */
dialog.feedback-modal {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-main);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  margin: auto;
}

dialog.feedback-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.modal-header h3 {
  margin: 0;
}
.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal-btn:hover {
  color: var(--accent-red);
}
.close-modal-btn svg {
  width: 24px;
  height: 24px;
}

/* Star Rating Radio Group */
.rating-group {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.rating-group input {
  display: none;
}

.rating-group label {
  cursor: pointer;
  color: #3b3b4a;
  transition: var(--transition-smooth);
}

.rating-group label svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.rating-group label:hover,
.rating-group label:hover ~ label,
.rating-group input:checked ~ label {
  color: #ffb800;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-container {
    max-width: 420px;
    margin: 0 auto;
  }
  .specialty-grid {
    grid-template-columns: 1fr;
  }
  .form-section-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail-service-item,
  .detail-service-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-service-item:nth-child(even) .detail-service-info {
    order: 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-small);
  }
  header {
    height: var(--header-height-small);
  }
  .menu-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: var(--header-height-small);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height-small));
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }
  nav.active {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    font-size: 1.25rem;
    display: block;
    width: 100%;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .nav-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* ba-slider auto-scales due to aspect-ratio */
  .legal-container {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    width: 100%;
  }
}

/* Premium Animations & Micro-interactions */

/* Wrench/gear spin on hover */
.specialty-card:hover .specialty-icon svg {
  animation: gear-spin 1.8s linear infinite;
}

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Diagonal glossy shimmer for buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.8s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

/* Pulsing warning/breakdown badge */
.badge-pulse {
  animation: badge-pulse-glow 1.5s infinite ease-in-out alternate;
}

@keyframes badge-pulse-glow {
  from {
    box-shadow: 0 0 5px rgba(227, 27, 35, 0.2), inset 0 0 2px rgba(227, 27, 35, 0.1);
    border-color: rgba(227, 27, 35, 0.3);
  }
  to {
    box-shadow: 0 0 15px rgba(227, 27, 35, 0.5), inset 0 0 5px rgba(227, 27, 35, 0.2);
    border-color: rgba(227, 27, 35, 0.7);
  }
}

/* Smooth zoom-in on card image on hover */
.specialty-card {
  overflow: hidden;
}

.specialty-card .specialty-image-wrapper {
  transition: transform 0.5s ease;
}

.specialty-card:hover .specialty-image-wrapper {
  transform: scale(1.05);
}

