/*
Theme Name: SDM Minimal
Theme URI: https://sheiladelmundo.com
Author: Sheila Del Mundo
Description: Minimal custom theme for SheilaDelMundo.com — matches the brand design system across all pages.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: sdm-minimal
*/

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── TOKENS ── */
:root {
  --ink:       #1a1a2e;
  --paper:     #fffae3;
  --cream:     #f5f0d0;
  --blue:      #2b59d1;
  --blue-mid:  #4a74e8;
  --blue-pale: #d1e0fa;
  --yellow:    #ffd52b;
  --cyan:      #9bd1e5;
  --muted:     #7a7060;
  --mid:       #3a3530;
  --rule:      #e0d9c0;
  --white:     #ffffff;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
.sdm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sdm-nav-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 4px 7px;
  border-radius: 5px;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.sdm-nav-logo { height: 30px; width: auto; display: block; }

.sdm-nav-links { display: flex; align-items: center; gap: 28px; }

.sdm-nav-links a {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s;
}

.sdm-nav-links a:hover { color: var(--white); }
.sdm-nav-links a.active { color: var(--yellow); }

.sdm-nav-cta {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 9px 22px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s;
  white-space: nowrap;
}

.sdm-nav-cta:hover { background: var(--blue-mid); }

/* ══════════════════════════════════
   SINGLE POST — HEADER
══════════════════════════════════ */
.sdm-post-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 56px 48px 48px;
}

.sdm-post-header .inner {
  max-width: 740px;
  margin: 0 auto;
}

.sdm-post-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sdm-post-cat {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.sdm-post-cat:hover { color: var(--blue-mid); }

.sdm-post-cat::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--yellow);
  margin-right: 10px;
  vertical-align: middle;
}

.sdm-post-header h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.sdm-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.sdm-post-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
}

.sdm-post-meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

/* ── FEATURED IMAGE ── */
.sdm-featured-image {
  max-width: 740px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.sdm-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ══════════════════════════════════
   SINGLE POST — CONTENT
══════════════════════════════════ */
.sdm-post-content {
  background: var(--paper);
  padding: 52px 48px 64px;
}

.sdm-post-content .inner {
  max-width: 680px;
  margin: 0 auto;
}

/* Typography */
.sdm-post-content .entry-content p {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.sdm-post-content .entry-content p:last-child { margin-bottom: 0; }

.sdm-post-content .entry-content h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.sdm-post-content .entry-content h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.sdm-post-content .entry-content h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sdm-post-content .entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sdm-post-content .entry-content a:hover { color: var(--blue-mid); }

.sdm-post-content .entry-content strong {
  font-weight: 700;
  color: var(--ink);
}

.sdm-post-content .entry-content em { font-style: italic; }

/* Lists */
.sdm-post-content .entry-content ul,
.sdm-post-content .entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.sdm-post-content .entry-content li {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.sdm-post-content .entry-content ul li { list-style: disc; }
.sdm-post-content .entry-content ol li { list-style: decimal; }

/* Blockquote */
.sdm-post-content .entry-content blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--cream);
  margin: 2rem 0;
  padding: 20px 28px;
}

.sdm-post-content .entry-content blockquote p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 0;
}

.sdm-post-content .entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

/* Code */
.sdm-post-content .entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--blue);
}

.sdm-post-content .entry-content pre {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.sdm-post-content .entry-content pre code {
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan);
  border-radius: 0;
}

/* Images in content */
.sdm-post-content .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid var(--rule);
}

.sdm-post-content .entry-content figcaption {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* HR */
.sdm-post-content .entry-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ══════════════════════════════════
   SINGLE POST — FOOTER (tags + nav)
══════════════════════════════════ */
.sdm-post-footer {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 48px;
}

.sdm-post-footer .inner {
  max-width: 680px;
  margin: 0 auto;
}

.sdm-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sdm-post-tags-label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.sdm-tag {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

.sdm-tag:hover { border-color: var(--blue); color: var(--blue); }

/* Post navigation */
.sdm-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sdm-post-nav a {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}

.sdm-post-nav a:hover { border-color: var(--blue); transform: translateY(-2px); }
.sdm-post-nav .next { text-align: right; }

.sdm-post-nav .nav-label {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

.sdm-post-nav .nav-title {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* ══════════════════════════════════
   NEWSLETTER STRIP
══════════════════════════════════ */
.sdm-nl-strip {
  background: var(--ink);
  padding: 52px 48px;
}

.sdm-nl-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

.sdm-nl-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow);
}

.sdm-nl-eyebrow::before {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}

.sdm-nl-strip h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.sdm-nl-strip h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}

.sdm-nl-strip p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

.sdm-nl-form { display: flex; flex-direction: column; gap: 10px; }

.sdm-nl-form input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.sdm-nl-form input:focus { border-color: rgba(255,255,255,0.35); }
.sdm-nl-form input::placeholder { color: rgba(255,255,255,0.3); }

.sdm-nl-form button {
  width: 100%;
  padding: 14px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.sdm-nl-form button:hover { background: #f5c800; }
.sdm-nl-note { font-family: 'Lato', sans-serif; font-size: 12px; color: rgba(255,255,255,0.25); text-align: center; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.sdm-footer { background: #0d1117; padding: 24px 48px; }

.sdm-footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sdm-footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 0;
}

.sdm-footer-logo { height: 24px; width: auto; display: block; }

.sdm-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.sdm-footer-links a {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.sdm-footer-links a:hover { color: rgba(255,255,255,0.7); }
.sdm-footer-copy { font-family: 'Lato', sans-serif; font-size: 11px; color: rgba(255,255,255,0.15); }

/* ══════════════════════════════════
   ARCHIVE PAGE (category / tag)
══════════════════════════════════ */
.sdm-archive-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 52px 48px 40px;
}

.sdm-archive-header .inner { max-width: 1100px; margin: 0 auto; }

.sdm-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

.sdm-eyebrow::before {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}

.sdm-archive-header h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.sdm-archive-header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.sdm-archive-header p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
}

.sdm-archive-body {
  padding: 40px 48px 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.sdm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sdm-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.2s;
}

.sdm-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.sdm-card-cat {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.sdm-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.sdm-card-excerpt {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sdm-card-meta {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: auto;
}

.sdm-card-read {
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* ══════════════════════════════════
   404 PAGE
══════════════════════════════════ */
.sdm-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  background: var(--paper);
  text-align: center;
}

.sdm-404 .inner { max-width: 480px; }

.sdm-404-num {
  font-family: 'Roboto', sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 16px;
}

.sdm-404 h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.sdm-404 p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sdm-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s;
}

.sdm-btn-primary:hover { background: var(--blue-mid); }

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   WORDPRESS CORE CLASSES
══════════════════════════════════ */
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.alignwide, .alignfull { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .sdm-nav { padding: 14px 20px; }
  .sdm-nav-links { display: none; }

  .sdm-post-header { padding: 36px 20px 32px; }
  .sdm-post-content { padding: 36px 20px 48px; }
  .sdm-post-footer { padding: 24px 20px; }

  .sdm-post-nav { grid-template-columns: 1fr; }
  .sdm-post-nav .next { text-align: left; }

  .sdm-nl-strip { padding: 40px 20px; }
  .sdm-nl-inner { grid-template-columns: 1fr; gap: 28px; }

  .sdm-footer { padding: 20px; }
  .sdm-footer-wrap { flex-direction: column; align-items: flex-start; }

  .sdm-archive-header { padding: 36px 20px 28px; }
  .sdm-archive-body { padding: 28px 20px 48px; }
  .sdm-cards-grid { grid-template-columns: 1fr; }

  .sdm-404 { padding: 60px 20px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .sdm-cards-grid { grid-template-columns: 1fr 1fr; }
}
