/* Cavenro-Services — site vitrine */
:root {
  --wine: #6b1d2a;
  --wine-deep: #3f1018;
  --wine-soft: #8b2e3d;
  --ink: #121214;
  --mute: #5c5852;
  --ivory: #f6f1ea;
  --paper: #fffcf8;
  --sand: #e8dfd2;
  --line: rgba(18, 18, 20, 0.1);
  --gold: #b8892a;
  --teal: #0c7c6a;
  --shadow: 0 28px 70px rgba(18, 18, 20, 0.12);
  --radius: 28px;
  --header-h: 78px;
  --pad: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body.cv-body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.cv-wrap {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  min-width: 0;
}

.cv-section { padding: 5.5rem 0; }
.cv-section-sm { padding: 3.5rem 0; }

.cv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--wine);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}

.cv-kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--wine);
}

h1, h2, .cv-display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cv-lead {
  color: var(--mute);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 38rem;
}

.cv-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 0.85rem;
}

/* Header */
.cv-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.cv-header.scrolled {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(18, 18, 20, 0.06);
  border-color: var(--line);
}

.cv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.cv-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.cv-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.cv-brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}

.cv-nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--mute);
}

.cv-nav a:hover,
.cv-nav a.is-active { color: var(--ink); }

.cv-header-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cv-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.cv-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s ease;
}

.cv-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv-burger.open span:nth-child(2) { opacity: 0; }
.cv-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cv-nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.6rem 1.25rem 1.1rem;
}

.cv-nav-mobile.open { display: flex; flex-direction: column; gap: 0.15rem; }

.cv-nav-mobile a {
  padding: 0.85rem 0.4rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cv-btn:hover { transform: translateY(-1px); }

.cv-btn-wine {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 10px 24px rgba(107, 29, 42, 0.22);
}

.cv-btn-wine:hover { background: var(--wine-soft); }

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

.cv-btn-ivory {
  background: #fff;
  color: #111;
}

.cv-btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 124, 106, 0.22);
}

.cv-btn-lg { padding: 1rem 1.45rem; font-size: 1rem; }

/* Hero */
.cv-hero {
  position: relative;
  padding: calc(var(--header-h) + 2.4rem) 0 3.5rem;
  overflow: hidden;
}

.cv-hero::before {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  right: -12vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(107, 29, 42, 0.16), transparent 68%);
  animation: cvOrb 14s ease-in-out infinite;
  pointer-events: none;
}

.cv-hero::after {
  content: "";
  position: absolute;
  width: 28vw;
  height: 28vw;
  left: -10vw;
  bottom: 0;
  background: radial-gradient(circle, rgba(184, 137, 42, 0.14), transparent 70%);
  animation: cvOrb 18s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes cvOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.08); }
}

.cv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cv-hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.55rem);
  margin-bottom: 1rem;
}

.cv-hero h1 em {
  font-style: italic;
  color: var(--wine);
}

.cv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.cv-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 650;
}

.cv-photo-stack {
  position: relative;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
}

.cv-photo-stack figure {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #ddd;
}

.cv-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cvKen 22s ease-in-out infinite alternate;
}

.cv-shot-a { width: 68%; height: 78%; left: 0; top: 8%; z-index: 1; }
.cv-shot-b { width: 42%; height: 48%; right: 0; top: 0; z-index: 2; }
.cv-shot-c { width: 46%; height: 38%; right: 4%; bottom: 0; z-index: 3; }

.cv-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 80%;
  z-index: 2;
}

@keyframes cvKen {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.cv-float-badge {
  position: absolute;
  z-index: 4;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: cvFloat 5.5s ease-in-out infinite;
}

.cv-float-a { right: 8%; top: 42%; }
.cv-float-b { left: 8%; bottom: 18%; animation-delay: -2s; }

@keyframes cvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Marquee */
.cv-marquee {
  background: var(--ink);
  color: #efe7dc;
  overflow: hidden;
  padding: 0.95rem 0;
}

.cv-marquee-track {
  display: flex;
  gap: 2.8rem;
  width: max-content;
  animation: cvMarquee 28s linear infinite;
  font-weight: 650;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.cv-marquee span { white-space: nowrap; opacity: 0.88; }
.cv-marquee b { color: #fff; font-weight: 700; }

@keyframes cvMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Product doors */
.cv-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.cv-door {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  isolation: isolate;
  background: #1a1214;
}

.cv-door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s ease;
}

.cv-door::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.05) 20%, rgba(18, 18, 20, 0.82) 100%);
}

.cv-door:hover img { transform: scale(1.06); }

.cv-door > *:not(img) { position: relative; z-index: 2; }

.cv-door .cv-kicker { color: #f3d7b0; }
.cv-door .cv-kicker::before { background: #f3d7b0; }
.cv-door h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  margin: 0.2rem 0 0.6rem;
}
.cv-door p { color: rgba(255, 255, 255, 0.86); max-width: 28rem; margin-bottom: 1.2rem; }

.cv-door-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Services */
.cv-services {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.cv-service {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  isolation: isolate;
  background: #2a1518;
}

.cv-service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.7s ease;
}

.cv-service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(18, 18, 20, 0.78));
}

.cv-service:hover img { transform: scale(1.05); }

.cv-service > *:not(img) { position: relative; z-index: 2; }

.cv-service h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cv-service p { font-size: 0.92rem; color: rgba(255,255,255,0.88); }

.cv-service-grid {
  display: grid;
  gap: 1rem;
}

.cv-service.tall { min-height: 580px; }

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

.cv-stat {
  background: var(--ivory);
  border-radius: 22px;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
}

.cv-stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--wine);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.cv-stat span { color: var(--mute); font-size: 0.92rem; font-weight: 550; }

/* Expertise */
.cv-exp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: center;
}

.cv-exp-photo {
  position: relative;
}

.cv-exp-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
}

.cv-exp-list { display: grid; gap: 0.9rem; }

.cv-exp-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cv-exp-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.cv-exp-item p { color: var(--mute); font-size: 0.95rem; }

/* Method */
.cv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.cv-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.15rem;
  min-height: 210px;
}

.cv-step i {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.cv-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cv-step p { color: var(--mute); font-size: 0.92rem; }

/* Contact */
.cv-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.cv-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.cv-contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 1.8rem;
}

.cv-contact-card a { color: #fff; font-weight: 700; }
.cv-contact-card .cv-btn-ivory { color: #111; }
.cv-contact-card p, .cv-contact-card li { color: rgba(255,255,255,0.82); }
.cv-contact-card ul { display: grid; gap: 0.7rem; margin: 1.1rem 0; }
.cv-contact-card h3 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.cv-contact-card a[href^="mailto"] { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.cv-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 1.4rem;
}

.cv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.cv-footer h4 { color: #fff; margin-bottom: 0.7rem; }
.cv-footer a { display: block; padding: 0.22rem 0; }
.cv-footer a:hover { color: #fff; }
.cv-footer .cv-brand { color: #fff; margin-bottom: 0.8rem; }
.cv-footer .cv-brand small { color: #e2b4bc; }
.cv-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* WhatsApp */
.cv-wa {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 70;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  animation: cvPulse 2.6s ease infinite;
}

@keyframes cvPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Reveal */
.cv-reveal { opacity: 1; }
html.js-anim .cv-reveal:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}
.cv-reveal.visible {
  animation: cvUp 0.75s ease forwards;
}
.cv-delay-1 { animation-delay: 0.1s; }
.cv-delay-2 { animation-delay: 0.2s; }

@keyframes cvUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.cv-band { background: var(--ivory); }

@media (max-width: 1100px) {
  .cv-nav, .cv-hide-md { display: none; }
  .cv-burger { display: flex; }
}

@media (max-width: 980px) {
  body.cv-body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .cv-hero-grid,
  .cv-services,
  .cv-exp-grid,
  .cv-contact-grid,
  .cv-footer-grid { grid-template-columns: 1fr; }
  .cv-stats,
  .cv-steps { grid-template-columns: 1fr 1fr; }
  .cv-photo-stack { min-height: 420px; }
  .cv-service.tall { min-height: 320px; }
  .cv-exp-photo img { height: min(52vw, 360px); }
  .cv-door { min-height: 380px; }
  .cv-contact-card .cv-btn { width: 100%; }
  .cv-nav-mobile { padding-left: var(--pad); padding-right: var(--pad); }
}

@media (max-width: 720px) {
  .cv-doors { grid-template-columns: 1fr; }
  .cv-header-end .cv-btn { display: none; }
  .cv-brand { min-width: 0; }
  .cv-brand span { overflow: hidden; text-overflow: ellipsis; }
  html.js-anim .cv-reveal:not(.visible) {
    opacity: 1;
    transform: none;
  }
  .cv-service { min-height: 260px; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; --radius: 22px; --header-h: 68px; }
  .cv-hero { padding-top: calc(var(--header-h) + 1.2rem); padding-bottom: 2rem; }
  .cv-hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .cv-title { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  .cv-lead { font-size: 1rem; }
  .cv-photo-stack { min-height: 280px; }
  .cv-shot-a { width: 78%; height: 78%; top: 6%; }
  .cv-shot-b { width: 46%; height: 42%; }
  .cv-shot-c { width: 50%; height: 34%; }
  .cv-hero-actions .cv-btn,
  .cv-door-actions .cv-btn { width: 100%; min-height: 48px; }
  .cv-section { padding: 2.75rem 0; }
  .cv-float-badge { display: none; }
  .cv-stats, .cv-steps { grid-template-columns: 1fr; }
  .cv-door { min-height: 340px; padding: 1.4rem; border-radius: 22px; }
  .cv-contact-card { padding: 1.1rem; border-radius: 20px; }
  .cv-chip { font-size: 0.74rem; }
  .cv-wa { width: 50px; height: 50px; }
}

@media (max-width: 400px) {
  .cv-brand img { width: 34px; height: 34px; }
  .cv-brand { font-size: 0.92rem; gap: 0.45rem; }
  .cv-photo-stack { min-height: 240px; }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cv-btn.loading { pointer-events: none; opacity: 0.85; }
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js-anim .cv-reveal:not(.visible) { opacity: 1; transform: none; }
}
