/*
 * Shared stylesheet for coachdesks on the `branded` template.
 *
 * Nothing customer-specific lives here. Every brand value arrives as a CSS
 * custom property, written into an inline <style> block by
 * CoachdeskHelper#branding_style_tag from config.coachdesks[<desk>][:branding],
 * so a new customer desk is a config entry plus assets — not a new stylesheet.
 *
 * Layered on top of Bootstrap 4, like the other desks.
 */

:root {
  --cd-primary: #333;
  --cd-primary-dark: #111;
  --cd-ink: #1c1a19;
  --cd-cream: #faf7f3;
  --cd-line: #e6ded4;
  --cd-muted: #6d6560;
}

body {
  color: var(--cd-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cd-primary); }
a:hover { color: var(--cd-primary-dark); }

/* ---------- header ---------- */

.cd-topbar { background: #fff; border-bottom: 1px solid var(--cd-line); }
.cd-topbar .cd-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.cd-topbar img { height: 60px; width: auto; }
.cd-topbar .cd-tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cd-muted); }

.cd-nav { background: var(--cd-ink); }
.cd-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cd-nav a {
  display: inline-block;
  padding: 17px 0;
  margin-right: 38px;
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}
.cd-nav a:hover { color: #fff; opacity: 1; }
.cd-nav li.active a { opacity: 1; box-shadow: inset 0 -3px 0 var(--cd-primary); }

/* ---------- hero ---------- */

.cd-hero { position: relative; height: 500px; overflow: hidden; background: #111; }
.cd-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.cd-hero .cd-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,16,15,.94) 0%, rgba(18,16,15,.80) 40%, rgba(18,16,15,.30) 72%, rgba(18,16,15,.12) 100%);
}
.cd-hero .cd-hero-body { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; color: #fff; }
.cd-hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 52px; line-height: 1.08; max-width: 14ch; margin-bottom: 18px; }
.cd-hero p { max-width: 44ch; font-size: 17px; opacity: .9; margin-bottom: 30px; }

.cd-kicker {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  padding-left: 16px; border-left: 4px solid var(--cd-primary); margin-bottom: 20px;
}

/* ---------- buttons ---------- */

.cd-btn {
  display: inline-block;
  background: var(--cd-primary);
  color: #fff;
  border: 1px solid var(--cd-primary);
  padding: 15px 32px;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
.cd-btn:hover { background: var(--cd-primary-dark); border-color: var(--cd-primary-dark); color: #fff; text-decoration: none; }
.cd-btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.cd-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- sections ---------- */

.cd-section { padding: 80px 0; }
.cd-band { background: var(--cd-cream); border-bottom: 1px solid var(--cd-line); }
.cd-eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--cd-primary); margin-bottom: 14px; }
.cd-section h2, .cd-h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 35px; line-height: 1.15; margin-bottom: 14px; }
.cd-lead { color: var(--cd-muted); max-width: 60ch; font-size: 16.5px; }

/* intro: framed portrait beside the copy. The customer artwork is usually a
   marketing cutout, so it is framed deliberately rather than bled. */
.cd-intro { background: #fff; border-bottom: 1px solid var(--cd-line); padding: 70px 0; }
.cd-portrait { position: relative; overflow: hidden; border: 1px solid var(--cd-line); }
.cd-portrait:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cd-primary); z-index: 1; }
.cd-portrait img { width: 100%; height: 460px; object-fit: cover; object-position: center 30%; }
.cd-quote {
  margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--cd-primary);
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 19px;
}
.cd-quote cite { display: block; font-style: normal; font-size: 13px; color: var(--cd-muted); margin-top: 8px; letter-spacing: .06em; }

/* ---------- programme cards ---------- */

.cd-prog { position: relative; background: #fff; border: 1px solid var(--cd-line); padding: 30px 26px 26px; height: 100%; }
.cd-prog:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cd-primary); }
.cd-prog h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 20px; margin-bottom: 9px; }
.cd-prog p { font-size: 14.5px; color: var(--cd-muted); margin-bottom: 0; }
.cd-prog .cd-meta { margin-top: 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cd-primary); }

/* ---------- coaches ---------- */

.cd-coach { background: #fff; border: 1px solid var(--cd-line); height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s; }
.cd-coach:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.cd-coach-photo { position: relative; padding-top: 100%; overflow: hidden; background: var(--cd-cream); }
.cd-coach-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-coach-body { padding: 18px 20px 20px; border-top: 3px solid var(--cd-primary); flex: 1 1 auto; display: flex; flex-direction: column; }
.cd-coach-body h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 18px; margin-bottom: 3px; }
.cd-coach-body .cd-langs { font-size: 12.5px; color: var(--cd-muted); margin-bottom: 12px; }
.cd-coach-body .cd-more { margin-top: auto; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- forms ---------- */

.cd-form label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cd-muted); margin-bottom: 7px; }
.cd-form .form-control { border: 1px solid var(--cd-line); border-radius: 0; padding: 13px 14px; height: auto; font-size: 15px; }
.cd-form .form-control:focus { border-color: var(--cd-primary); box-shadow: none; }
.cd-form .cd-consent { display: flex; align-items: flex-start; margin: 13px 0; font-size: 14px; color: var(--cd-muted); }
.cd-form .cd-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-right: 11px; margin-top: 2px; }

.cd-aside { background: var(--cd-ink); color: #fff; padding: 34px 30px; }
.cd-aside h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 20px; margin-bottom: 16px; }
.cd-aside ol { padding-left: 17px; font-size: 14.5px; opacity: .86; }
.cd-aside li { margin-bottom: 9px; }
.cd-aside .cd-contact { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; opacity: .82; }
.cd-aside a { color: #fff; text-decoration: underline; }

/* ---------- filters ---------- */

.cd-chip {
  display: inline-block; border: 1px solid var(--cd-line); background: #fff;
  padding: 9px 18px; font-size: 13px; text-decoration: none; color: var(--cd-ink); margin: 0 8px 8px 0;
}
.cd-chip:hover { text-decoration: none; color: var(--cd-ink); border-color: var(--cd-muted); }
.cd-chip.active { background: var(--cd-ink); color: #fff; border-color: var(--cd-ink); }

/* ---------- footer ---------- */

.cd-footer { background: var(--cd-ink); color: rgba(255,255,255,.62); padding: 50px 0 32px; font-size: 14px; }
.cd-footer img { height: 50px; width: auto; filter: brightness(0) invert(1); }
.cd-footer b { color: #fff; display: block; margin-bottom: 9px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.cd-footer a { color: rgba(255,255,255,.62); }
.cd-footer a:hover { color: #fff; }
.cd-footer .cd-footer-cols { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.cd-footer .cd-base { padding-top: 20px; font-size: 13px; }
.cd-footer .cd-tagline { font-family: Georgia, "Times New Roman", serif; font-style: italic; opacity: .8; margin-top: 12px; }

/* ---------- errors ---------- */

.cd-error { padding: 90px 0; text-align: center; }
.cd-error h1 { font-family: Georgia, "Times New Roman", serif; font-size: 72px; color: var(--cd-primary); margin-bottom: 6px; }
.cd-error h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; margin-bottom: 12px; }
.cd-error p { color: var(--cd-muted); }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .cd-hero { height: 420px; }
  .cd-hero h1 { font-size: 38px; }
  .cd-section { padding: 56px 0; }
  .cd-section h2, .cd-h2 { font-size: 28px; }
  .cd-portrait { margin-top: 34px; }
  .cd-portrait img { height: 340px; }
}

@media (max-width: 575px) {
  .cd-topbar .cd-inner { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .cd-topbar .cd-tag { margin-top: 8px; }
  .cd-hero { height: auto; min-height: 380px; }
  .cd-hero h1 { font-size: 31px; }
  .cd-nav a { margin-right: 22px; font-size: 11.5px; }
}
