/* ===== CSS RESET & BASE STYLES ===== */
:root {
  --primary: #00274d;       /* Dark blue */
  --secondary: #c82333;     /* Red */
  --accent: #e0a800;        /* Gold/yellow */
  --light: #f8f9fa;         /* Light gray */
  --dark: #333;             /* Dark gray */
  --text: #333;             /* Main text color */
  --text-light: #777;       /* Lighter text */
  --white: #fff;            /* Pure white */
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
}

/* ===== HEADER STYLES (Shared across all pages) ===== */
.main-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  flex-grow: 1;
  padding: 0 1rem;
}

/* ===== NAVIGATION MENU (Shared across all pages) ===== */
.navbar {
  background-color: var(--dark);
  position: sticky;
  top: 80px;
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 1rem;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--accent);
}

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu a {
  color: var(--white);
  padding: 1rem 1.5rem;
  display: block;
  font-weight: 500;
}

.navbar-menu a:hover {
  background-color: #444;
  color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  min-width: 250px;
  list-style: none;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 0.8rem 1.5rem;
  white-space: nowrap;
}

/* Back navigation link */
.back-link {
  display: inline-block;
  margin: 1rem 0 2rem;
  color: var(--primary);
  font-weight: 500;
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('images/electrical installations.jpg') no-repeat center center/cover;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.emergency-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}

.emergency-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.plumbing {
  background-color: var(--secondary);
  color: var(--white);
}

.electrical {
  background-color: var(--accent);
  color: var(--dark);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.read-more {
  display: inline-block;
  color: var(--secondary);
  font-weight: bold;
  margin-top: 1rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
  background-color: var(--primary);
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--primary);
  margin-bottom: 0.2rem;
}

/* ===== PRICING & BOOKING SECTION ===== */
.pricing-section {
  background-color: #f5f5f5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.add-to-cart {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-weight: 500;
}

.add-to-cart:hover {
  background: #003366;
}

.cart-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  box-shadow: var(--shadow);
}

#cart-items {
  margin: 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

#cart-total {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: right;
  margin: 1rem 0;
  color: var(--primary);
}

#booking-form {
  display: grid;
  gap: 1rem;
}

#booking-form input,
#booking-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

#booking-form textarea {
  min-height: 150px;
  resize: vertical;
}

#booking-form button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

#booking-form button:hover {
  background: #a61b2a;
}

/* ===== CONTACT SECTION ===== */
.contact-item a {
    color: var(--white);
    text-decoration: none;
    /* Add subtle text shadow for better contrast */
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-details a {
    color: white; /* Keeps original text color */
    text-decoration: none; /* Removes underline */
    transition: color 0.3s;
}
.contact-details a:hover {
    color: #007bff; /* Blue hover (adjust to your theme) */
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: #a61b2a;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ccc;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #444;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
}

.whatsapp-btn {
  background: #25D366;
}

.facebook-btn {
  background: #3b5998;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 0.5rem;
}

/* ===== SERVICE PAGE SPECIFIC ===== */
.service-page-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .service-page-content {
    grid-template-columns: 2fr 1fr;
  }
}

.service-details img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.service-sidebar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.price-box {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .company-name {
    font-size: 1.5rem;
    padding: 0;
  }
  
  .navbar {
    top: 132px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--dark);
    display: none;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    background-color: #555;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .emergency-button {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2rem 0;
  }
  
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .floating-buttons {
    bottom: 1rem;
    right: 1rem;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar, .floating-buttons, .menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: none;
  }
  
  .container {
    width: 100%;
    padding: 0;
  }
  
  a {
    text-decoration: underline;
  }
  
  .hero-section, .why-choose-us {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    accent-color: exact;
  }
}

/* DB Board Specific Styles */
.warning-box {
    background-color: #fff8e6;
    border-left: 4px solid #e0a800;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h3 {
    color: #c82333;
    margin-bottom: 0.5rem;
}

.process-steps {
    counter-reset: step;
    margin: 2rem 0;
}

.process-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.process-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.compliance-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.compliance-card img {
    margin-bottom: 1rem;
}

.emergency-btn {
    display: block;
    background: var(--secondary);
    color: white;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.emergency-btn:hover {
    background: #a61b2a;
    transform: translateY(-2px);
}