/*
 * B&S Kitchens - Consolidated Stylesheet
 * Rebuilt to match the source bandskitchens.com.au layout.
 *
 * Color Scheme:
 *   Primary Gold: #DFB163 (links, accents, buttons)
 *   Header Yellow: #ffe700 (yellow band, footer bar)
 *   Dark Blue: #003882 (nav text, heading accents, top bar)
 *   Dark Background: #252531 / #181818
 *   Body Text: #777777
 *   Light Background: #e4e4e4 (header background bar)
 *   White: #fff
 *
 * Typography:
 *   Body: Helvetica, Arial, sans-serif (14px)
 *   Headings: Helvetica, Arial, sans-serif (bold)
 *   Nav: uppercase, bold, 14px
 */

/* ============================================
   1. RESET & BASE
   ============================================ */

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

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #777777;
  text-align: left;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: #252531;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #DFB163;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #cc902a;
  text-decoration: underline;
}

img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ============================================
   2. LAYOUT - CONTAINERS & GRID
   ============================================ */

.container {
  width: 100%;
  max-width: 1140px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

.clearfix::after { display: block; clear: both; content: ""; }

/* ============================================
   3. HEADER
   ============================================ */

/* Dark navy blue thin bar at the very top */
.top-bar {
  background-color: #003882;
  height: 6px;
  width: 100%;
}

/* Gray background area with logo + showroom/phone */
.header-background {
  width: 100%;
  padding: 13px 112px 13px 140px;
  background: #e4e4e4;
}

.logo-img {
  width: 50%;
  float: left;
}

.logo-img a {
  display: block;
}

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

.header-side {
  width: 50%;
  float: left;
  padding-left: 352px;
  text-align: right;
  padding-top: 10px;
}

.header-showroom {
  font-size: 14px;
  font-weight: bold;
  color: #252531;
}

.header-phone {
  font-size: 14px;
  font-weight: bold;
  color: #252531;
  text-decoration: none;
}

.header-phone:hover {
  color: #003882;
  text-decoration: none;
}

/* ============================================
   4. NAVIGATION
   ============================================ */

.nav-bar {
  position: relative;
  background-color: #ffe700;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-links li a {
  display: block;
  padding: 15px 25px;
  letter-spacing: 1px;
  color: #003882;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  outline: none;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #DFB163;
  text-decoration: none;
}

/* Dropdown menus */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #003882;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #ffe700;
  color: #003882;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 8px 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ============================================
   5. YELLOW BAND (Carousel + Service Buttons)
   ============================================ */

.yellow-band {
  background-color: #ffe700;
  padding: 15px 0;
}

.band-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.band-left {
  flex: 0 0 62%;
  max-width: 62%;
}

.band-right {
  flex: 0 0 36%;
  max-width: 36%;
  display: flex;
  align-items: center;
}

/* ============================================
   6. CAROUSEL
   ============================================ */

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  color: #fff;
  text-align: center;
  opacity: 0.5;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.9;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

/* ============================================
   7. SERVICE NAVIGATION BUTTONS (pill style)
   ============================================ */

.service-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 25px;
  color: #252531;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-btn:hover {
  background: #003882;
  color: #fff;
  text-decoration: none;
  border-color: #003882;
}

.service-btn:hover .btn-arrow {
  color: #fff;
}

.btn-arrow {
  font-size: 10px;
  color: #003882;
  transition: color 0.2s ease;
}

/* ============================================
   8. MAIN CONTENT - TWO COLUMN LAYOUT
   ============================================ */

.main-content {
  padding: 30px 0;
}

.content-row {
  display: flex;
  gap: 40px;
}

.content-left {
  flex: 0 0 60%;
  max-width: 60%;
}

.content-right {
  flex: 0 0 37%;
  max-width: 37%;
}

/* Section title with gold line */
.section-title {
  position: relative;
  padding-left: 60px;
  font-size: 22px;
  font-weight: bold;
  color: #252531;
  margin-bottom: 1rem;
}

.section-title::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  width: 45px;
  height: 3px;
  background: #DFB163;
  transform: translateY(-50%);
}

/* "Feel overwhelmed" heading - dark, not yellow */
.overwhelmed-heading {
  color: #252531;
  font-size: 18px;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* "VISIT OUR SHOWROOM" heading */
.showroom-heading {
  color: #252531;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ============================================
   9. FORMS
   ============================================ */

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 13px;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #f5e6cd;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(223, 177, 99, 0.25);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}

textarea.form-control {
  height: auto;
  min-height: 100px;
}

select.form-control {
  width: 100%;
  border: 1px solid silver;
  padding: 8px 10px;
}

.contact-form .form-notice {
  margin-top: 0.75rem;
  padding: 8px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  font-size: 0.85rem;
}

/* Honeypot field - hidden from humans, visible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Form status messages */
.form-status {
  margin-top: 1rem;
  padding: 10px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-status.error {
  display: block;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* ============================================
   10. BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-weight: 400;
  color: #777;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-primary {
  color: #212529;
  background-color: #DFB163;
  border-color: #DFB163;
}

.btn-primary:hover {
  color: #212529;
  background-color: #d8a143;
  border-color: #d69c39;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ============================================
   11. FOOTER
   ============================================ */

footer {
  margin-top: auto;
}

.footer-yellow-bar {
  background-color: #ffe700;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #252531;
}

/* ============================================
   12. GALLERY / LIGHTBOX (for gallery pages)
   ============================================ */

.lightbox-gallery {
  padding: 20px 168px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.gallery-grid a {
  display: inline-block;
}

.gallery-grid img,
.img-fluid {
  max-width: 100%;
  width: 200px;
  height: 180px;
  margin-top: 14px;
  object-fit: cover;
}

.img-hover {
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.img-hover:hover {
  -webkit-filter: grayscale(0);
  filter: none;
}

/* Gallery page heading styles */
.lightbox-gallery h1 {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 24px;
  color: #ffe700;
}

.gallery-grid + h1,
h1.gallery-heading {
  font-weight: bold;
  line-height: 1.0;
  text-transform: uppercase;
  font-size: 24px;
  color: #ffe700;
}

.page-heading {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 24px;
  color: #ffe700;
  margin-bottom: 1.5rem;
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-none { display: none; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Legacy classes for gallery pages */
.img-buttons {
  margin: 0 auto;
  text-align: center;
  margin-top: 13px;
}

.img-buttons a {
  display: inline-block;
  margin-bottom: 10px;
}

.after-slider {
  padding-left: 128px;
  padding-right: 128px;
}

.head-section {
  margin-top: -311px;
  margin-bottom: 0;
}

.about-head {
  max-width: 998px;
  margin-top: 48px;
}

.h-color {
  color: #003882;
  font-size: 26px;
}

.page-top {
  margin-left: 73px;
  margin-top: 27px;
}

.form-size {
  padding-left: 14px;
}

.hr-class {
  background-color: #ffe700;
  height: 17px;
  margin-top: -10px;
  border: none;
}

/* Legacy header section for other pages */
.header-section {
  background: #ffe700;
  padding: 10px 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 60px;
  width: auto;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #003882;
  margin-left: 10px;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    padding: 10px 15px;
    color: #fff;
  }

  .header-background {
    padding: 13px 30px;
  }

  .header-side {
    width: 100%;
    padding-left: 0;
    text-align: right;
  }

  .band-row {
    flex-direction: column;
  }

  .band-left {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .band-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 15px;
  }

  .content-row {
    flex-direction: column;
  }

  .content-left {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .content-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 2rem;
  }

  .after-slider {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lightbox-gallery {
    padding: 20px 0;
    text-align: center;
  }

  .page-top {
    margin-left: 20px;
  }
}

@media (max-width: 767px) {
  .logo-img {
    width: 100%;
  }

  .logo-img img {
    width: 100%;
    padding: 0;
    height: auto;
  }

  .header-background {
    padding: 13px 21px 13px 27px;
  }

  .header-side {
    width: 100%;
    float: none;
    padding-left: 0;
    text-align: right;
  }

  .col-6, .col-4, .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .gallery-grid img,
  .img-fluid {
    width: 100%;
    height: auto;
  }

  .service-buttons {
    flex-direction: column;
  }

  .carousel {
    max-width: 100%;
  }

  select {
    width: 100%;
    border: 1px solid silver;
    padding: 10px;
  }
}

@media (max-width: 575px) {
  .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .after-slider {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================
   15. PRINT STYLES
   ============================================ */

@media print {
  .nav-bar,
  .carousel,
  .nav-toggle {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================
   16. LIGHTBOX OVERLAY
   ============================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  margin: auto;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  padding: 5px 10px;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #DFB163;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  padding: 10px 18px;
  transition: color 0.2s ease;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #DFB163;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-overlay.active {
  animation: lightboxFadeIn 0.3s ease forwards;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}
