/* Cardaroo Holdings base styles */
/* Default palette variables - light theme */
html[data-theme="light"] {
  --ch-color-primary: #ff7a00;
  --ch-color-bg: #ffffff;
  --ch-color-surface: #f4f4f4;
  --ch-color-text: #323130;
  --ch-color-muted: #605e5c;
  --ch-color-border: #ffd9b3;
}

/* Dark theme base */
html[data-theme="dark"] {
  --ch-color-primary: #ffb703;
  --ch-color-bg: #0b0b12;
  --ch-color-surface: #11111b;
  --ch-color-text: #f5f5f5;
  --ch-color-muted: #c0c0c0;
  --ch-color-border: #343a40;
}

/* Seasonal tints (applied automatically via data-season) */
html[data-theme="light"][data-season="christmas"] {
  --ch-color-primary: #d62828;
  --ch-color-border: #2a9d8f;
}

html[data-theme="dark"][data-season="christmas"] {
  --ch-color-primary: #f07167;
  --ch-color-border: #2a9d8f;
}

html[data-theme="light"][data-season="newyear"],
html[data-theme="dark"][data-season="newyear"] {
  --ch-color-primary: #ffb703;
}

html[data-theme="light"][data-season="easter"] {
  --ch-color-primary: #ff7a00;
  --ch-color-bg: #fffaf4;
  --ch-color-surface: #ffffff;
}

html[data-theme="light"][data-season="halloween"],
html[data-theme="dark"][data-season="halloween"] {
  --ch-color-primary: #ff7a00;
  --ch-color-border: #ffb703;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ch-color-bg);
  color: var(--ch-color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.ch-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ch-color-surface);
}

html[data-theme="newyear"] .ch-header,
html[data-theme="halloween"] .ch-header {
  background: rgba(17, 17, 27, 0.96);
}

.ch-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ch-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ch-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ch-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.ch-logo-text {
  display: flex;
  flex-direction: column;
}

.ch-logo-main {
  font-weight: 600;
  font-size: 0.95rem;
}

.ch-logo-sub {
  font-size: 0.75rem;
  color: var(--ch-color-muted);
}

.ch-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.ch-nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.ch-nav a:hover,
.ch-nav a:focus {
  background: var(--ch-color-surface);
  text-decoration: none;
}

.ch-theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ch-theme-switcher select {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--ch-color-border);
  background: var(--ch-color-bg);
  color: var(--ch-color-text);
}

.ch-hero {
  padding: 4.5rem 1.25rem 3.5rem;
  background: radial-gradient(circle at top left, #ffe9d3 0, transparent 55%),
              radial-gradient(circle at bottom right, #fff6ec 0, transparent 55%);
}

html[data-theme="newyear"] .ch-hero {
  background: radial-gradient(circle at top left, #1b263b 0, transparent 55%),
              radial-gradient(circle at bottom right, #0d1b2a 0, transparent 55%);
}

html[data-theme="halloween"] .ch-hero {
  background: radial-gradient(circle at top left, #2f1b3a 0, transparent 55%),
              radial-gradient(circle at bottom right, #1a120f 0, transparent 55%);
}

.ch-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.ch-hero h1 {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--ch-color-primary);
}

html[data-theme="newyear"] .ch-hero h1,
html[data-theme="halloween"] .ch-hero h1 {
  color: #ffb703;
}

.ch-hero-lead {
  max-width: 640px;
  font-size: 1.02rem;
  color: var(--ch-color-text);
}

.ch-hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ch-hero-pill {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--ch-color-surface);
  border: 1px solid var(--ch-color-border);
  font-size: 0.85rem;
  color: var(--ch-color-muted);
}

.ch-section {
  padding: 3rem 1.25rem;
}

.ch-section-alt {
  background: var(--ch-color-surface);
}

html[data-theme="newyear"] .ch-section-alt,
html[data-theme="halloween"] .ch-section-alt {
  background: #181822;
}

.ch-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.ch-section h2 {
  font-size: 1.55rem;
  margin: 0 0 1rem;
  color: var(--ch-color-primary);
}

.ch-section p {
  margin: 0 0 0.75rem;
  color: var(--ch-color-text);
}

.ch-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ch-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ch-color-border);
  font-size: 0.82rem;
  color: var(--ch-color-muted);
  background: #ffffff;
}

html[data-theme="newyear"] .ch-pill,
html[data-theme="halloween"] .ch-pill {
  background: var(--ch-color-surface);
}

.ch-brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Responsive breakpoints for brand grid */
@media (max-width: 1200px) {
  .ch-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ch-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ch-brand-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ch-brand-card {
  border-radius: 16px;
  padding: 0.7rem 1.1rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--ch-color-border);
}


html[data-theme="newyear"] .ch-brand-card,
html[data-theme="halloween"] .ch-brand-card {
  border-radius: 16px;
  padding: 0.7rem 1.1rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--ch-color-border);
}


.ch-brand-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.ch-brand-card p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.ch-brand-tagline {
  font-size: 0.8rem;
  color: var(--ch-color-muted);
}

.ch-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.ch-value-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.1rem;
  border: 1px solid var(--ch-color-border);
}

html[data-theme="newyear"] .ch-value-card,
html[data-theme="halloween"] .ch-value-card {
  background: var(--ch-color-surface);
}

.ch-value-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ch-value-card p {
  margin: 0;
  font-size: 0.9rem;
}

.ch-contact {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.ch-contact-panel {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--ch-color-surface);
  border: 1px solid var(--ch-color-border);
  max-width: 420px;
}

.ch-contact-label {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--ch-color-muted);
}

.ch-contact-email {
  display: inline-flex;
  margin-top: 0.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ch-color-primary);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
}

.ch-contact-email:hover,
.ch-contact-email:focus {
  text-decoration: none;
  opacity: 0.9;
}

.ch-legal-list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0.75rem;
  font-size: 0.92rem;
}

.ch-legal-list li + li {
  margin-top: 0.25rem;
}

.ch-confidential-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ch-color-muted);
}

.ch-footer {
  border-top: 1px solid var(--ch-color-surface);
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--ch-color-bg);
}

html[data-theme="newyear"] .ch-footer,
html[data-theme="halloween"] .ch-footer {
  background: #101018;
}

.ch-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.ch-footer-sub {
  margin: 0.15rem 0 0;
  color: var(--ch-color-muted);
}

.ch-footer-links a {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ch-color-border);
}

@media (max-width: 768px) {
  .ch-header-inner {
    flex-wrap: wrap;
  }

  .ch-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ch-theme-switcher {
    margin-left: 0;
  }

  .ch-contact {
    flex-direction: column;
  }
}

.ch-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.ch-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.ch-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.ch-hero-logo-card {
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ch-color-border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  max-width: 320px;
}

html[data-theme="dark"] .ch-hero-logo-card {
  background: rgba(17, 17, 27, 0.9);
}

.ch-hero-logo-img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.ch-hero-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ch-color-muted);
}

.ch-theme-toggle {
  margin-left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ch-color-border);
  background: var(--ch-color-surface);
  color: var(--ch-color-text);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.ch-theme-toggle:hover,
.ch-theme-toggle:focus {
  text-decoration: none;
  opacity: 0.9;
}

.ch-theme-toggle-icon {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .ch-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ch-hero-visual {
    justify-content: flex-start;
  }
}

/* ------------------------------ */
/* DARK THEME VISIBILITY FIXES   */
/* ------------------------------ */

html[data-theme="dark"] .ch-brand-card,
html[data-theme="dark"] .ch-value-card {
  background: #1a1a22 !important;
  border: 1px solid #343a40 !important;
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .ch-brand-card h3,
html[data-theme="dark"] .ch-brand-card p,
html[data-theme="dark"] .ch-brand-tagline,
html[data-theme="dark"] .ch-value-card h3,
html[data-theme="dark"] .ch-value-card p {
  color: #f5f5f5 !important;
}

/* About section pills */
html[data-theme="dark"] .ch-pill {
  background: #1a1a22 !important;
  border: 1px solid #343a40 !important;
  color: #f5f5f5 !important;
}

/* Section backgrounds */
html[data-theme="dark"] .ch-section-alt {
  background: #11111a !important;
}


html[data-theme="dark"] .ch-header {
  background: rgba(17, 17, 27, 0.96);
}
/* Mobile nav toggle */
.ch-nav-toggle {
  display: none;
  width: 38px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--ch-color-border);
  background: var(--ch-color-surface);
  margin-left: auto;
  margin-right: 0.25rem;
  padding: 6px 7px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ch-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ch-color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ch-nav-toggle span + span {
  margin-top: 4px;
}

.ch-header-inner {
  position: relative;
}

/* Mobile layout */
@media (max-width: 768px) {
  .ch-header-inner {
    gap: 0.75rem;
  }

  .ch-nav-toggle {
    display: inline-flex;
  }

  .ch-nav {
    position: absolute;
    top: 100%;
    right: 0.75rem;
    left: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: var(--ch-color-bg);
    border: 1px solid var(--ch-color-border);
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }

  .ch-nav a {
    padding: 0.4rem 0.2rem;
  }

  .ch-header.has-nav-open .ch-nav {
    display: flex;
  }

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

  .ch-nav + .ch-theme-toggle {
    margin-left: 0.25rem;
  }

  .ch-nav,
  .ch-theme-toggle {
    font-size: 0.9rem;
  }
}

/* Hero overlay & abstract background */
.ch-hero {
  position: relative;
  overflow: hidden;
}

.ch-hero::before,
.ch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ch-hero::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 122, 0, 0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 196, 179, 0.16) 0, transparent 55%);
  opacity: 0.85;
}

html[data-theme="dark"] .ch-hero::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 122, 0, 0.22) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 196, 179, 0.2) 0, transparent 55%);
}

.ch-hero::after {
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0, transparent 40%),
    linear-gradient(-120deg, rgba(255, 255, 255, 0.05) 0, transparent 45%);
  mix-blend-mode: soft-light;
}

.ch-hero-inner {
  position: relative;
  z-index: 1;
}

/* Global spacing tweaks for a calmer layout */
.ch-section {
  padding: 3.5rem 1.5rem;
}

.ch-hero {
  padding: 4.75rem 1.5rem 3.75rem;
}

.ch-section h2 {
  margin-bottom: 1.25rem;
}

.ch-section-inner {
  max-width: 1160px;
}

.ch-hero-lead {
  margin-bottom: 1.3rem;
}

.ch-hero-meta {
  margin-top: 1.9rem;
}

@media (max-width: 768px) {
  .ch-section {
    padding: 2.75rem 1.25rem;
  }

  .ch-hero {
    padding: 3.5rem 1.25rem 2.75rem;
  }
}

/* Subtle page background texture */
body {
  background-color: var(--ch-color-bg);
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.05) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.04) 0, transparent 55%);
  background-attachment: fixed;
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.03) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.03) 0, transparent 55%);
}

.ch-section-alt {
  position: relative;
  overflow: hidden;
}

.ch-section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04) 0,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

html[data-theme="dark"] .ch-section-alt::before {
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.03) 0,
    transparent 35%,
    rgba(255, 255, 255, 0.03) 70%,
    transparent 100%
  );
}

.ch-brand-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}


.ch-brand-card-icon {
  height: 126px;
  width: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
}



.ch-brand-card-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}


.ch-brand-card:hover {transform: translateY(-3px); box-shadow:0 4px 20px rgba(0,0,0,0.25); transition:all .2s ease;}
