/* =========================================================
   ADJACENT — Creative Services
   Stylesheet v1.0
   Design: Clean & Minimal
   ========================================================= */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* === DESIGN TOKENS === */
:root {
  --bg:         #F8F7F4;
  --surface:    #FFFFFF;
  --text:       #1A1918;
  --text-muted: #7A756E;
  --accent:     #C96B3B;
  --border:     #E3DDD5;
  --border-dark:#C4BDB4;
  --max-w:      1120px;
  --nav-h:      72px;
  --radius:     3px;
  --gap:        clamp(2rem, 4vw, 4rem);
  --font:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY SCALE === */
h1, h2, h3, h4, h5 { font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; font-weight: 500; }
p  { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--text-muted); line-height: 1.75; }
small { font-size: 0.8125rem; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.section--flush { padding-top: 0; }

/* === DIVIDER === */
hr { border: none; border-top: 1px solid var(--border); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--text); font-weight: 500; }
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  background: var(--text);
  color: #fff !important;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: #333; transform: translateY(-1px); }
/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  flex-direction: column;
  gap: 0;
}
.nav__mobile a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* === NAV SPACER === */
.nav-spacer { height: var(--nav-h); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--text);
  color: #fff;
  border: 1.5px solid var(--text);
}
.btn--primary:hover { background: #2e2e2e; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn--outline:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--link {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--link:hover { color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* Arrow button variant */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s, gap 0.2s;
}
.btn-arrow:hover { border-color: var(--text); gap: 0.65rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: calc(90vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--border);
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.hero__label {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__title { margin: 1rem 0 1.5rem; max-width: 20ch; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--text-muted); }
.hero__body { max-width: 46ch; margin-bottom: 2.5rem; }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero__scroll {
  margin-top: auto;
  padding-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hero__scroll-line { width: 40px; height: 1px; background: var(--border-dark); }

/* =========================================================
   MARQUEE / TICKER
   ========================================================= */
.marquee-wrap {
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 2.5rem;
}
.marquee-track span.sep { color: var(--accent); padding: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section-header__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section-header h2 { max-width: 22ch; }

/* =========================================================
   SERVICES GRID (Homepage overview)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s;
}
.service-card:hover { background: var(--surface); }
.service-card__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.service-card h3 { font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; flex: 1; }

/* =========================================================
   WORK GRID
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.work-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.work-item--wide { grid-column: span 7; }
.work-item--narrow { grid-column: span 5; }
.work-item--full { grid-column: span 12; }
.work-item--half { grid-column: span 6; }
.work-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.work-item--wide .work-item__img { aspect-ratio: 16/10; }
.work-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E3DC 0%, #D5CEC5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: transform 0.5s var(--ease);
}
.work-item:hover .work-item__placeholder { transform: scale(1.03); }
.work-item__info {
  padding: 1.25rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-item__title { font-size: 1rem; font-weight: 500; }
.work-item__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 500;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--text);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.65); max-width: 44ch; margin: 0 auto 2.5rem; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.cta-band .btn--primary:hover { background: #f0f0f0; }
.cta-band .btn--outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.cta-band .btn--outline:hover { border-color: #fff; }
.cta-band__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   ABOUT SPLIT (Homepage)
   ========================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-split__img {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #E3DDD5 0%, #CCC5BA 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-split__content .label { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.about-split__content h2 { margin-bottom: 1.5rem; }
.about-split__content p { margin-bottom: 1rem; }
.about-split__content p:last-of-type { margin-bottom: 2rem; }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 1.25rem; }
.page-hero h1 { max-width: 22ch; margin-bottom: 1.5rem; }
.page-hero__body { max-width: 52ch; }
.page-hero__body p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }

/* =========================================================
   SERVICES PAGE — Detailed
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-detail:last-child { border-bottom: none; }
.service-detail__aside .num {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.06em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-detail__aside h3 { font-size: 1.5rem; }
.service-detail__body p { margin-bottom: 1.25rem; }
.service-detail__body p:last-of-type { margin-bottom: 0; }
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-top: 1.75rem;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-dark);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.process-step {
  background: var(--bg);
  padding: 2.5rem 1.75rem;
}
.process-step__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.process-step h4 { margin-bottom: 0.75rem; }
.process-step p { font-size: 0.875rem; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.value-item {}
.value-item__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.value-item h4 { margin-bottom: 0.5rem; }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.team-card__img {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #E3DDD5 0%, #CCC5BA 100%);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 1rem;
}
.team-card h4 { margin-bottom: 0.25rem; }
.team-card p { font-size: 0.875rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-detail__item label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.contact-detail__item a {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-detail__item a:hover { color: var(--accent); }

/* FORM */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--text); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { appearance: none; cursor: pointer; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand .logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}
.footer__brand .logo span { color: var(--accent); }
.footer__brand p { font-size: 0.875rem; line-height: 1.7; max-width: 30ch; color: rgba(255,255,255,0.5); }
.footer__col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__col ul a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__bottom a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.7); }
.footer__legal { display: flex; gap: 1.5rem; }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .work-item--wide,
  .work-item--narrow,
  .work-item--half { grid-column: span 12; }
  .about-split,
  .contact-split,
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-split__img { aspect-ratio: 16/9; }
  .service-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
