/*
Theme Name: Revvo Care 3D Catalogue
Theme URI: https://revvocare.com
Author: Revvo Care
Description: A premium, responsive product catalogue theme for Revvo Care.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: revvo-care
*/

:root {
  --navy: #073f91;
  --blue: #1687db;
  --sky: #bfe8ff;
  --ink: #09284a;
  --muted: #56708a;
  --green: #5daa26;
  --purple: #6b39a8;
  --white: #ffffff;
  --cream: #f8fcff;
  --shadow: 0 26px 70px rgba(7, 63, 145, .14);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { overflow: hidden; }

.topbar {
  align-items: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(7,63,145,.09);
  display: flex;
  justify-content: space-between;
  padding: 13px clamp(18px, 4vw, 66px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand-lockup { align-items: center; display: flex; gap: 12px; }
.brand-lockup img { height: 43px; object-fit: contain; width: 155px; }
.nav-links { align-items: center; display: flex; gap: clamp(13px, 2.4vw, 32px); }
.nav-links a { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nav-links a:hover { color: var(--blue); }
.menu-toggle { background: none; border: 0; color: var(--navy); display: none; font-size: 25px; }
.nav-cta, .button {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(22,135,219,.22);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 9px;
  letter-spacing: .07em;
  padding: 13px 19px;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover, .button:hover { box-shadow: 0 18px 38px rgba(22,135,219,.30); color: #fff; transform: translateY(-3px); }

.hero {
  background: linear-gradient(120deg, #eefaff 0%, #d9f1ff 49%, #a7dcf7 100%);
  min-height: min(760px, 84vh);
  overflow: hidden;
  padding: clamp(42px, 5vw, 72px) clamp(22px, 7vw, 110px) 88px;
  position: relative;
}
.hero::before {
  background: radial-gradient(circle at 10% 18%, rgba(255,255,255,.98), transparent 31%), radial-gradient(circle at 90% 25%, rgba(255,255,255,.63), transparent 25%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.hero-wave, .section-wave { bottom: -1px; left: -3%; position: absolute; width: 106%; z-index: 2; }
.hero-wave path { fill: rgba(255,255,255,.92); }
.hero-grid { align-items: center; display: grid; gap: 50px; grid-template-columns: .9fr 1.1fr; margin: auto; max-width: 1320px; position: relative; z-index: 3; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .20em; margin: 0 0 16px; text-transform: uppercase; }
.hero h1 { color: var(--navy); font-size: clamp(48px, 6.3vw, 94px); letter-spacing: -.075em; line-height: .93; margin: 0; max-width: 580px; }
.hero h1 em { color: var(--blue); display: block; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.07em; }
.hero-copy { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 25px 0 32px; max-width: 485px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 850; }
.hero-art { min-height: 580px; perspective: 1000px; position: relative; }
.hero-art::after { background: rgba(255,255,255,.34); border-radius: 50%; content: ""; height: 340px; position: absolute; right: 8%; top: 4%; width: 340px; }
.hero-photo { animation: heroFloat 7s ease-in-out infinite; border: 12px solid rgba(255,255,255,.72); border-radius: 52% 48% 43% 57% / 42% 45% 55% 58%; box-shadow: 0 36px 80px rgba(7,63,145,.22); height: 500px; object-fit: cover; object-position: center; position: absolute; right: 4%; top: 0; transform-style: preserve-3d; width: min(82%, 520px); z-index: 2; }
.hero-baby { animation: babyWalk 4.8s ease-in-out infinite; bottom: 10px; filter: drop-shadow(0 22px 16px rgba(4,51,103,.28)); left: 11%; max-height: 220px; object-fit: contain; position: absolute; transform-origin: bottom center; width: clamp(86px, 14vw, 145px); z-index: 5; }
.hero-product { bottom: 0; filter: drop-shadow(0 31px 25px rgba(4,51,103,.28)); max-height: 300px; object-fit: contain; position: absolute; right: 14%; transform: rotate(-6deg); width: 230px; z-index: 5; }
.hero-orb { animation: orbFloat 5s ease-in-out infinite; background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.16)); border: 1px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: inset 0 0 35px rgba(255,255,255,.7), 0 16px 40px rgba(0,0,0,.06); height: 94px; position: absolute; right: 4%; top: 31%; width: 94px; z-index: 6; }
.hero-paint { border-radius: 50%; filter: blur(.2px); opacity: .35; pointer-events: none; position: absolute; z-index: 1; }
.hero-paint-one { background: #55b8ed; height: 145px; right: 0; top: 38%; transform: rotate(-18deg); width: 260px; }
.hero-paint-two { background: #8bd7a0; height: 68px; left: 5%; top: 11%; transform: rotate(22deg); width: 150px; }

@keyframes heroFloat {
  0%, 100% { transform: rotate(2deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-2deg) translate3d(0, -13px, 22px); }
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(-14px, -18px, 25px) rotate(12deg); }
}
@keyframes babyWalk {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(10px, -8px, 8px) rotate(2deg); }
}

.trust-strip { background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1200px; position: relative; transform: translateY(-36px); z-index: 8; }
.trust-item { border-right: 1px solid #e2edf6; padding: 21px 25px; text-align: center; }
.trust-item:last-child { border: 0; }
.trust-item strong { color: var(--navy); display: block; font-size: 16px; }
.trust-item span { color: var(--muted); font-size: 12px; }

.section { margin: auto; max-width: 1320px; padding: 112px clamp(22px, 7vw, 110px); position: relative; }
.section-heading { align-items: end; display: grid; gap: 45px; grid-template-columns: 1.1fr .9fr; }
.section-heading h2 { color: var(--navy); font-size: clamp(40px, 5vw, 70px); letter-spacing: -.065em; line-height: .98; margin: 0; }
.section-heading h2 em { color: var(--blue); display: block; font-family: Georgia, serif; font-weight: 400; }
.section-heading p { color: var(--muted); line-height: 1.8; margin: 0; }
.collection { background: #f5fbff; max-width: none; }
.collection > * { margin-left: auto; margin-right: auto; max-width: 1100px; }
.product-grid { display: grid; gap: 25px; grid-template-columns: repeat(4, 1fr); margin-top: 55px; }
.product-card { background: #fff; border: 1px solid rgba(7,63,145,.08); border-radius: 24px; box-shadow: 0 20px 44px rgba(7,63,145,.09); min-height: 280px; overflow: hidden; padding: 18px; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { box-shadow: 0 30px 60px rgba(7,63,145,.16); transform: translateY(-8px); }
.product-card::before { background: var(--wash, #dff3ff); border-radius: 50%; content: ""; height: 160px; position: absolute; right: -50px; top: -54px; width: 160px; }
.product-card.green { --wash: #dcf4ca; }
.product-card.purple { --wash: #eee0ff; }
.product-card.blue { --wash: #d9edff; }
.product-card figure { align-items: center; background: linear-gradient(160deg, #fff, var(--wash)); border-radius: 18px; display: flex; height: 190px; justify-content: center; margin: 0 0 18px; overflow: hidden; position: relative; }
.product-card figure img { filter: drop-shadow(0 17px 14px rgba(7,63,145,.18)); max-height: 170px; object-fit: contain; transition: transform .35s ease; }
.product-card:hover figure img { transform: translateY(-5px) scale(1.05); }
.product-card h3 { color: var(--navy); font-size: 16px; margin: 0 0 6px; }
.product-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }

.feature-section { background: #fff; max-width: none; }
.feature-shell { align-items: center; display: grid; gap: 80px; grid-template-columns: .9fr 1.1fr; margin: auto; max-width: 1100px; }
.feature-visual { background: linear-gradient(145deg, #e9f8ff, #c7e8ff); border-radius: 34px; min-height: 520px; overflow: hidden; padding: 25px; position: relative; }
.feature-visual::before { border: 1px solid rgba(255,255,255,.9); border-radius: 50%; content: ""; height: 440px; left: 9%; position: absolute; top: 5%; width: 440px; }
.feature-visual img { filter: drop-shadow(0 28px 22px rgba(8,56,105,.23)); height: 470px; margin: auto; object-fit: contain; position: relative; z-index: 2; }
.feature-copy h2 { color: var(--navy); font-size: clamp(40px, 5vw, 66px); letter-spacing: -.07em; line-height: .98; margin: 0 0 22px; }
.feature-copy h2 em { color: var(--green); display: block; font-family: Georgia, serif; font-weight: 400; }
.feature-copy > p { color: var(--muted); line-height: 1.8; max-width: 520px; }
.feature-list { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 28px 0; padding: 0; }
.feature-list li { align-items: center; color: var(--ink); display: flex; font-size: 13px; font-weight: 800; gap: 10px; }
.feature-list li::before { align-items: center; background: #e6f6d9; border-radius: 50%; color: var(--green); content: "✓"; display: inline-flex; font-weight: 900; height: 24px; justify-content: center; width: 24px; }

.product-section { max-width: none; overflow: hidden; padding-bottom: 130px; padding-top: 130px; position: relative; }
.product-section > * { margin-left: auto; margin-right: auto; max-width: 1100px; position: relative; z-index: 2; }
.product-section::before { background: radial-gradient(circle at 12% 12%, rgba(255,255,255,.85), transparent 29%), radial-gradient(circle at 89% 79%, rgba(255,255,255,.68), transparent 25%); content: ""; inset: 0; position: absolute; }
.product-section.green-bg { background: linear-gradient(135deg, #ebf9e3, #c8e9b6); }
.product-section.blue-bg { background: linear-gradient(135deg, #eaf8ff, #aeddff); }
.product-section.purple-bg { background: linear-gradient(135deg, #f4ecff, #dec9f5); }
.product-section.dark-bg { background: linear-gradient(145deg, #041c43, #0b66aa); color: white; }
.product-layout { align-items: center; display: grid; gap: 80px; grid-template-columns: 1fr 1fr; }
.product-layout.reverse .product-art { order: 2; }
.product-kicker { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.green-bg .product-kicker { color: var(--green); }
.purple-bg .product-kicker { color: var(--purple); }
.product-layout h2 { color: var(--navy); font-size: clamp(40px, 5vw, 70px); letter-spacing: -.07em; line-height: .95; margin: 12px 0 18px; }
.dark-bg .product-layout h2, .dark-bg .product-layout p { color: #fff; }
.product-layout p { color: var(--muted); line-height: 1.8; max-width: 500px; }
.product-art { --paint: var(--blue); align-items: center; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.78); border-radius: 36px; display: flex; isolation: isolate; min-height: 430px; overflow: hidden; padding: 30px; position: relative; transform: perspective(900px) rotateY(-5deg); transition: transform .5s ease; }
.product-art:hover { transform: perspective(900px) rotateY(0) translateY(-8px); }
.product-art::before { border: 1px solid rgba(255,255,255,.75); border-radius: 50%; content: ""; height: 370px; left: 8%; position: absolute; top: 7%; width: 370px; }
.product-art::after { background-image: radial-gradient(circle, var(--paint) 1.5px, transparent 1.9px); background-size: 15px 15px; content: ""; inset: 12px; mask-image: linear-gradient(135deg, #000 8%, transparent 58%); opacity: .28; pointer-events: none; position: absolute; z-index: 0; }
.paint-swipe { background: var(--paint); border-radius: 48% 52% 58% 42%; clip-path: polygon(0 34%, 16% 14%, 36% 24%, 56% 7%, 76% 20%, 100% 0, 92% 48%, 100% 70%, 77% 78%, 61% 97%, 34% 78%, 12% 93%); height: 150px; left: -28px; opacity: .19; position: absolute; top: 35px; transform: rotate(-16deg); width: 280px; z-index: 0; }
.paint-swipe::before { background: var(--paint); border-radius: 50%; content: ""; height: 24px; opacity: .9; position: absolute; right: -22px; top: 15px; width: 24px; }
.pack-grid { align-items: end; display: grid; gap: 4px; position: relative; width: 100%; z-index: 2; }
.tape-grid { grid-template-columns: repeat(3, 1fr); }
.pant-grid { grid-template-columns: repeat(4, 1fr); }
.pack-grid img { filter: drop-shadow(0 24px 17px rgba(4,51,103,.26)); max-height: 380px; object-fit: contain; transition: transform .35s ease; width: 100%; }
.pack-grid img:hover { transform: translateY(-9px) rotate(-2deg) scale(1.04); }
.green-bg .product-art { --paint: #5daa26; }
.blue-bg .product-art { --paint: #1687db; }
.purple-bg .product-art { --paint: #6b39a8; }
.dark-bg .product-art { --paint: #78d6ff; }
.product-art img { filter: drop-shadow(0 29px 18px rgba(4,51,103,.28)); max-height: 390px; object-fit: contain; position: relative; width: 100%; z-index: 2; }
.product-bullets { display: flex; flex-wrap: wrap; gap: 11px; list-style: none; margin: 25px 0 0; padding: 0; }
.product-bullets li { background: rgba(255,255,255,.7); border: 1px solid rgba(7,63,145,.09); border-radius: 999px; color: var(--navy); font-size: 11px; font-weight: 800; padding: 9px 13px; }
.dark-bg .product-bullets li { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.2); color: #fff; }
.spec-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 0; }
.spec-row strong { color: var(--navy); display: block; font-size: 24px; }
.dark-bg .spec-row strong, .dark-bg .spec-row span { color: #fff; }
.spec-row span { color: var(--muted); font-size: 11px; }

.closing { background: #061632; color: #fff; max-width: none; overflow: hidden; padding: 125px clamp(22px, 7vw, 110px); position: relative; text-align: center; }
.closing::before, .closing::after { border: 1px solid rgba(117,207,255,.23); border-radius: 50%; content: ""; position: absolute; }
.closing::before { height: 520px; left: -140px; top: -250px; width: 520px; }
.closing::after { bottom: -330px; height: 650px; right: -160px; width: 650px; }
.closing > * { position: relative; z-index: 2; }
.closing img { filter: brightness(0) invert(1); margin: 0 auto 20px; max-height: 76px; object-fit: contain; width: 330px; }
.closing h2 { font-size: clamp(40px, 5vw, 76px); letter-spacing: -.07em; line-height: .98; margin: 0 auto 18px; max-width: 760px; }
.closing h2 em { color: #79d2ff; display: block; font-family: Georgia, serif; font-weight: 400; }
.closing p { color: #c3e1f4; line-height: 1.8; margin: 0 auto 30px; max-width: 600px; }
.contact-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); margin: 50px auto 0; max-width: 960px; }
.contact-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 19px 15px; }
.contact-card small { color: #8bd7fb; display: block; font-size: 10px; font-weight: 900; letter-spacing: .15em; margin-bottom: 7px; text-transform: uppercase; }
.contact-card span { font-size: 13px; }
.footer { background: #041027; color: #9db9d0; font-size: 11px; padding: 24px clamp(22px, 7vw, 110px); text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo, .hero-baby, .hero-orb, .reveal { animation: none; transition: none; }
}

@media (max-width: 950px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .topbar.open .nav-links { background: rgba(255,255,255,.98); display: flex; flex-direction: column; left: 0; padding: 22px; position: absolute; right: 0; top: 68px; }
  .hero-grid, .feature-shell, .product-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  .hero-art { min-height: 540px; order: -1; }
  .hero-photo { left: 9%; right: auto; width: 78%; }
  .hero-baby { left: 10%; }
  .hero-product { right: 20%; }
  .section-heading { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout.reverse .product-art { order: initial; }
  .feature-visual { min-height: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand-lockup img { height: 35px; width: 130px; }
  .nav-cta { display: none; }
  .hero { min-height: auto; padding-bottom: 80px; }
  .hero-art { min-height: 390px; }
  .hero-photo { border-width: 7px; height: 335px; }
  .hero-baby { bottom: 0; max-height: 165px; width: 105px; }
  .hero-product { max-height: 220px; right: 12%; width: 170px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin: 0 18px; transform: translateY(-24px); }
  .trust-item { padding: 14px 8px; }
  .trust-item strong { font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-layout { gap: 38px; }
  .product-art { min-height: 330px; padding: 18px; }
  .product-art::before { height: 290px; width: 290px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-visual { min-height: 340px; }
  .feature-visual img { height: 315px; }
  .section { padding-bottom: 80px; padding-top: 80px; }
}
