/* Cahaba Concepts. Theme for the polished static site.
   Palette, type and marks come from the live site; layout is rebuilt on a 4px scale. */

:root {
  --paper: #eaeaea;
  --ink: #2b2c32;
  --ink-deep: #121319;
  --pale: #d9dfe5;
  --text: #1a1a1a;
  --text-soft: #4b4c53;
  --white: #fff;
  --input-fill: #f1f1f1;
  --placeholder: #6b6c72;
  --line: rgba(43, 44, 50, .14);
  --line-on-ink: rgba(234, 234, 234, .18);

  --font-display: "Krona One", sans-serif;
  --font-body: "Jost", sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px;
  --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --section-y: clamp(64px, 9vw, 112px);
  --gutter: clamp(16px, 3vw, 24px);
  --content: 1224px;
  --radius: 25px;
  --header-h: 128px;
  --header-h-m: 88px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--ink); color: #fff; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.75rem, 9.2vw, 8.5rem); line-height: 1.02; }
h2, .h2 { font-size: clamp(2.25rem, 6.4vw, 6rem); line-height: 1.05; }
h3, .h3 { font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.12; }
h4, .h4 { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.15; }
h5, .h5 { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.2; }
h6, .h6 { font-size: 1rem; line-height: 1.3; }
.eyebrow { font-size: clamp(.9375rem, 2.2vw, 1.75rem); line-height: 1.3; text-wrap: pretty; }
p { max-width: 70ch; }
.lede { font-size: 1.0625rem; }
.measure { max-width: 60ch; }
.accent { color: var(--pale); }
.section--ink .accent { color: var(--pale); }
.section--paper .accent, .hero .accent { color: #8a98a6; }
p + p { margin-top: var(--s-4); }
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p, .h5 + p, .h6 + p { margin-top: var(--s-3); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 18; background: var(--paper); }
.site-header__inner { display: grid; grid-template-columns: min-content 1fr; align-items: center; min-height: var(--header-h); }
.logo { display: flex; width: var(--header-h); height: var(--header-h); margin-right: var(--s-4); margin-left: calc(-1 * var(--s-3)); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: var(--s-12); row-gap: var(--s-4); }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.8; color: var(--text); text-decoration: none; }
.nav__link:hover, .nav__link:focus-visible, .nav__link.is-active, .nav__item:hover > .nav__link { color: #000; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav__caret { all: unset; display: flex; margin-left: var(--s-2); padding: var(--s-1) 6px; color: var(--text); cursor: pointer; border-radius: 3px; }
.nav__caret:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__caret svg { transition: transform .3s var(--ease-out); }
.has-sub:hover .nav__caret svg, .has-sub.is-open .nav__caret svg { transform: rotate(180deg); }
.nav__sub { position: absolute; top: 100%; left: 0; z-index: 1; display: none; min-width: 180px; padding: var(--s-4) var(--s-6); background: var(--paper); border-radius: 5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
.nav__sub li + li { margin-top: var(--s-2); }
.nav--desktop .has-sub::after { content: ""; position: absolute; left: 0; right: -16px; top: 100%; height: 12px; }
.nav--desktop .has-sub:hover .nav__sub, .nav--desktop .has-sub.is-open .nav__sub, .nav--desktop .has-sub:focus-within .nav__sub { display: block; }
.burger, .mobile-nav { display: none; }

@media (max-width: 920px) {
  .site-header__inner { grid-template-columns: auto max-content; min-height: var(--header-h-m); }
  .logo { width: var(--header-h-m); height: var(--header-h-m); margin: 0 0 0 calc(-1 * var(--s-2)); }
  .nav--desktop { display: none; }
  .burger { position: relative; display: block; width: 24px; height: 18px; padding: 0; background: transparent; border: 0; cursor: pointer; }
  .burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
  .burger span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .25s; transform-origin: left center; }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 8px; }
  .burger span:nth-child(3) { top: 16px; }
  .burger.is-open span:nth-child(1) { top: -1px; transform: rotate(45deg); }
  .burger.is-open span:nth-child(2) { transform: scaleX(0); opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: rotate(-45deg); }
  .mobile-nav { position: absolute; top: 100%; left: 0; width: 100%; display: block; visibility: hidden; opacity: 0; transform: translateY(-8px); padding: var(--s-4) var(--gutter) var(--s-8); background: var(--paper); box-shadow: 0 10px 16px -12px rgba(0, 0, 0, .2); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s; }
  .mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; max-height: 70vh; overflow-y: auto; transition-delay: 0s; }
  .nav--mobile .nav__list { flex-direction: column; align-items: flex-end; gap: var(--s-4); text-align: end; }
  .nav--mobile .nav__item { flex-direction: column; align-items: flex-end; }
  .nav--mobile .nav__link { font-size: 1.125rem; }
  .nav--mobile .nav__item > .nav__link { order: 1; }
  .nav--mobile .nav__caret { order: 2; position: absolute; right: 100%; top: 8px; margin: 0 var(--s-3) 0 0; }
  .nav--mobile .nav__sub { position: static; display: none; min-width: 0; padding: 0; margin: var(--s-3) 0 0; background: transparent; box-shadow: none; }
  .nav--mobile .nav__sub li + li { margin-top: var(--s-3); }
  .nav--mobile .has-sub.is-open .nav__sub { display: block; }
  .nav--mobile .nav__item:hover > .nav__link:not(.is-active) { text-decoration: none; color: var(--text); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--pale { background: var(--pale); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4, .section--ink h5, .section--ink h6,
.section--ink .h3, .section--ink .h5, .section--ink .h6 { color: var(--white); }
.section--ink p { color: var(--paper); }
.section__head { display: flex; align-items: center; gap: var(--s-6); margin-bottom: var(--s-12); }
.section__head--tight { margin-bottom: var(--s-8); }

.mark { flex: none; width: 96px; height: 96px; object-fit: contain; }
.mark--sm { width: 48px; height: 48px; }
.mark--md { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }
.mark--lg { width: clamp(80px, 9vw, 128px); height: clamp(80px, 9vw, 128px); }
.dash { width: 72px; height: auto; margin: var(--s-6) 0; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: rgba(43, 44, 50, .06); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media[style*="--ar"] { aspect-ratio: var(--ar); }
.media--contain { background: transparent; border-radius: 0; }
.media--contain img { object-fit: contain; }
.media--masked { border-radius: 0; background: transparent; -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

.mosaic { display: grid; grid-template-columns: minmax(0, 812fr) minmax(0, 194fr); grid-template-rows: 1fr 1fr; gap: var(--s-6); }
.mosaic__big { grid-row: 1 / 3; }
.mosaic .media:not(.mosaic__big) { aspect-ratio: auto; height: 100%; min-height: 0; }
.gallery { display: grid; grid-template-columns: minmax(0, 297fr) minmax(0, 709fr); gap: var(--s-6); margin-top: var(--s-12); }
.gallery .media { aspect-ratio: auto; }
.gallery__tall { aspect-ratio: 297 / 432 !important; }
.gallery__wide { height: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--s-3) var(--s-12); font-family: var(--font-display); font-size: .75rem; line-height: 1.2; color: var(--white); text-decoration: none; background: var(--ink); border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s ease, transform .2s var(--ease-out); }
.btn:hover { background: var(--ink-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--ink .btn { background: var(--paper); color: var(--ink); }
.section--ink .btn:hover { background: var(--white); }

/* ---------- Social ---------- */
.social { display: flex; gap: var(--s-6); align-items: center; }
.social__link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px; color: var(--ink); border-radius: 50%; transition: color .2s ease, background-color .2s ease; }
.social__link svg { width: 20px; height: 20px; }
.social__link svg path { fill: currentColor; }
.social__link:hover { color: #000; background: rgba(43, 44, 50, .08); }
.social__link:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.social--light .social__link { color: var(--paper); }
.social--light .social__link:hover { color: var(--white); background: rgba(255, 255, 255, .1); }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 var(--section-y); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-8); row-gap: clamp(40px, 6vw, 80px); align-items: start; }
.hero__text { grid-column: 1; }
.hero__text .eyebrow { margin-bottom: clamp(16px, 2.5vw, 32px); color: var(--ink); }
.hero__mark { grid-column: 2; align-self: start; margin-top: clamp(40px, 7vw, 96px); }
.hero__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-8); }
.hero__lede { max-width: 40ch; }
.hero__lede .dash { margin: 0 0 var(--s-6); }
.hero__text { animation: rise .9s var(--ease-out) both; }
.hero__mark { animation: rise .9s var(--ease-out) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero--page .hero__text .dash { margin: var(--s-6) 0; }
.hero--page .hero__mark { margin-top: var(--s-4); }

/* ---------- Offer (dark list) ---------- */
.offer__grid, .process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12) var(--s-16); align-items: start; }
.offer__head .dash, .process__head .dash { margin: var(--s-6) 0 0; }
.offer__list { display: grid; }
.offer__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-6); padding: var(--s-8) 0; border-top: 1px solid var(--line-on-ink); }
.offer__item:first-child { padding-top: 0; border-top: 0; }
.offer__item:last-child { padding-bottom: 0; }
.offer__item .h6 { margin-bottom: var(--s-2); }

/* ---------- Projects (pale) ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.project { display: block; color: inherit; text-decoration: none; }
.project .media { transition: transform .5s var(--ease-out); }
.project:hover .media { transform: translateY(-4px); }
.project .h6 { margin-top: var(--s-4); }
.project:hover .h6 { text-decoration: underline; text-underline-offset: 6px; }
.projects__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6) var(--s-12); margin-top: var(--s-12); padding-top: var(--s-8); border-top: 1px solid var(--line); }

/* ---------- Feature (photography teaser) ---------- */
.feature__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8) var(--s-16); align-items: end; margin-bottom: var(--s-12); }
.feature__title { display: flex; align-items: center; gap: var(--s-6); }
.feature__intro { max-width: 44ch; }
.feature__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8) var(--s-16); margin-top: var(--s-12); }
.feature__label .h5 { margin-bottom: var(--s-2); }
.feature__copy .btn { margin-top: var(--s-8); }

/* ---------- Process (dark steps) ---------- */
.steps { display: grid; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(72px, auto) minmax(0, 1fr); gap: var(--s-6); align-items: start; padding: var(--s-8) 0; border-top: 1px solid var(--line-on-ink); }
.step:first-child { padding-top: 0; border-top: 0; }
.step:last-child { padding-bottom: 0; }
.step__num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); line-height: .9; color: var(--pale); }
.step__body .h6 { margin-bottom: var(--s-2); }

/* ---------- Services list ---------- */
.services__list { display: grid; gap: var(--s-24); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8) var(--s-16); align-items: center; }
.service:nth-child(even) .media { order: 2; }
.service__text .h5 { margin-bottom: var(--s-3); }
.service__text .btn { margin-top: var(--s-6); }

/* ---------- Detail pages ---------- */
.intro { display: grid; gap: var(--s-8) var(--s-16); margin-top: var(--s-12); }
.intro--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intro p { max-width: 60ch; }
.detail { display: grid; grid-template-columns: minmax(0, 606fr) minmax(0, 594fr); gap: var(--s-8) var(--s-16); align-items: center; margin-top: var(--s-16); }
.detail__text .h5 { margin-bottom: var(--s-3); }
.detail__text p { max-width: 48ch; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 503fr) minmax(0, 721fr); gap: var(--s-12) var(--s-16); align-items: center; }
.about__photo { max-width: 503px; }
.about__title { display: flex; align-items: center; gap: var(--s-6); margin-bottom: var(--s-8); }
.about__text p { max-width: 58ch; }
.about__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); margin-top: var(--s-8); }
.about__foot .dash { margin: 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12) var(--s-16); }
.pillar .mark { margin-bottom: var(--s-6); }
.pillar .h3 { margin-bottom: var(--s-4); }
.pillar p { max-width: 48ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12) var(--s-16); align-items: start; }
.contact__intro p { max-width: 36ch; }
.contact-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-12) var(--s-16); align-items: center; }
.contact-hero__details { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--s-8) var(--s-16); }
.contact-hero__details .h6 { margin-bottom: var(--s-2); }
.contact-hero__details .social { margin-top: var(--s-4); }
.contact-hero__details a { text-decoration: none; }
.contact-hero__details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-hero__art { position: relative; }
.contact-hero__mark { position: absolute; right: 8%; top: 10%; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s-6); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 400; font-size: .9375rem; line-height: 1.4; color: var(--text); }
.req { color: var(--ink); margin-left: 2px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px var(--s-4); font: inherit; font-size: 1rem; color: var(--text); background: var(--input-fill); border: 1px solid transparent; border-radius: 0; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(43, 44, 50, .25); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(43, 44, 50, .18); }
.field .is-invalid { border-color: #b4233f; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: var(--s-4); }
.form__note { margin: 0; font-size: .9375rem; color: var(--text); }
.form__note:empty { display: none; }
.form__submit { margin-left: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: var(--s-16) 0 var(--s-8); }
.footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8) var(--s-16); align-items: start; }
.footer__logo { display: block; width: 120px; height: 120px; margin: -16px 0 0 -12px; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer .h6, .footer h6 { color: var(--white); margin-bottom: var(--s-2); }
.footer p { color: var(--paper); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col .social { margin-top: var(--s-4); }
.footer__bottom { margin-top: var(--s-12); padding-top: var(--s-4); border-top: 1px solid var(--line-on-ink); }
.footer__bottom p { font-size: .875rem; color: rgba(234, 234, 234, .7); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__mark { grid-column: 1; grid-row: 2; justify-self: end; margin-top: 0; }
  .hero__foot { grid-row: 3; }
  .offer__grid, .process__grid, .contact__grid, .about__grid, .pillars__grid, .feature__head, .feature__body, .intro--two, .detail, .service, .contact-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(even) .media { order: 0; }
  .about__photo { max-width: 420px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .mosaic__big { grid-column: 1 / -1; grid-row: 1; }
  .mosaic .media:not(.mosaic__big) { aspect-ratio: 4 / 5; height: auto; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__tall { aspect-ratio: 4 / 5 !important; }
  .gallery__wide { aspect-ratio: 3 / 2; height: auto; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .section__head, .feature__title, .about__title { gap: var(--s-4); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-hero__details { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__text, .hero__mark { animation: none; }
  .nav__caret svg, .burger span, .mobile-nav, .project .media, .btn { transition: none; }
}
