/*
 * Global Style Sheet for Car Cosmetic Center Website
 *
 * This stylesheet defines the visual identity of the site.  It embraces
 * the company's official colour scheme of gold and black to convey a
 * sense of premium quality.  The design utilises generous spacing,
 * clean typography and subtle patterns inspired by Armenian art.  To
 * ensure legibility across devices, responsive layouts and font sizes
 * are employed.  Feel free to extend or modify the variables defined
 * below to fine‑tune the appearance of future pages.
 */

@font-face {
  font-family: 'Eurostile Extended';
  src: url('../fonts/EurostileExtended.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eurostile Bold Extended';
  src: url('../fonts/EurostileBoldExtended.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour palette */
  --primary-color: #d4af37;        /* Rich gold tone used for highlights and accents */
  --primary-color-dark: #b88e2c;    /* Darker variant of the gold for subtle gradients */
  --secondary-color: #000000;      /* Almost black background for high contrast */
  --light-color: #f5f5f5;          /* Light neutral tone for contrast sections */
  --text-color: #e5e5e5;           /* Light text colour on dark backgrounds */
  --main-font: 'Eurostile Extended', sans-serif;
}

/* Reset default margins and paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--main-font);
  font-weight: normal;
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a:hover {
  color: var(--light-color);
}

/* Make all buttons non-selectable */
button, 
.btn,
.submit-btn,
.service-btn,
input[type="submit"],
input[type="button"] {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

header {
  background-color: var(--secondary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  
}

/* Hide the header when scrolling down and reveal when scrolling up */
header.scroll-down {
  transform: translateY(-100%);
}

header.scroll-up {
  transform: translateY(0);
}

/* Home page hero specific styles */
.hero-home {
  padding: 0;
  background-color: var(--secondary-color);
  height: auto;
}

.hero-home .overlay {
  display: none;
}

.hero-home-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}



.service-hero .overlay {
  background: rgba(0, 0, 0, 0.75);
}

.service-hero .overlay h1 {
  /*margin-bottom: 1rem;*/
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-hero .overlay p {
  font-size: 1.2rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

/* Hamburger menu icon - hidden by default on desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .logo img {
  height: 100px;
  width: auto;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav li {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Adjust the dropdown container positioning */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 15px; /* Add padding to extend the hover area */
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary-color);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 1;
  padding: 0.5rem 0;
  margin-top: 0; /* Remove margin to eliminate gap */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.dropdown-content a:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
}

/* Create an invisible extension to increase hover area */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* Height of the invisible bridge between menu item and dropdown */
  background-color: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* No delay when showing the dropdown */
}

/* Add a delay before the dropdown disappears */
.dropdown-content {
  transition-delay: 0.5s; /* Half-second delay before hiding */
}

.dropdown > a::after {
  content: '▾';
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.hero {
  position: relative;
  width: 100%;
  margin-top: 120px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* For legal pages and contact page with reduced height */
.hero.legal-hero {
  height: 40vh;
  max-height: 300px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero .overlay h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  font-weight: 100;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.hero .overlay p {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  max-width: 800px;
  color: var(--light-color);
  line-height: 1.6;
  text-align: center;
  padding: 0 1rem;
}

main {
  padding-top: 0;
}

.section {
  padding: 4rem 1.5rem;
  width: 100%;
}

.section.light {
  background-color: var(--light-color);
  color: #333;
}

.section.dark {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.section h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  font-weight: 100;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

.section p {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
  text-transform: uppercase;
  font-weight: 100;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  /* Allow cards to grow to utilise available space.  The base
   * width of 280px ensures a reasonable minimum on narrow viewports. */
  flex: 1 1 280px;
  max-width: 360px;
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.service h3 {
  font-family: var(--heading-font);
  /* Reduce the heading size slightly so long titles like
   * “Fuhrparkaufbereitung” remain within the card bounds. */
  /* Slightly smaller heading size to accommodate long compound words */
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  /* Allow long compound words to wrap onto the next line */
  word-break: break-word;
  hyphens: auto;
}

.service ul {
  list-style: none;
  padding-left: 0;
}

.service ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.service ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}


.locations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.location {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 3rem 2rem;
  min-width: 280px;
  width: calc(50% - 1.5rem);
  max-width: 100%;
  color: var(--text-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.location h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-weight: 100;
}

.footer {
  background-color: var(--secondary-color);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--primary-color);
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/*
 * Custom card layout for the updated Leistungs‑Sektion.
 * The index page now uses image cards for each Service (Unfallinstandsetzung,
 * Smart Repair etc.), consisting of a dedicated image container and a
 * content container. To make sure these cards display correctly across
 * different screen sizes, we switch the services wrapper to a CSS grid
 * and define explicit sizes and overflow behaviour for the images. The
 * styles below override earlier rules where necessary.
 */

/* Grid layout for the services section */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Card wrapper */
.service {
  background-color: var(--card-bg-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

/* Image container ensures that images stay within the card */
.service-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.service:hover .service-img img {
  transform: scale(1.1);
}

/* Content container for headings and text */
.service-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Headings within service cards */
.service h3 {
  font-size: 1.5rem;
  font-weight: 100;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  word-break: break-word;
  hyphens: auto;
  text-align: center;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  padding: 0 0.5rem;
  margin: 0 auto;
  width: 100%;
}

/* Subtitle / tagline text */
.service-tagline {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 100;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-style: normal;
  text-align: center;
}

/* Description paragraphs within cards */
.service-description {
  color: rgba(229, 229, 229, 0.9); /* slightly transparent white */
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-align: center;
  font-size: 0.9rem;
  font-weight: normal;
}

/* Button styling for service links */
.service-btn {
  display: block;
  width: 100%;
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  white-space: normal; /* Allow text to wrap */
  min-height: 3.5rem; /* Ensure consistent button height */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.service-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Patterned section inspired by Armenian motifs */
.pattern-section {
  position: relative;
  background-image: url('../images/pattern.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--primary-color);
  text-align: center;
  padding: 8rem 2rem;
  overflow: hidden;
}

.pattern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 0;
}

.pattern-section > * {
  position: relative;
  z-index: 1;
}

.pattern-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 100;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

.pattern-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.pattern-section p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--light-color);
}


/* Über uns page styles */
.about-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin-top: 120px;
  background-color: var(--secondary-color);
}

.about-hero img {
  max-width: 200px;
  height: auto;
}

.about-content {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.value-item {
  background-color: var(--card-bg-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.value-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.value-item p {
  line-height: 1.6;
}

/* Legal pages styles (Impressum & Datenschutz) */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--text-color);
}

.legal-content h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 100;
}

.legal-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.legal-content h4 {
  color: var(--primary-color);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content h5 {
  color: var(--primary-color);
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: left;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: var(--btn-hover-color);
}

.contact-section {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 5rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* Dedicated Contact Page Styles */
.contact-page-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info-block {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-info-block h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.contact-info-block h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-details .contact-detail {
  margin-bottom: 1rem;
}

.contact-details .contact-detail strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact-details .contact-detail a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-details .contact-detail a:hover {
  color: var(--primary-color);
}

address {
  font-style: normal;
  line-height: 1.7;
}

.opening-hours .day-time {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.opening-hours .note {
  margin-top: 1rem;
  font-style: italic;
  color: var(--primary-color);
}

.contact-form-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.contact-form-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.form-intro {
  margin-bottom: 1.5rem;
}

.contact-page-form {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
}

.contact-page-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-page-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-family: var(--body-font);
  transition: border-color 0.3s ease;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

.required-fields {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* Form status messages */
#form-status,
#quick-form-status,
#quick-form-status-lack,
#quick-form-status-about {
  margin: 1rem 0;
}

#form-status .sending-message,
#quick-form-status .sending-message,
#quick-form-status-lack .sending-message,
#quick-form-status-about .sending-message {
  color: var(--primary-color);
  font-weight: 600;
}

#form-status .success-message,
#quick-form-status .success-message,
#quick-form-status-lack .success-message,
#quick-form-status-about .success-message {
  color: #4CAF50;
  font-weight: 600;
  padding: 10px;
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4CAF50;
}

#form-status .error-message,
#quick-form-status .error-message,
#quick-form-status-lack .error-message,
#quick-form-status-about .error-message {
  color: #F44336;
  font-weight: 600;
  padding: 10px;
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 3px solid #F44336;
}


.section-title {
  text-align: center;
  color: var(--primary-color);
  font-weight: 100;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  text-transform: uppercase;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.contact-block {
  text-align: center;
}

.contact-block h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 100;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.contact-block h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-block p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-block a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.contact-block a:hover {
  color: var(--btn-hover-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-family: var(--body-font);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  border: 2px solid var(--primary-color);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.footer {
  background-color: #070707;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-color);
}

.footer p {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--btn-hover-color);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Fix viewport and scaling issues */
  html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  main {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  /* Adjust hero section for mobile */
  .hero-home {
    margin-top: 100px;
    height: auto;
    padding: 0;
  }

  .hero {
    margin-top: 100px;
  }

  .hero-home-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Ensure sections stay centered */
  .section {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  /* Center content blocks */
  .services, .locations, .contact-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Fix location cards for mobile */
  .location {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .location h3 {
    font-size: 2rem;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Fix contact section for mobile */
  .contact-content {
    gap: 2rem;
  }
  
  .contact-block {
    padding: 1rem;
  }
  
  /* Fix service cards for mobile */
  .services {
    gap: 2rem;
    padding: 0;
  }
  
  .service {
    max-width: 100%;
  }
  
  .service-img {
    height: 200px;
  }
  
  .service h3 {
    font-size: 1.4rem;
    padding: 0 0.5rem;
    height: auto;
    min-height: 3rem;
  }
  
  .service-tagline {
    font-size: 1rem;
    padding: 0.5rem;
  }
  
  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Style for active hamburger (X) */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  header nav {
    flex-basis: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    margin-top: 1rem;
    width: 100%;
  }
  
  header nav.active {
    max-height: 500px;
  }
  
  header nav ul {
    gap: 0;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  header nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }
  
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown::after {
    display: none; /* Remove the invisible bridge on mobile */
  }
  
  .dropdown-content a {
    padding-left: 1.5rem;
  }
  
  
  .hero .overlay h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    padding: 0 0.5rem;
    line-height: 1.2;
  }
  
  .hero .overlay p {
    font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.1rem);
    padding: 0 0.5rem;
  }
  
  /* Adapt the services grid on smaller screens to a single column. The
   * grid layout defined above remains active, but here we override the
   * column definition so that cards stack vertically rather than using
   * flexbox. */
  .services {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service {
    width: 100%;
    max-width: none;
  }
  
  .locations {
    flex-direction: column;
    align-items: center;
  }
  
  /* Contact page responsiveness */
  .contact-page-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    margin-top: 2rem;
  }
  
  /* Map responsiveness */
  .map-container {
    height: 400px;
  }
  
  .map-info {
    padding: 1.5rem;
    max-width: 90%;
  }
}

/* Service Detail Pages Styles */
.service-detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-detail-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: 100;
}

.service-detail-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.service-detail-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

.service-highlights,
.service-benefits,
.service-process {
  margin: 2rem 0;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
}

.service-detail-content ul {
  list-style: none;
  padding-left: 1.5rem;
}

.service-detail-content ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Testimonials Section Styles */
.testimonials-section {
  overflow: hidden;
  padding: 4rem 0;
}

.testimonials-container {
  width: 100%;
  overflow: visible;
  position: relative;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  animation: scroll 40s linear infinite;
  width: fit-content;
  padding: 1rem 0;
}

.testimonial-card {
  flex: 0 0 auto;
  width: 400px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 0 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.testimonial-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-logo img {
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(330deg);
}

.testimonial-card blockquote {
  font-style: italic;
  margin: 0;
  text-align: center;
}

.testimonial-card blockquote p {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-card cite {
  color: var(--primary-color);
  font-style: normal;
  font-weight: 600;
  display: block;
  text-align: right;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Clone testimonials for seamless loop */
.testimonials-track {
  display: flex;
}

.testimonials-track > * {
  flex-shrink: 0;
}

/* Additional responsive styles for service page titles */
@media (max-width: 576px) {
  .hero .overlay h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.2;
    padding: 0 0.5rem;
  }
  
  .hero .overlay p {
    font-size: 0.9rem;
    padding: 0 0.75rem;
    margin-top: 0.5rem;
  }
  
  .section h2 {
    font-size: 1.75rem;
    padding: 0 0.5rem;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Even more responsive adjustments for small phones */
  .location {
    padding: 1.5rem 1rem;
  }
  
  .location h3 {
    font-size: 1.75rem;
  }
  
  .contact-content {
    gap: 1.5rem;
  }
  
  .services {
    gap: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .service-detail-content h2 {
    font-size: 1.6rem;
    padding: 0 0.5rem;
    text-align: center;
  }
}