/* ==========================================================================
   Lucan Website Design — stylesheet
   Clean & modern: white canvas, near-black type, single brand accent.
   ========================================================================== */

:root {
  --ink:        #14110f;
  --ink-soft:   #45403c;
  --muted:      #6b6560;
  --line:       #e7e3df;
  --surface:    #faf8f6;
  --surface-2:  #f4f0ec;
  --white:      #ffffff;

  --accent:      #b02a72;
  --accent-dark: #8a1f59;
  --accent-soft: #fae9f2;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(20,17,15,.05), 0 8px 24px rgba(20,17,15,.06);
  --shadow-lg: 0 2px 4px rgba(20,17,15,.05), 0 18px 50px rgba(20,17,15,.10);

  --wrap: 1140px;
  --gap:  clamp(1.25rem, 3vw, 2rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

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

/* Anchored sections must clear the sticky header */
[id] { scroll-margin-top: 92px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.section--tint { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.15rem;
  z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.03rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; line-height: 1.15;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, #d4609b 100%);
  display: grid; place-items: center;
  color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: -0.04em;
}
.brand__text small {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

.nav { margin-left: auto; }
.nav ul {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav li { margin: 0; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
.nav a[aria-current="page"] { font-weight: 650; }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .9rem; align-items: center; gap: .45rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-size: .97rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(176,42,114,.26); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--accent-dark); }
.btn--sm { padding: .58rem 1.05rem; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  padding: .38rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-of-type { margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card__link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .94rem; text-decoration: none; }
.card__link::after { content: " \2192"; }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); margin-bottom: 0; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  padding-left: 3.4rem; position: relative; margin-bottom: 1.9rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin-bottom: 0; }

/* ---------- pricing ---------- */
.price-card { position: relative; }
.price-card--featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-card__badge {
  position: absolute; top: -.8rem; left: 1.6rem;
  background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.price {
  font-size: 2.4rem; font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1; margin: .4rem 0 .2rem;
}
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tick-list { list-style: none; padding: 0; margin: 1.3rem 0; }
.tick-list li { position: relative; padding-left: 1.75rem; font-size: .97rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 1.05rem; height: .55rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- work / portfolio ---------- */
.work-card { overflow: hidden; padding: 0; }
.work-card__thumb { aspect-ratio: 16 / 10; background: var(--surface-2); }
.work-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.work-card__tag {
  font-size: .76rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .35rem;
}

/* ---------- quotes ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 1.1rem; font-size: 1.04rem; color: var(--ink); }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; font-size: .95rem; }

/* ---------- stats ---------- */
.stat { text-align: center; }
.stat__num {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800;
  color: var(--ink); letter-spacing: -0.03em; line-height: 1;
}
.stat__label { font-size: .92rem; color: var(--muted); margin-top: .4rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 650; color: var(--ink); position: relative; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 1.25rem; max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #cfc9c4; }
.cta-band h2 { color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.cta-band__text { max-width: 46ch; }
.cta-band__text p:last-child { margin-bottom: 0; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label {
  display: block; font-weight: 600; font-size: .92rem;
  color: var(--ink); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(176,42,114,.16);
}
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; }

.alert {
  border-radius: var(--radius-sm); padding: 1rem 1.15rem;
  margin-bottom: 1.5rem; font-size: .97rem; line-height: 1.55;
}
.alert[hidden] { display: none; }
.alert strong { display: block; margin-bottom: .15rem; }
.alert--error {
  background: #fdecea; border: 1.5px solid #f2b8b0; color: #7d2419;
}
.alert--error a { color: #7d2419; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 3.5rem); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 1.15rem; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.contact-list a { font-size: 1.08rem; font-weight: 600; text-decoration: none; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }

/* ---------- page header ---------- */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head p.lead { margin-bottom: 0; }

/* ---------- areas / link lists ---------- */
.pill-links { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.pill-links li { margin: 0; }
.pill-links a {
  display: inline-block; padding: .55rem 1.05rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-size: .93rem; font-weight: 550;
}
.pill-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- blog ---------- */
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem; font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: var(--muted);
}

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__media { order: 2; max-width: 560px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}
@media (max-width: 800px) {
  .grid--3 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 0 1.25rem; box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav a { display: block; padding: .85rem 0; font-size: 1rem; }
  .nav .btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
}

/* ==========================================================================
   Button hover fix
   --------------------------------------------------------------------------
   Paste this at the very END of assets/css/style.css on any of the sites.
   It is colour-agnostic: it reads --accent-dark and --ink from that site's
   own :root, so the same block works on every build without editing.

   THE BUG
   The header CTA is <a class="btn btn--primary"> sitting inside <nav class="nav">.
   The nav's own link rules are more specific than the button's:

       .nav a         (0,1,1)  beats  .btn--primary        (0,1,0)
       .nav a:hover   (0,2,1)  beats  .btn--primary:hover  (0,2,0)

   So the label was never white. At rest it inherited --ink-soft (dark grey on
   the accent), and on hover it took --accent-dark, which is exactly the colour
   the background changes to. Text and background became the same value and the
   label vanished.

   THE FIX
   Re-assert the button's own colours at a specificity the nav cannot beat, and
   make the hover read as a lift: darker fill, white label, deeper shadow.
   ========================================================================== */

/* 1. The header CTA keeps its own colours regardless of nav link rules. ---- */
.nav a.btn--primary,
.nav a.btn--primary:link,
.nav a.btn--primary:visited,
.nav a.btn--primary:hover,
.nav a.btn--primary:focus,
.nav a.btn--primary:active,
.nav a.btn--primary[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav a.btn--ghost,
.nav a.btn--ghost:link,
.nav a.btn--ghost:visited,
.nav a.btn--ghost:hover,
.nav a.btn--ghost:focus,
.nav a.btn--ghost[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* 2. Colour transitions too, so the hover eases rather than snapping. ------ */
.btn {
  transition: transform .14s ease,
              background-color .18s ease,
              border-color .18s ease,
              color .18s ease,
              box-shadow .18s ease;
}

/* 3. A hover that reads as a lift: darker fill, deeper shadow, label white. - */
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 17, 15, .20);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 17, 15, .10);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

/* 4. Pressing the button should settle, not stay lifted. ------------------- */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(20, 17, 15, .18);
}

/* 5. Respect a reduced-motion preference: keep the colour change, drop the
      movement. -------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:focus-visible,
  .btn:active {
    transform: none;
  }
}

/* 6. Touch devices have no hover. Without this, tapping a button on a phone
      leaves it stuck in the hover state until you tap elsewhere. ------------*/
@media (hover: none) {
  .btn:hover {
    transform: none;
  }
  .btn--primary:hover {
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(20, 17, 15, .16);
  }
}
