/* CSS RESET & VARIABLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #1e293b; /* Deep Slate Blue */
  --accent-color: #b45309; /* Warm Amber/Wood Accent */
  --text-dark: #334155; /* Charcoal body text */
  --text-light: #f8fafc; /* Off-white */
  --bg-light: #f1f5f9; /* Light gray background */
  --bg-white: #ffffff;
  --border-color: #cbd5e1;
  --font-stack:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-stack);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* ACCESSIBILITY: SKIP LINK */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: var(--text-light);
  padding: 8px ease;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* HEADER & NAVIGATION */
.site-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  padding: 15px 20px;
}

.header-table {
  display: table;
  width: 100%;
}

.header-row {
  display: table-row;
}

.brand-cell,
.nav-cell {
  display: table-cell;
  vertical-align: middle;
}

.logo-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-link span {
  color: var(--accent-color);
}

.main-nav {
  text-align: right;
}

.main-nav ul {
  list-style: none;
  display: inline-block;
}

.main-nav li {
  display: inline-block;
  margin-left: 24px;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* MAIN CONTENT & HERO */
.hero-section {
  background:
    linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)),
    url("https://cabinetsunitedpro.com/assets/images/hero-bg.jpg") center/cover
      no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.btn:hover {
  background-color: #9a4004;
  transform: translateY(-1px);
}

/* CATEGORIES / PRODUCTS GRID */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 1.85rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Product Grid implementation via block/table fallback to match layout expectations */
.grid-container {
  display: block;
  margin-top: 30px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-light);
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-info p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  height: auto;
}

.card-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
}

.card-link:hover {
  text-decoration: underline;
}

/* TWO COLUMN FEATURES SECTION */
.features-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.table-layout {
  display: table;
  width: 100%;
}

.table-row {
  display: table-row;
}

.table-cell {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding: 20px;
}

.features-text h2 {
  font-size: 1.85rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.features-text p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.features-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.features-text li {
  margin-bottom: 8px;
}

/* FOOTER */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 20px;
  font-size: 0.9rem;
  border-top: 5px solid var(--accent-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-table {
  display: table;
  width: 100%;
  margin-bottom: 30px;
}

.footer-cell {
  display: table-cell;
  width: 33.333%;
  vertical-align: top;
  padding: 0 15px;
}

.footer-cell h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-cell ul {
  list-style: none;
}

.footer-cell li {
  margin-bottom: 10px;
}

.footer-cell a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-cell a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH & MEDIA QUERIES */
@media (min-width: 768px) {
  .grid-container {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
  }
  .product-card {
    display: table-cell;
    width: 33.333%;
    vertical-align: top;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .header-table,
  .header-row,
  .brand-cell,
  .nav-cell,
  .table-layout,
  .table-row,
  .table-cell,
  .footer-table,
  .footer-cell {
    display: block;
    width: 100% !important;
    text-align: center;
  }
  .nav-cell {
    margin-top: 15px;
  }
  .main-nav li {
    margin: 0 10px;
  }
  .table-cell {
    padding: 10px 0;
  }
  .footer-cell {
    margin-bottom: 25px;
    padding: 0;
  }
  .hero-section h1 {
    font-size: 1.9rem;
  }
}
