/* ================================================================
   DECORBROOKS - MODERN PROFESSIONAL DESIGN SYSTEM (ADVANCED EDITION)
   Theme: Luxury Warm Natural / Interior Architecture
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --primary: #a4623a;
  --primary-hover: #884c29;
  --primary-light: #f7ede6;
  --secondary: #3d2b1f;
  --secondary-dark: #231710;
  --accent: #d97736;
  --accent-soft: #fbf1e8;
  
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --bg-alt: #f3eee7;
  
  --text-main: #2a221d;
  --text-muted: #6e6259;
  --text-light: #9c8e84;
  
  --border-color: #e5ded6;
  --border-focus: #a4623a;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(45, 30, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(45, 30, 20, 0.08);
  --shadow-lg: 0 16px 36px rgba(45, 30, 20, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: block;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-decoration: none;
}
.site-title span {
  color: var(--primary);
}

.site-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Navigation Bar */
.nav-bar {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 16px 14px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary);
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  padding: 10px 0;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

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

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  text-transform: none;
  transition: var(--transition);
}

.dropdown-link:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 24px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fffcf9 0%, #f6efe8 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0 50px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 18px;
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(164, 98, 58, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(164, 98, 58, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--secondary) !important;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Filter / Search Bar */
.search-wrapper {
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  font-size: 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 98, 58, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-light);
  pointer-events: none;
}

/* Main Content Area */
.main-wrapper {
  padding: 48px 0 80px;
}

/* Hub Grid */
.db-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.db-hub-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.db-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition);
}

.db-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #d8cec3;
}

.db-hub-card:hover::before {
  background: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.db-hub-card h2, .db-hub-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.db-hub-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.db-hub-card .card-usage {
  background: var(--bg-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 18px;
}

.db-hub-card .card-usage strong {
  color: var(--secondary);
}

.db-hub-card a.card-action {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.db-hub-card a.card-action:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* Tool Widget Styles (Enhanced Block 0) */
.db-tool-wrapper {
  max-width: 820px;
  margin: 36px auto 50px;
}

.db-tool {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.db-tool-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.db-tool h3 {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 4px;
}

.db-note {
  font-size: 14px;
  color: var(--text-muted);
}

.db-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.db-row > div {
  flex: 1;
  min-width: 140px;
}

.db-tool label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.db-tool input, .db-tool select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d4cdc5;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-sans);
  background: #faf9f6;
  color: var(--text-main);
  transition: var(--transition);
}

.db-tool input:focus, .db-tool select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(164, 98, 58, 0.15);
}

.db-tool input[type="color"] {
  height: 48px;
  padding: 4px;
  cursor: pointer;
  background: #ffffff;
}

.db-tool button {
  margin-top: 18px;
  width: 100%;
  padding: 14px 28px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(164, 98, 58, 0.2);
}

.db-tool button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(164, 98, 58, 0.3);
}

/* Tool Output Box */
.db-out {
  margin-top: 24px;
  padding: 20px 22px;
  background: #fbf6ef;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  line-height: 1.8;
  display: none;
  animation: slideDown 0.3s ease;
}

.db-out.show {
  display: block;
}

.db-out b {
  color: var(--secondary);
  font-weight: 700;
}

/* Article & Content Typography */
.content-body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.8;
  color: #38302b;
}

.content-body h2 {
  font-size: 26px;
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.content-body h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul, .content-body ol {
  margin: 0 0 24px 24px;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.content-body th, .content-body td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}

.content-body th {
  background: var(--bg-alt);
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.content-body tr:last-child td {
  border-bottom: none;
}

.content-body tr:hover td {
  background: #fdfcfb;
}

.content-callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #f2e9dd;
  border-top: 5px solid var(--primary);
  padding: 60px 0 30px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 12px;
}
.footer-brand h2 span {
  color: var(--accent);
}

.footer-brand p {
  color: #d1c5b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h3 {
  color: #e4c9a8;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-weight: 700;
}

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

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

.footer-col a {
  color: #dcd1c4;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.db-copyright-bar {
  background-color: var(--secondary-dark);
  color: #b5a593;
  text-align: center;
  padding: 18px 10px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .db-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 10px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
  }
  .nav-item.active .dropdown-menu {
    display: block;
  }
  .db-hub-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-title {
    font-size: 32px;
  }
  .db-row > div {
    min-width: 100%;
  }

}

