/* ==========================================================================
   Utpala Cafe — Blog & Article Styles
   Matches the warm earthy palette of the main site (cream, charcoal, gold).
   ========================================================================== */

:root {
  --bg: #f5efe8;
  --bg-soft: #faf6ef;
  --bg-card: #ffffff;
  --ink: #1a1512;
  --ink-soft: #4a3f38;
  --ink-muted: #7a6d63;
  --gold: #c9a84c;
  --gold-deep: #a8893a;
  --green: #4a6b3a;
  --border: #e6dccd;
  --shadow-sm: 0 1px 3px rgba(26, 21, 18, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 21, 18, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 21, 18, 0.12);
  --radius: 14px;
  --maxw: 820px;
  --maxw-wide: 1180px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Top Navigation ---------- */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 232, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.blog-nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.blog-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.blog-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}
.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.blog-nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.blog-nav-cta:hover { background: var(--gold-deep); text-decoration: none; }

@media (max-width: 720px) {
  .blog-nav-links { display: none; }
  .blog-nav-cta { display: inline-flex; }
}

/* ---------- Article Hero ---------- */
.article-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}
.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.article-breadcrumb a { color: var(--ink-muted); }
.article-breadcrumb span.sep { margin: 0 0.5rem; opacity: 0.5; }

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-muted); display: inline-block; }
.article-keyword-pill {
  display: inline-block;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-deep);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Featured Image ---------- */
.article-featured {
  max-width: var(--maxw-wide);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.article-featured figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-featured figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
  font-style: italic;
}

/* ---------- Article Body ---------- */
.article-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.article-body p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}
.article-body p.lead {
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 500;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.75rem;
  color: var(--ink);
  font-weight: 700;
  scroll-margin-top: 90px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); }
.article-body a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(201, 168, 76, 0.5); }

/* Inline image inside article */
.article-figure {
  margin: 2.2rem 0;
}
.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

/* Callout box */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.callout strong { color: var(--gold-deep); }

/* Comparison table */
.article-table-wrap { overflow-x: auto; margin: 2rem 0; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-table th,
.article-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-table th { background: var(--ink); color: #fff; font-weight: 600; }
.article-table tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #2a2018, #1a1512);
  color: #f5efe8;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  color: #fff;
}
.cta-banner p { color: #d9cdbd; margin: 0 0 1.3rem; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #1a1512 !important;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.cta-btn:hover { background: var(--gold-deep); color: #fff !important; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item details { padding: 0; }
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold-deep);
  font-weight: 300;
}
.faq-item details[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Location & Contact ---------- */
.location-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin: 2.5rem 0 0;
}
.location-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.location-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0 0 1rem;
}
.location-info-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}
.location-info-row svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.location-info-row strong { display: block; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.location-info-row span { color: var(--ink-soft); font-size: 0.95rem; }
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

@media (max-width: 720px) {
  .location-inner { grid-template-columns: 1fr; }
}

/* ---------- Related / Author footer ---------- */
.article-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.related-links h3,
.back-to-blog {
  font-family: var(--font-serif);
  color: var(--ink);
}
.related-links h3 { font-size: 1.35rem; margin: 0 0 1rem; }
.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 0.55rem; }
.related-back { margin-bottom: 1.5rem; font-weight: 600; display: inline-block; }

/* ---------- Site Footer (shared) ---------- */
.site-footer {
  background: #15110e;
  color: #b8ac9c;
  padding: 3rem 1.5rem 2rem;
}
.site-footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: #f5efe8; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #b8ac9c; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-brand-name { color: #f5efe8; font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-bottom {
  max-width: var(--maxw-wide);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  text-align: center;
  color: #7d7166;
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
