/* Lothian Craftworks — marketing site styles.
   Imports design tokens then applies the dark-warm theme
   (walnut + ink canvas, cream type, lion orange accents). */
@import url("./tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ============================================================
   DARK WARM THEME
   Remaps surface/type tokens at body scope so all downstream
   components pick up the dark canvas without per-rule edits.
   ============================================================ */
body {
  font-family: var(--font-body);

  --paper:        #2A1C12;
  --linen:        #3D2A1E;
  --linen-2:      #4D372A;
  --walnut:       #4D372A;
  --ink:          #F4ECD8;

  --fg-1:         #F4ECD8;
  --fg-2:         #C9B89A;
  --fg-3:         #8C7656;

  --fg-on-dark:   #1C140E;
  --fg-on-dark-2: #6B4A35;

  --rule:         #5A4030;
  --rule-strong:  #7A5840;

  /* Brand tuned hotter for dark-surface contrast */
  --ember:        #E5613A;
  --ember-hover:  #C8482A;
  --ochre:        #E5A847;
  --moss:         #94AA6F;

  background: var(--paper);
  color: var(--fg-1);
}

/* ============================================================
   LAYOUT UTILITY
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 28, 18, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo .lc-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-logo .lc-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.nav-logo .lc-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links button {
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-2);
  transition: background var(--dur-1) var(--ease-out);
}

.nav-links button:hover { background: var(--linen-2); }
.nav-links button.active { background: var(--linen-2); color: var(--ink); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-2);
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
  text-decoration: none;
}

.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.btn-primary { background: var(--ember); color: #1C140E; }
.btn-primary:hover { background: var(--ember-hover); }
.btn-primary:active { box-shadow: var(--shadow-press); transform: translateY(1px); }

/* On dark canvas, "tonal" uses the walnut card surface */
.btn-tonal { background: var(--linen); color: var(--ink); border: 1px solid var(--rule); }
.btn-tonal:hover { background: var(--linen-2); }

.btn-ghost { background: transparent; color: var(--ink); padding: 12px 14px; }
.btn-ghost:hover { background: var(--linen); }

/* "Dark" button means cream pill on walnut page */
.btn-dark { background: #F4ECD8; color: #1C140E; }
.btn-dark:hover { background: #E6DAB8; }

.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ============================================================
   EYEBROW LABEL
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ember);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px 0 96px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 0;
}

.hero .editorial {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--fg-2);
  margin: 28px 0 0;
  max-width: 680px;
}

.hero .ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.hero-meta .col .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.hero-meta .col .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
}

.hero-meta .col .vsub {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 4px;
}

/* Paper grain overlay */
.paper-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("./assets/textures/paper-grain.svg");
  background-size: 200px 80px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 12px 0 0;
}

.section-head .lede {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 460px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.svc-cell {
  background: var(--linen);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out);
  min-height: 220px;
  position: relative;
}

.svc-cell:hover { background: var(--linen-2); }

.svc-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

.svc-cell .icn { width: 36px; height: 36px; color: var(--ember); }

.svc-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

.svc-cell p { font-size: 13px; color: var(--fg-2); margin: 0; }
.svc-cell .arrow { margin-top: auto; color: var(--ember); font-family: var(--font-mono); font-size: 12px; }

/* "and anything else" callout — ember fill so it pops on the dark canvas */
.svc-cell.anything {
  background: var(--ember);
  color: #1C140E;
}

.svc-cell.anything h3,
.svc-cell.anything .arrow,
.svc-cell.anything .icn { color: #1C140E; }

.svc-cell.anything p,
.svc-cell.anything .num { color: rgba(28, 20, 14, 0.7); }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.work-card {
  background: var(--linen);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}

.work-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.work-card .img {
  aspect-ratio: 4 / 3;
  background: var(--walnut);
  position: relative;
  overflow: hidden;
}

.work-card .body { padding: 18px 20px 20px; }

.work-card .body .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.work-card .body h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 6px 0 0;
}

.work-card .body .blurb { font-size: 13px; color: var(--fg-2); margin-top: 6px; }

/* Photo images inside card and service-detail containers */
.work-card .img img,
.sd-images .big img,
.sd-images .sm img,
.about-room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CSS-only placeholder photo textures (fallback / home hero tones) */
.img-walnut {
  background:
    repeating-linear-gradient(90deg, rgba(28,20,14,0) 0px, rgba(28,20,14,0.1) 1px, rgba(28,20,14,0) 6px),
    radial-gradient(circle at 30% 40%, #6B4A35 0%, #2A1C12 70%),
    #3D2A1E;
}
.img-ember {
  background:
    radial-gradient(circle at 70% 60%, #D89B3F 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #E5613A 0%, transparent 60%),
    #5A1F0F;
}
.img-moss {
  background:
    radial-gradient(circle at 50% 50%, #94AA6F 0%, transparent 50%),
    linear-gradient(135deg, #5A6E3E, #2A1C12);
}
.img-ochre {
  background:
    repeating-linear-gradient(0deg, rgba(28,20,14,0) 0px, rgba(28,20,14,0.06) 1px, rgba(28,20,14,0) 4px),
    linear-gradient(180deg, #E5A847, #8A5A18);
}
.img-paper-detail {
  background:
    radial-gradient(circle at 40% 50%, #E8C58A 0%, transparent 60%),
    linear-gradient(135deg, #C9B89A, #8C7656);
}

/* ============================================================
   FOOTER — cream block to close the page on contrast
   ============================================================ */
.footer {
  background: #F4ECD8;
  color: #1C140E;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(28, 20, 14, 0.14);
}

.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B4A35;
  margin: 0 0 16px;
  font-weight: 500;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #1C140E; text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--ember); }

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 12px;
  color: #1C140E;
}

.footer p { color: #6B4A35; }

.footer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6B4A35;
  text-transform: uppercase;
}

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.sd-hero { padding: 64px 0 48px; }

.sd-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 0;
}

.sd-hero .lede {
  font-size: 19px;
  color: var(--fg-2);
  max-width: 620px;
  margin-top: 24px;
  line-height: 1.5;
}

.sd-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.sd-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.sd-images .big { grid-column: 1 / -1; aspect-ratio: 16/9; border-radius: var(--r-3); overflow: hidden; }
.sd-images .sm  { aspect-ratio: 4/3; border-radius: var(--r-3); overflow: hidden; }

.sd-spec {
  background: var(--linen);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.sd-spec h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

.sd-spec dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 0 0 24px;
}

.sd-spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.sd-spec dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); font-weight: 500; }

/* ============================================================
   COMMISSION FORM
   ============================================================ */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 64px 0; }

.form-step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.form-step .dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ember);
  color: #1C140E;
  font-family: var(--font-body);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 32px;
}

.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(229, 97, 58, 0.18);
}

.field .help { font-family: var(--font-body); font-size: 12px; color: var(--fg-3); margin-top: 2px; }

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dchip {
  border: 1px solid var(--rule);
  background: var(--linen);
  border-radius: var(--r-1);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}

.dchip img { width: 18px; height: 18px; }
.dchip:hover { background: var(--linen-2); }
.dchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dchip.on img { filter: invert(1) brightness(2); }

/* Commission success state */
.success-card {
  background: var(--linen);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: 40px;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-2);
}

.success-card::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 96px;
  border-top: 1px dotted var(--fg-3);
}

.success-card .ord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.success-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 12px 0 16px;
}

.success-card p { font-size: 15px; color: var(--fg-2); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero { padding: 64px 0 40px; }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-cols h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.about-cols p { font-size: 16px; color: var(--fg-2); line-height: 1.6; margin: 0 0 18px; }
.about-cols p:last-child { margin: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px;
}

.about-stats .stat {
  padding: 24px 0;
  border-right: 1px solid var(--rule);
}

.about-stats .stat:last-child { border-right: 0; }

.about-stats .stat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.about-stats .stat .v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  margin-top: 8px;
}
