/* 
 * Condensed CSS for Car Mechanic Workshop
 * Organized by: Variables, Base, Components, Layout, Responsive
 */

/* ===== VARIABLES ===== */
:root {
  /* Light Theme Variables */
  --primary-color: #b80f0a;
  --secondary-color: #e83e8c;
  --background-color: #ffffff;
  --text-color: #222222;
  --card-bg: #faf7f5;
  --card-text: #232323;
  --card-shadow: 0 4px 24px 0 rgba(0,0,0,0.09);
  --card-border: 1.5px solid #e5e5e5;
  --section-bg: #f7f4f1;
  --spacing: 0.7rem;
  --surface-color: rgba(0,0,0,0.01);
  --input-bg: #fff;
  --input-border: #ccc;
  --form-bg: #fafbfc;
  --info-bg: #fff;
  --border-color: #c2c2c2;
  --accent: var(--primary-color);
  --button-bg: var(--primary-color);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --background-color: #1e1e1e;
  --text-color: #f3f3f3;
  --card-bg: #292929;
  --card-text: #f3f3f3;
  --card-shadow: 0 4px 24px 0 rgba(0,0,0,0.32);
  --card-border: 1.5px solid #353535;
  --section-bg: #18191a;
  --surface-color: #232323;
  --input-bg: #18191a;
  --input-border: #444;
  --form-bg: #232323;
  --info-bg: #18191a;
  --border-color: #444;
}

/* ===== BASE ELEMENTS ===== */
html, body {
  margin: 0;
  background: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  transition: background 0.18s, color 0.18s;
}

.container, .section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
  display: block;
  background: transparent;
}

.section-content {
  padding-bottom: 2rem;
}

section {
  padding: 4.5rem 0 4rem 0;
  background: var(--background-color);
  transition: background 0.18s;
}

section.about {
  background: linear-gradient(120deg, rgba(24,24,24,0.55) 60%, rgba(24,24,24,0.85) 100%), url('images/s8d3.png') center/cover no-repeat;
  background-blend-mode: overlay;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

section.testimonials {
  background: linear-gradient(120deg, rgba(24,24,24,0.55) 60%, rgba(24,24,24,0.85) 100%), url('images/m3e36.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--background-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-bottom: 2px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] header {
  border-bottom: 1.5px solid #232323;
  box-shadow: none;
}


header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

header .logo,
nav,
.controls {
  display: flex;
  align-items: center;
  height: 100%;
}

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

.controls {
  display: flex;
  align-items: center;
  gap: var(--spacing);
  height: 64px;
}

.theme-toggle button#theme-toggle-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #b80f0a);
  transition: color 0.18s;
}
[data-theme="dark"] .theme-toggle button#theme-toggle-icon {
  color: #ffd600;
}
.theme-toggle button#theme-toggle-icon:focus {
  outline: 2px solid var(--accent, #b80f0a);
  outline-offset: 2px;
}
.controls > *, .language-selector button, .theme-toggle {
  display: flex;
  align-items: center;
  height: 40px;
  min-width: 48px;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.language-selector button {
  height: 40px;
  min-width: 90px;
  box-sizing: border-box;
  padding: 0;
  font-size: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.language-selector {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
}
.language-selector, .theme-toggle {
  display: flex;
  align-items: center;
}


header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 64px;
}
.logo span, .logo .phone-number {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  padding: 0;
  margin: 0;
}
header .logo img {
  height: 40px;
  margin-right: var(--spacing);
}

.site-logo {
  height: 40px;
  width: auto;
  margin-right: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
  background: #fff;
  border: 1.5px solid #e5e5e5;
}

.phone-number {
  font-weight: bold;
  color: #b80f0a;
  margin-left: 1rem;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  background: #fff1f1;
  border-radius: 8px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0.4em;
  line-height: 1;
  box-shadow: 0 2px 8px 0 rgba(184,15,10,0.06);
}

[data-theme="dark"] .phone-number {
  background: #2b1212;
  color: #ff7f7f !important;
  border: 1.2px solid #b80f0a55;
  box-shadow: none;
}

/* Section Title Styles */
.section-title {
  text-align: center;
  margin-bottom: 2.2rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: color 0.18s, text-shadow 0.18s;
}

.contact .section-title {
  margin-bottom: 2.2rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-color);
}

/* Responsive adjustments for section titles */
@media (max-width: 700px) {
  .section-title {
    font-size: 1.7rem;
    margin-bottom: 1.3rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

/* Dark theme overrides for section titles */
[data-theme="dark"] .section-title {
  color: var(--text-color);
  text-shadow: 0 2px 12px #000, 0 1px 0 #232323;
}

/* ===== NAVIGATION ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing);
  padding: 0;
  margin: 0;
  border-bottom: 1.5px solid var(--border-color, #c2c2c2);
  background: var(--surface-color, rgba(0,0,0,0.01));
  border-radius: 0 0 8px 8px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

nav a:hover {
  color: var(--accent);
}

[data-theme="dark"] nav a {
  color: #fafafa;
}

[data-theme="dark"] nav a:hover {
  color: #ffb3b3;
}

/* ===== CONTROLS ===== */
.controls {
  display: flex;
  align-items: center;
  gap: var(--spacing);
  margin: 0;
}

.language-selector {
  position: relative;
  margin-left: 1.2rem;
}

.language-selector button {
  background: #f3f3f3;
  color: #222;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3em 1em;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border 0.14s;
  outline: none;
  min-width: 0;
}

.language-selector button:hover {
  background: #e5e5e5;
  color: #b80f0a;
  border: 1px solid #b80f0a;
}

[data-theme="dark"] .language-selector button {
  background: #232323;
  color: #fff;
  border: 1px solid #b80f0a55;
}

.language-selector ul {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  border-radius: 8px;
  border: 1.5px solid #e5e5e5;
  background: var(--background-color);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.language-selector li {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.language-selector li:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* Theme toggle consolidated */
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-checkbox {
  display: none;
}

.theme-label {
  width: 40px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.2s;
  margin: 0;
  padding: 0;
}

.theme-label span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.11);
  margin: 0;
  padding: 0;
}

.theme-checkbox:checked + .theme-label {
  background: #b80f0a;
}
.theme-checkbox:checked + .theme-label span {
  transform: translateX(16px);
  background: #fff1f1;
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  padding: 2rem 0 0 0;
  position: relative;
  background: linear-gradient(120deg, rgba(24,24,24,0.55) 60%, rgba(24,24,24,0.85) 100%), url('images/m3e36.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0 1rem;
}

.hero .content {
  flex: 1 1 350px;
  min-width: 260px;
  color: #232323;
  text-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

.hero .content *, .hero .content h1, .hero .content p {
  color: #fff;
  text-shadow: 0 4px 24px #000, 0 1px 2px #000;
  font-weight: 700;
}
.hero .content h1 {
  font-size: 2.4rem;
}
.hero .content p {
  font-size: 1.25rem;
  font-weight: 500;
}

[data-theme="dark"] .hero .content, [data-theme="dark"] .hero .content *, [data-theme="dark"] .hero .content h1, [data-theme="dark"] .hero .content p {
  color: #fff;
  text-shadow: 0 2px 12px #000, 0 1px 0 #232323;
}

.hero .image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.32);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  z-index: 1;
  pointer-events: none;
}

.hero-inner, .hero .content, .hero .image {
  position: relative;
  z-index: 2;
}

/* ===== SERVICES CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 0 3.5rem; /* Add space for nav buttons */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Only apply flex to carousel, not global! */
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.carousel-item {
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--card-border, #e5e5e5);
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(30,30,30,0.06);
  color: var(--card-text, #232323);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  width: 320px;
  padding: 2.2rem 1.7rem 1.5rem 1.7rem;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s;
  /* Only for carousel, never global! */
}
.carousel-item img.service-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent, #b80f0a);
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(184,15,10,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.carousel-item h4 {
  color: var(--accent, #b80f0a);
  font-size: 1.18rem;
  margin-top: 6px;
  margin-bottom: 10px;
  font-weight: 700;
}
.carousel-item p {
  color: var(--card-text, #232323);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -2.5rem;
  right: auto;
  background: #b80f0a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(184,15,10,0.18);
  cursor: pointer;
  opacity: 0.97;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
  outline: none;
  /* Only for carousel navigation */
}
.carousel-btn.next {
  left: auto;
  right: -2.5rem;
}
.carousel-btn.prev {
  left: -2.5rem;
  right: auto;
}
@media (max-width: 700px) {
  .carousel {
    padding: 0 2.5rem;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    left: -1.5rem;
  }
  .carousel-btn.next {
    right: -1.5rem;
    left: auto;
  }
  .carousel-btn.prev {
    left: -1.5rem;
    right: auto;
  }
}

.carousel-btn:focus {
  outline: 3px solid #b80f0a;
  outline-offset: 2px;
}
.carousel-btn:hover {
  background: #e83e8c;
  color: #fff;
  opacity: 1;
  box-shadow: 0 6px 20px 0 rgba(184,15,10,0.23);
}
@media (max-width: 700px) {
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-btn:hover { opacity: 1; background: var(--accent, #b80f0a); color: #fff; }
.active {
  background: #b80f0a;
  border-color: #e83e8c;
  opacity: 1;
}
[data-theme="dark"] .carousel-indicators {
  background: #444;
  border: 1.5px solid #e83e8c;
}
[data-theme="dark"] .active {
  background: #e83e8c;
  border-color: #b80f0a;
  opacity: 1;
}
.active {
  background: var(--accent, #b80f0a);
  opacity: 1;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  min-height: 24px;
}
.carousel-indicators > * {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #bbb;
  border: 1.5px solid #b80f0a;
  opacity: 0.85;
  transition: background 0.18s, opacity 0.18s, border 0.18s;
  cursor: pointer;
}

@media (min-width: 1400px) {
  .carousel-item {
    min-width: 260px;
    max-width: 340px;
    width: calc((100% - 4 * 24px) / 5);
  }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .carousel-item {
    min-width: 260px;
    max-width: 340px;
    width: calc((100% - 2 * 24px) / 3);
  }
}
@media (max-width: 899px) {
  .carousel-item {
    min-width: 90vw;
    max-width: 98vw;
    width: 90vw;
  }
}
[data-theme="dark"] .carousel-item {
  background: #232323;
  border: 1.5px solid #353535;
  color: #f3f3f3;
}
[data-theme="dark"] .carousel-btn {
  background: #232323;
  color: #fff;
}
[data-theme="dark"]  {
  background: #555;
}
[data-theme="dark"] .active {
  background: var(--accent, #b80f0a);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  gap: 24px;
  will-change: transform;
  width: 100%;
}

/* ===== CARDS (TESTIMONIALS) ===== */
.testimonials-row {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin-bottom: 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #eee;
  scroll-snap-type: x mandatory;
}

.testimonials-row > * {
  scroll-snap-align: center;
}

.services-row > :first-child, .testimonials-row > :first-child {
  margin-left: 0;
}
.services-row > :last-child, .testimonials-row > :last-child {
  margin-right: 0;
}

@media (max-width: 700px) {
  .services-row, .testimonials-row {
    gap: 1.1rem;
  }
  .service-card, .testimonial-card {
    min-width: 90vw;
    max-width: 95vw;
  }
}
@media (min-width: 1400px) {
  .service-card, .testimonial-card {
    flex: 0 0 calc((100% - 4 * 2.2rem) / 5); /* show 5 cards on very wide screens */
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .services-row, .testimonials-row {
    gap: 1.6rem;
  }
  .service-card, .testimonial-card {
    min-width: 320px;
    max-width: 340px;
  }
}
@media (min-width: 1101px) {
  .services-row, .testimonials-row {
    gap: 2.2rem;
  }
  .service-card, .testimonial-card {
    min-width: 280px;
    max-width: 340px;
  }
}
.services-row, .testimonials-row {
  justify-content: center;
}
.carousel-arrow, .carousel-scrollbar {
  z-index: 2;
}
.carousel-scrollbar {
  margin-top: 0.5rem;
  height: 7px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.carousel-scrollbar-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}

.services-row::-webkit-scrollbar, .testimonials-row::-webkit-scrollbar {
  height: 10px;
}

.services-row::-webkit-scrollbar-thumb, .testimonials-row::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

/* Consolidated card styling */
.testimonial-card {
  max-width: 340px;
  min-width: 260px;
  margin: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: none;
  color: var(--card-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  min-height: 280px;
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  transition: transform 0.18s, background 0.18s, color 0.18s;
  scroll-snap-align: start;
}
[data-theme="dark"] .testimonial-card {
  background: #232323;
  border: 1.5px solid #353535;
  color: #f3f3f3;
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.025);
  background: #fffbe9;
}
[data-theme="dark"] .testimonial-card:hover {
  background: #292929;
}

.service-card h4 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 8px;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-bottom: 2.5px solid var(--accent);
  display: inline-block;
  padding-bottom: 2px;
}






/* ===== CONTACT LAYOUT (REDESIGN) ===== */
.contact-structure {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact-left, .contact-right {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.contact-left {
  flex: 1 1 360px;
  max-width: 480px;
  min-width: 280px;
}

.contact-right {
  flex: 1 1 380px;
  max-width: 480px;
  min-width: 280px;
}

.contact-info-block {
  background: var(--info-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.04);
  padding: 1.2rem 1.4rem 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
}

.contact-info-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.contact-info-label {
  min-width: 70px;
  font-weight: 600;
  color: var(--text-color);
}

.contact-info-value {
  font-size: 1.06rem;
  color: var(--text-color);
}

.contact-form-block {
  background: var(--form-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.05);
  padding: 1.5rem 1.4rem 1.3rem 1.4rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form input {
  height: 2.3rem;
}

.contact-form textarea {
  min-height: 100px;
  max-height: 180px;
  resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
  background: var(--surface-color);
}

.contact-form button {
  width: max-content;
  margin-top: 0.5rem;
  align-self: flex-end;
}

.contact-hours-block {
  background: var(--info-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.04);
  padding: 1.2rem 1.4rem 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.contact-map-block {
  background: var(--info-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.04);
  padding: 0.5rem;
}

.contact-map-block iframe {
  width: 100%;
  border-radius: 8px;
  border: none;
  min-height: 180px;
  box-shadow: 0 2px 12px 0 rgba(30,30,30,0.08);
}

@media (max-width: 900px) {
  .contact-structure {
    flex-direction: column;
    gap: 2.2rem;
    align-items: stretch;
  }
  .contact-left, .contact-right {
    max-width: 100%;
    min-width: 0;
  }
  .contact-map-block iframe {
    min-height: 150px;
  }
}

@media (max-width: 600px) {
  .contact-structure {
    gap: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .contact-info-block, .contact-form-block, .contact-hours-block, .contact-map-block {
    padding: 1rem 0.7rem;
  }
  .contact-form {
    padding: 0.5rem 0;
  }
}

/* ===== CONTACT FORM ===== */
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form input {
  height: 2.3rem;
}

.contact-form textarea {
  min-height: 100px;
  max-height: 180px;
  resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
  background: var(--surface-color);
}

.contact-form button {
  width: max-content;
  margin-top: 0.5rem;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-details-form, .contact-hours-map {
    max-width: 100%;
    min-width: 0;
  }
  .contact-map iframe {
    min-height: 150px;
  }
}

@media (max-width: 600px) {
  .contact-flex {
    gap: 1.2rem;
  }
  .contact-details-form, .contact-hours-map {
    padding: 0;
  }
  .contact-form {
    padding: 0.5rem 0;
  }
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--section-bg);
  padding: 2rem 0;
}

#site-footer .footer-columns {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  text-align: center;
  gap: var(--spacing);
  margin-bottom: 1.5rem;
}

#site-footer .footer-col {
  flex: 1;
}

#site-footer .footer-col h4 {
  margin-bottom: 1rem;
}

#site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#site-footer .footer-col ul li {
  margin-bottom: 0.5rem;
}

#site-footer .footer-col a {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s, text-shadow 0.18s;
  font-size: 1.09rem;
}
#site-footer .footer-col a:hover,
#site-footer .footer-col a:focus {
  color: var(--accent);
  text-decoration: underline;
  text-shadow: 0 2px 8px rgba(184,15,10,0.09);
}

#site-footer .social-icon {
  display: inline-block;
  margin-right: 0.7rem;
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.18s, text-shadow 0.18s;
}
#site-footer .social-icon:hover,
#site-footer .social-icon:focus {
  color: var(--primary-color);
  text-shadow: 0 2px 8px rgba(184,15,10,0.13);
}

[data-theme="dark"] #site-footer .footer-col a {
  color: #e5e5e5;
}
[data-theme="dark"] #site-footer .footer-col a:hover,
[data-theme="dark"] #site-footer .footer-col a:focus {
  color: var(--accent);
  text-shadow: 0 2px 8px #000;
}
[data-theme="dark"] #site-footer .social-icon {
  color: var(--accent);
}
[data-theme="dark"] #site-footer .social-icon:hover,
[data-theme="dark"] #site-footer .social-icon:focus {
  color: #fff;
}


#site-footer .footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}



/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background: var(--button-bg);
  color: #fff;
}

/* ===== RESPONSIVE STYLES (CONSOLIDATED) ===== */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .service-card, .testimonial-card {
    flex-basis: 260px;
    max-width: 260px;
    min-width: 200px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 2rem 0.5rem 0 0.5rem;
  }
  
  .hero .content, .hero .image {
    min-width: 0;
    flex: 1 1 100%;
    text-align: center;
  }
  
  nav ul {
    gap: 0.5rem;
    font-size: 1rem;
  }
  
  .container {
    padding: 0.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

@media (max-width: 768px) {
  #site-footer .footer-columns {
    flex-direction: column;
  }
  
  #site-footer .footer-col:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 700px) {
  .testimonials-row {
    gap: 1.1rem;
    padding-bottom: 1rem;
  }
  .testimonial-card {
    flex: 0 0 90vw;
    max-width: 98vw;
    min-width: 80vw;
  }
  .about .container, .about-card, .contact form {
    max-width: 97vw;
    width: 97vw;
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .about-card, .contact form {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  header .container, .container {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.5rem !important;
  }
  
  .hero-inner {
    padding: 1rem 0.25rem 0 0.25rem;
    gap: 1rem;
  }
  
  .hero .content, .hero .image {
    text-align: center;
  }
  
  section {
    padding: 1.2rem 0;
  }
  
  h1, h2 {
    font-size: 1.3rem;
    text-align: center;
  }
  /* Ensure .section-title always overrides generic h2 for centering */
  .section-title {
    text-align: center !important;
  }
  
  nav ul {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing);
    height: 64px;
  }
  nav ul li a {
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 1;
    padding: 0 0.8em;
  }

  /* Only stack vertically on mobile */
  @media (max-width: 900px) {
    nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }
  }
  
  .btn-primary {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-card p, .contact input, .contact textarea, .footer-hours {
    font-size: 1.03rem;
  }
  .about-card, .contact form {
    padding: 1.2rem 0.5rem;
  }
  .footer-map iframe {
    height: 130px;
  }
}
