/* ============================================================
   CODENCE — Premium Digital Experience Studio
   Core Stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f1f0eb;
  --ink: #1a1916;
  --ink-soft: #4a463f;
  --ink-muted: #8a857a;
  --line: rgba(26, 25, 22, 0.12);
  --line-soft: rgba(26, 25, 22, 0.06);
  --card: #faf9f5;
  --card-2: #f6f5ef;

  /* Orb palette */
  --orb-center: #ffd53d;
  --orb-mid: #ffb347;
  --orb-outer: #ff9a3c;
  --orb-edge: #ff6a3d;

  --accent: #ff8a3c;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 36px;
  --radius-xl: 56px;

  --shadow-soft: 0 18px 50px -28px rgba(26, 25, 22, 0.28);
  --shadow-card: 0 30px 70px -40px rgba(26, 25, 22, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.display-xl {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
}

.display-lg {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.display-md {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}

.text-muted-ink {
  color: var(--ink-muted);
}

.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container-c {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.section--tight {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- Orb ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 45%,
    var(--orb-center) 0%,
    var(--orb-mid) 32%,
    var(--orb-outer) 58%,
    var(--orb-edge) 78%,
    rgba(255, 106, 61, 0) 100%
  );
  filter: blur(42px);
  opacity: 0.9;
  will-change: transform;
}

.orb--hero {
  width: clamp(360px, 52vw, 760px);
  height: clamp(360px, 52vw, 760px);
  filter: blur(60px);
  animation: orbFloat 14s var(--ease) infinite;
}

.orb--sm {
  width: clamp(220px, 26vw, 380px);
  height: clamp(220px, 26vw, 380px);
  filter: blur(50px);
  opacity: 0.7;
  animation: orbFloat 18s var(--ease) infinite;
}

.orb--bg {
  width: clamp(420px, 60vw, 820px);
  height: clamp(420px, 60vw, 820px);
  filter: blur(90px);
  opacity: 0.42;
}

.orb--contact {
  width: clamp(420px, 64vw, 900px);
  height: clamp(420px, 64vw, 900px);
  filter: blur(70px);
  opacity: 0.85;
  animation: orbFloat 16s var(--ease) infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -26px, 0) scale(1.04);
  }
}

/* ---------- Glass Navigation ---------- */
.nav-c {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 2rem));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem 0.7rem 1.6rem;
  border-radius: 999px;
  background: rgba(241, 240, 235, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px -24px rgba(26, 25, 22, 0.4);
  transition: top 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav-c.scrolled {
  top: 0.5rem;
  background: rgba(241, 240, 235, 0.82);
  box-shadow: 0 18px 44px -22px rgba(26, 25, 22, 0.5);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(26, 25, 22, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(26, 25, 22, 0.03);
}

.btn-arrow svg {
  transition: transform 0.4s var(--ease);
}

.btn-c:hover .btn-arrow svg {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 7rem;
  overflow: hidden;
}

.hero .orb--hero {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero h1 {
  margin-bottom: 1.6rem;
}

.hero .lead {
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: scrollDrop 2s var(--ease) infinite;
}

@keyframes scrollDrop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(260%);
  }
}

/* ---------- Section heading ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: 1.3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

/* ---------- What We Build (asymmetric premium cards) ---------- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}

.build-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.build-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--line);
}

.build-card .card-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-muted);
  font-style: italic;
}

.build-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin: 1.2rem 0 0.7rem;
}

.build-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.build-card .card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.build-card .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 25, 22, 0.05) 0%,
    rgba(26, 25, 22, 0.72) 100%
  );
}

.build-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.build-card.has-img:hover .card-img img {
  transform: scale(1.06);
}

.build-card.has-img {
  color: #fff;
}

.build-card.has-img .card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.build-card.has-img h3,
.build-card.has-img .card-num {
  color: #fff;
}

.build-card.has-img p {
  color: rgba(255, 255, 255, 0.82);
}

/* asymmetric spans */
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-2 {
  grid-column: span 2;
}
.span-6 {
  grid-column: span 6;
}
.tall {
  min-height: 420px;
}

/* ---------- Why Codence ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 1.6rem;
  color: var(--accent);
}

.why-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.why-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Featured Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 25, 22, 0) 40%,
    rgba(26, 25, 22, 0.78) 100%
  );
  transition: opacity 0.5s var(--ease);
}

.work-card:hover img {
  transform: scale(1.07);
}

.work-meta {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem 2.2rem;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-meta {
  transform: translateY(0);
}

.work-meta .cat {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.work-meta h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-top: 0.4rem;
}

/* ---------- Process Timeline ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: left;
}

.process-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.process-step:hover .process-dot {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.05);
}

.process-step h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 520px));
  justify-content: center;
  gap: 1.6rem;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.testi-card .quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.testi-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author .name {
  font-weight: 500;
  font-size: 0.95rem;
}

.testi-author .role {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact .orb--contact {
  top: -14%;
  right: -10%;
}

.contact-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-form {
  background: rgba(250, 249, 245, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 60, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  display: none;
}

.form-success.show {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 4rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer ul a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 3rem;
  text-align: center;
  overflow: hidden;
}

.page-hero .orb--sm {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
}

.page-hero h1 {
  margin: 1.2rem 0;
}

/* ---------- Stats / Counters ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.stat .label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

/* ---------- Two-col story ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split.reverse .split-media {
  order: -1;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.team-card img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.4rem;
}

.team-card .role {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ---------- Service blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
}

.service-block.reverse .service-media {
  order: -1;
}

.service-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0;
}

.chip {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- Blog ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.blog-featured-body {
  padding: 3rem;
}

.blog-featured-body h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin: 1rem 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-card .post-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.post-card .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-media img {
  transform: scale(1.06);
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.post-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Article ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}

.article p,
.article ul {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.article h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 2.8rem 0 1.2rem;
}

.article h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article ul {
  padding-left: 1.3rem;
}

.article li {
  margin-bottom: 0.6rem;
}

.article-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
  font-style: italic;
  color: var(--ink) !important;
  line-height: 1.5 !important;
  margin-bottom: 2.4rem !important;
}

.article-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 6rem) 2rem;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.cta-band .lead {
  color: rgba(241, 240, 235, 0.7);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-band .btn-dark {
  background: var(--bg);
  color: var(--ink);
}

.cta-band .btn-dark:hover {
  background: #fff;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;
  color: #fff;

  border-radius: 50%;
  text-decoration: none;

  font-size: 2rem;
  z-index: 9999;

  box-shadow:
    0 0 15px rgba(37, 211, 102, 0.5),
    0 0 30px rgba(37, 211, 102, 0.3);

  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 0 25px rgba(37, 211, 102, 0.7),
    0 0 45px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.5),
      0 0 15px rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow:
      0 0 0 20px rgba(37, 211, 102, 0),
      0 0 25px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0),
      0 0 15px rgba(37, 211, 102, 0.5);
  }
}