
/* ====== BASE STYLES ====== */
body {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.top-bar {
  background: #222;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
}

.site-header {
  text-align: center;
  background-color: #f9f9f9;
  padding: 20px;
}

.logo {
  max-width: 600px;
  width: 100%;
  height: auto;
}

/* HERO SECTION */
.hero-bg {
  position: relative;
  background-image: url('img/DoubleBedAyrShowroomJKDBeds.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
  width: 100%;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline {
  font-size: 1.4em;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.6em 1.2em;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1em;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5em;
  gap: 1em;
}

.hero-buttons .button {
  background-color: #d90429;
  color: white;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1em;
  font-family: 'Arial', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-buttons .button:hover {
  background-color: #a80028;
}

.hero-description {
  max-width: 700px;
  margin: 2em auto 0;
  font-size: 1.1em;
  line-height: 1.6;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1em 1.5em;
  border-radius: 10px;
}

/* SECTION CONTAINERS */
section {
  max-width: 900px;
  margin: 3em auto;
  padding: 2em 1.5em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

h2, section h2 {
  font-family: 'Arial', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #222;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

h2::after, section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #c3002f;
  border-radius: 2px;
}

section p {
  font-size: 1.05em;
  color: #444;
  margin: 1em 0;
}

/* FEATURES */
.feature-section {
  background-color: #fff3f4;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 3em auto;
}

.feature-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  flex: 1 1 calc(25% - 30px);
  max-width: 240px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  filter: brightness(0) saturate(100%) invert(15%) sepia(93%) saturate(6500%) hue-rotate(-10deg) brightness(100%) contrast(120%);
}

.feature-item p {
  font-weight: bold;
  font-size: 1.05em;
  color: #222;
  margin: 0;
}

/* BRANDS */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  background-color: #fef4f5;
  padding: 30px;
}

.brand-logos img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 10px;
}

/* CONTACT */
.contact-map {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f5f5f5;
  padding: 40px 20px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
}

.contact-map form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-map input,
.contact-map textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
}

.contact-map textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-map button {
  background-color: #d90429;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-map button:hover {
  background-color: #c10325;
}

.contact-map iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .feature-item {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  .feature-item {
    flex: 1 1 100%;
  }

  section {
    padding: 1.5em 1em;
  }

  section h2 {
    font-size: 1.5em;
  }

  section p {
    font-size: 1em;
  }
}
.testimonial { display: none; opacity: 0; transition: opacity 1s; }
.testimonial.active { display: block; opacity: 1; }
.carousel-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-img {
  min-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.contact-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background-color: #f5f5f5; /* light grey background */
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 1200px;
  margin: 40px auto;
}

.contact-map form,
.contact-map iframe {
  flex: 1 1 500px;
  min-width: 300px;
}

.contact-map form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-map input,
.contact-map textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
}

.contact-map textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-map button {
  background-color: #d90429; /* JKD red */
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-map button:hover {
  background-color: #c10325;
}

.contact-map iframe {
  border: none;
  border-radius: 8px;
  height: 100%;
  min-height: 350px;
  width: 100%;
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
  .contact-map {
    flex-direction: column;
  }
}

.site-footer {
  background: #eee;
  color: #333;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95em;
}

.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 600px;
  margin: 0 auto;
}

.footer-addresses p {
  margin: 0;
  line-height: 1.6;
}

.site-footer a {
  color: #c3002f; /* JKD red */
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}
.three-column {
  background-color: #fef4f5; /* Light natural pink */
  padding: 60px 20px;
  text-align: center;
}

.three-column h2 {
  font-size: 1.8em;
  font-weight: bold;
  color: #222;
  margin-bottom: 2em;
  position: relative;
}

.three-column h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #c3002f;
  border-radius: 2px;
}

.three-column .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.three-column .column {
  flex: 1 1 280px;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.three-column .column img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
}

.three-column .column p {
  color: #444;
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Responsive stacking on mobile */
@media (max-width: 768px) {
  .three-column .columns {
    flex-direction: column;
    align-items: center;
  }

  .three-column .column {
    max-width: 100%;
    width: 100%;
  }
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5em;
  gap: 1em;
}

.hero-buttons .button {
  background-color: #d90429;
  color: white;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1em;
  font-family: 'Arial', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-buttons .button:hover {
  background-color: #a80028;
}

/* Ensure no horizontal overflow globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Prevent large hero section from overflowing on mobile */
.hero-bg {
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Gallery carousel fix to avoid overflowing */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.logo {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Prevent overall horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure all elements use border-box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hero section clamp and overflow hidden */
.hero-bg {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  padding-left: 0;
  padding-right: 0;
}

/* Constrain hero content inside */
.hero-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* ensure some side padding but not overflow */
}

/* For three-column section */
.three-column .columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 20px;
}

.three-column .column {
  flex: 1 1 280px;
  max-width: 320px;
  min-width: 200px;
  margin: 0;
  padding: 0 10px; /* prevent content from pushing out */
}

/* Contact form + map section */
.contact-map {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.contact-map form, .contact-map iframe {
  flex: 1 1 300px;
  max-width: 600px;
  min-width: 0;
}

/* Ensure no overflow in gallery track if used */
.carousel-track {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Section wrapper adjustments */
section {
  width: 100%;
  max-width: 1200px; /* or adjust as desired */
  margin: 3em auto;
  padding: 1.5em 1em;
}

/* Adjustments for mobile screens */
@media (max-width: 768px) {
  .three-column .columns {
    flex-direction: column;
  }
  .contact-map {
    flex-direction: column;
  }
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.three-column .column {
  flex: 1 1 280px;
  max-width: 320px;
  min-width: 0; /* prevents overflow */
  padding: 20px;
  box-sizing: border-box;
}
tml, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}
