/* Castleboss one-page site — all rules are scoped to .cb-site so they don't clash with your Joomla template */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=Cormorant+Garamond:wght@600;700&display=swap');

.cb-site { --cb-cream: #FAF3E0; --cb-header: #F5F0E6; --cb-bar: #E9E1D0; --cb-ink: #1A1612; --cb-black: #000; --cb-gold: #8A6420; --cb-line: #DDD3C0; --cb-muted: #5C5345;
  font-family: 'Barlow', system-ui, sans-serif; color: var(--cb-ink); background: var(--cb-cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cb-site *, .cb-site *::before, .cb-site *::after { box-sizing: border-box; }
.cb-site img { max-width: 100%; display: block; }
.cb-site a { color: inherit; }
.cb-site h1, .cb-site h2, .cb-site h3, .cb-site p { margin: 0; }
.cb-site button { font: inherit; }
.cb-site :focus-visible { outline: 2px solid var(--cb-gold); outline-offset: 3px; }
.cb-cond { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; }
.cb-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.cb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 0; cursor: pointer; text-decoration: none; font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.cb-site .cb-btn--black { background: #111; color: #fff; }
.cb-site .cb-btn--black:hover { background: #333; color: #fff; }
.cb-site .cb-btn--cream { background: var(--cb-cream); color: #000; }
.cb-site .cb-btn--cream:hover { background: #fff; }
.cb-site .cb-btn--outline { border: 1.5px solid #fff; color: #fff; background: transparent; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.2em; }
.cb-site .cb-btn--outline:hover { background: #fff; color: #000; }

/* Age gate */
.cb-gate { position: fixed; inset: 0; z-index: 9999; background: #0B0A09; color: #F4EEE2; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.cb-gate[hidden] { display: none; }
.cb-gate__inner { max-width: 560px; }
.cb-gate__brand { margin: 16px 0 40px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 700; letter-spacing: 0.14em; }
.cb-gate h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 16px; }
.cb-gate p { color: #B9AE9B; }
.cb-gate__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cb-gate__btns button { min-width: 160px; min-height: 52px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.cb-gate__yes { background: #F4EEE2; color: #0B0A09; border: 0; }
.cb-gate__no { background: transparent; color: #F4EEE2; border: 1px solid #F4EEE2; }
.cb-gate__msg { margin-top: 24px; color: #E8A090 !important; }

/* Top bar + header */
.cb-topbar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 24px; background: var(--cb-bar); color: var(--cb-ink); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; }
.cb-header { position: sticky; top: 0; z-index: 100; background: var(--cb-header); border-bottom: 1px solid var(--cb-line); }
.cb-header__row { max-width: 1360px; margin: 0 auto; padding: 10px 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.cb-header__side { flex: 1 1 200px; display: flex; align-items: center; gap: 4px 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.cb-header__side--right { justify-content: flex-end; gap: 4px 10px; }
.cb-header__side a { text-decoration: none; padding: 12px 0; }
.cb-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--cb-ink); cursor: pointer; padding: 0 !important; }
.cb-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex: 0 0 auto; }
.cb-logo span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 700; letter-spacing: 0.16em; line-height: 1; }
.cb-country { min-height: 44px; min-width: 170px; background: var(--cb-header); color: var(--cb-ink); border: 0; padding: 0 4px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.cb-nav { max-width: 1360px; margin: 0 auto; padding: 4px 24px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; }
.cb-nav button { min-height: 48px; display: flex; align-items: center; gap: 6px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--cb-ink); cursor: pointer; padding: 0 2px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; }
.cb-nav button[aria-expanded="true"] { border-bottom-color: var(--cb-ink); }
.cb-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.cb-panel { border-top: 1px solid var(--cb-line); background: var(--cb-header); padding: 36px 24px 44px; }
.cb-panel[hidden] { display: none; }
.cb-mega { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; }
.cb-mega__links { flex: 1 1 240px; display: flex; flex-direction: column; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; }
.cb-mega__links a { text-decoration: none; color: var(--cb-muted); padding: 10px 0; }
.cb-mega__links a:first-child { color: var(--cb-ink); font-size: 24px; letter-spacing: 0.08em; padding: 6px 0 14px; }
.cb-mega__links a:hover { color: var(--cb-ink); }
.cb-mega__featured { flex: 3 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cb-feat { display: block; text-decoration: none; background: #fff; }
.cb-feat img { width: 100%; height: 220px; object-fit: cover; }
.cb-feat small { display: block; padding: 16px 18px 4px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cb-muted); }
.cb-feat strong { display: block; padding: 0 18px 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; }
.cb-search { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cb-search div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.cb-search label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cb-muted); }
.cb-search input { min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid #C9BDA6; color: var(--cb-ink); font: inherit; }

/* Campaign hero */
.cb-hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; background: #6E6E6E; }
.cb-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.cb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%); }
.cb-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 80px 24px; display: flex; justify-content: flex-end; }
.cb-hero__text { max-width: 480px; color: #fff; }
.cb-kicker { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px !important; }
.cb-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.9; margin-bottom: 24px; color: #fff; }
.cb-hero p.cb-hero__body { font-size: 18px; line-height: 1.7; margin-bottom: 36px; }

/* Collection */
.cb-collection { background: var(--cb-cream); color: #111; padding: 72px 24px 88px; }
.cb-collection__head { max-width: 1200px; margin: 0 auto 56px; }
.cb-collection__head small { display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #333; }
.cb-collection__head h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 22px; }
.cb-carousel { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.cb-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.cb-track::-webkit-scrollbar { display: none; }
.cb-card { display: flex; flex-direction: column; scroll-snap-align: start; }
.cb-card__img { height: 460px; background: #fff; border: 1px solid #E4DCC8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #8C8270; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.cb-card__img img { width: 100%; height: 100%; object-fit: contain; }
.cb-card h3 { font-size: 22px; line-height: 1.1; margin: 28px 0 12px; }
.cb-card p { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.6; color: #333; flex-grow: 1; margin-bottom: 24px; }
.cb-card .cb-btn { min-height: 48px; font-size: 12px; }
.cb-arrow { position: absolute; top: 206px; width: 44px; height: 48px; background: #111; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cb-arrow[disabled] { opacity: 0; pointer-events: none; }
.cb-arrow--prev { left: 8px; } .cb-arrow--next { right: 8px; }

/* Sign up + marquee */
.cb-signup { background: #000; color: var(--cb-cream); padding-top: 120px; }
.cb-signup__row { max-width: 1200px; margin: 0 auto; padding: 0 24px 104px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.cb-signup__text { flex: 1 1 520px; min-width: 0; }
.cb-signup h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; margin-bottom: 24px; color: var(--cb-cream); }
.cb-signup__text p { max-width: 460px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 18px; line-height: 1.5; }
.cb-signup__action { flex: 0 1 370px; min-width: 0; padding-top: 6px; }
.cb-signup__action > .cb-btn { width: 100%; min-height: 80px; font-size: 15px; letter-spacing: 0.4em; }
.cb-signup form { display: flex; flex-direction: column; gap: 10px; }
.cb-signup form[hidden], .cb-signup__thanks[hidden], .cb-signup__action > .cb-btn[hidden] { display: none; }
.cb-signup label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.cb-signup input { min-height: 56px; padding: 0 16px; border: 1px solid var(--cb-cream); background: #000; color: var(--cb-cream); font: inherit; }
.cb-signup form .cb-btn { min-height: 64px; font-size: 15px; letter-spacing: 0.4em; }
.cb-signup__thanks { min-height: 80px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cb-cream); font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; text-align: center; padding: 0 16px; }
.cb-marquee { overflow: hidden; white-space: nowrap; padding: 8px 0 14px; }
.cb-marquee__track { display: inline-flex; width: max-content; animation: cbMarquee 40s linear infinite; }
.cb-marquee__item { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-weight: 500; font-size: 40px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cb-cream); }
@keyframes cbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cb-marquee__track { animation: none; } }

/* Responsibly */
.cb-resp { background: var(--cb-cream); color: #111; padding: 96px 24px 104px; }
.cb-resp > div { max-width: 1200px; margin: 0 auto; }
.cb-resp h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin-bottom: 28px; }
.cb-resp p { max-width: 760px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.6; color: #222; margin-bottom: 56px; }
.cb-resp .cb-btn { min-height: 80px; padding: 0 40px; font-size: 15px; letter-spacing: 0.4em; }

/* Footer */
.cb-footer { background: #0B0A09; color: #B9AE9B; padding: 80px 24px 40px; }
.cb-footer__grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.cb-footer__brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 700; letter-spacing: 0.16em; color: #F4EEE2; }
.cb-footer__col { display: flex; flex-direction: column; }
.cb-footer__col h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: #F4EEE2; margin-bottom: 10px; }
.cb-footer__col a, .cb-footer__col span { color: #B9AE9B; text-decoration: none; padding: 8px 0; }
.cb-footer__col a:hover { color: #F4EEE2; }
.cb-footer__legal { max-width: 1360px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid #2A2520; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; line-height: 1.7; }

/* Phones and tablets */
@media (max-width: 900px) {
  .cb-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .cb-header__side { flex: 1 1 100%; justify-content: center; }
  .cb-header__row { justify-content: center; }
  .cb-nav { gap: 0 18px; }
  .cb-carousel { padding: 0 8px; }
  .cb-track { grid-auto-columns: 85%; }
  .cb-arrow { display: none; }
  .cb-card__img { height: 360px; }
  .cb-header { position: static; }
  .cb-hero { min-height: 600px; align-items: flex-end; }
  .cb-hero > img { object-position: 50% 20%; }
  .cb-hero::after { background: rgba(0,0,0,0.45); }
  .cb-marquee__item { font-size: 28px; gap: 28px; padding-right: 28px; }
  .cb-signup { padding-top: 72px; }
  .cb-signup__row { padding-bottom: 64px; }
}
