/* ===========================================================
   Imagine Work — imaginework.ca
   Rebuilt from the approved version E design. Design rules are
   section 5 of BUILD_BRIEF.md; the values below are those rules.
   =========================================================== */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-mid: #424245;
  --paper: #ffffff;
  --paper-alt: #f5f5f7;
  --line: #d2d2d7;
  --green: #1e5b44;
  --green-dark: #14251e;
  --dark: #0f1f18;

  --radius-panel: 28px;
  --radius-photo: 24px;
  --radius-field: 12px;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 136px);
  --wrap: 1200px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--paper-alt);
}

/* ---- Type ------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.07;
}

h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 17px;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 34em;
}

.sub {
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--center {
  align-items: center;
  text-align: center;
}
.section-head--center .lede {
  text-align: center;
}

/* ---- Buttons and links ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--green-dark);
  color: #fff;
}
.btn--sm {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
/* Brief, section 5: nothing drops below 15px on phones. The reference set this
   button at 13px, which is fine on a laptop but too small on a handset. */
@media (max-width: 600px) {
  .btn--sm {
    font-size: 15px;
    min-height: 36px;
  }
}
.btn--light {
  background: #fff;
  color: var(--dark);
}
.btn--light:hover {
  background: #e8e8ed;
  color: var(--dark);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.textlink {
  color: var(--green);
  text-decoration: none;
  font-size: 17px;
}
.textlink:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
  font-size: 15px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
}
.nav a:hover {
  opacity: 1;
}
.nav .btn {
  opacity: 1;
  color: #fff;
}

.promo {
  background: var(--paper-alt);
  padding: 12px var(--gutter);
  text-align: center;
  font-size: 15px;
}
.promo a {
  text-decoration: none;
}

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

.hero {
  padding-block: clamp(48px, 7vw, 92px) 0;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}
.hero__photo {
  margin: clamp(40px, 6vw, 64px) auto 0;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
}

/* ---- Numbers ---------------------------------------------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.number {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.number__value {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.number__label {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---- Statement -------------------------------------------- */

.statement {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 24em;
}
.statement span {
  color: var(--ink-soft);
}

/* ---- Panels ----------------------------------------------- */

.panel {
  background: var(--paper-alt);
  border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel--dark {
  background: var(--dark);
  color: #fff;
}
.panel--dark h3 {
  color: #fff;
}
.panel--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.panel__kicker {
  font-size: 15px;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.ticks li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature p {
  color: var(--ink-soft);
}

/* ---- Offers (dark) ---------------------------------------- */

.offers {
  background: var(--dark);
  color: #fff;
}
.offers h2,
.offers h3 {
  color: #fff;
}
.offers .lede,
.offers p {
  color: rgba(255, 255, 255, 0.72);
}
.offer {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-panel);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offers__foot {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.offers__foot p {
  font-size: 15px;
}

/* ---- Questions -------------------------------------------- */

.segs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 980px;
  background: var(--paper-alt);
}
.seg {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.seg[aria-pressed="true"] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.qa {
  display: flex;
  flex-direction: column;
  margin-top: clamp(28px, 4vw, 44px);
}
.qa details {
  border-top: 1px solid var(--line);
}
.qa details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary h3 {
  font-size: 19px;
}
.qa details p {
  padding: 0 0 22px;
  max-width: 62ch;
  color: var(--ink-soft);
}
.plus {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
details[open] .plus {
  transform: rotate(45deg);
}

.after-note {
  margin-top: 28px;
  color: var(--ink-soft);
}
.after-note a {
  text-decoration: none;
}

/* ---- Areas ------------------------------------------------ */

.area h3 {
  margin-bottom: 8px;
}
.area p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

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

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
}
.service {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service p {
  color: var(--ink-soft);
}

/* ---- Projects --------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}
.shot figcaption {
  font-size: 15px;
  color: var(--ink-soft);
}
.shot figcaption span {
  color: var(--ink);
}

/* ---- Contact ---------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.contact__lines a {
  text-decoration: none;
  font-size: 17px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 112px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 91, 68, 0.18);
}

/* Spam trap. Hidden from people, left reachable for bots that fill
   every field; a submission carrying it is dropped on the server. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  background: var(--paper-alt);
  font-size: 15px;
  line-height: 1.5;
}
.form__status[data-tone="good"] {
  background: #e8f1ec;
  color: var(--green-dark);
}
.form__status[data-tone="bad"] {
  background: #fdeceb;
  color: #8a2420;
}

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

.footer {
  background: var(--paper-alt);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__summary {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer__links a {
  color: var(--ink-mid);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--green);
}

/* ---- Simple pages (privacy, 404) --------------------------- */

.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 18px;
}
.prose p {
  color: var(--ink-soft);
}
