/* =============================================
   Daily Homewise — style.css
   Mobile-first, no external dependencies
   ============================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --blue:       #1a56db;
  --blue-dark:  #1e40af;
  --blue-light: #dbeafe;
  --blue-mid:   #3b82f6;
  --text:       #1e293b;
  --muted:      #64748b;
  --bg:         #f8fafc;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:  0 6px 28px rgba(0,0,0,.13);
  --max:        1200px;
  --t:          .2s ease;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  height: 64px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.logo-name {
  font-size: 1.3rem; font-weight: 800;
  color: var(--blue); letter-spacing: -.025em;
}
.logo-tagline {
  font-size: .65rem; color: var(--muted);
  letter-spacing: .05em; text-transform: uppercase;
}

/* Nav */
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 7px 13px;
  font-size: .875rem; font-weight: 500; color: var(--text);
  border-radius: 6px;
  transition: background var(--t), color var(--t);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue-light); color: var(--blue);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  border: none; background: none; flex-shrink: 0;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text); display: block;
  border-radius: 2px; transition: var(--t);
}

/* ---------- CATEGORY BAR ---------- */
.cat-bar { background: var(--blue); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-bar ul { display: flex; white-space: nowrap; }
.cat-bar a {
  display: block; padding: 10px 18px;
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .06em;
  transition: background var(--t), color var(--t);
}
.cat-bar a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- HERO / FEATURED ---------- */
.hero { padding: 28px 0 20px; }
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.feat-thumb {
  position: relative; overflow: hidden;
  min-height: 280px;
}
.feat-thumb .thumb-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.feat-thumb .thumb-bg svg { width: 90px; height: 90px; opacity: .22; }
.feat-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95); color: var(--blue);
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 10px; border-radius: 4px;
}
.feat-content { background: var(--white); padding: 36px 36px 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.feat-cat {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); margin-bottom: 10px;
}
.feat-title {
  font-size: 1.55rem; font-weight: 800;
  line-height: 1.22; color: var(--text); margin-bottom: 12px;
}
.feat-title a:hover { color: var(--blue); }
.feat-excerpt { font-size: .93rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.feat-meta { font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.btn-read {
  display: inline-block; padding: 11px 24px;
  background: var(--blue); color: #fff;
  border-radius: 6px; font-size: .875rem; font-weight: 700;
  align-self: flex-start;
  transition: background var(--t);
}
.btn-read:hover { background: var(--blue-dark); color: #fff; }

/* ---------- ARTICLES SECTION ---------- */
.articles-section { padding: 20px 0 52px; background: var(--bg); }
.section-hd {
  font-size: 1.15rem; font-weight: 800; color: var(--text);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: flex; align-items: center; gap: 10px;
}
.section-hd::before {
  content: ''; display: block;
  width: 4px; height: 20px;
  background: var(--blue); border-radius: 2px;
}
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* Card */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden; flex-shrink: 0;
}
.card-thumb .thumb-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb .thumb-bg svg { width: 52px; height: 52px; opacity: .22; }
.card-cat-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 4px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: .975rem; font-weight: 700;
  line-height: 1.35; color: var(--text); margin-bottom: 8px;
}
.card-title a:hover { color: var(--blue); }
.card-excerpt {
  font-size: .83rem; color: var(--muted); line-height: 1.55;
  flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-date { font-size: .75rem; color: var(--muted); }
.card-more { font-size: .78rem; font-weight: 700; color: var(--blue); }
.card-more:hover { text-decoration: underline; }

/* ---------- ARTICLE PAGE ---------- */
.article-page { padding: 36px 0 64px; }
.article-wrap { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.art-cat-tag {
  display: inline-block; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); background: var(--blue-light);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.art-title {
  font-size: 1.9rem; font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 14px;
}
.art-meta { font-size: .8rem; color: var(--muted); margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.art-hero-img {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius); margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.art-hero-img .thumb-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.art-hero-img .thumb-bg svg { width: 100px; height: 100px; opacity: .2; }

.art-body { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.art-body h2 {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  margin: 32px 0 12px;
  border-left: 4px solid var(--blue); padding-left: 14px;
}
.art-body p { margin-bottom: 16px; }
.art-body ul, .art-body ol { padding-left: 22px; margin-bottom: 16px; }
.art-body li { margin-bottom: 7px; }
.art-body strong { font-weight: 700; color: var(--text); }

.art-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.rel-card {
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .86rem; font-weight: 600; color: var(--text);
  transition: border-color var(--t), color var(--t);
}
.rel-card:hover { border-color: var(--blue); color: var(--blue); }
.rel-cat { font-size: .7rem; color: var(--muted); font-weight: 400; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- ADVERTORIAL PAGE ---------- */
.adv-header {
  background: linear-gradient(135deg, #0d2d6e 0%, #1a56db 60%, #3b82f6 100%);
  color: #fff; padding: 52px 20px 44px; text-align: center;
}
.adv-badge {
  display: inline-block;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  padding: 5px 13px; border-radius: 4px; margin-bottom: 16px;
}
.adv-header h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.2;
  max-width: 700px; margin: 0 auto 14px;
}
.adv-sub { font-size: 1rem; opacity: .82; max-width: 560px; margin: 0 auto; }
.adv-meta { font-size: .78rem; opacity: .65; margin-top: 14px; }

.adv-wrap { max-width: 760px; margin: 0 auto; padding: 44px 20px 64px; }
.adv-body { font-size: 1.03rem; line-height: 1.82; color: var(--text); }
.adv-body h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 36px 0 14px; }
.adv-body p { margin-bottom: 18px; }
.adv-body strong { font-weight: 700; }

.highlight-box {
  background: var(--blue-light); border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 24px 0; font-size: .97rem;
}
.highlight-box strong { color: var(--blue-dark); }
.checklist { padding: 0; margin: 16px 0 24px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 13px; font-size: .98rem;
}
.check-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; min-width: 22px;
  background: var(--blue); border-radius: 50%; margin-top: 1px;
}
.check-icon svg { width: 12px; height: 12px; }

.cta-box {
  background: linear-gradient(135deg, #0d2d6e 0%, #1a56db 100%);
  border-radius: 12px; padding: 44px 36px;
  text-align: center; color: #fff; margin-top: 44px;
}
.cta-box h3 { font-size: 1.65rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p { font-size: .98rem; opacity: .85; margin-bottom: 26px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block;
  background: #16a34a; color: #fff;
  font-size: 1.12rem; font-weight: 800;
  padding: 17px 44px; border-radius: 8px;
  box-shadow: 0 4px 18px rgba(22,163,74,.38);
  transition: background var(--t), transform var(--t);
}
.cta-btn:hover { background: #15803d; transform: translateY(-2px); color: #fff; }
.cta-sub { font-size: .76rem; opacity: .55; margin-top: 12px; }
.cta-disclaimer {
  font-size: .75rem; color: var(--muted); margin-top: 28px;
  padding-top: 18px; border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* ---------- STATIC PAGES ---------- */
.page-wrap { max-width: 800px; margin: 0 auto; padding: 48px 20px 64px; }
.page-title {
  font-size: 1.9rem; font-weight: 800; color: var(--text);
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 3px solid var(--blue);
}
.page-body { font-size: .98rem; line-height: 1.78; color: var(--text); }
.page-body h2 { font-size: 1.18rem; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.page-body p { margin-bottom: 15px; }
.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 15px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--blue); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer { background: #0f172a; color: rgba(255,255,255,.65); padding: 52px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo-name { font-size: 1.15rem; font-weight: 800; color: #fff; }
.footer-brand .logo-tagline { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: .83rem; margin-top: 12px; line-height: 1.65; max-width: 290px; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-size: .8rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .83rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; }

/* ---------- RESPONSIVE ---------- */
/* ---------- REAL IMAGES ---------- */
.card-thumb img,
.feat-thumb img,
.art-hero-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.adv-body .article-img {
  width: 100%; border-radius: var(--radius);
  margin: 28px 0; display: block;
  max-height: 400px; object-fit: cover;
}

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .feat-thumb { min-height: 240px; aspect-ratio: 16/7; }
  .feat-content { padding: 28px; }
  .feat-title { font-size: 1.3rem; }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .adv-header h1 { font-size: 1.65rem; }
}
@media (max-width: 600px) {
  .main-nav {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,.1); z-index: 199;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { padding: 13px 22px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .main-nav li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .art-title { font-size: 1.5rem; }
  .adv-header h1 { font-size: 1.4rem; }
  .cta-box { padding: 30px 22px; }
  .cta-btn { width: 100%; text-align: center; padding: 16px 20px; font-size: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .feat-thumb { aspect-ratio: 16/9; min-height: 0; }
}
