/* ==========================================================================
   AROZEN CARE — BLOGS PAGE (blogs.html)
   Kept in its own file per spec. Reuses global tokens/utilities from
   home.css (:root vars, .container, .text-gradient, the fadeUpIn
   keyframe, and the global prefers-reduced-motion reset) — this file
   only adds page-specific rules, same pattern as about.css/services.css.
   Mobile-first; desktop switch at 900px, matching the breakpoint used
   site-wide.
   Section map: S1. Hero  S2. Featured Blogs  Blog Article template (blogss/*.html)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BLOGS — S1: HERO
   Premium editorial, text-first hero — no image. Centered on every
   breakpoint (a magazine-style intro rather than the hero-centered /
   body-left pattern used on the service detail pages, since there's no
   left-aligned body content below it here). Reveals on load via
   fadeUpIn (reused from home.css), staggered per element.
   -------------------------------------------------------------------------- */
.blogs-hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 3.5rem;
  background: var(--color-bg);
  text-align: center;
}

/* Subtle organic background fade — two soft, asymmetric blobs with a
   slow drift; global prefers-reduced-motion handling in home.css
   already covers this animation. */
.blogs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(38, 59, 143, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 90% 85%, rgba(91, 199, 176, 0.09) 0%, transparent 70%);
  animation: blogsHeroDrift 18s ease-in-out infinite alternate;
}

.blogs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.blogs-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUpIn 0.7s var(--ease) both;
}

.blogs-hero-heading {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.08s both;
}

.blogs-hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.16s both;
}

.blogs-hero-secondary {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.24s both;
}

@keyframes blogsHeroDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-14px, 10px) scale(1.04); }
}

/* --------------------------------------------------------------------------
   BLOGS — S2: FEATURED BLOGS
   Mobile: single column, centered. Desktop (900px+): a premium
   3-column grid. Scroll-revealed with a per-card stagger; gentle hover
   lifts the card and shifts the "Read Article" arrow — the same
   contained-box interaction language used for the benefit boxes on the
   service detail pages (services.css), for visual consistency.
   -------------------------------------------------------------------------- */
.blogs-featured {
  position: relative;
  overflow: hidden;
  padding-block: 3rem 4rem;
  background: var(--color-white);
}

/* Subtle light background fade / organic shapes */
.blogs-featured-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(38, 59, 143, 0.05) 0%, transparent 42%),
    radial-gradient(circle at 4% 96%, rgba(91, 199, 176, 0.06) 0%, transparent 42%);
}

.blogs-featured-inner {
  position: relative;
  z-index: 1;
}

.blogs-featured-header {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.blogs-featured-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.blogs-featured-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.blogs-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin-inline: auto;
}

/* Whole card is the link, for a single large touch target — same
   pattern as .service-card in services.css. overflow: hidden clips the
   media image to the card's own border-radius, so no separate top-only
   radius is needed on .blog-card-media. */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Fixed responsive aspect ratio so the image reserves its space before
   it loads, preventing layout shift. */
.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-border);
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.7s var(--ease);
}

/* Subtle image reveal on scroll — settles from a slight zoom to its
   resting scale once the card enters the viewport. */
.blogs-featured-grid.is-visible .blog-card-media img {
  transform: scale(1);
}

/* Gentle image scale on card hover, layered on top of the settled
   reveal state above (higher specificity wins). */
.blogs-featured-grid.is-visible .blog-card:hover .blog-card-media img,
.blogs-featured-grid.is-visible .blog-card:focus-visible .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.5rem 1.85rem;
}

.blogs-featured-grid.is-visible .blog-card {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each card's reveal */
.blog-card:nth-child(1) { transition-delay: 0s; }
.blog-card:nth-child(2) { transition-delay: 0.1s; }
.blog-card:nth-child(3) { transition-delay: 0.2s; }

/* Scoped under .is-visible so this rule's specificity matches (and wins
   over) the reveal rule above — see the identical fix on .service-card
   in services.css. */
.blogs-featured-grid.is-visible .blog-card:hover,
.blogs-featured-grid.is-visible .blog-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  outline: none;
}

.blog-card-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  background: rgba(91, 199, 176, 0.14);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  margin: 0 0 1rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 0.65rem;
}

.blog-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary);
}

.blog-card-link span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.blogs-featured-grid.is-visible .blog-card:hover .blog-card-link span,
.blogs-featured-grid.is-visible .blog-card:focus-visible .blog-card-link span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   BLOG ARTICLE — SHARED TEMPLATE (blogss/*.html)
   Deliberately generic (.blog-article-*) so this same CSS is reused by
   every individual blog article, not just Blog 1. Premium editorial,
   text-first layout: a single comfortable-width reading column. The
   header (eyebrow/H1) and closing CTA center-align on mobile only; the
   article body stays left-aligned at every size for readability.
   -------------------------------------------------------------------------- */
.blog-article {
  position: relative;
  overflow: hidden;
  padding-block: 3rem 4rem;
  background: var(--color-bg);
}

/* BLOG 1 */
.blog-article-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 8% 4%, rgba(38, 59, 143, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 96% 90%, rgba(91, 199, 176, 0.07) 0%, transparent 70%);
}

.blog-article-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.blog-article-header {
  margin-bottom: 1.75rem;
}

.blog-article-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUpIn 0.7s var(--ease) both;
}

.blog-article-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.08s both;
}

/* Fixed responsive aspect ratio so the image reserves its space before
   it loads, preventing layout shift — same treatment as .blog-card-media */
.blog-article-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.16s both;
}

.blog-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-body {
  opacity: 0;
  animation: fadeUpIn 0.8s var(--ease) 0.22s both;
}

.blog-article-body p {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.blog-article-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.blog-article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
}

.blog-article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.blog-article-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.blog-article-body ul li {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.blog-article-body a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(38, 59, 143, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.blog-article-body a:hover,
.blog-article-body a:focus-visible {
  color: var(--color-secondary-dark);
  text-decoration-color: var(--color-secondary);
}

/* Editorial dt/dd list — a thin left rule marks each item instead of a
   card box, same visual language as .service-detail-list in
   services.css, redefined here so blogs.css stays self-contained. */
.blog-article-list {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.blog-article-list-item {
  padding-left: 1rem;
  border-left: 3px solid var(--color-secondary);
}

.blog-article-list-item dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 0.3rem;
}

.blog-article-list-item dd {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Safety notice — visually distinct (tinted, bordered) so it's never
   mistaken for regular body copy, same treatment as
   .service-detail-notice in services.css. */
.blog-article-notice {
  padding: 1.5rem;
  background: rgba(243, 165, 140, 0.12);
  border: 1px solid rgba(243, 165, 140, 0.35);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.blog-article-notice h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.blog-article-notice p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   BLOG ARTICLE — FAQ
   Scroll-revealed as a block (staggered per item) once it enters the
   viewport — see arozenRevealOnScroll() in blogs.js.
   -------------------------------------------------------------------------- */
.blog-article-faq {
  margin-top: 3rem;
}

.blog-article-faq-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.6vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}

.blog-article-faq-list {
  display: flex;
  flex-direction: column;
}

.blog-article-faq-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.25s var(--ease);
}

.blog-article-faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.blog-article-faq-list.is-visible .blog-article-faq-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each FAQ item's reveal */
.blog-article-faq-item:nth-child(1) { transition-delay: 0s; }
.blog-article-faq-item:nth-child(2) { transition-delay: 0.05s; }
.blog-article-faq-item:nth-child(3) { transition-delay: 0.1s; }
.blog-article-faq-item:nth-child(4) { transition-delay: 0.15s; }
.blog-article-faq-item:nth-child(5) { transition-delay: 0.2s; }
.blog-article-faq-item:nth-child(6) { transition-delay: 0.25s; }
.blog-article-faq-item:nth-child(7) { transition-delay: 0.3s; }

.blog-article-faq-item:hover {
  background: var(--color-white);
}

.blog-article-faq-item h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.blog-article-faq-item p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   BLOG ARTICLE — CLOSING CTA
   Scroll-revealed once it enters the viewport — see
   arozenRevealOnScroll() in blogs.js.
   -------------------------------------------------------------------------- */
.blog-article-cta {
  margin-top: 3rem;
  padding: 2.25rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.blog-article-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-article-cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.blog-article-cta-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.blog-article-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   BLOGS — RESPONSIVE (900px+, matching the breakpoint used site-wide)
   -------------------------------------------------------------------------- */
@media (max-width: 899.98px) {
  /* Major headings center-align on mobile; the article body (paragraphs,
     lists, FAQ answers) stays left-aligned for readability. */
  .blog-article-header {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .blogs-hero {
    padding-block: 6rem 5rem;
  }

  .blogs-featured {
    padding-block: 4.5rem 5.5rem;
  }

  .blogs-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-article {
    padding-block: 4.5rem 5.5rem;
  }

  .blog-article-cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}
.blog-article-title {
  color: #171B2D;
}

.blog-article-title span {
  background: linear-gradient(90deg, #263B8F, #5BC7B0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BLOG 3 */
@media (max-width: 768px) {
  .blog-article-title {
    text-align: center;
  }
}