/* ==========================================================================
   217 Premium Web Solutions — design tokens & shared styles
   ========================================================================== */

:root {
  /* color */
  --bg:        #14130f;
  --bg-alt:    #1c1a15;
  --bg-alt-2:  #201d17;
  --ink:       #ece6d6;
  --ink-dim:   #b9af9a;
  --muted:     #85806f;
  --accent:    #bd8f52;
  --accent-2:  #d9c8a9;
  --line:      rgba(236, 230, 214, 0.12);
  --line-strong: rgba(236, 230, 214, 0.24);
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 10vw, 128px);
  --radius: 3px;
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #14130f; }

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

/* ---- type ---------------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 46ch;
}

.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  font-weight: 500;
}

.h-section {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.h-card { font-size: 1.3rem; line-height: 1.3; }

em, .i { font-style: italic; font-family: var(--serif); }

/* ---- layout helpers ------------------------------------------------------*/
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-alt { background: var(--bg-alt); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.hr { border: none; border-top: 1px solid var(--line); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-text {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  border-radius: 0;
}
.btn-text:hover { color: var(--accent-2); border-color: var(--accent); }

/* ---- header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 84px;
  background: linear-gradient(to bottom, rgba(20,19,15,0.75), rgba(20,19,15,0));
  transition: background 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(20, 19, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 72px;
  border-bottom: 1px solid var(--line);
}

.nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--serif);
}
.wordmark .num {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}
.wordmark .sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.nav-cta { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span {
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 26px; }
.mobile-drawer a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
}
.mobile-drawer .btn { margin-top: 36px; align-self: flex-start; }
.mobile-drawer .btn-primary { font-family: var(--sans); font-size: 0.92rem; color: var(--bg); }

/* ---- hero ---------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,13,10,0.96) 0%, rgba(14,13,10,0.55) 42%, rgba(14,13,10,0.25) 65%, rgba(14,13,10,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(120px, 18vh, 200px) clamp(56px, 8vh, 88px);
}
.hero-mark { width: 116px; opacity: 0.92; margin-bottom: 28px; }
.hero-content h1 { max-width: 16ch; }
.hero-sub { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero.reveal .hero-mark,
.hero.reveal h1,
.hero.reveal .hero-sub,
.hero.reveal .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s ease forwards;
}
.hero.reveal .hero-mark   { animation-delay: 0.05s; }
.hero.reveal h1            { animation-delay: 0.18s; }
.hero.reveal .hero-sub     { animation-delay: 0.32s; }
.hero.reveal .hero-actions { animation-delay: 0.46s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero.reveal .hero-mark, .hero.reveal h1, .hero.reveal .hero-sub, .hero.reveal .hero-actions {
    animation: none; opacity: 1; transform: none;
  }
}

/* page (interior) hero — shorter banner used on non-home pages */
.page-hero {
  position: relative;
  padding-block: clamp(150px, 22vh, 210px) clamp(56px, 8vh, 80px);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,13,10,0.98) 5%, rgba(14,13,10,0.72) 60%, rgba(14,13,10,0.55) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }

/* ---- value strip -------------------------------------------------------- */
.value-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-strip .grid { padding-block: clamp(32px, 5vw, 48px); }
.value-item h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.value-item p { color: var(--ink); font-size: 1rem; }

/* ---- services list (ledger rows, not cards) ----------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  align-items: baseline;
  gap: 24px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 10px; }
.service-row .name { font-family: var(--serif); font-size: 1.4rem; }
.service-row .desc { color: var(--ink-dim); max-width: 52ch; }
.service-row .go {
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  justify-self: end;
}
.service-row:hover .go { opacity: 1; color: var(--accent-2); }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row .go { display: none; }
}

/* service detail blocks (services.html) */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 1px solid var(--line); }
.service-block .index {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
}
.service-block ul.checks { margin-top: 20px; }
ul.checks { display: grid; gap: 10px; }
ul.checks li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-dim);
  font-size: 0.96rem;
}
ul.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 1px;
  background: var(--accent);
}
@media (max-width: 760px) {
  .service-block { grid-template-columns: 1fr; }
}

/* ---- work / portfolio grid ---------------------------------------------*/
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.work-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 2;
}
.work-tile.wide { grid-column: span 4; aspect-ratio: 16/8.5; }
.work-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.work-tile:hover img { transform: scale(1.045); }
.work-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,7,0.92) 0%, rgba(10,9,7,0.15) 45%, rgba(10,9,7,0) 65%);
}
.work-tile .cap {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1;
}
.work-tile .cap .tag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.work-tile .cap h3 { margin-top: 8px; font-size: 1.35rem; }
.work-tile .cap p { color: var(--ink-dim); font-size: 0.9rem; margin-top: 4px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile { grid-column: span 2 !important; aspect-ratio: 4/3.4 !important; }
}

/* ---- process steps -------------------------------------------------------*/
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 4vw, 40px);
  padding-block: clamp(30px, 5vw, 46px);
  border-top: 1px solid var(--line);
}
.process-list .process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--muted);
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-dim); max-width: 62ch; }
@media (max-width: 620px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- pull quote / band ---------------------------------------------------*/
.band {
  text-align: left;
}
.band .h-section { max-width: 22ch; }

/* ---- footer CTA ---------------------------------------------------------*/
.cta-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 9vw, 100px);
}
.cta-band h2 { max-width: 14ch; }

/* ---- site footer -----------------------------------------------------*/
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-block: clamp(50px, 8vw, 84px);
}
.footer-brand img { width: 96px; margin-bottom: 18px; opacity: 0.9; }
.footer-brand p { color: var(--ink-dim); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col p { color: var(--ink-dim); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- contact page -------------------------------------------------------*/
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg-alt);
}
.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  display: inline-block;
  margin: 10px 0 4px;
  border-bottom: 1px solid var(--line-strong);
}
.contact-email:hover { color: var(--accent-2); border-color: var(--accent); }

.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; color: var(--ink-dim); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.96rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---- about page bits -----------------------------------------------------*/
.values-grid { }
.value-card {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.value-card:last-child { border-bottom: 1px solid var(--line); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-family: var(--serif);}
.value-card p { color: var(--ink-dim); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.split img { border-radius: var(--radius); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; margin-inline: auto; }
.max-56 { max-width: 56ch; }

.wordmark .nav-logo { display: block; height: 46px; width: auto; }

@font-face { font-family: 'Orange Avenue'; src: url('../assets/fonts/OrangeAvenueDEMO-Regular.otf') format('opentype'); font-display: swap; }
.hero h1.h-display { font-family: 'Orange Avenue', var(--serif); font-weight: 400; }
