
/* ───────────────────────────────────────────────────────────
   Cozy King Master Stylesheet
──────────────────────────────────────────────────────────── */

/* Base Variables & Reset */
:root {
  --primary-color: #1a1a1a;
  --accent-color: #e63946;
  --accent-hover: #cc2d3a;
  --secondary-color: #ffffff;
  --bg-color: #f5f5f5;
  --font-family: 'Helvetica Neue', sans-serif;
}

.page-break {
  page-break-before: always;
  break-before: page;
}

/* Global Headings for a Bold Look */
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Global Reset & Safari Tweaks */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  /* prevent horizontal scroll on mobile/Safari */

  -webkit-text-size-adjust: 100%;
  /* disable font resizing in Safari */

  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--primary-color);
}

/* ─── Navigation Bar ─────────────────────────────────────── */

/* Desktop Header */
header.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background 0.3s ease;
}

header.navbar {
  border-bottom: 2px solid #ddd;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.nav-menu ul li a {
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.nav-menu ul li a:hover {
  background-color: var(--bg-color);
  color: var(--accent-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.nav-menu ul li .dropdown-menu {
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .nav-menu {
    border-top: 2px solid #ddd;
  }
  .nav-menu ul li a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100px;
}
.logo img {
  height: 80px;
  width: auto;
}
.logo h2 {
  text-align: center;
}

/* Main Nav Menu */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-menu ul li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding: 5px;
  transition: color 0.3s ease;
}
.nav-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}
.nav-menu ul li a:hover {
  color: var(--accent-color);
}
.nav-menu ul li a:hover::after {
  width: 100%;
}

/* Vertical Dropdown on Desktop */
.nav-menu ul li.dropdown {
  position: relative;
}
.nav-menu ul li .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--secondary-color);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1100;
  display: flex;
  /* ensure vertical stacking */

  flex-direction: column;
}
.nav-menu ul li:hover .dropdown-menu,
.nav-menu ul li:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
}
.dropdown-menu li {
  margin: 0;
  /* no horizontal gaps */
}
.dropdown-menu li:not(:last-child) {
  margin-bottom: 5px;
  /* vertical gap between items */
}
.dropdown-menu li a {
  padding: 8px 20px;
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  transition: background 0.3s ease;
}
.dropdown-menu li a:hover {
  background: var(--bg-color);
}

/* Hamburger Icon (desktop hidden) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  header.navbar .container {
  flex-wrap: wrap;
  height: auto;
  padding: 10px 20px;
  justify-content: center;
  row-gap: 10px;
}
  .logo img {
  height: 60px;
}
  .logo h2 {
  font-size: 1.2rem;
  margin-top: 5px;
}

  .nav-menu {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 100%;
  height: calc(100% - 60px);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}
  .nav-menu.active {
  right: 0;
}
  .nav-menu ul {
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}
  .nav-menu ul li a {
  font-size: 1.2rem;
}
  .hamburger {
  display: flex;
}
  .nav-menu ul li .dropdown-menu {
  position: static;
  box-shadow: none;
  padding: 0;
  visibility: visible;
  opacity: 1;
  display: block;
  flex-direction: column;
}
}

/* Hamburger toggle animations */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Dealer Styling --- */
/* --- Dealer Login Wrapper --- */
.dealer-login-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: Arial, Helvetica, sans-serif;
}

/* --- Dealer Login Button --- */
.dealer-login-button {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.3s ease;
}
.dealer-login-button:hover {
  background: #e63946;
  transform: scale(1.05);
}

/* --- Dealer Logged In Box --- */
.dealer-status-logged {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.dealer-status-logged a {
  color: #e63946;
  margin-left: 10px;
  text-decoration: none;
}
.dealer-status-logged a:hover {
  text-decoration: underline;
}

/* --- Dealer Login Form --- */
#dealer-login-form-wrapper {
  display: none;
  position: fixed;
  top: 70px;
  right: 20px;
  width: 280px;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  z-index: 99999;
}
#dealer-login-form-real input,
#dealer-login-form-real button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}
#dealer-login-form-real button {
  background: #e63946;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
#dealer-login-form-real button:hover {
  background: #c9303e;
}

/* --- Dealer Mini Portal --- */
.dealer-mini-portal {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 300px;
  background: rgba(30, 30, 30, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  animation: fadeSlideIn 0.4s ease forwards;
}
.dealer-mini-portal.hidden {
  display: none;
}
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Portal Content Styling --- */
.portal-content {
  animation: fadeIn 0.3s ease;
}
.portal-content.hidden {
  display: none;
}
.portal-content h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.portal-content ul {
  list-style: none;
  padding: 0;
}
.portal-content li {
  margin: 10px 0;
}
.portal-content a,
.portal-content button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.portal-content a:hover,
.portal-content button:hover {
  background: #e63946;
  color: #fff;
  transform: translateX(3px);
}

/* --- Close & Back Buttons --- */
.close-button,
.back-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.close-button:hover,
.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
  .dealer-login-wrapper {
    top: 10px;
    right: 10px;
  }

  #dealer-login-form-wrapper {
    top: 60px;
    right: 10px;
    width: 90%;
  }

  .dealer-mini-portal {
    width: calc(100vw - 30px);
    right: 15px;
    top: 70px;
    padding: 18px;
  }

  .portal-content a,
  .portal-content button {
    font-size: 0.95rem;
    padding: 10px;
  }

  .back-button,
  .close-button {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .portal-content h3 {
    font-size: 1.2rem;
  }
}
/* --- End Dealer Styling --- */

/* --- Sleeper Sofa Page Styling --- */

.sleeper-hero {
  height: 80vh;
  background: url('Product_Images/1197/1197_Challenger_Fog.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.sleeper-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.sleeper-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out;
}
.sleeper-hero .hero-content.scrolled {
  transform: translateY(0);
  opacity: 1;
}
.sleeper-hero .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}
.sleeper-hero .hero-content p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
}

.sleeper-section {
  background: var(--bg-color);
  padding: 80px 20px;
  text-align: center;
}
.sleeper-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.sleeper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.sleeper-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.sleeper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.sleeper-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sleeper-card:hover img {
  transform: scale(1.05);
}
.sleeper-card h3 {
  margin: 20px 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
}
.sleeper-card p {
  font-size: 1rem;
  padding: 0 20px;
  color: #444;
  line-height: 1.6;
}
.sleeper-card a.btn {
  display: inline-block;
  margin: 20px auto;
  padding: 12px 30px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}
.sleeper-card a.btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Scroll-trigger fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.fade-in-up.scrolled {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .sleeper-hero {
    height: 60vh;
  }
  .sleeper-hero .hero-content h1 {
    font-size: 2.5rem;
  }
  .sleeper-hero .hero-content p {
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .sleeper-hero .hero-content h1 {
    font-size: 2rem;
  }
  .sleeper-hero .hero-content p {
    font-size: 1rem;
  }
  .sleeper-card img {
    height: 180px;
  }
}
/* --- End Sleeper Sofa Styling --- */



/* --- Contract Page Styling --- */
.contract-hero {
  height: 70vh;
  background: url('Display_Images/Maj_Sun.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contract-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.contract-hero .hero-content {
  position: relative;
  text-align: center;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.contract-hero .hero-content.scrolled,
.contract-hero .hero-content.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.contract-video {
  background: #000;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin: 40px 0;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contract-info {
  background: var(--bg-color);
  padding: 60px 20px;
  text-align: center;
}

.contract-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contract-info p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.contract-info .btn {
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--secondary-color);
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contract-info .btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .contract-hero {
    height: 50vh;
  }
  .contract-info h2 {
    font-size: 2rem;
  }
  .contract-video {
    height: 30vh;
    font-size: 1rem;
  }
}
/* --- End Contract --- */

/* ─── Layout Helpers ─────────────────────────────────────── */

/* Ensure content doesn’t hide under navbar */
.main-content {
  padding-top: 80px;
}

/* Buttons */
.btn {
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 8px rgba(230,57,70,0.4);
  transform: scale(1.05);
}

/* ─── Product & Contract Sections ───────────────────────── */

/* Products Grid (generic) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  padding: 40px;
}
.products-grid .product-item {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.products-grid .product-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.products-grid .product-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}
.products-grid .product-item h3 {
  margin: 15px 0;
}

/* Contract Layout */
.contract-content {
  padding: 40px;
}
.contract-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}
.contract-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── Index Page Styles ─────────────────────────────────── */

/* Hero Banner with Scroll Parallax */
.ihero {
  width: 100%;
  height: 95vh;
  background: url('Product_Images/1197/1197_Challenger_Fog.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -75px;
  position: relative;
  transition: background-position 0.1s ease;
}
.ihero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.ihero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}
.ihero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}
.ihero-content p {
  font-size: 1.5rem;
}

/* Hero Mobile Tweaks */
@media (max-width: 768px) {
  .ihero {
    height: 60vh;
    margin-top: 100px;
  background-position: center top;
}
  .ihero-content h1 {
  font-size: 1rem;
}
  .ihero-content p {
  font-size: 0.5rem;
}
}

/* Product Grid Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.product-grid .grid-item {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.product-grid .grid-item img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}
.product-grid .grid-item h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.product-grid .grid-item p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.product-grid .grid-item a.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s ease;
}
.product-grid .grid-item a.btn:hover {
  background: var(--accent-hover);
}
.product-grid .grid-item.sectional {
  grid-column: span 3;
}

/* Product Grid Mobile */
@media (max-width: 768px) {
  .product-grid {
  grid-template-columns: 1fr;
}
  .product-grid .grid-item.sectional {
  grid-column: span 1;
}
}

/* Video Hero Section */
.video-hero {
  height: 60vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  overflow: hidden;
}
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info Section */
.info-section {
  padding: 40px 20px;
  background: #f5f5f5;
  text-align: center;
}
.info-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.info-section > p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto 20px;
  font-style: italic;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.info-grid .info-item {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 4px;
  background: #fff;
}
.info-grid .info-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.info-grid .info-item p {
  font-size: 1rem;
  color: #666;
}

/* Info Grid Mobile */
@media (max-width: 768px) {
  .info-grid {
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
}
}
@media (max-width: 480px) {
  .info-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
}

/* --- Kenzie Piece Styling --- */
.kenzie-piece-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow-x: hidden;
  margin-top: 100px;
}

.kenzie-piece-wrapper .product-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 40px 0 60px;
}

.kenzie-piece-wrapper .product-image,
.kenzie-piece-wrapper .product-info {
  flex: 1 1 48%;
  max-width: 48%;
}

.kenzie-piece-wrapper .main-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  aspect-ratio: 3 / 2;
  background-color: #f9f9f9;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kenzie-piece-wrapper .thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.kenzie-wrapper .thumb {
  width: 80px;
  height: 80px;
  background-color: #fff;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px;
}

.kenzie-piece-wrapper .thumb.active {
  border: 2px solid var(--accent-color);
}

.kenzie-piece-wrapper .thumb:hover {
  transform: scale(1.05);
}

.kenzie-piece-wrapper .gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.kenzie-piece-wrapper .gallery-scroll img {
  max-width: 260px;
  height: 160px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kenzie-piece-wrapper .gallery-scroll img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.kenzie-piece-wrapper .product-info h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.kenzie-piece-wrapper .sku {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.kenzie-piece-wrapper .spec-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.kenzie-piece-wrapper .spec-table td {
  padding: 10px 14px;
  border: 1px solid #eee;
  font-size: 0.95rem;
  text-align: center;
}

.kenzie-piece-wrapper .btn {
  display: inline-block;
  margin: 10px 12px 10px 0;
  background: var(--accent-color);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.kenzie-piece-selector {
  margin: 20px 0;
}

.kenzie-piece-selector label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.kenzie-piece-selector select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
}

.kenzie-piece-wrapper .btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.kenzie-piece-wrapper .fine-print {
  font-size: 0.85rem;
  color: #555;
  margin-top: 15px;
}

.kenzie-piece-wrapper .product-section {
  margin-bottom: 80px;
}

.kenzie-piece-wrapper .product-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
}

.kenzie-piece-wrapper .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.kenzie-piece-wrapper .info-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kenzie-piece-wrapper .info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.kenzie-piece-wrapper .carousel-track {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.kenzie-piece-wrapper .carousel-item {
  width: 200px;
  text-align: center;
}

.kenzie-piece-wrapper .carousel-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
}

/* --- Mobile Tweaks --- */
@media (max-width: 768px) {
  .kenzie-piece-wrapper .product-row {
    flex-direction: column;
    align-items: center;
  }

  .kenzie-piece-wrapper .product-image,
  .kenzie-piece-wrapper .product-info {
    max-width: 100%;
  }

  .kenzie-piece-wrapper .gallery-scroll img {
    max-width: 200px;
    height: 140px;
  }

  .kenzie-piece-wrapper .carousel-item {
    width: 150px;
  }
}
/* --- End Kenzie Piece Styling --- */

/* --- Kenzie Page --- */

.kenzie-hero {
  height: 75vh;
  background: url('Display_Images/Staged_Sectional.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.kenzie-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.kenzie-hero-content{
	position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.kenzie-hero-content h1 {
  font-size: 3rem;
  position: relative;
  z-index: 2;
}

.kenzie-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.kenzie-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.kenzie-section p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.kenzie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.kenzie-grid-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.kenzie-grid-item img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 10px;
}

.kenzie-carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.kenzie-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.kenzie-carousel img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}

.kenzie-carousel-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.kenzie-carousel-btn {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.kenzie-carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.info-item {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.info-item h3 {
  margin-bottom: 10px;
  color: #222;
  font-size: 1.2rem;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.kenzie-section .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background-color: #333;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.kenzie-section .btn:hover {
  background-color: #000;
}

@media (max-width: 768px) {
  .kenzie-carousel-wrapper {
    overflow-x: auto;
  }

  .kenzie-carousel {
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .kenzie-carousel img {
    scroll-snap-align: center;
    min-width: 100%;
  }

  .desktop-only {
    display: none;
  }
}
/* --- End Kenzie --- */

/* --- Order Page Styles --- */

.hero-order {
  height: 95vh;
  background: url('Display_Images/Landscape_Resort.jpeg') no-repeat center center/cover;
  margin-top: -75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-order::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.order-header {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.order-header h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.order-header p {
  font-size: 1.05rem;
  color: #333;
}

.order-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.order-form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.product-entry {
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-entry h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn-secondary {
  background: #777;
  color: #fff;
  margin-bottom: 30px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #555;
}

.product-entry {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 30px;
  overflow: hidden;
}

.product-entry.collapsed .product-body {
  display: none;
}

.product-header {
  background: #1a1a1a;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.product-header .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.product-entry.collapsed .arrow {
  transform: rotate(-90deg);
}

.product-body {
  background: #fdfdfd;
  padding: 20px;
}


/* --- End Order --- */

/* --- Individual Products Pages --- */
/* ─── Product Split Section ─────────────────────────────── */
.product-split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-image {
  flex: 1 1 500px;
  max-width: 500px;
  text-align: center;
}
.product-image .main-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.product-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
}
.product-section p {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 1.075rem;
  line-height: 1.85;
  color: #3a3a3a;
  letter-spacing: 0.2px;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Alternate background for every second section */
.product-section:nth-of-type(even) {
  background-color: #f9f9f9;
}

/* Section navigation spacing */
.section-nav {
  margin-top: 60px;
  margin-bottom: 60px;
  padding: 15px 0;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}
.thumbnails .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.3s ease;
}
.thumbnails .thumb.active,
.thumbnails .thumb:hover {
  border-color: var(--accent-color);
}

.product-info {
  flex: 1 1 400px;
  max-width: 500px;
}
.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.product-info .sku {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 20px;
}
.product-info .description p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.product-info .btn {
  display: inline-block;
  margin-top: 20px;
}
.commercial-grade {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .product-split {
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
  }
  .product-info h1 {
    font-size: 2rem;
    text-align: center;
  }
  .product-info .description {
    text-align: center;
  }
  .product-info .btn {
    display: block;
    margin: 20px auto;
  }
  
  .product-section {
    padding: 40px 15px;
  }

  .product-section h2 {
    font-size: 1.5rem;
  }

  .product-section p {
    font-size: 1rem;
    text-align: center;
  }

  .section-nav {
    margin-top: 40px;
    margin-bottom: 40px;
    gap: 20px;
  }
}

.section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px auto;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  max-width: 1000px;
}
.section-nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
.section-nav a:hover {
  color: var(--accent-color);
}

.product-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.product-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}
.product-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* ─── Other Products Carousel ────────────────────────────── */
.other-products {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}
.other-products h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.carousel-container {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}
.carousel-item {
  flex: 0 0 auto;
  width: 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  transition: transform 0.3s ease;
}
.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.carousel-item h3 {
  font-size: 1.1rem;
  margin-top: 10px;
}
.carousel-item:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .carousel-item {
    width: 180px;
  }
  .carousel-item h3 {
    font-size: 1rem;
  }
}
/* --- End Products --- */

/* --- HAZ Page --- */
/* Hero Banner with Scroll Parallax */
    .hero {
  height: 70vh;
  width: auto;
  background: url('Product_Images/HAZ/Haz_Chair_Oceanside.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -75px;
  /* accommodate navbar height */

      position: relative;
  transition: background-position 0.1s ease;
}
    .hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
    .hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}
    .hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}
    .hero-content p {
  font-size: 1.5rem;
}

    .feature-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

    .feature-card {
  flex: 1 1 450px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

    .feature-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

    .feature-card h3 {
  font-size: 1.5rem;
  margin: 20px 0 10px;
}

    .feature-card p {
  font-size: 1rem;
  padding: 0 20px 20px;
  color: #555;
}

    .specs-section {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

    .specs-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

    .specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

    .spec-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .spec-item h4 {
  color: #e63946;
  margin-bottom: 10px;
}

    .spec-item p {
  color: #333;
  font-size: 0.95rem;
}
    
    .tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  background-color: #eee;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.tab-btn.active {
  background-color: #e63946;
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.product-tab-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 40px;
}

.tab-image {
  flex: 1 1 400px;
  max-width: 500px;
}

.tab-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-details {
  flex: 1 1 400px;
  max-width: 500px;
}

.tab-details h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.tab-details p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.spec-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

/* HAZ Gallery */
.haz-gallery {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}

.haz-gallery h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none; /* Firefox */
  white-space: nowrap;
}
.gallery-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.gallery-scroll img {
  flex: 0 0 auto;
  width: 300px;
  height: 250px;
  object-fit: contain;
  border-radius: 10px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-scroll img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* On small screens, allow swipe scroll manually */
@media (max-width: 768px) {
  .gallery-scroll img {
    width: 250px;
    height: 200px;
  }
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.carousel {
  display: flex;
  gap: 30px;
  transition: all 0.5s ease;
}

.carousel img {
  flex: 0 0 auto;
  width: 300px;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- End HAZ --- */


/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg,#fff 0%,#f9f9f9 100%);
  border-top: 1px solid #ddd;
  padding: 30px 60px;
  font-size: 0.9rem;
  color: #1a1a1a;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 20px 0;
}
.footer-col {
  flex: 1 1 250px;
  text-align: center;
}
.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.footer-logo p {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 5px;
  font-style: italic;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav ul li a {
  color: #1a1a1a;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-nav ul li a:hover {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact ul li {
  font-size: 0.9rem;
}
.footer-contact a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.footer-contact a:hover {
  color: var(--accent-hover);
}
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.footer-social ul li a {
  color: #1a1a1a;
  text-decoration: none;
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-social ul li a:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

/* ─── Mobile Header Compensation ─────────────────────────── */

/* Adds space below the navbar for mobile to prevent overlap */
@media (max-width: 768px) {
  body:not(.homepage) {
    padding-top: 100px; /* compensate for fixed navbar */
  }

  .main-content,
  .product-split,
  .product-section,
  .hero,
  .video-hero,
  .info-section,
  .contract-content,
  .haz-gallery {
    margin-top: 60px;
  }

  .hero {
    margin-top: 100px !important;
  }

  .product-info h1 {
    margin-top: 20px;
  }
}