/*
Theme Name: Adage Media
Theme URI: https://www.adagemedia.com
Author: Adage Media
Description: Custom dark split WordPress theme for Adage Media.
Version: 2.0
Text Domain: adage-media
*/

:root {
  --ink: #151815;
  --dark: #171d1b;
  --dark-2: #222b27;
  --dark-3: #101412;
  --cream: #fff6e6;
  --white: #fffdf8;
  --muted: #b9afa0;
  --line: rgba(255, 255, 255, .14);
  --clay: #c45d31;
  --gold: #dea93e;
  --paper: #f4eee3;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--white);
  background: var(--dark);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dark);
}

.site-main {
  flex: 1;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header .container {
  width: calc(100% - 68px);
  max-width: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  width: 100%;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: 24px;
}

.site-branding {
  grid-column: 1;
  justify-self: center;
}

.main-nav {
  grid-column: 2;
  justify-self: center;
}

.site-branding img,
.custom-logo-link img {
  width: 184px;
  height: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 700;
}

.main-nav li:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  min-height: 730px;
  padding-top: 89px;
  background:
    linear-gradient(90deg, rgba(20, 24, 22, .98), rgba(20, 24, 22, .90)),
    url("assets/img/hero-adage.png") center/cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(50px, 4vw, 58px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 665px;
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.button-ghost {
  background: transparent;
  color: var(--white);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(150px, 1fr);
  gap: 12px;
  padding: 34px 48px 34px 34px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.visual-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: 160px;
  margin: 0;
  padding: 14px;
  background: var(--dark-2);
}

.visual-card-large {
  grid-row: span 2;
}

.visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .68));
}

.visual-card-label {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--dark-3);
}

.service {
  min-height: 158px;
  padding: 24px 48px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.service:last-child {
  border-right: 0;
}

.service h2 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 18px;
}

.service p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.service,
.visual-card,
.work-feature {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.service:hover,
.visual-card:hover,
.work-feature:hover {
  transform: translateY(-2px);
}

.service:hover {
  background: rgba(255, 255, 255, .06);
}

.section {
  padding: 78px 0;
}

.section-work,
.section-cta {
  background: var(--paper);
  color: var(--ink);
}

.section-work .eyebrow,
.section-cta .eyebrow {
  color: var(--clay);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.cta-panel p {
  color: #6e665a;
  font-size: 17px;
}

.work-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-feature {
  overflow: hidden;
  border: 1px solid #ded5c7;
  background: #fffaf1;
}

.work-feature img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.work-feature div {
  padding: 22px;
}

.work-feature h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.work-feature p:last-child {
  margin-bottom: 0;
  color: #6e665a;
}

.section-process {
  background: var(--dark);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
}

.process-grid > .section-heading {
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
}

.process-grid > .steps {
  grid-column: 2;
  grid-row: 1;
}

.section-process .section-heading p {
  color: rgba(255, 255, 255, .68);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .66);
}

.cta-panel {
  max-width: 860px;
}

.section-cta .button {
  margin-top: 12px;
  background: var(--ink);
  color: var(--white);
}

.subpage-hero {
  padding: 170px 0 86px;
  background:
    linear-gradient(90deg, rgba(20, 24, 22, .98), rgba(20, 24, 22, .88)),
    url("assets/img/hero-adage.png") center/cover;
  border-bottom: 1px solid var(--line);
}

.subpage-hero-inner {
  max-width: 930px;
}

.subpage-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(44px, 4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.subpage-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid #ded5c7;
  background: #fffaf1;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
}

.portfolio-image img {
  width: 100%;
  aspect-ratio: 1.14;
  object-fit: cover;
  transition: transform .24s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.035);
}

.portfolio-body {
  padding: 22px;
}

.portfolio-type {
  margin-bottom: 9px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-body h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.08;
}

.portfolio-body p:last-child {
  margin-bottom: 0;
  color: #6e665a;
}

.portfolio-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 10, .78);
}

.portfolio-modal-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(980px, 100%);
  max-height: min(82vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.portfolio-modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: var(--dark-2);
}

.portfolio-modal-body {
  padding: 34px;
  overflow: auto;
}

.portfolio-modal-type {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-modal-body h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1;
}

.portfolio-modal-copy {
  color: #6e665a;
  font-size: 16px;
}

.portfolio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.work-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
}

.work-process-grid > .section-heading {
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
}

.work-process-grid > .work-steps {
  grid-column: 2;
  grid-row: 1;
}

.sprint-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: start;
}

.sprint-layout > .section-heading {
  grid-column: 1;
  grid-row: 1;
  max-width: 720px;
}

.sprint-layout > .sprint-panel {
  grid-column: 2;
  grid-row: 1;
}

.sprint-panel {
  padding: 26px;
  border: 1px solid #ded5c7;
  background: #fffaf1;
}

.sprint-panel h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.price-range {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.sprint-panel p:last-child {
  margin-bottom: 0;
  color: #6e665a;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 38px;
  align-items: start;
}

.audit-form-panel {
  padding: 28px;
  border: 1px solid #ded5c7;
  background: #fffaf1;
}

.audit-form {
  display: grid;
  gap: 16px;
}

.audit-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.audit-form input,
.audit-form textarea,
.audit-form select {
  width: 100%;
  border: 1px solid #d2c7b8;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
}

.audit-form textarea {
  resize: vertical;
}

.audit-form .button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.company-site {
  position: absolute;
  left: -9999px;
}

.form-message {
  padding: 18px;
  border: 1px solid #d2c7b8;
  background: #fffdf8;
}

.form-message h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.form-message p {
  margin-bottom: 0;
  color: #6e665a;
}

.form-message.error {
  border-color: #b75b32;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--dark-3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    background: var(--dark);
  }

  .site-header-inner {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .site-branding,
  .main-nav {
    grid-column: auto;
    justify-self: auto;
  }

  .menu-toggle {
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 18px;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 0;
  }

  .hero-copy,
  .visual-grid {
    padding: 46px 22px;
  }

  .visual-grid {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-row,
  .work-showcase,
  .process-grid,
  .work-process-grid,
  .portfolio-grid,
  .sprint-layout,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .sprint-layout > .section-heading,
  .sprint-layout > .sprint-panel,
  .process-grid > .section-heading,
  .process-grid > .steps,
  .work-process-grid > .section-heading,
  .work-process-grid > .work-steps {
    grid-column: 1;
    grid-row: auto;
  }

  .service {
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .site-branding img,
  .custom-logo-link img {
    width: 160px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .subpage-hero {
    padding: 90px 0 54px;
  }

  .subpage-hero h1 {
    font-size: 38px;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card-large {
    grid-row: span 1;
  }

  .button {
    width: 100%;
  }

  .portfolio-modal {
    padding: 14px;
  }

  .portfolio-modal-panel {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }

  .portfolio-modal-image {
    min-height: 240px;
    max-height: 42vh;
  }

  .footer-inner {
    flex-direction: column;
  }
}
