/* ============================================================
   DHANSHREE PREFAB — BLOG BRAND LAYER
   Loaded after tailwind.css. Brings the blog onto the same
   navy/gold system as the main site and replaces the per-post
   inline <style> blocks that each used a different palette.
   ============================================================ */

:root {
  --primary:      #0A2E5C;
  --primary-light:#1A4F8B;
  --primary-dark: #061B38;
  --accent:       #D4A437;
  --accent-light: #F2C94C;
  --bg-off:       #F5F7FA;
  --text-dark:    #1A1A2E;
  --text-body:    #4A4A5A;
  --text-muted:   #7A7A8A;
  --border-light: #E2E8F0;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(10,46,92,0.14);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: var(--text-body) !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.75;
}

::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--border-light) !important;
}

body > header .blog-logo img {
  display: block;
  width: 132px;
  height: auto;
  transition: transform 0.4s var(--ease-out-quint);
}
body > header .blog-logo:hover img { transform: scale(1.04); }

body > header nav a {
  position: relative;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 4px;
}
body > header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s var(--ease-out-quint);
}
body > header nav a:hover { color: var(--primary) !important; }
body > header nav a:hover::after { width: 100%; }

body > header nav a.blog-cta {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--primary-dark) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px -10px rgba(212,164,55,0.8);
  transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s ease;
}
body > header nav a.blog-cta::after { display: none; }
body > header nav a.blog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(212,164,55,0.9);
}

/* ------------------------------------------------------------
   HERO — replaces the indigo/purple gradient
   ------------------------------------------------------------ */
body > section:first-of-type,
section.blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(760px 340px at 12% 0%, rgba(212,164,55,0.20), transparent 62%),
    linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%) !important;
  padding: 88px 24px !important;
  margin-bottom: 0 !important;
}

body > section:first-of-type::before,
section.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 40%, transparent 100%);
}

body > section:first-of-type::after,
section.blog-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

body > section:first-of-type h1,
body > section:first-of-type h2,
section.blog-hero h1,
section.blog-hero h2 {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto 14px !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}

body > section:first-of-type p,
section.blog-hero p {
  color: rgba(255,255,255,0.74) !important;
  margin: 0 auto !important;
  max-width: 58ch;
}

/* ------------------------------------------------------------
   ARTICLE TYPOGRAPHY
   (replaces the per-post inline <style> blocks)
   ------------------------------------------------------------ */
article {
  padding-top: 56px !important;
  color: var(--text-body);
}

article > img,
article img {
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  display: block;
}

article h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 20px;
}

article h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 44px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

article h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-light);
  margin: 30px 0 10px;
}

article p {
  font-size: 17px;
  line-height: 1.85;
  margin: 0 0 18px;
  color: var(--text-body);
}

article strong { color: var(--text-dark); font-weight: 700; }

article a {
  color: var(--primary-light);
  font-weight: 600;
  border-bottom: 1px solid rgba(26,79,139,0.3);
  transition: color 0.25s ease, border-color 0.25s ease;
}
article a:hover { color: var(--accent); border-color: var(--accent); }

article ul, article ol {
  margin: 0 0 24px 26px;
  padding: 0;
}
article ul { list-style: disc; }
article ol { list-style: decimal; }
article li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 4px;
}
article li::marker { color: var(--accent); }

.info-box,
.highlight-box {
  background: linear-gradient(135deg, rgba(10,46,92,0.04), rgba(212,164,55,0.08));
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px;
  margin: 32px 0;
}
.info-box p:last-child,
.highlight-box p:last-child { margin-bottom: 0; }

.list-style {
  list-style: disc;
  margin: 0 0 20px 30px;
  padding: 0;
}

/* `container` collides with the Tailwind utility of the same name; scope
   the article wrapper styling to articles that use it. */
article .container,
main > .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 4px;
  background: transparent;
}

/* ------------------------------------------------------------
   POST CARDS (index)
   ------------------------------------------------------------ */
.blog-card,
main .grid > a,
main .grid > div {
  transition:
    transform 0.45s var(--ease-out-quint),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}
.blog-card:hover,
main .grid > a:hover,
main .grid > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(212,164,55,0.6) !important;
}

main .grid img {
  transition: transform 0.7s var(--ease-out-quint);
}
main .grid > a:hover img,
main .grid > div:hover img { transform: scale(1.05); }

main .grid h2,
main .grid h3 {
  color: var(--primary) !important;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------
   FOOTER — matches the main site
   ------------------------------------------------------------ */
body > footer {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary)) !important;
  border-top: 3px solid var(--accent) !important;
  color: rgba(255,255,255,0.72) !important;
  margin-top: 72px !important;
}

body > footer h2,
body > footer h3 {
  color: #fff !important;
  font-weight: 700 !important;
}

body > footer p,
body > footer li,
body > footer a,
body > footer div {
  color: rgba(255,255,255,0.7) !important;
}

body > footer a {
  transition: color 0.25s ease, transform 0.25s var(--ease-out-quint);
  display: inline-block;
}
body > footer a:hover {
  color: var(--accent-light) !important;
  transform: translateX(3px);
}

body > footer .border-t {
  border-color: rgba(255,255,255,0.1) !important;
}

/* ------------------------------------------------------------
   FLOATING CONTACT ACTIONS (mirrors the main site)
   ------------------------------------------------------------ */
.ds-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-fab a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  transition: transform 0.35s var(--ease-out-quint), box-shadow 0.3s ease;
}
.ds-fab a:hover { transform: scale(1.08); }
.ds-fab svg { width: 26px; height: 26px; fill: currentColor; }
.ds-fab .ds-fab-wa {
  background: linear-gradient(135deg, #25D366, #1da851);
  box-shadow: 0 10px 26px -8px rgba(37,211,102,0.75);
}
.ds-fab .ds-fab-call {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 10px 26px -8px rgba(10,46,92,0.7);
}
.ds-fab .ds-fab-call svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   SCROLL REVEAL — driven by the shared motion.js, which reads the
   existing data-aos attributes so no markup had to change.
   ------------------------------------------------------------ */
.ds-js [data-aos] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s var(--ease-out-quint) var(--rd, 0ms),
    transform 0.8s var(--ease-out-quint) var(--rd, 0ms);
}
.ds-js [data-aos="fade-down"] { transform: translate3d(0, -24px, 0); }
.ds-js [data-aos="fade-left"] { transform: translate3d(-32px, 0, 0); }
.ds-js [data-aos="fade-right"] { transform: translate3d(32px, 0, 0); }
.ds-js [data-aos="zoom-in"]   { transform: scale(0.95); }
.ds-js [data-aos].is-in {
  opacity: 1;
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* The header is a single flex row sized for desktop; at phone width the
   logo, two links and the CTA overflow and collide. */
@media (max-width: 640px) {
  body > header > div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }
  body > header .blog-logo img { width: 112px; }
  body > header nav {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  /* Tailwind's space-x-6 margins fight the flex gap above. */
  body > header nav > * + * { margin-left: 0 !important; }
  body > header nav a { font-size: 14px; white-space: nowrap; }
  body > header nav a.blog-cta { padding: 9px 15px; font-size: 11px; }
}

@media (max-width: 767px) {
  body > section:first-of-type,
  section.blog-hero { padding: 58px 20px !important; }
  article { padding-top: 36px !important; }
  article h2 { margin-top: 32px; }
  .ds-fab a { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ds-js [data-aos] { opacity: 1 !important; transform: none !important; }
}
