/* VelvetAndTimber — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #8B4513;       /* saddle brown — timber */
  --primary-dark: #6B3410;
  --primary-light: #F5EDE6;
  --accent: #C8956C;        /* warm terracotta */
  --accent-2: #2C3E50;      /* deep slate */
  --gold: #B8860B;          /* dark goldenrod */
  --text: #1C1C1C;
  --text-muted: #6B7280;
  --border: #E8DDD5;
  --bg: #FDFAF7;            /* warm off-white */
  --bg-gray: #F5EDE6;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(139,69,19,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(139,69,19,0.12), 0 16px 48px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

/* ─── NAV ─── */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo .velvet { color: var(--accent); }
.logo .amp    { color: var(--text-muted); font-weight: 400; margin: 0 2px; }
.logo .timber { color: var(--primary); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 7px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #2C1A0E 0%, #4A2C17 50%, #3D2010 100%);
  color: white;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(200,149,108,0.25);
  color: var(--accent);
  border: 1px solid rgba(200,149,108,0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 32px;
}
.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
}
.search-bar input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
.search-bar button {
  background: var(--primary);
  border: none;
  padding: 15px 26px;
  cursor: pointer;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.search-bar button:hover { background: var(--primary-dark); }

/* ─── CONTAINER ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── SECTION ─── */
.section { padding: 64px 0; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.section-sub { color: var(--text-muted); margin-bottom: 36px; font-size: 0.95rem; max-width: 560px; }

/* ─── TOOLS GRID ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.22s;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-icon {
  font-size: 2.1rem;
  margin-bottom: 14px;
  display: block;
}
.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  font-family: 'Playfair Display', serif;
}
.tool-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-text  { background: #FEF3C7; color: #92400E; }
.badge-calc  { background: #E0F2FE; color: #0369A1; }
.badge-gen   { background: #F0FDF4; color: #166534; }
.badge-conv  { background: #FDF4FF; color: #7E22CE; }
.badge-util  { background: #FFF7ED; color: #9A3412; }

/* ─── CATEGORY TABS ─── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  font-family: inherit;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─── TOOL PAGE ─── */
.tool-page { padding: 44px 0 64px; }
.tool-header { margin-bottom: 36px; }
.tool-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.tool-header p { color: var(--text-muted); font-size: 1rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

.tool-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.tool-box label {
  font-weight: 600;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.tool-box textarea,
.tool-box input[type="text"],
.tool-box input[type="number"],
.tool-box input[type="date"],
.tool-box select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  background: var(--bg);
  transition: border 0.15s;
  outline: none;
  color: var(--text);
}
.tool-box textarea:focus,
.tool-box input:focus,
.tool-box select:focus { border-color: var(--primary); background: white; }
.tool-box textarea { min-height: 170px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.17s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,69,19,0.3); }
.btn-secondary { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #b07a55; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* ─── RESULT BOX ─── */
.result-box {
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 9px;
  padding: 18px;
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
  min-height: 64px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

/* ─── STATS ─── */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.stat-chip {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  min-width: 100px;
  flex: 1;
}
.stat-chip .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); font-family: 'Playfair Display', serif; }
.stat-chip .lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── INFO BOX ─── */
.info-box {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 24px;
}
.info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.info-box p, .info-box li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; }
.info-box ol, .info-box ul { padding-left: 18px; }

/* ─── WHY SECTION ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.why-card {
  padding: 28px 22px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s;
}
.why-card:hover { box-shadow: var(--shadow); }
.why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; }
.why-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ─── BLOG ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.22s;
  background: white;
  display: block;
  color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
.blog-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--primary-light), #EDE0D6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.blog-thumb-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-body { padding: 22px; }
.blog-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}
.blog-body p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }
.blog-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 14px; display: flex; gap: 12px; }

/* ─── ARTICLE PAGE ─── */
.article-header { padding: 56px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }
.article-content { max-width: 720px; }
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
}
.article-content p { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 18px; }
.article-content li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.article-content strong { color: var(--text); }

/* ─── LEGAL ─── */
.legal-content { max-width: 800px; padding: 56px 0 72px; }
.legal-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.legal-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.legal-section p { color: var(--text-muted); line-height: 1.85; font-size: 0.9rem; margin-bottom: 10px; }
.legal-section a { color: var(--primary); font-weight: 500; }
.legal-highlight {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  border-left: 3px solid var(--primary);
}

/* ─── FOOTER ─── */
footer {
  background: #1C0E07;
  color: #9CA3AF;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand .logo { color: white; font-size: 1.25rem; }
.footer-brand .velvet { color: var(--accent); }
.footer-brand .timber { color: #C8956C; }
.footer-brand p { margin-top: 14px; font-size: 0.85rem; line-height: 1.75; }
footer h4 { color: white; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul li a { color: #9CA3AF; font-size: 0.85rem; transition: color 0.15s; }
footer ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #2D1A10;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: var(--accent); }

/* ─── AD SLOT ─── */
.ad-slot {
  background: var(--bg-gray);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 28px 0;
}

/* ─── UTILS ─── */
.bg-gray { background: var(--bg-gray); }
.bg-dark { background: #1C0E07; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.tool-card { animation: fadeUp 0.35s ease both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 24px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .stats-row { gap: 10px; }
  .hero { padding: 56px 20px 52px; }
  .tool-box { padding: 22px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
