/* ============================================
   Contract Furnishing Smart — Main Stylesheet
   Color Palette:
     Navy:  #1a365d
     Gold:  #d4a843
     White: #ffffff
     Light: #f7f8fc
     Gray:  #6b7280
     Dark:  #111827
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #111827; background: #fff; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a365d; text-decoration: none; transition: color .2s; }
a:hover { color: #d4a843; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 4px;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s;
  border: none; text-align: center;
}
.btn-primary { background: #d4a843; color: #fff; }
.btn-primary:hover { background: #c4962e; color: #fff; }
.btn-outline { border: 2px solid #1a365d; color: #1a365d; background: transparent; }
.btn-outline:hover { background: #1a365d; color: #fff; }
.btn-white { background: #fff; color: #1a365d; }
.btn-white:hover { background: #f7f8fc; color: #1a365d; }
.section { padding: 4rem 0; }
.section-alt { background: #f7f8fc; }
.section-title { font-size: 2rem; color: #1a365d; margin-bottom: .5rem; }
.section-subtitle { color: #6b7280; font-size: 1.1rem; margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.text-gold { color: #d4a843; }
.text-navy { color: #1a365d; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Header --- */
.site-header {
  background: #1a365d; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.logo { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.logo span { color: #d4a843; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: #d4a843; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #1a365d; padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #243b5e 50%, #1a365d 100%);
  color: #fff; padding: 5rem 0; text-align: center;
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto 2rem; }
.hero .btn { margin: 0 .5rem .5rem; }
@media (max-width: 768px) { .hero h1 { font-size: 2rem; } .hero { padding: 3rem 0; } }

/* --- Category Cards --- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff; border-radius: 8px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
  border-top: 3px solid #d4a843;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; color: #1a365d; margin-bottom: .5rem; }
.card p { color: #6b7280; font-size: .95rem; margin-bottom: 1rem; }
.card-link { color: #d4a843; font-weight: 600; font-size: .9rem; }
.card-link:hover { color: #1a365d; }

/* --- Featured Articles --- */
.article-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .25s;
}
.article-card:hover { transform: translateY(-3px); }
.article-card-img {
  height: 200px; background: linear-gradient(135deg, #1a365d, #2d4a7a);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 3rem;
  background-size: cover; background-position: center;
  position: relative;
}
.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
}
.article-card-body { padding: 1.5rem; }
.article-card-body .tag {
  display: inline-block; background: #f0e6d0; color: #a0842e;
  padding: .2rem .6rem; border-radius: 3px; font-size: .75rem; font-weight: 600;
  margin-bottom: .75rem; text-transform: uppercase;
}
.article-card-body h3 { font-size: 1.1rem; color: #1a365d; margin-bottom: .5rem; }
.article-card-body p { color: #6b7280; font-size: .9rem; margin-bottom: 1rem; }
.article-card-body .read-more { color: #d4a843; font-weight: 600; font-size: .9rem; }

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, #1a365d, #243b5e);
  color: #fff; padding: 3.5rem 0; text-align: center;
}
.newsletter h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.newsletter p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex; max-width: 500px; margin: 0 auto; gap: .5rem;
}
.newsletter-form input {
  flex: 1; padding: .75rem 1rem; border: none; border-radius: 4px;
  font-size: .95rem;
}
.newsletter-form .btn { white-space: nowrap; }
@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* --- CTA Banner --- */
.cta-banner {
  background: #d4a843; color: #fff; padding: 3rem 0; text-align: center;
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.cta-banner p { margin-bottom: 1.5rem; opacity: .9; }

/* --- Footer --- */
.site-footer { background: #111827; color: rgba(255,255,255,.6); padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-grid h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; }
.footer-grid a { color: rgba(255,255,255,.6); display: block; margin-bottom: .4rem; font-size: .9rem; }
.footer-grid a:hover { color: #d4a843; }
.footer-grid p { font-size: .9rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .85rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #1a365d, #243b5e);
  color: #fff; padding: 3rem 0; text-align: center;
}
.page-header h1 { font-size: 2.25rem; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }

/* --- Content Layout --- */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
@media (max-width: 900px) { .content-wrap { grid-template-columns: 1fr; } }
.main-content h2 { font-size: 1.5rem; color: #1a365d; margin: 2rem 0 .75rem; }
.main-content h3 { font-size: 1.2rem; color: #1a365d; margin: 1.5rem 0 .5rem; }
.main-content p { margin-bottom: 1rem; color: #374151; }
.main-content ul, .main-content ol { margin: 0 0 1rem 1.5rem; list-style: disc; }
.main-content li { margin-bottom: .4rem; color: #374151; }

/* --- Sidebar --- */
.sidebar {}
.sidebar-box {
  background: #f7f8fc; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-box h3 { font-size: 1rem; color: #1a365d; margin-bottom: 1rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: .5rem; }
.sidebar-box a { font-size: .9rem; }

/* --- Comparison Table --- */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.comparison-table th {
  background: #1a365d; color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600;
}
.comparison-table td { padding: .75rem 1rem; border-bottom: 1px solid #e5e7eb; }
.comparison-table tr:hover { background: #f7f8fc; }
.comparison-table .rating { color: #d4a843; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem;
}
.blog-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.blog-filters button {
  padding: .5rem 1rem; border: 1px solid #e5e7eb; background: #fff;
  border-radius: 4px; cursor: pointer; font-size: .85rem; transition: all .2s;
}
.blog-filters button.active, .blog-filters button:hover {
  background: #1a365d; color: #fff; border-color: #1a365d;
}

/* --- Blog Post --- */
.post-meta { color: #6b7280; font-size: .9rem; margin-bottom: 1.5rem; }
.post-meta span { margin-right: 1rem; }
.post-content { max-width: 800px; }
.post-content h2 { border-bottom: 2px solid #f0e6d0; padding-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid #d4a843; padding: 1rem 1.5rem; background: #f7f8fc;
  margin: 1.5rem 0; font-style: italic; color: #374151;
}
.post-content .affiliate-box {
  background: #f7f8fc; border: 1px solid #e5e7eb; border-left: 4px solid #d4a843;
  padding: 1.25rem; border-radius: 4px; margin: 1.5rem 0;
}
.post-content .affiliate-box h4 { color: #1a365d; margin-bottom: .5rem; }
.post-content .key-takeaway {
  background: #eef2ff; border-radius: 8px; padding: 1.25rem; margin: 1.5rem 0;
}
.post-content .key-takeaway h4 { color: #1a365d; margin-bottom: .5rem; }

/* --- Contact Form --- */
.contact-form { max-width: 700px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; color: #1a365d; margin-bottom: .35rem; font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid #d1d5db; border-radius: 4px;
  font-size: .95rem; font-family: inherit; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #d4a843; box-shadow: 0 0 0 3px rgba(212,168,67,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* --- AdSense Placeholder --- */
.ad-placeholder {
  /* background: #f7f8fc; border: 1px dashed #d1d5db; padding: 1rem;
     text-align: center; color: #9ca3af; font-size: .8rem; margin: 1.5rem 0;
     border-radius: 4px; min-height: 90px; display: flex; align-items: center;
     justify-content: center; */
  display: none;
}
