/* ── CretaHub Master — Design System ──────────────────────── */

/* CSS Variables */
#che-home-wrap, #che-home-wrap * {
  box-sizing: border-box;
}
:root {
  --che-primary:            #004d70;
  --che-primary-dark:       #003552;
  --che-secondary:          #895200;
  --che-amber:              #FDA53A;
  --che-surface:            #fcf9f8;
  --che-surface-low:        #f6f3f2;
  --che-surface-white:      #ffffff;
  --che-on-surface:         #1b1c1c;
  --che-on-surface-variant: #3e4850;
  --che-outline-variant:    #bec8d2;
  --che-font-headline:      "Noto Serif", Georgia, serif;
  --che-font-body:          "Plus Jakarta Sans", sans-serif;
}

/* Reset for our wrap */
#che-home-wrap {
  background: var(--che-surface);
  color: var(--che-on-surface);
  font-family: var(--che-font-body);
  overflow-x: hidden;
}

/* ── Animated gradient border ─────────────────────────────── */
@property --che-ga {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes che-spin {
  to { --che-ga: 360deg; }
}
.che-gbc {
  background-image:
    linear-gradient(var(--che-surface-white), var(--che-surface-white)),
    conic-gradient(from var(--che-ga), #004d70 0%, #FDA53A 30%, #FFD080 50%, #FDA53A 70%, #004d70 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  border-radius: 20px;
}
.che-gbc:hover {
  animation: che-spin 5s linear infinite;
}

/* ── Layout helpers ───────────────────────────────────────── */
.che-section {
  padding: 120px 0;
  background: var(--che-surface);
}
.che-section-low {
  background: var(--che-surface-low);
}
.che-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.che-eyebrow {
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--che-secondary);
  display: block;
  margin-bottom: 16px;
}
.che-heading {
  font-family: var(--che-font-headline);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--che-on-surface);
  margin: 0 0 40px;
}
.che-heading em {
  font-style: italic;
}
.che-subtext {
  font-family: var(--che-font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--che-on-surface-variant);
  max-width: 310px;
  line-height: 1.85;
  margin: 0;
}
.che-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.che-btn-primary, .che-btn-ghost, .che-btn-amber, .che-btn-ghost-dark {
  font-family: var(--che-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  border: none;
}
.che-btn-primary {
  background: var(--che-amber);
  color: #fff;
  box-shadow: 0 8px 32px rgba(253,165,58,0.5);
}
.che-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(253,165,58,0.6);
  color: #fff;
}
.che-btn-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
}
.che-btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }
.che-btn-amber {
  background: var(--che-amber);
  color: #fff;
  box-shadow: 0 8px 28px rgba(253,165,58,0.4);
}
.che-btn-amber:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(253,165,58,0.55); color:#fff; }
.che-btn-ghost-dark {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.che-btn-ghost-dark:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── HERO ─────────────────────────────────────────────────── */
#che-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
#che-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.che-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.45) 100%);
}
.che-bottom-blend {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--che-surface));
}
.che-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-bottom: 36vh;
}
.che-label {
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #FDA53A;
  display: block;
  margin-bottom: 24px;
  opacity: 0;
}
.che-headline {
  font-family: var(--che-font-headline);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 48px rgba(0,0,0,0.28);
  max-width: 820px;
  margin: 0;
  opacity: 0;
}
.che-headline em { font-style: italic; color: #FDA53A; }
.che-sub {
  font-family: var(--che-font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  max-width: 480px;
  margin: 28px 0 0;
  opacity: 0;
}
.che-hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}
.che-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.che-scroll-indicator span {
  font-family: var(--che-font-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
}
.che-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.che-scroll-drop {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 40%;
  background: rgba(255,255,255,0.55);
  animation: che-scroll-drop 1.9s ease-in-out infinite;
}
@keyframes che-scroll-drop {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* ── SERVICES ─────────────────────────────────────────────── */
.che-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.che-service-card {
  background: var(--che-surface-white);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease;
}
.che-service-card:hover { background: #e8f4fb; }
.che-carousel {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  flex-shrink: 0;
}
.che-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.che-carousel-img.active { opacity: 1; transform: scale(1); }
.che-dots {
  position: absolute;
  bottom: 10px; right: 12px;
  display: flex;
  gap: 5px;
}
.che-dot {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
  width: 6px;
}
.che-dot.active { width: 18px; background: #fff; }
.che-service-body {
  flex: 1;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.che-service-icon { flex-shrink: 0; }
.che-service-title {
  font-family: var(--che-font-headline);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--che-on-surface);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.che-service-desc {
  font-family: var(--che-font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--che-on-surface-variant);
  line-height: 1.82;
  margin: 0;
  flex: 1;
}
.che-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.3s ease;
}
.che-explore-link:hover { gap: 14px; }

/* ── FEATURED EXPERIENCES ─────────────────────────────────── */
.che-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.che-tab-btn {
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid var(--che-outline-variant);
  background: transparent;
  color: var(--che-on-surface-variant);
  cursor: pointer;
  transition: all 0.25s ease;
}
.che-tab-btn.active {
  border: none;
  background: var(--che-primary);
  color: #fff;
}
.che-feat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}
.che-feat-heading { display: none; margin-bottom: 0; }
.che-feat-heading.active { display: block; }
.che-view-all {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--che-primary);
  text-decoration: none;
  transition: gap 0.3s;
}
.che-view-all.active { display: flex; }
.che-view-all:hover { gap: 16px; color: var(--che-primary); }
.che-tab-panel { display: none; }
.che-tab-panel.active { display: block; }
.che-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.che-feat-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
}
.che-feat-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 18px;
}
.che-feat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.25,0.46,0.45,0.94);
}
.che-feat-card:hover .che-feat-img-wrap img { transform: scale(1.05); }
.che-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, transparent 40%, rgba(0,0,0,0.68) 100%);
}
.che-feat-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--che-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 9999px;
}
.che-feat-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.che-feat-loc {
  font-family: var(--che-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253,165,58,0.9);
  display: block;
  margin-bottom: 5px;
}
.che-feat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.che-feat-title {
  font-family: var(--che-font-headline);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.che-feat-price {
  font-family: var(--che-font-headline);
  font-size: 1.1rem;
  color: #FDA53A;
  flex-shrink: 0;
  margin-left: 10px;
}
.che-expand-line-wrap {
  margin-top: 10px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.che-expand-line {
  height: 100%;
  width: 24px;
  background: rgba(253,165,58,0.7);
  transition: width 0.6s ease;
}
.che-feat-card:hover .che-expand-line { width: 100%; }

/* ── WHY US ───────────────────────────────────────────────── */
.che-whyus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.che-whyus-left .che-heading { margin-bottom: 48px; }
.che-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.che-pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--che-surface-white);
  border-radius: 16px;
}
.che-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--che-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--che-primary);
}
.che-pillar-title {
  font-family: var(--che-font-headline);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--che-on-surface);
  margin: 0 0 8px;
}
.che-pillar-body {
  font-family: var(--che-font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--che-on-surface-variant);
  line-height: 1.75;
  margin: 0;
}
.che-whyus-right { position: relative; }
.che-whyus-img-wrap {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.12);
  aspect-ratio: 3/4;
}
.che-whyus-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.che-quote {
  position: absolute;
  bottom: -24px;
  left: -40px;
  background: var(--che-surface-white);
  border-radius: 1.5rem;
  padding: 28px 32px;
  max-width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.che-quote-text {
  font-family: var(--che-font-headline);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--che-primary);
  line-height: 1.5;
  margin: 0 0 16px;
}
.che-quote-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.che-quote-line {
  width: 24px;
  height: 1px;
  background: rgba(0,77,112,0.25);
}
.che-quote-attr span {
  font-family: var(--che-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--che-on-surface-variant);
}

/* ── CLOSING CTA ──────────────────────────────────────────── */
.che-cta-box {
  background: var(--che-primary);
  border-radius: 2.5rem !important;
  background-image:
    linear-gradient(var(--che-primary), var(--che-primary)),
    conic-gradient(from var(--che-ga), #FDA53A 0%, #FFD080 30%, #004d70 50%, #FFD080 70%, #FDA53A 100%);
  padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,77,112,0.30);
}
.che-cta-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.che-cta-heading {
  font-family: var(--che-font-headline);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
}
.che-cta-heading em { font-style: italic; color: #FDA53A; }
.che-cta-sub {
  font-family: var(--che-font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.che-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Hover zoom-out (global for our elements) ─────────────── */
#che-home-wrap a:not(.che-btn-primary):not(.che-btn-amber),
#che-home-wrap button,
#che-home-wrap .che-service-card,
#che-home-wrap .che-pillar {
  transition: transform 0.3s ease;
}
#che-home-wrap a:not(.che-btn-primary):not(.che-btn-amber):hover,
#che-home-wrap button:hover,
#che-home-wrap .che-service-card:hover,
#che-home-wrap .che-pillar:hover {
  transform: scale(0.97);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .che-feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 900px) {
  .che-services-grid { grid-template-columns: 1fr 1fr !important; }
  .che-whyus-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .che-quote { position: static; margin-top: 24px; max-width: 100%; left: auto; bottom: auto; }
}
@media (max-width: 600px) {
  .che-feat-grid { grid-template-columns: 1fr !important; }
  .che-services-grid { grid-template-columns: 1fr !important; }
  .che-section { padding: 80px 0; }
  .che-container { padding: 0 20px; }
  .che-hero-cta { flex-direction: column; align-items: center; }
}
