/**
 * Carmen Martín — design tokens from graphic proposal.
 * Palette: muted sage, dusty rose, cream. Serif display + sans body + script accents.
 */

:root {
  --cm-sage: #7d8f7a;
  --cm-sage-dark: #5f6f5c;
  --cm-sage-soft: #e8eee6;
  --cm-rose: #c9a8a4;
  --cm-rose-soft: #f0e4e1;
  --cm-cream: #f3eee6;
  --cm-offwhite: #faf8f5;
  --cm-ink: #3a3632;
  --cm-ink-soft: #5c564f;
  --cm-line: rgba(58, 54, 50, 0.12);
  --cm-font-display: "Cormorant Garamond", Georgia, serif;
  --cm-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --cm-font-script: "Caveat", cursive;
  --cm-radius-pill: 999px;
  --cm-max: 1120px;
  --cm-header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cm-ink);
  background: var(--cm-offwhite);
  font-family: var(--cm-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .cm-display {
  font-family: var(--cm-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cm-ink);
  letter-spacing: -0.01em;
}

.cm-script {
  font-family: var(--cm-font-script);
  font-weight: 600;
  color: var(--cm-sage-dark);
}

a {
  color: var(--cm-sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cm-ink);
}

/* —— Site chrome (PHP; Theme Builder needs Elementor Pro) —— */

.cm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cm-line);
}

.cm-site-header__inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--cm-header-h);
}

.cm-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.cm-brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.cm-brand__logo {
  display: block;
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.cm-site-footer .cm-brand__logo {
  height: 28px;
}

.cm-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cm-brand__name {
  font-family: var(--cm-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cm-brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-ink-soft);
  margin-top: 0.15rem;
}

.cm-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-nav a {
  text-decoration: none;
  color: var(--cm-ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.cm-nav a:hover,
.cm-nav .current-menu-item > a {
  color: var(--cm-sage-dark);
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--cm-radius-pill);
  border: none;
  font-family: var(--cm-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cm-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cm-btn--primary {
  background: var(--cm-sage);
  color: #fff;
}

.cm-btn--primary:hover {
  background: var(--cm-sage-dark);
  color: #fff;
}

.cm-btn--rose {
  background: var(--cm-rose);
  color: #fff;
}

.cm-btn--rose:hover {
  background: #b8928d;
  color: #fff;
}

.cm-btn--ghost {
  background: #fff;
  color: var(--cm-sage-dark);
  border: 1px solid transparent;
}

.cm-btn--ghost:hover {
  color: var(--cm-ink);
}

.cm-btn--cream {
  background: var(--cm-offwhite);
  color: var(--cm-sage-dark);
  font-family: var(--cm-font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

.cm-btn--cream:hover {
  background: #fff;
  color: var(--cm-ink);
}

.cm-nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.cm-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cm-ink);
  position: relative;
}

.cm-nav-toggle span::before,
.cm-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cm-ink);
}

.cm-nav-toggle span::before { top: -6px; }
.cm-nav-toggle span::after { top: 6px; }

.cm-mobile-nav {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--cm-line);
  background: var(--cm-offwhite);
}

.cm-mobile-nav.is-open { display: block; }

.cm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-mobile-nav li { border-top: 1px solid var(--cm-line); }

.cm-mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--cm-ink);
  font-weight: 500;
}

@media (min-width: 960px) {
  .cm-nav { display: flex; }
  .cm-nav-toggle { display: none; }
  .cm-header-cta { display: inline-flex; }
  .cm-mobile-nav { display: none !important; }
}

.cm-header-cta { display: none; }

/* —— Sections —— */

.cm-section {
  padding: 4.5rem 1.25rem;
}

.cm-section--cream { background: var(--cm-cream); }
.cm-section--rose { background: var(--cm-rose-soft); }
.cm-section--sage {
  background: var(--cm-sage);
  color: #fff;
}

.cm-section--sage h2,
.cm-section--sage p { color: #fff; }

.cm-wrap {
  max-width: var(--cm-max);
  margin: 0 auto;
}

.cm-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cm-section__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cm-link-arrow {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero — wide full-bleed banner like proposal */

.cm-hero {
  position: relative;
  isolation: isolate;
  height: clamp(300px, 38vw, 420px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cm-cream);
}

.cm-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cm-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  display: block;
}

.cm-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(250, 248, 245, 0.78) 0%,
      rgba(250, 248, 245, 0.45) 30%,
      rgba(250, 248, 245, 0.08) 52%,
      transparent 68%
    );
}

.cm-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--cm-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cm-hero__title {
  font-family: var(--cm-font-display);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 12ch;
  color: var(--cm-ink);
}

.cm-hero__lead {
  font-family: var(--cm-font-body);
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  color: var(--cm-ink-soft);
  max-width: 34ch;
  margin: 0 0 1.25rem;
}

.cm-hero__scribbles {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
  font-family: var(--cm-font-script);
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--cm-sage-dark);
  text-shadow:
    0 0 1px rgba(250, 248, 245, 0.95),
    0 1px 2px rgba(250, 248, 245, 0.9),
    0 0 14px rgba(250, 248, 245, 0.85),
    0 0 28px rgba(243, 238, 230, 0.7);
  pointer-events: none;
}

.cm-hero__scribbles span:nth-child(1) { transform: rotate(-2deg); }
.cm-hero__scribbles span:nth-child(2) { margin-left: 0.85rem; transform: rotate(1.5deg); }
.cm-hero__scribbles span:nth-child(3) { margin-left: 0.25rem; transform: rotate(-1deg); }
.cm-hero__scribbles span:nth-child(4) { margin-left: 0.65rem; transform: rotate(2deg); }

.cm-hero__mark {
  display: block;
  width: 3.9rem;
  aspect-ratio: 1180 / 576;
  margin: 0.95rem 0 0 0.45rem;
  background-color: currentColor;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
  -webkit-mask-image: url("../images/logo-carmen.png");
  mask-image: url("../images/logo-carmen.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}

@media (min-width: 900px) {
  .cm-hero__content {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
  }

  .cm-hero__scribbles {
    display: flex;
    justify-self: end;
    align-self: center;
    margin-right: 0.5rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 899px) {
  .cm-hero {
    height: auto;
    min-height: 340px;
    max-height: none;
    aspect-ratio: 5 / 4;
    align-items: flex-end;
  }

  .cm-hero__visual img {
    object-position: 55% center;
  }

  .cm-hero__shade {
    background:
      linear-gradient(
        180deg,
        transparent 12%,
        rgba(250, 248, 245, 0.35) 42%,
        rgba(250, 248, 245, 0.92) 76%
      );
  }

  .cm-hero__content {
    padding-bottom: 1.75rem;
  }

  .cm-hero__title {
    max-width: 14ch;
  }
}

/* Services strip */

.cm-services {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem 1.25rem;
  max-width: var(--cm-max);
  margin: 0 auto;
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}

.cm-service {
  text-align: center;
  padding: 0.5rem;
}

.cm-service__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.95rem;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cm-service__icon svg {
  width: 30px;
  height: 30px;
}

.cm-service__icon--sage {
  background: var(--cm-sage-soft);
  color: var(--cm-sage-dark);
}

.cm-service__icon--rose {
  background: var(--cm-rose-soft);
  color: #9a7470;
}

.cm-service__icon--cream {
  background: #ebe3d6;
  color: #7a6558;
}

.cm-service__icon--ink {
  background: #e4ebe2;
  color: var(--cm-ink-soft);
}

.cm-service h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.cm-service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cm-ink-soft);
}

@media (min-width: 800px) {
  .cm-services {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* About — three equal panels like proposal */

.cm-about {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.cm-about__intro,
.cm-about__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.35rem, 3vw, 2.5rem) clamp(2.5rem, 4vw, 3rem);
  overflow: hidden;
  text-align: left;
}

.cm-about__inner {
  width: 100%;
  max-width: 32ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cm-about__intro {
  background: var(--cm-cream);
}

.cm-about__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--cm-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cm-ink-soft);
}

.cm-about__intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.cm-about__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cm-ink-soft);
}

.cm-about__text strong {
  color: var(--cm-ink);
  font-weight: 600;
}

.cm-about__intro .cm-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

.cm-about__photo {
  position: relative;
  background: linear-gradient(90deg, var(--cm-cream) 0%, var(--cm-cream) 45%, var(--cm-rose-soft) 100%);
  min-height: 0;
  overflow: hidden;
}

.cm-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.92) contrast(0.98);
}

/* Soft side fades so photo edges melt into cream / rose panels */
.cm-about__photo::before,
.cm-about__photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  width: clamp(1.5rem, 12%, 3.25rem);
}

.cm-about__photo::before {
  left: 0;
  background: linear-gradient(90deg, var(--cm-cream) 0%, rgba(243, 238, 230, 0) 100%);
}

.cm-about__photo::after {
  right: 0;
  background: linear-gradient(270deg, var(--cm-rose-soft) 0%, rgba(240, 228, 225, 0) 100%);
}

.cm-about__photo-slot {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(58, 54, 50, 0.22);
  background:
    linear-gradient(160deg, rgba(232, 238, 230, 0.55), rgba(240, 228, 225, 0.5));
  color: var(--cm-ink-soft);
}

.cm-about__photo-slot-label {
  font-family: var(--cm-font-display);
  font-size: 1.25rem;
  color: var(--cm-ink);
}

.cm-about__photo-slot-size {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.cm-about__quote {
  background: var(--cm-rose-soft);
  color: var(--cm-ink);
}

.cm-about__quote-title {
  margin: 0 0 0.75rem;
  font-family: var(--cm-font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cm-about__quote-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cm-ink-soft);
}

.cm-about__mark {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  display: block;
  width: 3.2rem;
  aspect-ratio: 1180 / 576;
  opacity: 0.65;
  pointer-events: none;
  background-color: var(--cm-ink);
  -webkit-mask-image: url("../images/logo-carmen.png");
  mask-image: url("../images/logo-carmen.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.cm-about__leaf {
  position: absolute;
  right: 1.1rem;
  bottom: 0.95rem;
  display: block;
  width: 2.6rem;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}

@media (min-width: 900px) {
  .cm-about {
    grid-template-columns: 1fr 1fr 1fr;
    height: clamp(280px, 34vw, 340px);
  }

  .cm-about__photo,
  .cm-about__photo img,
  .cm-about__photo-slot {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 899px) {
  /* Same order as desktop: Sobre mí → foto → cita */
  .cm-about {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(280px, auto));
  }

  .cm-about__intro,
  .cm-about__photo,
  .cm-about__quote {
    min-height: 280px;
    height: auto;
  }

  .cm-about__photo {
    order: 0;
    background: var(--cm-cream);
  }

  .cm-about__photo img,
  .cm-about__photo-slot {
    height: 280px;
    min-height: 280px;
    width: 100%;
    object-fit: cover;
  }

  /* Side fades are for desktop 3-col; hide on stacked mobile */
  .cm-about__photo::before,
  .cm-about__photo::after {
    display: none;
  }

  .cm-about__intro,
  .cm-about__quote {
    padding: 2rem 1.35rem 2.5rem;
  }

  .cm-about__inner {
    max-width: 100%;
  }
}

/* Paths — flip cards */

.cm-paths {
  background: var(--cm-offwhite);
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}

.cm-paths__intro {
  text-align: center;
  margin: 0 0 2rem;
}

.cm-paths__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cm-ink-soft);
}

.cm-paths__intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.55rem);
}

.cm-paths__hint-mobile {
  display: none;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--cm-ink-soft);
}

.cm-paths__row {
  display: grid;
  gap: 1.15rem;
}

.cm-flip {
  perspective: 1200px;
  height: 148px;
  cursor: pointer;
  outline: none;
}

.cm-flip:focus-visible {
  box-shadow: 0 0 0 2px var(--cm-sage);
}

.cm-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cm-flip.is-flipped .cm-flip__inner {
  transform: rotateY(180deg);
}

.cm-flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem 1.5rem;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--cm-line);
  background: #fff;
}

.cm-flip__face--front {
  background: linear-gradient(165deg, #faf8f5 0%, var(--cm-cream) 100%);
}

.cm-flip--accent .cm-flip__face--front {
  background: linear-gradient(165deg, #f4efe8 0%, #ebe3d6 100%);
}

.cm-flip__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, var(--cm-sage-soft) 0%, #dde6db 100%);
  border-color: transparent;
  gap: 0.65rem;
}

.cm-flip__title {
  font-family: var(--cm-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cm-ink);
  max-width: 14ch;
}

.cm-flip--accent .cm-flip__title {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  max-width: 16ch;
}

.cm-flip__cue {
  position: absolute;
  right: 0.85rem;
  bottom: 0.7rem;
  font-size: 0.95rem;
  color: var(--cm-sage-dark);
  opacity: 0.45;
}

.cm-flip__text {
  margin: 0;
  max-width: 28ch;
  font-family: var(--cm-font-display);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--cm-ink);
}

.cm-flip__more {
  font-family: var(--cm-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-sage-dark);
  text-decoration: none;
}

.cm-flip__more:hover {
  color: var(--cm-ink);
}

.cm-paths__cta {
  margin: 2.25rem 0 0;
  text-align: center;
}

@media (max-width: 799px) {
  .cm-paths__hint-mobile {
    display: block;
  }
}

@media (min-width: 800px) {
  .cm-paths__row {
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 1.25rem;
  }

  .cm-flip {
    height: 158px;
  }

  .cm-flip__cue {
    display: none;
  }
}

@media (hover: hover) and (min-width: 800px) {
  .cm-flip:hover .cm-flip__inner {
    transform: rotateY(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-flip__inner {
    transition: none;
  }
}

/* Progressive enhancement: only hide when JS marks the document */
.js [data-cm-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-cm-reveal].is-in {
  opacity: 1;
  transform: none;
}

.cm-paths__row [data-cm-reveal]:nth-child(2) { transition-delay: 0.08s; }
.cm-paths__row [data-cm-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* Dedicatoria — Marbella, mayo de 2017 */

.cm-dedication {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 11vw, 7rem) 1.5rem;
  background:
    linear-gradient(180deg, #faf8f5 0%, #f3eee6 42%, #e8e0d4 100%);
  color: var(--cm-ink);
  overflow: hidden;
}

.cm-dedication__glow {
  position: absolute;
  width: min(65vw, 480px);
  height: min(65vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 198, 178, 0.4), transparent 70%);
  top: -12%;
  left: 50%;
  transform: translateX(-60%);
  animation: cm-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.cm-dedication__glow--2 {
  top: auto;
  bottom: -18%;
  left: auto;
  right: -8%;
  transform: none;
  background: radial-gradient(circle, rgba(125, 143, 122, 0.16), transparent 72%);
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

.cm-dedication__mark {
  position: absolute;
  width: 72px;
  height: 72px;
  top: 14%;
  right: 12%;
  color: var(--cm-sage);
  opacity: 0.4;
  animation: cm-float 7s ease-in-out infinite;
  pointer-events: none;
}

.cm-dedication__inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.js .cm-dedication__place,
.js .cm-dedication__lead,
.js .cm-dedication__lines p,
.js .cm-dedication__to {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .cm-dedication__place.is-in,
.js .cm-dedication__lead.is-in,
.js .cm-dedication__lines p.is-in,
.js .cm-dedication__to.is-in {
  opacity: 1;
  transform: none;
}

.cm-dedication__place {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cm-ink-soft);
}

.cm-dedication__lead {
  margin: 0 0 2rem;
  font-family: var(--cm-font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cm-ink);
}

.cm-dedication__lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cm-dedication__lines p {
  margin: 0;
  font-family: var(--cm-font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--cm-ink-soft);
}

.cm-dedication__to {
  margin: 0;
  font-family: var(--cm-font-script);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  color: var(--cm-sage-dark);
}

@keyframes cm-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, 10%) scale(1.08); }
}

@keyframes cm-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cm-dedication__glow,
  .cm-dedication__mark {
    animation: none;
  }
}

/* Blog cards — wide short images, date at bottom (proposal) */

.cm-posts {
  display: grid;
  gap: 1.75rem;
}

.cm-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.cm-post-card__media {
  position: relative;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  background: var(--cm-cream);
}

.cm-post-card__media img,
.cm-post-card__media-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  filter: saturate(0.72) contrast(0.96) brightness(1.02);
}

.cm-post-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      160deg,
      rgba(243, 238, 230, 0.42) 0%,
      rgba(125, 143, 122, 0.18) 48%,
      rgba(201, 168, 164, 0.22) 100%
    );
  mix-blend-mode: soft-light;
}

.cm-post-card__media-empty {
  background: var(--cm-cream);
  filter: none;
}

.cm-post-card:hover .cm-post-card__media img {
  transform: scale(1.03);
}

.cm-post-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cm-post-card p {
  margin: 0;
  color: var(--cm-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

.cm-post-card__date {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-ink-soft);
}

@media (min-width: 800px) {
  .cm-posts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* CTA band — after blog, like proposal */

.cm-cta-band {
  background: var(--cm-sage);
  color: #fff;
  padding: clamp(1.15rem, 2.2vw, 1.55rem) 1.25rem;
}

.cm-cta-band__inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.cm-cta-band__leaf {
  width: 3.1rem;
  height: auto;
  justify-self: start;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.cm-cta-band__copy {
  max-width: 38rem;
}

.cm-cta-band__title {
  margin: 0 0 0.35rem;
  font-family: var(--cm-font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}

.cm-cta-band__lead {
  margin: 0;
  font-family: var(--cm-font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 900px) {
  .cm-cta-band__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1.75rem;
    text-align: center;
  }

  .cm-cta-band__leaf {
    justify-self: start;
  }

  .cm-cta-band__copy {
    justify-self: center;
  }

  .cm-cta-band .cm-btn {
    justify-self: end;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .cm-cta-band__leaf {
    justify-self: center;
  }
}

.cm-site-footer {
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--cm-line);
  background: #fff;
}

.cm-site-footer__inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-footer-nav a {
  text-decoration: none;
  color: var(--cm-ink-soft);
  font-size: 0.92rem;
}

.cm-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cm-social__link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-social__link svg,
.cm-social__link img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.cm-social__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(58, 54, 50, 0.14);
}

.cm-copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cm-line);
  font-size: 0.85rem;
  color: var(--cm-ink-soft);
  text-align: center;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .cm-hero__copy,
  .cm-hero__scribbles,
  .cm-service,
  .cm-about > *,
  .cm-post-card {
    animation: cm-fade-up 0.7s ease both;
  }
  .cm-hero__scribbles { animation-delay: 0.18s; }
  .cm-service:nth-child(2) { animation-delay: 0.08s; }
  .cm-service:nth-child(3) { animation-delay: 0.16s; }
  .cm-service:nth-child(4) { animation-delay: 0.24s; }
  .cm-post-card:nth-child(2) { animation-delay: 0.1s; }
  .cm-post-card:nth-child(3) { animation-delay: 0.2s; }
}

@keyframes cm-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cm-wrap--narrow {
  max-width: 720px;
}

.cm-page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 0;
}

.cm-single-thumb {
  margin: 1.5rem 0 2rem;
}

.cm-brand--logo .custom-logo {
  max-height: 52px;
  width: auto;
}

/* Elementor Free polish (pages/posts edited with Elementor) */

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--cm-font-display);
}

.elementor-button {
  border-radius: var(--cm-radius-pill) !important;
}
