/* =========================================================
   Murex Studio
   Change the look from the variables below.
   ========================================================= */

:root {
  /* Brand */
  --accent: #9C3F80;        /* Tyrian purple. Try #7E2E66, #B54E93, #6A1F55 */
  --accent-soft: #D9A3C4;   /* eyebrows, links, check marks */
  --accent-pale: #E7BCD6;   /* shell outline */
  --shell-lines: #2A0F22;

  /* Surfaces */
  --bg: #0C0B0D;
  --bg-band: #121114;
  --bg-card: #161418;
  --bg-featured: #1A1418;

  /* Text */
  --text: #EEE8E1;
  --text-soft: #CFC7CE;
  --text-body: #B4ACB3;
  --text-muted: #A39BA3;

  /* Lines */
  --line: #2A272C;
  --line-strong: #3A363C;
  --line-button: #4A454C;

  /* Type */
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --gutter: 24px;
  --section-pad: clamp(64px, 9vw, 120px);
  --radius: 10px;
  --btn-radius: 0;          /* buttons. Try 4px for slightly softened corners */
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }

a { color: var(--accent-soft); }
a:hover { color: #F0CFE2; }

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

section[id] { scroll-margin-top: 90px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent-soft);
}
.muted { color: var(--text-muted); font-size: 15px; }
.lead { max-width: 580px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-body); }
.body-lg { color: var(--text-body); font-size: 17px; }
.narrow { max-width: 380px; }
.serif { font-family: var(--font-display); }

h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; min-height: 48px; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: #fff; }

.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }

.btn-outline { border-color: var(--line-button); color: var(--text); }
.btn-outline:hover { border-color: var(--text-soft); color: var(--text); }

/* ---------- Shell emblem ---------- */

/* The shell's paths live inside <symbol id="murex">, which normal selectors
   can't reach through <use>. Custom properties do inherit, so set these. */
.shell {
  --shell-fill: var(--accent);
  --shell-outline: var(--accent-pale);
  --shell-outline-w: 3;
  --shell-line-color: var(--shell-lines);
  --shell-line-w: 5;
}
.shell-lg { --shell-outline-w: 1.2; --shell-line-w: 2.2; }
.shell-inverse {
  --shell-fill: var(--bg);
  --shell-outline: none;
  --shell-line-color: var(--accent);
  --shell-line-w: 2.6;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 11, 13, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 6px; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 4px; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--text-soft); text-decoration: none; padding: 10px 0; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent-soft); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-button);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 12px;
    font-size: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; min-height: 48px; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: 1px; }
.hero-art { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-art .shell { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 0; }
  .hero-text { gap: 22px; }
  .hero-art { display: none; }   /* the logo is already in the header */
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--text-soft);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; flex: none; color: var(--accent-soft); }

/* ---------- Industries strip ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .strip-inner { justify-content: center; gap: 8px 18px; font-size: 11px; letter-spacing: 2px; }
}

/* ---------- Sections ---------- */

.section {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head.split {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section-head.split > div { display: flex; flex-direction: column; gap: 12px; }

.band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* First section on inner pages */
.page-top { padding-top: clamp(56px, 8vw, 104px); }
.page-title { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; }

.text-link { font-weight: 600; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Closing call to action */
.cta { align-items: center; text-align: center; gap: 20px; }
.cta .actions { justify-content: center; }

/* ---------- Work ---------- */

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.work-card { display: flex; flex-direction: column; gap: 18px; }
.work-card > .muted { margin-top: -8px; }

.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-meta h3, .work-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.3; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--text-muted); }

/* Browser-window mock-up. Each theme sets its own colours. */
.mock {
  --m-bg: #fff; --m-fg: #111; --m-btn-bg: #111; --m-btn-fg: #fff; --m-tile: #eee;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-hero {
  height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--m-bg);
  color: var(--m-fg);
}
.mock-kicker { font-size: 10px; font-weight: 600; letter-spacing: 3px; opacity: .8; }
.mock-title { font-size: 30px; font-weight: 700; line-height: 1.1; }
.mock-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--m-btn-bg);
  color: var(--m-btn-fg);
}
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.mock-tiles div { height: 56px; border-radius: 4px; background: var(--m-tile); }

.theme-bakery { --m-bg: #E9DCC6; --m-fg: #3B2414; --m-btn-bg: #3B2414; --m-btn-fg: #F4EADB; --m-tile: #D9C7A9; }
.theme-barber { --m-bg: #16231E; --m-fg: #E6EDE8; --m-btn-bg: #C9A44C; --m-btn-fg: #16231E; --m-tile: #22322C; }
.theme-clinic { --m-bg: #EEF2F5; --m-fg: #1B2B3A; --m-btn-bg: #1B4E79; --m-btn-fg: #FFFFFF; --m-tile: #DCE4EB; }

/* ---------- Projects ---------- */

/* Screenshot in a browser frame */
.shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.shot img { display: block; width: 100%; height: auto; }
.shot .mock-bar { align-items: center; }
.shot-url {
  width: auto !important;
  height: auto !important;
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px !important;
  font-size: 11px;
  color: var(--text-muted);
}
.shot-link { transition: border-color .2s; }
.shot-link:hover { border-color: var(--text-muted); }

/* Home page featured project */
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.featured-text { display: flex; flex-direction: column; gap: 18px; }
.featured-text h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.2; }
.featured-text .checks { flex-grow: 0; }

/* Projects page case study */
.case { display: flex; flex-direction: column; gap: 40px; }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.case-intro { display: flex; flex-direction: column; gap: 18px; }
.case-built {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-band);
}
.case-built h3 { font-size: 17px; font-weight: 600; }

.snippets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.snippets figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.snippets figcaption { font-size: 14px; color: var(--text-muted); }
.snippets figcaption strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .featured-project, .case-body { grid-template-columns: 1fr; }
}

/* ---------- Done for you ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px 32px;
}
.feature-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3, .feature-title { font-size: 17px; font-weight: 600; font-family: var(--font-body); line-height: 1.4; }
.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.ai-answer h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.ai-answer p { max-width: 760px; color: var(--text-body); }

/* ---------- Packages ---------- */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.price-card.featured { border-color: var(--accent); background: var(--bg-featured); }
.price-card.featured .muted { color: var(--text-body); }

.price-head { display: flex; flex-direction: column; gap: 8px; }
.outcome { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-soft); }
.price-head h3, .care-text h3, .price-card-link h3, .price-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.care-text .price-name { font-size: 22px; }

/* Home page summary cards: the whole card is a link */
.price-card-link { color: var(--text); text-decoration: none; transition: border-color .2s; }
.price-card-link:hover { color: var(--text); border-color: var(--text-muted); }
.price-card-link.featured:hover { border-color: var(--accent-soft); }
.price-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.price { display: flex; align-items: baseline; gap: 8px; }
.from { font-size: 13px; color: var(--text-muted); }
.amount { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1.1; }
.amount-sm { font-size: 36px; }

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  font-size: 15px;
  color: var(--text-soft);
}
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent-soft); }

.care-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.care-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.care-text h3 { font-size: 22px; }
.care-action { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Process ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 8px 0; }
.steps h3 { font-size: 17px; font-weight: 600; }
.step-num { font-family: var(--font-display); font-size: 30px; color: var(--accent-soft); }

/* ---------- Story ---------- */

.story { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.story-art { flex: 1 1 280px; display: flex; justify-content: center; }
.story-disc {
  width: 280px;
  height: 280px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Founder (about page) ---------- */

.founder { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.founder-photo {
  flex: 0 1 320px;
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 30%;
}
.founder-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-button);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}
.founder-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Contact ---------- */

.contact { flex-direction: row; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.contact-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 15px; color: var(--text-soft); }

.contact-form {
  flex: 999 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #E5838F; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: 14px; color: var(--text-soft); }
.form-status.error { color: #F0A3AC; }
.form-note { width: 100%; font-size: 13px; color: var(--text-muted); }

/* ---------- Policies ---------- */

.policy-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.policy-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-button);
  border-radius: var(--btn-radius);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.policy-nav a:hover { border-color: var(--text-soft); color: var(--text); }

.prose { max-width: 760px; color: var(--text-body); }
.prose h2 {
  margin: 64px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 3vw, 36px);
  color: var(--text);
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text-soft); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 6px; color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-col a { color: var(--text-soft); text-decoration: none; padding: 4px 0; }
.footer-links a:hover, .footer-col a:hover { color: var(--text); }

/* ---------- Phone action bar (added by script.js) ---------- */

.mobile-bar { display: none; }

@media (max-width: 820px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(12, 11, 13, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; gap: 8px; }
  .mobile-bar svg { width: 18px; height: 18px; flex: none; }
  body.has-mobile-bar { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .price-card { padding: 24px; }
  .care-plan, .ai-answer { padding: 24px; }
  .actions .btn { flex: 1 1 auto; }
}
