/* ===== TidNest — Premium Minimalist Design ===== */
/* White + Navy #1B3A4B | Inter + DM Serif Display */

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

:root {
  --navy: #1B3A4B;
  --navy-light: #2C5F74;
  --black: #1A1A1A;
  --text: #333333;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.06);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 12px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-w: 1200px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: var(--black); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.navbar-links a:hover { color: var(--black); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--black);
  width: 44px;
  height: 44px;
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: var(--bg);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto 20px;
  animation: fadeInUp 0.8s ease both;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,58,75,0.2);
}

/* --- Section --- */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Categories --- */
.categories {
  padding: 100px 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  background: var(--white);
}

.category-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.category-svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--navy); }

.category-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Articles --- */
.articles {
  padding: 100px 0;
  background: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.article-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.article-card-body { padding: 24px; }

.article-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--navy);
}

.tag-kitchen { background: #8B6F47 !important; }
.tag-bathroom { background: #5B8A9A !important; }
.tag-closet { background: #7B6B8D !important; }
.tag-office { background: #5A7A6B !important; }
.tag-garage { background: #6B7280 !important; }
.tag-laundry { background: #5A8A8A !important; }
.tag-bedroom { background: #8B7D6B !important; }
.tag-tips { background: #9A8B5A !important; }

.article-date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: 8px;
}

.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card-body h3 a { color: var(--black); }
.article-card-body h3 a:hover { color: var(--navy); }

.article-card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.read-more:hover { color: var(--navy-light); }

/* --- Article Page --- */
.article-header {
  background: var(--bg);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2.4rem;
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto 12px;
}

.article-header p { color: var(--text-muted); font-size: 0.9rem; }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

.affiliate-disclosure {
  background: var(--bg);
  border-left: 3px solid var(--navy);
  padding: 14px 20px;
  margin-bottom: 36px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-content p { margin-bottom: 1.4rem; font-size: 1.05rem; line-height: 1.8; }

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}

/* --- Product Card --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: var(--transition);
}

.product-card:hover { box-shadow: var(--card-shadow-hover); }

.product-gallery {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.product-gallery img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.product-gallery img:hover {
  border-color: var(--navy);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  font-size: 0.88rem;
}

.comparison-table thead {
  background: var(--navy);
  color: var(--white);
}

.comparison-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tbody tr:hover {
  background: var(--bg);
}

.comparison-table a {
  color: var(--navy);
  font-weight: 500;
}

.table-link {
  display: inline-block;
  padding: 4px 14px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-link:hover {
  background: var(--navy-light);
}

/* --- Product Badge --- */
.product-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

.product-img {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-img > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}

.product-info { flex: 1; }

.product-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}

.product-rating { color: #D4A853; font-size: 0.82rem; margin-bottom: 10px; }

.product-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

.product-price .old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,58,75,0.2);
}

/* --- Pros/Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.pros li, .cons li {
  font-size: 0.82rem;
  margin-bottom: 4px;
  list-style: none;
  padding-left: 18px;
  position: relative;
  color: var(--text-muted);
}
.pros li::before { content: '\2713'; position: absolute; left: 0; color: #5A7A6B; font-weight: 700; }
.cons li::before { content: '\2717'; position: absolute; left: 0; color: #9A6B5A; font-weight: 700; }

/* --- Blog Filters --- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* --- Newsletter --- */
.newsletter {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.newsletter h2 { color: var(--white); margin-bottom: 8px; font-size: 2rem; }
.newsletter p { opacity: 0.6; margin-bottom: 36px; font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,0.5); }

.newsletter-form button {
  padding: 16px 28px;
  border-radius: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--navy);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover { background: #E8E8E8; }

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 24px;
}

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

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p { font-size: 0.85rem; line-height: 1.7; }

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* --- Page Header --- */
.page-header {
  background: var(--bg);
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { color: var(--navy); }

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-content p { margin-bottom: 1.3rem; line-height: 1.8; }
.page-content h2 { margin-top: 2.5rem; color: var(--navy); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 60vh; padding: 80px 24px; }
  .navbar-links { display: none; }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; }
  .product-img { width: 100%; min-width: unset; height: 200px; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.2); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories, .articles { padding: 64px 0; }
}
