/* British Recovery UK - Main Stylesheet */
/* Color scheme: Black/dark headers with clean white sections and accent colors */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c2c2c;
  --accent-color: #ff6b35;
  --accent-hover: #e55a2b;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Main Header - Matching Road Buddy Exact Layout */
.main-header {
  background-color: #ffffff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.logo-wrapper {
  margin-bottom: 20px;
}

.logo-link {
  text-decoration: none;
  display: inline-block;
}

.logo-text-styled {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
}

.logo-road {
  color: #000000;
}

.logo-buddy {
  color: var(--accent-color);
}

.navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-menu-row1 {
  margin-bottom: 8px;
}

.nav-menu-row2 {
  margin-top: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  display: block;
  transition: color 0.3s;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-menu > li > a:hover {
  color: var(--accent-color);
}

.nav-menu > li > a.active {
  color: #8B4513;
}

.nav-menu > li.has-dropdown > a {
  padding-right: 25px;
}

.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 5px;
  transition: transform 0.3s;
  display: inline-block;
}

.nav-menu > li.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-menu > li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  font-size: 0.85rem;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Matching Road Buddy Style */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero-services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-service-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-logo {
  max-width: 200px;
  margin: 0 auto 2rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Services Grid - Matching Road Buddy Style */
.services-section {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.service-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.7;
  flex-grow: 1;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Pricing/Offer Boxes */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.offer-box {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.offer-box.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.offer-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  margin: 1rem 0;
}

.offer-box ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.offer-box ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.offer-box ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: #666;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-color);
}

/* Contact Form */
.contact-section {
  background: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.info-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* About Section */
.about-section {
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.about-highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 2rem 0;
}

/* Coverage Section */
.coverage-section {
  background: var(--bg-light);
}

.coverage-text {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.uk-coverage-map {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  border: 2px solid var(--border-color);
  z-index: 1;
}

.coverage-info {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coverage-info p {
  margin: 0.5rem 0;
  color: var(--text-dark);
}

.coverage-info strong {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Custom marker styles */
.custom-service-marker {
  background: transparent;
  border: none;
}

/* Map responsive styles */
@media (max-width: 768px) {
  .uk-coverage-map {
    height: 400px;
  }
}

/* Service Detail Cards */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-detail-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.service-detail-content ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .service-detail-card:nth-child(even) {
    direction: ltr;
  }
  
  .service-detail-image {
    height: 250px;
  }
  
  .service-detail-content h2 {
    font-size: 1.5rem;
  }
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 20px 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--secondary-color);
  opacity: 0.8;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.blog-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Fixed Contact Buttons - Matching Road Buddy */
.fixed-contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.fixed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.call-btn {
  background-color: var(--accent-color);
  color: #ffffff;
}

.call-btn:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

.whatsapp-btn {
  background-color: #25D366;
  color: #ffffff;
}

.whatsapp-btn:hover {
  background-color: #20BA5A;
  color: #ffffff;
}

.fixed-btn .btn-icon {
  font-size: 1.2rem;
}

.fixed-btn .btn-text {
  display: inline-block;
}

@media (max-width: 768px) {
  .fixed-contact-buttons {
    bottom: 15px;
    right: 15px;
  }
  
  .fixed-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .fixed-btn .btn-text {
    display: none;
  }
  
  .fixed-btn .btn-icon {
    font-size: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu > li > a {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .logo-text-styled {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 15px 20px;
  }
  
  .logo-wrapper {
    margin-bottom: 15px;
  }
  
  .logo-text-styled {
    font-size: 1.5rem;
  }
  
  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .navbar.active {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  
  .nav-menu-row1,
  .nav-menu-row2 {
    width: 100%;
    margin: 0;
  }
  
  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .nav-menu > li > a {
    padding: 15px 0;
    color: #333;
    width: 100%;
  }
  
  .nav-menu > li.has-dropdown > a {
    padding-right: 0;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    display: none;
    padding: 0;
    margin-top: 5px;
    margin-left: 15px;
  }
  
  .nav-menu > li.has-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu li a {
    padding-left: 20px;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
  }
}

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/Error Messages */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

