/* Isla Studio — Blog & Article Styles
   Inherits: style.css variables (--ink, --off-white, --cream, --sand, --gold, --muted, --border)
   Fonts:    Cormorant Garamond (headings), Jost (body / UI)
   ────────────────────────────────────────────────────────────────────── */

/* ── ARTICLE LAYOUT ────────────────────────────────────────────────── */
.article-hero {
  padding: 10rem 6vw 4rem;
  text-align: center;
  background: var(--ink);
  color: var(--white);
}
.article-hero .eyebrow { color: var(--gold); margin-bottom: 1.2rem; }
.article-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}
.article-hero .article-meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.article-hero .article-meta span + span::before {
  content: '\00b7';
  margin: 0 0.6em;
}

/* ── ARTICLE HERO IMAGE ────────────────────────────────────────────── */
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
}
.article-body .img-caption {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: -1.2rem 0 2rem;
  letter-spacing: 0.02em;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
}

/* ── ARTICLE TYPOGRAPHY ────────────────────────────────────────────── */
.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  margin: 3.5rem 0 1.2rem;
  color: var(--ink);
}
.article-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  margin: 2.5rem 0 0.8rem;
  color: var(--ink);
}
.article-body p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.article-body p strong {
  font-weight: 400;
  color: var(--ink);
}
.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--ink); }

/* ── LISTS ──────────────────────────────────────────────────────────── */
.article-body ul, .article-body ol {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  margin: 0 0 1.6rem 1.5rem;
  color: var(--ink);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body li::marker { color: var(--gold); }

/* ── BLOCKQUOTE / CALLOUT ──────────────────────────────────────────── */
.article-callout {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.article-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ── CALCULATOR WIDGET ─────────────────────────────────────────────── */
.calc-widget {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
}
.calc-widget h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 1.5rem;
  text-align: center;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc-row label {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 180px;
  flex-shrink: 0;
}
.calc-row input, .calc-row select {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  max-width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.calc-row input:focus-visible, .calc-row select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.calc-row input:focus, .calc-row select:focus {
  border-color: var(--gold);
}
.calc-btn {
  display: block;
  margin: 1.5rem auto 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-btn:hover { background: #6a7a5e; }

.calc-results {
  display: none;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.calc-results.visible { display: block; }

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.calc-result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}
.calc-result-card.highlight {
  border-color: var(--gold);
  background: rgba(122,140,110,0.06);
}
.calc-result-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.calc-result-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.calc-result-card.highlight .calc-result-val { color: var(--gold); }
.calc-result-note {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* ── FAQ SECTION ────────────────────────────────────────────────────── */
.faq-section {
  margin: 3rem 0;
}
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-top: 0.8rem;
}
.faq-a p {
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

/* ── TABLE ──────────────────────────────────────────────────────────── */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
}
.article-table thead {
  background: var(--cream);
}
.article-table th {
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.article-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 300;
}
.article-table tbody tr:hover { background: rgba(240,236,227,0.4); }

/* ── ARTICLE CTA BANNER ────────────────────────────────────────────── */
.article-cta {
  background: var(--ink);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.article-cta .eyebrow { color: var(--gold); margin-bottom: 0.8rem; }
.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
  margin: 0 0 1rem;
}
.article-cta p {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.article-cta .btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.article-cta .btn-gold {
  background: var(--gold);
  color: #fff;
}
.article-cta .btn-gold:hover { background: #6a7a5e; }

/* ── BREADCRUMB ────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb span { margin: 0 0.4em; }

/* ── BLOG INDEX ────────────────────────────────────────────────────── */
.blog-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.blog-card:last-child { border-bottom: none; }
.blog-card .eyebrow { margin-bottom: 0.6rem; }
.blog-card h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
}
.blog-card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card h2 a:hover { color: var(--gold); }
.blog-card p {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.blog-card .read-more {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card .read-more:hover { color: var(--ink); }

/* ── FOOTER (blog pages) ──────────────────────────────────────────── */
.blog-footer {
  background: var(--ink);
  padding: 3rem 6vw;
  text-align: center;
}
.blog-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.blog-footer a:hover { color: var(--white); }
.blog-footer .footer-sep { margin: 0 1.2rem; color: rgba(255,255,255,0.2); }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .article-hero { padding: 8rem 5vw 3rem; }
  .article-body { padding: 2.5rem 5vw 3rem; }
  .calc-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .calc-row label { min-width: auto; }
  .calc-row input, .calc-row select { max-width: 100%; }
  .calc-result-grid { grid-template-columns: 1fr; }
  .blog-grid { padding: 2.5rem 5vw 3rem; }
}

/* ── ACCESSIBILITY ─────────────────────────────────────────────────── */
:root { color-scheme: light; }
a, button, input[type="submit"], .calc-btn { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
