/* ==========================================================================
   Godrej Brooklyn Avenue — Blog Styles
   Matches main site design system exactly
   ========================================================================== */

:root {
  --bg-color: #FAF9F5;
  --bg-card: #FFFFFF;
  --bg-neutral: #F1EFEB;
  --color-ink: #12181A;
  --color-muted: #5C6264;
  --color-accent: #BC4B31;
  --color-accent-hover: #983C25;
  --color-teal: #0C3840;
  --color-teal-dark: #072328;
  --color-gold: #E2C48E;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border: 1px solid rgba(18, 24, 26, 0.08);
  --border-light: 1px solid rgba(18, 24, 26, 0.04);
  --shadow-sm: 0 4px 12px rgba(18, 24, 26, 0.03);
  --shadow-md: 0 16px 36px rgba(18, 24, 26, 0.05);
  --shadow-lg: 0 24px 54px rgba(18, 24, 26, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--color-ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 80px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-hover); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Blog Listing — Hero
   ========================================================================== */
.blog-hero {
  background: var(--color-teal);
  padding: clamp(140px, 10vw, 180px) clamp(20px, 4vw, 60px) clamp(50px, 7vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(226, 196, 142, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  opacity: 0.9;
}

.blog-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  max-width: 680px;
  margin: 0 auto 16px;
}

.blog-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================================
   Blog Listing Grid
   ========================================================================== */
.blog-listing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

.blog-listing-section > h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--color-ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.blog-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(188, 75, 49, 0.15);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-neutral);
}

.blog-card.featured .blog-card-img {
  height: 100%;
  aspect-ratio: unset;
  min-height: 320px;
}

/* Placeholder gradient for cards without images */
.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card.featured .blog-card-img-placeholder {
  height: 100%;
  aspect-ratio: unset;
  min-height: 320px;
}

.blog-card-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 30% 30%, rgba(226,196,142,0.18) 0%, transparent 60%);
}

.blog-card-img-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 48px);
  color: rgba(226,196,142,0.5);
  font-style: italic;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  line-height: 1.2;
}

.blog-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card.featured .blog-card-body {
  justify-content: center;
  padding: 40px 44px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(188, 75, 49, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-card-meta-text {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

.blog-card h2,
.blog-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}

.blog-card.featured h2 { font-size: clamp(22px, 2.5vw, 30px); }
.blog-card h3 { font-size: 18px; }

.blog-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 4px;
  transition: var(--transition);
}

.blog-card-read-more svg {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-read-more svg { transform: translateX(4px); }

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  transform-origin: left;
}




/* ==========================================================================
   Article Hero
   ========================================================================== */
.article-hero {
  background: var(--color-teal);
  padding: clamp(140px, 10vw, 180px) clamp(20px, 4vw, 60px) clamp(40px, 6vw, 68px);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(226,196,142,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.article-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  opacity: 0.9;
}

.article-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}

.article-hero-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 680px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg { width: 14px; height: 14px; opacity: 0.7; }

/* ==========================================================================
   Article Body
   ========================================================================== */
.article-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px);
}

.article-toc {
  background: var(--bg-neutral);
  border: var(--border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.article-toc h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.article-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc li { counter-increment: toc; display: flex; align-items: baseline; gap: 10px; }
.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.7;
  min-width: 20px;
}

.article-toc a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.4;
  text-decoration: none;
}

.article-toc a:hover { color: var(--color-accent); }

.article-body { display: flex; flex-direction: column; gap: 0; }

.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--color-ink);
  margin-top: 52px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-neutral);
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--color-ink);
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #2a3235;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li { font-size: 15px; color: #2a3235; line-height: 1.7; }
.article-body strong { font-weight: 700; color: var(--color-ink); }

.article-body a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  background: rgba(12, 56, 64, 0.05);
  border: 1px solid rgba(12, 56, 64, 0.12);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.callout-accent {
  background: rgba(188, 75, 49, 0.05);
  border-color: rgba(188, 75, 49, 0.12);
  border-left-color: var(--color-accent);
}

.callout p { margin-bottom: 0; font-size: 15px; }
.callout strong { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-teal); }
.callout-accent strong { color: var(--color-accent); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: var(--color-teal);
  color: rgba(255,255,255,0.9);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: var(--border-light);
  color: var(--color-ink);
  line-height: 1.5;
}

.data-table tr:nth-child(even) td { background: var(--bg-neutral); }
.data-table tr:last-child td { border-bottom: none; }

.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.key-fact {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.key-fact-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.key-fact-label {
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-cta-box {
  background: var(--color-teal);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(226,196,142,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.article-cta-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 0;
  scroll-margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.article-cta-box p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 24px; }

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--color-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff !important; }

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
  border-top: var(--border);
  padding-top: 52px;
  margin-top: 60px;
}

.related-posts h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-ink);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}

.related-card:hover {
  border-color: rgba(188,75,49,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.related-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
}

.related-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
  margin-bottom: 10px;
  margin-top: 0;
}

.related-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* ==========================================================================
   Sticky Bottom CTA Bar
   ========================================================================== */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--color-teal-dark);
  border-top: 1px solid rgba(226, 196, 142, 0.15);
  padding: 12px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
}

.sticky-cta-text { flex: 1; min-width: 0; }

.sticky-cta-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.sticky-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sticky-cta-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.sticky-cta-phone:hover { background: rgba(255,255,255,0.14); color: #fff !important; }
.sticky-cta-phone svg, .sticky-cta-wa svg { width: 15px; height: 15px; }

.sticky-cta-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #25D366;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.sticky-cta-wa:hover { background: #1fb959; color: #fff !important; }

.sticky-cta-enquire {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.sticky-cta-enquire:hover { background: var(--color-accent-hover); color: #fff !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.blog-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.5);
  padding: 40px clamp(20px, 4vw, 60px);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.blog-footer a { color: rgba(255,255,255,0.6); }
.blog-footer a:hover { color: var(--color-gold); }
.blog-footer strong { color: rgba(255,255,255,0.8); }

.blog-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .blog-card.featured { grid-template-columns: 1fr; }
  .blog-card.featured .blog-card-img,
  .blog-card.featured .blog-card-img-placeholder { height: 240px; min-height: 240px; aspect-ratio: unset; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .sticky-cta-text { display: none; }
  .sticky-cta-phone { display: none; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .article-toc { padding: 18px 20px; }
  .topbar-nav { display: none; }
}

@media (max-width: 400px) {
  .sticky-cta-actions { gap: 8px; }
}
