:root {
  --cj-navy: #0b2540;
  --cj-navy-deep: #071a30;
  --cj-steel: #2f5d82;
  --cj-steel-light: #7fa1bd;
  --cj-gunmetal: #4a4f57;
  --cj-gunmetal-light: #c9cdd3;
  --cj-gold: #caa14a;
  --cj-gold-light: #e8cd8a;
  --cj-gold-dark: #9c7830;
  --cj-white: #f7f7f5;
  --cj-cream: #f3ede1;
  --cj-ink: #10202f;
  --cj-ink-soft: #3c5164;

  --cj-font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --cj-font-body: 'Public Sans', system-ui, -apple-system, sans-serif;

  --cj-radius-sm: 6px;
  --cj-radius: 12px;
  --cj-radius-lg: 20px;

  --cj-shadow-sm: 0 1px 3px rgba(7, 26, 48, 0.10), 0 1px 2px rgba(7, 26, 48, 0.06);
  --cj-shadow-md: 0 6px 20px rgba(7, 26, 48, 0.14), 0 2px 6px rgba(7, 26, 48, 0.08);
  --cj-shadow-lg: 0 18px 48px rgba(7, 26, 48, 0.22), 0 6px 16px rgba(7, 26, 48, 0.12);
  --cj-shadow-gold: 0 8px 22px rgba(156, 120, 48, 0.35);

  --cj-container: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cj-font-body);
  background: var(--cj-white);
  color: var(--cj-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--cj-font-display);
  color: var(--cj-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 62ch; }

a {
  color: var(--cj-steel);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
a:hover { color: var(--cj-gold-dark); }

::selection { background: var(--cj-gold-light); color: var(--cj-navy); }

:focus-visible {
  outline: 2px solid var(--cj-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.cj-skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--cj-navy);
  color: var(--cj-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.cj-skip-link:focus {
  left: 0;
  top: 0;
}

.cj-container {
  max-width: var(--cj-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.cj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  box-shadow: var(--cj-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
}

.cj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.cj-brand img.logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.cj-brand-text {
  font-family: var(--cj-font-display);
  color: var(--cj-white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.cj-brand-text span {
  display: block;
  font-family: var(--cj-font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cj-gold-light);
}

.cj-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cj-header nav a {
  color: rgba(247, 247, 245, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--cj-radius-sm);
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.cj-header nav a:hover {
  color: var(--cj-white);
  background: rgba(247, 247, 245, 0.08);
}

.cj-header nav a[aria-current="page"] {
  color: var(--cj-navy);
  background: var(--cj-gold);
}

.cj-lang-switcher {
  display: inline-flex;
  background: rgba(7, 26, 48, 0.4);
  border: 1px solid rgba(247, 247, 245, 0.15);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.cj-lang-switcher button {
  border: none;
  background: transparent;
  color: rgba(247, 247, 245, 0.65);
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.cj-lang-switcher button:hover { color: var(--cj-white); }

.cj-lang-switcher button[aria-current="true"] {
  background: var(--cj-gold);
  color: var(--cj-navy);
}

/* ---------- Buttons ---------- */

.cj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--cj-gold-light) 0%, var(--cj-gold) 55%, var(--cj-gold-dark) 100%);
  color: var(--cj-navy);
  border: none;
  border-radius: var(--cj-radius-sm);
  padding: 13px 26px;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--cj-shadow-gold);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.cj-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(156, 120, 48, 0.42);
}

.cj-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--cj-shadow-sm);
}

.cj-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cj-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--cj-white);
  border: 1.5px solid rgba(247, 247, 245, 0.5);
  border-radius: var(--cj-radius-sm);
  padding: 12px 24px;
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.cj-btn-secondary:hover {
  border-color: var(--cj-gold-light);
  background: rgba(247, 247, 245, 0.06);
  color: var(--cj-white);
}

/* ---------- Hero ---------- */

.cj-hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(202, 161, 74, 0.16), transparent 60%),
    linear-gradient(160deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-white);
  overflow: hidden;
  padding: 88px 24px 96px;
}

.cj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 64px
  );
  pointer-events: none;
}

.cj-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cj-eyebrow {
  display: inline-block;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cj-gold-light);
  margin-bottom: 18px;
}

.cj-hero h1 {
  color: var(--cj-white);
  margin-bottom: 0.4em;
}

.cj-hero p.cj-lede {
  color: rgba(247, 247, 245, 0.78);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.cj-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Services strip ---------- */

.cj-services {
  background: var(--cj-cream);
  padding: 56px 24px;
  border-bottom: 1px solid rgba(11, 37, 64, 0.06);
}

.cj-services-list {
  max-width: var(--cj-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.cj-services-list li {
  background: var(--cj-white);
  border: 1px solid rgba(11, 37, 64, 0.09);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--cj-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cj-navy);
  box-shadow: var(--cj-shadow-sm);
}

/* ---------- How it works ---------- */

.cj-steps {
  background: var(--cj-white);
  padding: 64px 24px;
}

.cj-steps-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
}

.cj-steps h2,
.cj-features h2 {
  text-align: center;
  margin-bottom: 40px;
}

.cj-steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  counter-reset: cj-step;
}

.cj-steps-list li {
  text-align: center;
}

.cj-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cj-navy);
  color: var(--cj-gold-light);
  font-family: var(--cj-font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.cj-steps-list h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.cj-steps-list p {
  font-size: 0.92rem;
  color: var(--cj-ink-light, #5b6672);
  margin: 0;
}

/* ---------- Feature highlights ---------- */

.cj-features {
  background: var(--cj-cream);
  padding: 64px 24px;
  border-top: 1px solid rgba(11, 37, 64, 0.06);
  border-bottom: 1px solid rgba(11, 37, 64, 0.06);
}

.cj-features-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
}

.cj-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cj-feature-card {
  background: var(--cj-white);
  border: 1px solid rgba(11, 37, 64, 0.07);
  border-radius: var(--cj-radius);
  padding: 24px;
  box-shadow: var(--cj-shadow-sm);
}

.cj-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.cj-feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 800px) {
  .cj-steps-list { grid-template-columns: repeat(2, 1fr); }
  .cj-features-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (non-home pages) ---------- */

.cj-page-header {
  background: linear-gradient(160deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-white);
  padding: 52px 24px 60px;
  text-align: center;
}

.cj-page-header h1 { color: var(--cj-white); margin-bottom: 0.3em; }
.cj-page-header p { color: rgba(247, 247, 245, 0.75); max-width: 52ch; margin: 0 auto; }

/* ---------- Layout ---------- */

.cj-main {
  max-width: 640px;
  margin: -40px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.cj-main--wide { max-width: 760px; }
.cj-main--narrow { max-width: 520px; }

/* ---------- Cards ---------- */

.cj-card {
  background: var(--cj-white);
  border: 1px solid rgba(11, 37, 64, 0.07);
  border-radius: var(--cj-radius);
  padding: 32px;
  box-shadow: var(--cj-shadow-md);
  margin-bottom: 20px;
}

.cj-card--accent {
  border-top: 3px solid var(--cj-gold);
}

.cj-card h3 {
  margin-bottom: 0.6em;
}

.cj-card p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.cj-field {
  margin-bottom: 18px;
}

.cj-field:last-child { margin-bottom: 0; }

.cj-field label,
.cj-card > label {
  display: block;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
  margin-bottom: 7px;
}

.cj-card > label { margin-top: 16px; }
.cj-card > label:first-child { margin-top: 0; }

.cj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  font-family: var(--cj-font-body);
  font-size: 0.98rem;
  color: var(--cj-ink);
  background: var(--cj-white);
  border: 1.5px solid var(--cj-gunmetal-light);
  border-radius: var(--cj-radius-sm);
  padding: 11px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover, select:hover { border-color: var(--cj-steel-light); }

input:focus, select:focus {
  outline: none;
  border-color: var(--cj-gold);
  box-shadow: 0 0 0 3px rgba(202, 161, 74, 0.22);
}

input::placeholder { color: #9aa3ab; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234a4f57' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cj-card > select,
.cj-card > input {
  margin-bottom: 4px;
}

/* ---------- Result / status messages ---------- */

.cj-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--cj-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.cj-result:empty { display: none; }

.cj-result--price {
  background: rgba(202, 161, 74, 0.12);
  color: var(--cj-navy);
  font-family: var(--cj-font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.cj-result--error {
  background: rgba(163, 42, 42, 0.08);
  color: #7a2323;
}

.cj-result--info {
  background: rgba(47, 93, 130, 0.09);
  color: var(--cj-steel);
}

/* ---------- Time slot buttons ---------- */

#cj-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

#cj-slot-list button {
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cj-navy);
  background: var(--cj-cream);
  border: 1.5px solid rgba(11, 37, 64, 0.12);
  border-radius: var(--cj-radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

#cj-slot-list button:hover {
  border-color: var(--cj-gold);
  background: var(--cj-gold-light);
}

/* ---------- Review / total ---------- */

.cj-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px dashed rgba(11, 37, 64, 0.15);
  border-bottom: 1px dashed rgba(11, 37, 64, 0.15);
  margin: 14px 0 22px;
}

.cj-total-row .cj-total-label {
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
}

#cj-total-display {
  font-family: var(--cj-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cj-navy);
}

/* ---------- Confirmation pages ---------- */

.cj-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.cj-confirm-icon--success { background: rgba(202, 161, 74, 0.15); color: var(--cj-gold-dark); }
.cj-confirm-icon--cancel { background: rgba(74, 79, 87, 0.12); color: var(--cj-gunmetal); }

/* ---------- Footer ---------- */

.cj-footer {
  background: linear-gradient(160deg, var(--cj-navy-deep) 0%, #050f1c 100%);
  color: rgba(247, 247, 245, 0.85);
  padding: 48px 24px 28px;
  margin-top: 0;
}

.cj-footer-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(247, 247, 245, 0.1);
}

.cj-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.cj-footer-brand img { height: 40px; width: auto; }

.cj-footer-brand p {
  font-size: 0.85rem;
  color: rgba(247, 247, 245, 0.6);
  margin: 4px 0 0;
}

.cj-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.cj-footer-nav a {
  color: rgba(247, 247, 245, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.cj-footer-nav a:hover { color: var(--cj-gold-light); }

.cj-footer-bottom {
  max-width: var(--cj-container);
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(247, 247, 245, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .cj-header {
    flex-wrap: wrap;
  }
  .cj-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(247, 247, 245, 0.1);
  }
  .cj-row { grid-template-columns: 1fr; }
  .cj-main { margin-top: -28px; }
  .cj-hero { padding: 64px 20px 72px; }
}

/* ---------- Admin dashboard ---------- */
/* Deliberately its own minimal layout, not the marketing header/hero/footer:
   this page is a work tool for staff, not a page a customer ever sees. */

.cj-admin-body {
  background: var(--cj-cream);
  min-height: 100vh;
}

.cj-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cj-navy);
  padding: 14px 20px;
}

.cj-admin-bar-brand {
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(247, 247, 245, 0.85);
}

.cj-admin-bar-brand strong {
  color: var(--cj-white);
  font-weight: 700;
}

.cj-admin-logout-btn {
  background: transparent;
  border: 1px solid rgba(247, 247, 245, 0.3);
  border-radius: var(--cj-radius-sm);
  color: var(--cj-white);
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  cursor: pointer;
}

.cj-admin-logout-btn:hover {
  border-color: var(--cj-gold-light);
  color: var(--cj-gold-light);
}

.cj-admin-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.cj-admin-login-card {
  background: var(--cj-white);
  border: 1px solid rgba(11, 37, 64, 0.08);
  border-radius: var(--cj-radius);
  box-shadow: var(--cj-shadow-sm);
  padding: 28px;
  max-width: 340px;
  margin: 40px auto 0;
}

.cj-admin-login-card h1 {
  font-size: 1.25rem;
  margin-bottom: 0.8em;
}

.cj-admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(11, 37, 64, 0.12);
}

.cj-admin-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cj-ink-soft);
  cursor: pointer;
}

.cj-admin-tab.active {
  color: var(--cj-navy);
  border-bottom-color: var(--cj-gold);
}

.cj-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cj-admin-table th {
  text-align: left;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 37, 64, 0.12);
}

.cj-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 37, 64, 0.06);
  vertical-align: middle;
}

.cj-admin-table input[type="text"],
.cj-admin-table input[type="number"],
.cj-admin-table select {
  padding: 6px 8px;
  font-size: 0.88rem;
  min-width: 90px;
}

.cj-admin-table .cj-notes-cell {
  max-width: 260px;
  font-size: 0.82rem;
  color: var(--cj-ink-soft);
  white-space: pre-wrap;
}

.cj-admin-save-btn {
  background: var(--cj-steel);
  color: var(--cj-white);
  border: none;
  border-radius: var(--cj-radius-sm);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.cj-admin-save-btn:hover { background: var(--cj-navy); }

.cj-admin-save-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.cj-admin-table-wrap {
  overflow-x: auto;
  background: var(--cj-white);
  border: 1px solid rgba(11, 37, 64, 0.08);
  border-radius: var(--cj-radius);
  box-shadow: var(--cj-shadow-sm);
}
