/* ---------- Colors & fonts (from the Figma file) ---------- */
:root {
  --red: #b11030;
  --crimson: #991d53;
  --plum: #7d314c;
  --cream: #fff8f1;
  --tan: #e2d0c6;
  --rose: #d27483;
  --brown: #703c24;
  --orange: #e8875e;
  --field: #ebdddd;
  --tag-text: #eeedef;
  --ink: #000;

  --serif: "Abhaya Libre", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --display: "Instrument Sans", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --hero: "Poppins", system-ui, sans-serif;

  --page: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.25;
}

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

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Every full-width band keeps its content inside the 1200px design frame */
.site-header,
.hero-inner,
.work,
.contact {
  max-width: var(--page);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.header-wrap { background: #fff; }

.site-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(80px, 12vw, 145px);
  padding: 0.75rem clamp(1rem, 4vw, 7.5rem) 0.75rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--red);
}

.logo-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

.logo-mark {
  height: clamp(48px, 7vw, 84px);
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.site-nav { display: flex; gap: clamp(1rem, 3.3vw, 2.5rem); }

.site-nav a {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.site-nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 1rem 4.5rem; }

.hero-inner {
  display: flex;
  align-items: stretch;
  padding-left: clamp(0rem, 8vw, 7rem);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: clamp(110px, 12.5vw, 150px);
  aspect-ratio: 149 / 233;
  object-fit: cover;
  border: 1px solid #ff3254;
  border-radius: 70px;
  flex-shrink: 0;
}

.hero-banner {
  background: var(--crimson);
  color: #fff;
  flex: 1;
  margin-left: -66px;
  padding: 0.6rem clamp(1.5rem, 4vw, 3rem) 2rem calc(66px + clamp(1.5rem, 2.8vw, 2rem));
}

.hero-banner h1 {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--cream);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.hero-banner p {
  font-family: var(--hero);
  margin: 0;
  max-width: 32em;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
}

/* ---------- Case studies ---------- */
.work-wrap { background: var(--tan); }

.work {
  padding: 0.5rem 1rem 5.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  color: var(--brown);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  margin: 0;
}

.down-arrow {
  width: 48px;
  height: 48px;
  color: var(--orange);
  margin: 0 auto 1.5rem;
  display: block;
}

.cards {
  max-width: 970px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.card {
  background: var(--cream);
  border-radius: 50px;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.25rem) 2.5rem;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "body img"
    "link link";
  column-gap: 2rem;
  align-items: center;
}

.card-body { grid-area: body; }

.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  margin: 0 0 1.25rem;
}

.card p {
  margin: 0 0 1.25rem;
  max-width: 34em;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.card-img {
  grid-area: img;
  width: 165px;
  justify-self: end;
}

.card-img--phone { width: 86px; }
.card-img--wide {
  width: 337px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.tags li {
  font-family: var(--display);
  font-weight: 600;
  background: var(--crimson);
  color: var(--tag-text);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
}

.card-link {
  grid-area: link;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  font-family: var(--ui);
  font-weight: 500;
  color: var(--crimson);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  text-decoration: none;
}

.card-link .link-label {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow {
  width: 60px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.card-link:hover .link-arrow { transform: translateX(6px); }

/* ---------- Contact ---------- */
.contact {
  padding: 3rem 1rem 11rem;
  text-align: center;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.75rem;
}

.contact-form {
  max-width: 574px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1.25rem;
  color: #000;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.4rem;
  width: 100%;
}

.contact-form ::placeholder { color: rgba(0, 0, 0, 0.63); }

.contact-form input { height: 60px; }

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 198px;
  margin-top: -0.5rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--crimson);
}

.contact-form button {
  grid-column: 1 / -1;
  height: 40px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--plum);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover { background: var(--crimson); }

.contact-form .form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.125rem;
  color: var(--plum);
}

.contact-form .form-note--error { color: var(--red); }

/* Inner pages use the "Let's get connected!" heading style */
body:not(.page-home) .contact h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--crimson);
  font-size: clamp(1.5rem, 2.6vw, 1.75rem);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rose);
  color: #fff;
  padding: 2.75rem clamp(1rem, 4vw, 2rem) 3rem;
  font-size: 1.125rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-footer p { margin: 0; }

.footer-copy { grid-column: 2; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: end;
  display: grid;
  gap: 0.75rem;
}

.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Shared bits ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--crimson);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; }

/* ---------- About page ---------- */
.about {
  max-width: 1166px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) 1rem 1rem;
}

.about-lead {
  font-family: var(--display);
  font-weight: 700;
  color: #d37483;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  margin: 0 0 clamp(2rem, 6vw, 4.25rem);
}

.about-card {
  background: var(--tan);
  border-radius: 50px;
  padding: clamp(1.5rem, 4vw, 1.5rem) clamp(1.5rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5.5vw, 4.1rem);
  display: grid;
  grid-template-columns: minmax(0, 321px) minmax(0, 582px);
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 321 / 457;
  object-fit: cover;
  border-radius: 60px;
  margin-top: 8rem;
}

.about-text h1 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--crimson);
  font-size: clamp(2.75rem, 6vw, 4.375rem);
  margin: 0 0 1.5rem;
}

.about-text p {
  color: #2d2620;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.3;
  margin: 0 0 2.5rem;
}

.about-text p:last-child { margin-bottom: 0; }

/* ---------- Coming soon page ---------- */
.soon {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 9rem) 1rem clamp(2rem, 8vw, 6rem);
}

.soon h1 {
  font-family: var(--display);
  font-weight: 700;
  color: #d37483;
  font-size: clamp(2.5rem, 6.7vw, 5rem);
  line-height: 1.2;
  margin: 0;
}

/* ---------- Case study pages ---------- */
.page-case {
  --accent: #4b6e42;          /* heading bars */
  --hero-bg: #e9e8d6;
  --hero-title: #161618;
  --btn-bg: #4b6e42;
  --btn-ink: #efe4a2;
  --btn-radius: 8px;
  --card-bg: var(--tan);
  --card-ink: #02340b;
  --callout-bg: #4b6e42;
  --callout-ink: #fff;
}

.theme-vida {
  --hero-bg: radial-gradient(ellipse 60% 50% at 50% 50%, #414a31 0%, #586442 25%, #6e7d53 50%, #9bb075 100%);
  --hero-title: #02340b;
  --btn-bg: #ffb300;
  --btn-ink: #355e3b;
  --card-bg: #9bb075;
  --card-ink: #000;
  --callout-bg: #bde0bf;
  --callout-ink: #272727;
}

.theme-calendar {
  --accent: #617189;
  --hero-bg: radial-gradient(ellipse 60% 50% at 50% 50%, #d1bbd9 0%, #edecf0 100%);
  --btn-bg: #007aff;
  --btn-ink: #fff;
  --btn-radius: 20px;
  --card-bg: #eeedef;
  --card-ink: #000;
  --callout-bg: #eeedef;
  --callout-ink: #272727;
}

.cs { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.3; }

.cs p { margin: 0 0 1.25rem; }
.cs ul, .cs ol { margin: 0 0 1.25rem; padding-left: 1.6em; }
.cs li + li { margin-top: 0.15rem; }
.cs .spaced li + li { margin-top: 1.25rem; }
.cs strong { font-weight: 700; }
.cs strong.semi { font-weight: 600; }

/* Hero */
.cs-hero {
  background: var(--hero-bg);
  text-align: center;
  padding: 1rem 1rem 3rem;
}

.cs-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--hero-title);
  font-size: clamp(2rem, 4.6vw, 3.125rem);
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 970px;
}

.cs-tagline {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  max-width: 970px;
  margin: 0 auto 2rem !important;
}

.cs-hero-img {
  width: min(100%, 640px);
  margin: 0 auto 1.5rem;
}

.theme-calendar .cs-hero-img { width: min(100%, 551px); margin-top: -1rem; }

.cs-hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin: 0 auto 3.5rem;
  max-width: 640px;
}

.cs-hero-phones img { width: 33%; }
.cs-hero-phones img:nth-child(2) { width: 36%; margin-top: 1.5rem; }

/* Seedling's script logo, with the sprout dotting the "i" */
.seedling-logo {
  font-family: "Bad Script", cursive !important;
  font-weight: 400 !important;
  color: #4b6e42 !important;
  font-size: clamp(3rem, 6vw, 3.75rem) !important;
  margin-bottom: 0.25rem !important;
}

.seedling-i {
  display: inline-block;
  position: relative;
  width: 0.2em;
  height: 0.55em;
  margin: 0 0.04em;
  border-left: 3px solid #4b6e42;
  transform: translateX(0.08em) rotate(10deg);
}

.seedling-i img {
  position: absolute;
  width: 0.9em;
  left: -0.48em;
  top: -0.55em;
  transform: rotate(9deg);
  max-width: none;
}

/* Buttons */
.btn {
  display: inline-block;
  min-width: 179px;
  padding: 0.6rem 1.25rem;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-radius: var(--btn-radius);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15); }

.btn--next {
  font-weight: 700;
  color: var(--cream);
  background: #c77c62;
  border-radius: 8px;
}

.cs-actions { text-align: center; margin: 2.5rem 0 1rem !important; }

/* Sections */
.cs-section {
  max-width: calc(970px + 2rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem 1rem;
}

.cs-band { background: #f2e3da; padding-bottom: 3rem; }

.cs-section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.125rem);
  line-height: 1.15;
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.cs-section h2::before {
  content: "";
  flex: none;
  width: 19px;
  height: 1.34em;
  background: var(--accent);
}

.cs-subhead {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1em;
  margin: 3rem 0 1.25rem;
}

/* Cards */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 2.5rem;
}

.cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cs-card {
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 10px;
  padding: 2rem;
  font-weight: 500;
}

.theme-vida .cs-card { border-radius: 10px; }

.cs-card--wide { grid-column: 1 / -1; }

.cs-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.7vw, 2rem);
  margin: 0 0 2rem;
}

.cs-card h3.accent { color: #355e3b; }

.cs-card p:last-child, .cs-card ul:last-child, .cs-card ol:last-child { margin-bottom: 0; }

.cs-card--info {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
  font-weight: 500;
}

.theme-vida .cs-card--info { border-radius: 20px; font-weight: 600; }

.cs-card--info ul.strong { font-weight: 600; }

.cs-deliverables { color: #02340b; }

.cs-deliverables h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 0 0 1rem;
}

.cs-deliverables ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
}

.cs-deliverables li + li { margin-top: 0; }

/* POV / HMW callouts */
.cs-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3.5rem 0;
}

.cs-callout {
  background: var(--callout-bg);
  color: var(--callout-ink);
  border-radius: 30px;
  padding: 2rem;
  font-weight: 600;
}

.theme-calendar .cs-callout { font-weight: 500; }

.cs-callout h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin: 0 0 1.75rem;
}

.cs-callout li + li { margin-top: 1.25rem; }
.cs-callout-label { margin-bottom: 0.75rem !important; }
.cs-callout :last-child { margin-bottom: 0; }

/* Figures */
.cs-figure { margin: 2.5rem 0; }

.cs-figure figcaption,
.cs-figure > figcaption {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cs-figure img { width: 100%; margin: 0 auto; }
.cs-figure--narrow img { max-width: 574px; }
.cs-figure--medium img { max-width: 574px; }
.cs-figure--wide { margin-inline: calc(50% - min(50vw, 580px) + 1rem); }

.cs-caption { text-align: center; margin-top: 1rem !important; }

.lead { font-size: 1.1em; }

.cs-quotes { margin: 0 0 1.25rem; padding: 0; }
.cs-quotes p { margin: 0 0 0.25rem; }

/* Two images side by side, matching the 375px phone columns in Figma */
.cs-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 375px));
  justify-content: space-between;
  gap: 2.5rem 2rem;
  align-items: end;
  margin: 1.5rem 0 2rem;
}

.cs-pair--top { align-items: start; }
.cs-pair figure { margin: 0; }
.cs-pair figcaption { margin-top: 1.25rem; font-weight: 400; }
.cs-pair img { width: 100%; }

.cs-stack { display: grid; gap: 2.5rem; }

/* An arrow between "before" and "after" images */
.cs-pair--arrow { position: relative; align-items: center; }

.cs-pair--arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(60px, 15vw, 150px);
  height: 30px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 30'%3E%3Cpath d='M2 15h142M130 3l14 12-14 12' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 377px) minmax(0, 570px);
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
}

.cs-tasks > li { margin-bottom: 1rem; }
.cs-tasks ul { margin: 0.75rem 0 0; }

/* Tap-to-zoom images and the full-size viewer */
.zoomable { cursor: zoom-in; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  overflow: auto;
}

.lightbox::backdrop { background: rgba(20, 10, 15, 0.85); }

.lightbox img {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  min-width: min(96vw, 100%);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .card-img--wide { width: 240px; }

  .cs-cards--3 { grid-template-columns: 1fr; }
  .cs-card--info { grid-template-columns: 1fr; }

  .about-card { grid-template-columns: 1fr; justify-items: center; }
  .about-photo { margin-top: 0; max-width: 321px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero { padding-inline: 0; }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .hero-photo { width: 130px; }

  .hero-banner {
    margin: -2.5rem 0 0;
    padding: 3.5rem 1.5rem 2rem;
    text-align: center;
    width: 100%;
  }

  .hero-banner p { margin-inline: auto; }

  .card {
    border-radius: 32px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "body"
      "link";
  }

  .card-img { justify-self: center; margin-bottom: 1.5rem; }
  .card-img--wide { width: 100%; max-width: 337px; }

  .card h3 { margin-bottom: 0.75rem; }

  .contact { padding-bottom: 6rem; }
  .contact-form { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-form textarea { margin-top: 0; }

  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { grid-column: auto; order: 2; }
  .footer-links { justify-self: center; display: flex; gap: 2rem; }

  .about-card { border-radius: 32px; }

  .cs-cards,
  .cs-callouts { grid-template-columns: 1fr; }

  .cs-card, .cs-callout { padding: 1.5rem; }

  .cs-pair { grid-template-columns: 1fr; justify-items: center; }
  .cs-pair > * { max-width: 375px; width: 100%; }
  .cs-pair--arrow::after { top: 50%; transform: translate(-50%, -50%) rotate(90deg); width: 70px; }
  .cs-pair--arrow { gap: 5rem; }

  .cs-split { grid-template-columns: 1fr; justify-items: center; }
  .cs-split img { max-width: 320px; }

  .cs-figure--wide { margin-inline: 0; }
}
