/* ==========================================================================
   Curoptica Practice Consultancy — section styles
   Palette and fonts are set in "Site palette" at the foot of this file.
   Jost (headings, eyebrows, labels and buttons) and Source Serif 4 (body text) are served from
   assets/fonts (SIL Open Font License: fonts/OFL-Jost.txt and fonts/OFL-SourceSerif4.txt).
   ========================================================================== */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }

.cc {
  --cc-navy: rgb(var(--color-base-accent-1, 28, 51, 89));
  --cc-blue: rgb(var(--color-base-background-2, 48, 79, 131));
  --cc-tint: #eef2f7;
  --cc-line: rgba(28, 51, 89, 0.16);
  --cc-ink: rgb(var(--color-base-text, 18, 18, 18));
  --cc-gap: 1.6rem;
  font-family: var(--font-body-family);
}

.cc *,
.cc *::before,
.cc *::after { box-sizing: border-box; }

/* Colour schemes (per section setting) */
.cc-scheme--white { background: #fff; color: var(--cc-ink); }
.cc-scheme--tint  { background: var(--cc-tint); color: var(--cc-navy); }
.cc-scheme--navy  { background: var(--cc-navy); color: #fff; }
.cc-scheme--blue  { background: var(--cc-blue); color: #fff; }

.cc-inner {
  max-width: var(--page-width, 140rem);
  margin: 0 auto;
  padding: 0 1.6rem;
}
@media (min-width: 750px) { .cc-inner { padding: 0 5rem; } }

.cc-pad { padding-top: var(--cc-pt, 64px); padding-bottom: var(--cc-pb, 64px); }
@media (max-width: 749px) {
  .cc-pad { padding-top: calc(var(--cc-pt, 64px) * 0.7); padding-bottom: calc(var(--cc-pb, 64px) * 0.7); }
}

/* Type */
.cc-eyebrow {
  font-family: var(--font-body-family);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  opacity: 0.85;
}
.cc-h {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight, 400);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 1.6rem;
  color: inherit;
}
.cc-h--xl { font-size: clamp(3.4rem, 5.4vw, 6.4rem); }
.cc-h--l  { font-size: clamp(2.8rem, 3.8vw, 4.6rem); }
.cc-h--m  { font-size: clamp(2.2rem, 2.4vw, 3rem); }
.cc-h--s  { font-size: 2rem; }
.cc-body { font-size: 1.6rem; line-height: 1.65; max-width: 62ch; }
.cc-body p { margin: 0 0 1.2rem; }
.cc-body p:last-child { margin-bottom: 0; }
.cc-center { text-align: center; }
.cc-center .cc-body { margin-left: auto; margin-right: auto; }
.cc-head { margin-bottom: 4rem; }

/* Buttons */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 1.2rem 2.6rem;
  font-family: var(--font-body-family);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: var(--buttons-radius, 6px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.cc-btn::after { content: "\2192"; transition: transform .2s ease; }
.cc-btn:hover::after { transform: translateX(3px); }
.cc-btn--solid { background: var(--cc-navy); border-color: var(--cc-navy); color: #fff; }
.cc-btn--solid:hover { background: var(--cc-blue); border-color: var(--cc-blue); }
.cc-scheme--navy .cc-btn--solid,
.cc-scheme--blue .cc-btn--solid,
.cc-on-dark .cc-btn--solid { background: #fff; border-color: #fff; color: var(--cc-navy); }
.cc-scheme--navy .cc-btn--solid:hover,
.cc-scheme--blue .cc-btn--solid:hover,
.cc-on-dark .cc-btn--solid:hover { background: var(--cc-tint); }
.cc-btn--ghost { background: transparent; color: inherit; }
.cc-btn--ghost:hover { background: rgba(255,255,255,0.12); }
.cc-scheme--white .cc-btn--ghost:hover,
.cc-scheme--tint .cc-btn--ghost:hover { background: rgba(28,51,89,0.06); }
.cc-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cc-media { position: relative; overflow: hidden; background: var(--cc-tint); }
.cc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(28,51,89,0.25); background: var(--cc-tint); }

/* ---------------------------------------------------------------- Doors hero */
.cc-doors__intro { padding-top: 5.6rem; padding-bottom: 4rem; }
.cc-doors__grid { display: grid; grid-template-columns: 1fr; gap: var(--cc-gap); }
@media (min-width: 750px) { .cc-doors__grid { grid-template-columns: 1fr 1fr; } }
.cc-door {
  position: relative;
  display: block;
  min-height: var(--cc-door-h, 62rem);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: var(--cc-navy);
}
@media (max-width: 749px) { .cc-door { min-height: 46rem; } }
.cc-door .cc-media { position: absolute; inset: 0; background: transparent; }
.cc-door .cc-media img { transition: transform .8s ease; }
.cc-door:hover .cc-media img { transform: scale(1.03); }
.cc-door__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,51,89,0) 30%, rgba(28,51,89,0.88) 100%);
}
.cc-door--blue .cc-door__shade { background: linear-gradient(180deg, rgba(48,79,131,0) 30%, rgba(48,79,131,0.9) 100%); }
.cc-door__tab {
  position: absolute; top: 0; left: 0;
  background: #fff; color: var(--cc-navy);
  padding: 1rem 1.8rem;
  font-size: 1.2rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.cc-door__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2rem; }
@media (min-width: 990px) { .cc-door__body { padding: 4.8rem; } }
.cc-door__body .cc-body { opacity: 0.92; margin-bottom: 2.4rem; }
.cc-door__points { list-style: none; margin: 0 0 2.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; font-size: 1.35rem; letter-spacing: .06em; opacity: .9; }
.cc-door__points li::before { content: "—  "; }

/* ---------------------------------------------------------------- Proof bar */
.cc-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem 2rem;
}
@media (min-width: 990px) { .cc-proof__grid { grid-template-columns: repeat(var(--cc-cols, 5), 1fr); } }
.cc-proof__item { border-top: 1px solid currentColor; padding-top: 1.6rem; }
.cc-scheme--navy .cc-proof__item, .cc-scheme--blue .cc-proof__item { border-color: rgba(255,255,255,.35); }
.cc-proof__num { font-family: var(--font-heading-family); font-size: clamp(2.8rem, 3vw, 3.8rem); line-height: 1.1; margin: 0 0 .6rem; }
.cc-proof__label { font-size: 1.35rem; line-height: 1.5; letter-spacing: .04em; opacity: .85; margin: 0; }

/* ---------------------------------------------------------------- Work mosaic */
.cc-mosaic__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cc-gap);
}
@media (min-width: 750px) {
  .cc-mosaic__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 28rem; }
  .cc-tile--wide { grid-column: span 2; }
  .cc-tile--tall { grid-row: span 2; }
  .cc-tile--big { grid-column: span 2; grid-row: span 2; }
}
.cc-tile {
  position: relative; display: block; min-height: 28rem;
  text-decoration: none; color: inherit; overflow: hidden;
}
.cc-tile .cc-media { position: absolute; inset: 0; }
.cc-tile .cc-media img { transition: transform .8s ease; }
a.cc-tile:hover .cc-media img { transform: scale(1.03); }
.cc-tile__label {
  position: absolute; right: 0; bottom: 0;
  background: #fff; color: var(--cc-navy);
  padding: 1.1rem 1.8rem;
  font-size: 1.3rem; letter-spacing: .18em; text-transform: uppercase;
}
.cc-scheme--white .cc-tile__label { background: var(--cc-tint); }
.cc-tile--text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 3.2rem;
}
.cc-tile--text.cc-scheme--navy, .cc-tile--text.cc-scheme--blue { color: #fff; }
.cc-tile__more { margin-top: 1.6rem; font-size: 1.3rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .3rem; }

/* ---------------------------------------------------------------- Process */
.cc-process__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  counter-reset: ccstep;
}
@media (min-width: 750px) { .cc-process__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .cc-process__list { grid-template-columns: repeat(var(--cc-cols, 6), 1fr); } }
.cc-step {
  counter-increment: ccstep;
  border-top: 1px solid var(--cc-line);
  padding: 2.4rem 2.4rem 2.4rem 0;
}
.cc-scheme--navy .cc-step, .cc-scheme--blue .cc-step { border-color: rgba(255,255,255,.3); }
.cc-step::before {
  content: counter(ccstep, decimal-leading-zero);
  display: block; font-size: 1.2rem; letter-spacing: .22em; margin-bottom: 1.6rem; opacity: .7;
}
.cc-step__title { font-family: var(--font-heading-family); font-size: 2.1rem; line-height: 1.2; margin: 0 0 .8rem; }
.cc-step__text { font-size: 1.45rem; line-height: 1.6; margin: 0; opacity: .88; }
.cc-process__foot { margin-top: 4rem; }

/* ---------------------------------------------------------------- Split band */
.cc-split { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 990px) {
  .cc-split { grid-template-columns: 1fr 1fr; gap: 8rem; }
  .cc-split--flip .cc-split__media { order: 2; }
}
.cc-split__media .cc-media { aspect-ratio: 4 / 3; }
.cc-split__text .cc-body { margin-bottom: 3.2rem; }
.cc-split__text .cc-lines + .cc-btn { margin-top: 0; }
.cc-split__media--none { display: none; }
.cc-lines { list-style: none; margin: 3.2rem 0; padding: 0; }
.cc-lines li {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.6rem;
  padding: .9rem 0; font-size: 1.45rem; letter-spacing: .08em;
}
.cc-lines li::before { content: ""; order: 2; width: 6rem; height: 1px; background: currentColor; opacity: .55; }
.cc-lines .cc-lines__a { order: 1; text-align: right; }
.cc-lines .cc-lines__b { order: 3; }
@media (min-width: 750px) { .cc-lines li::before { width: 10rem; } }

/* ---------------------------------------------------------------- Columns */
.cc-cols__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 750px) and (max-width: 989px) { .cc-cols__grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 3.6rem; } }
@media (min-width: 990px) { .cc-cols__grid { grid-template-columns: repeat(var(--cc-cols, 3), 1fr); gap: 4.8rem; } }
.cc-col { min-width: 0; }
.cc-col__rule { width: 4rem; height: 2px; background: currentColor; margin-bottom: 2rem; opacity: .7; }
.cc-center .cc-col__rule { margin-left: auto; margin-right: auto; }
.cc-col .cc-body { font-size: 1.5rem; }
.cc-col__link { display: inline-block; margin-top: 1.6rem; color: inherit; font-size: 1.3rem; letter-spacing: .18em; text-transform: uppercase; text-underline-offset: .4rem; }
.cc-col--card { background: #fff; color: var(--cc-ink); padding: 3.2rem; }
.cc-scheme--white .cc-col--card { background: var(--cc-tint); }

/* ---------------------------------------------------------------- CTA split */
.cc-cta__grid { display: grid; grid-template-columns: 1fr; gap: var(--cc-gap); }
@media (min-width: 750px) { .cc-cta__grid { grid-template-columns: 1fr 1fr; } }
.cc-cta__panel { padding: 5.6rem 3.2rem; display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 990px) { .cc-cta__panel { padding: 7.2rem 6.4rem; } }
.cc-cta__panel .cc-body { margin-bottom: 3.2rem; }

/* ---------------------------------------------------------------- Quote form */
.cc-quote { display: grid; grid-template-columns: 1fr; gap: 5.6rem; }
@media (min-width: 990px) { .cc-quote { grid-template-columns: 4fr 7fr; gap: 8rem; } }
.cc-quote__aside .cc-body { margin-bottom: 3.2rem; }
.cc-quote__contact { border-top: 1px solid var(--cc-line); padding-top: 2.4rem; font-size: 1.5rem; line-height: 1.8; }
.cc-scheme--navy .cc-quote__contact, .cc-scheme--blue .cc-quote__contact { border-color: rgba(255,255,255,.3); }
.cc-quote__contact a { color: inherit; }
.cc-form { display: grid; grid-template-columns: 1fr; gap: 2rem 2.4rem; }
@media (min-width: 750px) { .cc-form { grid-template-columns: 1fr 1fr; } .cc-field--full { grid-column: 1 / -1; } }
.cc-field label, .cc-field legend { display: block; font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; padding: 0; }
.cc-field input, .cc-field select, .cc-field textarea {
  width: 100%; font: inherit; font-size: 1.6rem;
  padding: 1.3rem 1.4rem; border: 1px solid var(--cc-line); border-radius: 0;
  background: #fff; color: var(--cc-ink);
  -webkit-appearance: none; appearance: none;
}
.cc-field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 2rem) 50%, calc(100% - 1.5rem) 50%;
  background-size: .5rem .5rem; background-repeat: no-repeat; padding-right: 4rem;
}
.cc-field textarea { min-height: 14rem; resize: vertical; }
.cc-field input:focus, .cc-field select:focus, .cc-field textarea:focus { outline: 2px solid var(--cc-navy); outline-offset: 0; border-color: var(--cc-navy); }
.cc-field fieldset { border: 0; margin: 0; padding: 0; }
.cc-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.cc-chip { position: relative; }
.cc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-chip span {
  display: inline-block; padding: .9rem 1.6rem; border: 1px solid var(--cc-line);
  font-size: 1.4rem; cursor: pointer; background: #fff; color: var(--cc-ink); transition: all .15s ease;
}
.cc-chip input:checked + span { background: var(--cc-navy); border-color: var(--cc-navy); color: #fff; }
.cc-chip input:focus-visible + span { outline: 2px solid var(--cc-navy); outline-offset: 2px; }
.cc-form__note { font-size: 1.3rem; opacity: .75; margin: 0; }
.cc-form__status { grid-column: 1 / -1; padding: 1.6rem 2rem; font-size: 1.5rem; }
.cc-form__status--ok { background: var(--cc-tint); color: var(--cc-navy); border-left: 3px solid var(--cc-navy); }
.cc-form__status--err { background: #fdecec; color: #8a1c1c; border-left: 3px solid #8a1c1c; }
.cc-scheme--navy .cc-field label, .cc-scheme--navy .cc-field legend { color: #fff; }

/* ---------------------------------------------------------------- Header quote button */
.cc-header-cta {
  display: none;
  align-items: center;
  margin-right: 1.2rem;
  padding: .8rem 1.6rem;
  border: 1px solid #fff;
  border-radius: var(--buttons-radius, 6px);
  background: #fff;
  color: rgb(var(--color-base-accent-1)) !important;
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.cc-header-cta:hover { background: transparent; color: #fff !important; }
@media (min-width: 990px) { .cc-header-cta { display: inline-flex; } }

/* Form fixes */
fieldset.cc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.cc-field .cc-chip { display: inline-block; margin: 0; text-transform: none; letter-spacing: 0; font-size: inherit; }

/* ---------------------------------------------------------------- Name strip */
.cc-roster__heading { margin-bottom: 3.2rem; }
.cc-roster__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.6rem 3.2rem;
  font-size: clamp(1.5rem, 1.6vw, 2rem);
  letter-spacing: .18em; text-transform: uppercase;
}
.cc-roster__list a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: .3rem; }
.cc-roster__list a:hover { border-bottom-color: currentColor; }
.cc-roster__note { margin: 3.2rem 0 0; font-size: 1.35rem; letter-spacing: .06em; opacity: .75; }

/* ---------------------------------------------------------------- Site palette */
.cc {
  --cc-navy: #14231F;
  --cc-blue: #2F4A43;
  --cc-tint: #F1EFE9;
  --cc-ink: #1A1A18;
  --cc-line: rgba(20,35,31,.18);
  --font-heading-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-body-family: 'Source Serif 4', Georgia, serif;
}
.cc .cc-h { letter-spacing: .02em; font-weight: 400; }
.cc-eyebrow { letter-spacing: .28em; }
.cc-scheme--tint { color: var(--cc-ink); }
.cc-btn { border-radius: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 1.3rem; }
.cc-btn--solid { background: var(--cc-navy); border-color: var(--cc-navy); }
.cc-tile__label, .cc-door__tab { letter-spacing: .24em; }
/* header wordmark */
.cc-asset-logo { display: inline-flex; align-items: baseline; gap: 1.2rem; }
.cc-asset-logo img { display: block; width: 20rem; max-width: 46vw; height: auto; }
.cc-asset-logo__suffix {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase;
  opacity: .75; white-space: nowrap;
}
.header__heading-link, .header__heading-link:hover { text-decoration: none; }

.cc .cc-body { font-size: 1.7rem; line-height: 1.7; }
.cc-eyebrow, .cc-btn, .cc-tile__label, .cc-door__tab, .cc-roster__list,
.cc-step::before, .cc-col__link, .cc-field label, .cc-field legend, .cc-proof__label {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}
/* allow five and six column rows to wrap gracefully */
@media (min-width: 750px) {
  .cc-cols__grid { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 4rem 4.8rem; }
}
