:root {
  --primary-orange: #ff6b35;
  --secondary-orange: #f9844a;
  --dark-orange: #e55a2b;
  --light-orange: #ffab8a;
  --dark-bg: #181818;
  --darker-bg: #111;
  --card-bg: #232323;
  --text-main: #f5f5f5;
  --text-secondary: #cccccc;
}

body {
  background: var(--dark-bg);
  color: var(--text-main);
}

/* Navbar */
.navbar-dark {
  background: #000 !important;
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler-icon {
  color: var(--text-main) !important;
}
.nav-link:hover {
  color: var(--primary-orange) !important;
}

/* Buttons */
.btn-quote,
.btn-primary,
.hero-btn,
button { /* Added 'button' from contact.php for consistent styling */
  background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange)) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 20px; /* Kept the more rounded style from index.html */
  font-size: 1.1rem; /* Kept the larger font from index.html */
  padding: 0.7rem 2.1rem; /* Kept the larger padding from index.html */
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block; /* Ensure button behaves like block for padding */
}
/* Specific override for contact.php's button size if needed, but general is better */
.btn-primary.w-100 {
    font-size: 16px; /* Contact.php's original button font size */
    padding: initial; /* Reset padding to default if it conflicts, or specify as needed */
    border-radius: 4px; /* Contact.php's original button border-radius */
}

.btn-quote:hover,
.btn-primary:hover,
.hero-btn:hover,
button:hover { /* Added 'button' from contact.php */
  background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange)) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}

/* Specific hover override for the outline hero button */
.hero-btn.btn-outline-light:hover {
  background: rgba(255,255,255,0.08) !important; /* Maintain original background on hover */
  color: #fff !important; /* Maintain original text color on hover */
  border: 1.5px solid #fff !important; /* Maintain original border on hover */
  box-shadow: none !important; /* Remove the orange glow/shadow on hover */
  transform: none !important; /* Remove any unwanted transform (movement) on hover */
}


.hero-btn.btn-outline-light {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border: 1.5px solid #fff;
}

/* Section backgrounds */
section,
.bg-light {
  background: var(--darker-bg) !important;
  color: var(--text-main) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-orange);
  font-weight: 700;
}

/* Cards (from index.html) */
.card {
  background: var(--card-bg);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
  transition: all 0.3s ease;
}
.card-title {
  color: var(--primary-orange);
  font-weight: 600;
}
.card-text {
  color: var(--text-secondary);
}
.card:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
  transform: translateY(-5px);
}
.card .card-img-top {
  transition: transform 0.3s ease;
}
.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Before & After Slider (from index.html) */
.before-after-slider {
  position: relative;
  user-select: none;
  max-width: 600px;
  margin: 0 auto;
}
.ba-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #222;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.ba-img-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease-out;
}
.ba-img-after {
  z-index: 1;
}
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
  transition: left 0.1s ease-out;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 3px solid var(--primary-orange);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-orange);
  font-size: 18px;
  font-weight: bold;
  z-index: 1;
}
.ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.ba-wrapper:hover .ba-handle::before {
  border-color: var(--dark-orange);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ba-wrapper:hover .ba-handle::after {
  color: var(--dark-orange);
}
/* Disable transitions during drag for smoother performance */
.ba-wrapper.dragging .ba-img-before,
.ba-wrapper.dragging .ba-handle {
  transition: none;
}

/* Hero Carousel (from index.html) */
.hero-carousel {
  position: relative;
  height: 80vh;
  min-height: 75vh;
  overflow: hidden;
}
.hero-slide {
  height: 80vh;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.hero-slide-1 { background-image: url('buildingimages/hetobg.jpg'); }
.hero-slide-2 { background-image: url('buildingimages/kitchen.jpg'); }
.hero-slide-3 { background-image: url('buildingimages/loft.jpg'); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(30,30,30,0.85);
  border-radius: 18px;
  padding: 56px 32px 40px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  text-align: center;
  color: var(--text-main);
}
.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 #222;
}
.hero-content p {
  color: var(--text-secondary);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Carousel controls */
/* These rules explicitly override the general button styles for carousel navigation */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  background: transparent !important; /* Set background to transparent, overriding any gradient */
  border: none !important; /* Remove any border */
  opacity: 1 !important; /* Ensure full visibility of the icon */
}

/* Remove hover effect from carousel controls */
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover,
#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  background: transparent !important; /* Keep background transparent on hover */
  border: none !important; /* Keep border transparent on hover */
  opacity: 1 !important; /* Maintain full visibility on hover */
  box-shadow: none !important; /* Remove any box shadow on hover */
  transform: none !important; /* Remove any transform on hover */
}


.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
}
.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.hero-carousel .carousel-indicators .active {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

/* Blockquotes & Testimonials (from index.html) */
.blockquote {
  border-left: 4px solid var(--primary-orange);
  color: var(--text-main);
  padding-left: 20px;
}
.blockquote-footer {
  color: var(--dark-orange);
}

/* Contact form and info styles (from contact.php) */
.form-container,
.contact-info {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
  padding: 24px;
}

/* Updated form field styles */
input, textarea, .form-control {
  background-color: #f0f0f0; /* Light grey background */
  color: #000; /* Black text */
  border: 1px solid #ccc; /* Lighter border for contrast */
}

/* Updated form field focus styles */
input:focus, textarea:focus, .form-control:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  background-color: #e0e0e0; /* Slightly darker grey on focus */
  color: #000; /* Black text on focus */
}

/* Placeholder text styles */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #000; /* Black for standard browsers */
  opacity: 1; /* Ensure full opacity if default is faded */
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: #000; /* Black for Webkit browsers */
}
input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
  color: #000; /* Black for Firefox */
  opacity: 1; /* Ensure full opacity if default is faded */
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
  color: #000; /* Black for IE */
}


.success {
  color: #28a745;
  background-color: #232323;
  border: 1px solid #28a745;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.error {
  color: #dc3545;
  background-color: #232323;
  border: 1px solid #dc3545;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.error ul {
  margin: 0;
  padding-left: 20px;
}

.honeypot {
  display: none;
}

.contact-info strong,
.contact-info i {
  color: var(--primary-orange);
}


/* Footer */
footer {
  background: #000 !important; /* Original footer background from contact.php for consistent dark theme */
  color: var(--text-main) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-carousel,
  .hero-slide {
    height: 55vh;
    min-height: 45vh;
    padding: 0;
  }
  .hero-content {
    padding: 22px 18px 14px 18px;
  }
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }
  .hero-btn {
    font-size: 1rem;
    padding: 0.6rem 1.3rem;
  }
  .ba-wrapper {
    aspect-ratio: 1/1;
  }
  .ba-handle::before {
    width: 50px;
    height: 50px;
  }
  .ba-handle::after {
    font-size: 20px;
  }
  .form-container, /* Added from contact.php media queries */
  .contact-info { /* Added from contact.php media queries */
    padding: 14px;
  }
}

/* Adjustments for Hero Carousel Content */
.hero-content h1 {
  margin-bottom: 5px; /* Decreased gap below title */
}

.hero-content p {
  margin-bottom: 5px; /* Decreased gap below paragraph */
}

.hero-content .hero-btn {
  margin: 6px !important; /* Decreased gap around buttons */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.4rem; /* Smaller font size for title on mobile */
  }
  .hero-content p {
    font-size: 0.95rem; /* Slightly smaller font for paragraph on mobile */
  }
  .hero-content .hero-btn {
    font-size: 0.9rem; /* Smaller button font size on mobile */
    padding: 0.5rem 1rem; /* Smaller button padding on mobile */
  }
  .hero-content img.hero-logo {
    max-height: 80px; /* Adjust logo size on mobile if needed */
    margin-bottom: 8px; /* Further decrease gap below logo on mobile */
  }
}