/* ===========================================================
   My Agency Ltd — design tokens
   =========================================================== */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-tint: #F1F7F1;
  --blue: #1565C0;
  --gold: #D4AF37;
  --ink: #14181A;
  --muted: #5B6360;
  --paper: #FFFFFF;
  --line: #E3E7E2;

  --display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(24px, 5vw, 64px);
  --gap-xl: clamp(56px, 9vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
  border-top: 1px solid var(--line);
}

.section--tint { background: var(--green-tint); border-top: none; }
.section--dark { background: var(--green-dark); color: #F3F6F2; border-top: none; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.section--dark .eyebrow { color: #BFE0BF; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
}

.section--dark .lede { color: #DCEBDC; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--ghost-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn--ghost-light:hover { border-color: #fff; }

.text-link {
  position: relative;
  font-weight: 500;
  padding-bottom: 2px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}
.text-link:hover::after { right: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav__links a { position: relative; padding-bottom: 3px; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__cta { display: none; }
@media (min-width: 720px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
@media (min-width: 720px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.nav__links { display: none; }
@media (min-width: 720px) { .nav__links { display: flex; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
}
.mobile-menu__close {
  position: absolute;
  top: 20px; right: var(--pad);
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 18vw, 180px);
  padding-bottom: var(--gap-xl);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 14ch;
}
.hero__lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__art {
  position: relative;
  min-height: 280px;
}
.hero__art svg { width: 100%; height: auto; overflow: visible; }
.hero__art .stroke {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.hero__art .stroke--1 { stroke: var(--green); stroke-width: 26; }
.hero__art .stroke--2 { stroke: var(--blue); stroke-width: 26; opacity: 0.85; }
.hero__art .stroke--3 { stroke: var(--gold); stroke-width: 26; opacity: 0.9; }

/* ---------- ambient corner motif ---------- */
.motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}
.motif--tr { top: -40px; right: -60px; width: 320px; }
.motif--bl { bottom: -40px; left: -60px; width: 260px; transform: rotate(180deg); }

/* ---------- row list (services / work) ---------- */
.row-list { margin-top: 48px; }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.row-list .row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 780px) {
  .row { grid-template-columns: 0.9fr 1.6fr 0.9fr; gap: 32px; align-items: baseline; }
}
.row__index {
  font-family: var(--display);
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}
.row__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.row__desc { color: var(--muted); max-width: 52ch; }
.row__meta { color: var(--muted); font-size: 0.92rem; }

/* ---------- industries strip ---------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.strip__item {
  flex: 1 1 220px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.strip__item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- two-col section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- work cards (minimal, no shadow) ---------- */
.case {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.case-list .case:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 780px) {
  .case { grid-template-columns: 220px 1fr; gap: 40px; }
}
.case__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue);
  text-transform: none;
}
.case h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 6px; }
.case p { color: var(--muted); margin-top: 10px; max-width: 62ch; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: var(--gap-xl) 0;
  text-align: left;
}
.cta-banner h2 { max-width: 18ch; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-banner .btn { margin-top: 30px; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--green-dark);
  color: #EAF2EA;
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 780px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__logo img { height: 26px; margin-bottom: 16px; }
.footer__col h4 {
  font-family: var(--display);
  font-size: 0.85rem;
  color: #BFE0BF;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__col a, .footer__col p {
  display: block;
  color: #EAF2EA;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: #BFE0BF;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-block { margin-bottom: 30px; }
.contact-block h4 {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: none;
}
.contact-block a, .contact-block p { font-size: 1.15rem; font-family: var(--display); font-weight: 600; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--body);
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--green);
}
.field textarea { resize: vertical; min-height: 110px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page-hero {
  padding-top: clamp(120px, 16vw, 160px);
  padding-bottom: 56px;
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; }
.page-hero .lede { margin-top: 18px; }
