/* ==========================================================================
   DTJ Heritage Scotland — shared stylesheet
   True dark plum / green-purple tartan / brass. Playfair Display + Cardo.
   Palette sampled from the DTJ Heritage Scotland brand logo.
   ========================================================================== */

:root {
  /* Palette — sampled from the brand logo */
  --plum-deep:    #1A0A1F;  /* page background, near-black violet */
  --plum-rich:    #2E1240;  /* surfaces / cards */
  --plum-mid:     #531666;  /* deepest sampled purple, dividers */
  --plum-brand:   #7F419D;  /* PRIMARY BRAND PURPLE — logo purple */
  --plum-light:   #A66FC7;  /* highlight, hairlines */
  --plum-glow:    #DA97F8;  /* rare highlight only */
  --brass:        #B8935A;  /* accent for CTAs / hairlines */
  --brass-bright: #D4B283;  /* hover brass */
  --cream:        #EFE7D6;  /* body text on dark */
  --ink:          #12080F;  /* body text on light */
  --cream-dim:    rgba(239, 231, 214, 0.64);
  --cream-faint:  rgba(239, 231, 214, 0.40);

  /* Back-compat aliases so legacy rules keep resolving to the new tokens */
  --plum-base:    var(--plum-deep);
  --plum-surface: var(--plum-rich);
  --velvet:       var(--plum-brand);
  --tartan-green: #2C3A2A;  /* tartan accent only */

  --line: rgba(184, 147, 90, 0.26);
  --line-strong: rgba(184, 147, 90, 0.5);

  /* Type */
  --display: "Playfair Display", Georgia, serif;
  --body: "Cardo", Georgia, "Times New Roman", serif;

  --step-hero: clamp(2.9rem, 7vw, 6rem);
  --step-xl:   clamp(2.1rem, 4.4vw, 3.6rem);
  --step-lg:   clamp(1.5rem, 2.6vw, 2.2rem);
  --step-md:   clamp(1.15rem, 1.6vw, 1.4rem);
  --step-base: 1.0625rem;
  --step-sm:   0.9rem;
  --step-xs:   0.76rem;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --sec-pad: clamp(4.5rem, 9vw, 9rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plum-base);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--step-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--brass); color: var(--plum-base); }

/* --------- Layout helpers --------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-pad); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
  display: inline-block;
}

.lede {
  font-size: var(--step-md);
  color: var(--cream-dim);
  max-width: 56ch;
  line-height: 1.6;
}

.rule {
  width: 56px; height: 1px; background: var(--brass); border: 0; margin: 1.6rem 0;
}
.center .rule { margin-inline: auto; }

.numeral {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.06em;
}

/* --------- Tartan (one block per page) --------- */
/* Tartan: greens + purples only, brass hairline. No red threads. */
.tartan {
  position: relative;
  background-color: #2C3A2A; /* deep-forest */
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.34) 0 4px, transparent 4px 34px,
      rgba(46,18,64,0.72) 34px 40px, transparent 40px 74px,
      rgba(127,65,157,0.42) 74px 78px, transparent 78px 110px),
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.34) 0 4px, transparent 4px 34px,
      rgba(46,18,64,0.72) 34px 40px, transparent 40px 74px,
      rgba(127,65,157,0.42) 74px 78px, transparent 78px 110px),
    repeating-linear-gradient(90deg,
      rgba(184,147,90,0.30) 0 1px, transparent 1px 56px);
  background-blend-mode: multiply, multiply, normal;
}
.tartan::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,10,31,0.88), rgba(26,10,31,0.80));
}
.tartan > * { position: relative; z-index: 1; }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--body); font-size: var(--step-sm); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95em 1.9em; cursor: pointer; border: 0;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn--brass { background: var(--brass); color: var(--plum-base); }
.btn--brass:hover { background: var(--brass-bright); }
.btn--ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

.link-brass {
  color: var(--brass); font-size: var(--step-sm); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.link-brass:hover { color: var(--brass-bright); border-color: var(--brass); }

/* --------- Header / Nav --------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(26, 10, 31, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
/* Real Fiverr brand mark — portrait crest. Sized generously so wordmark stays legible. */
.logo-nav { height: 68px; width: auto; display: block; flex: none; }
@media (max-width: 640px) { .logo-nav { height: 56px; } }
@media (max-width: 420px) { .logo-nav { height: 48px; } }

/* Full stacked logo lockup (legacy SVG) */
.logo-full { width: 100%; height: auto; display: block; }
.logo-full--footer { max-width: 210px; }
.logo-full--enquire { max-width: 190px; margin-bottom: 1.6rem; }

/* Transparent PNG lockups (2:3 portrait — never stretch) */
.logo-img { display: block; width: 100%; height: auto; }
.logo-img--footer { max-width: 240px; margin-inline: auto; }
.logo-img--enquire { max-width: 260px; margin: 0 auto 1.6rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: var(--step-sm); letter-spacing: 0.08em; color: var(--cream-dim);
  transition: color 0.3s; text-transform: uppercase; font-weight: 500;
  font-size: 0.8rem;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--cream); }
.nav__links a[aria-current="page"] { color: var(--brass); }
.nav__links a.btn[aria-current="page"] { color: var(--plum-base); }

.nav__toggle {
  display: none; background: none; border: 0; color: var(--cream);
  cursor: pointer; padding: 0.4rem;
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; height: 100dvh; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 1.6rem; padding: calc(4.5rem + 2rem) 2.4rem 2.4rem;
    overflow-y: auto;
    background: var(--plum-surface); border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0,0,0,0.4);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    z-index: 55;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav__links .btn { font-size: 0.85rem; }
}

/* --------- Hero --------- */
.hero {
  position: relative; min-height: 88vh; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,10,31,0.55) 0%, rgba(26,10,31,0.35) 40%, rgba(26,10,31,0.94) 100%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 6vw, 6rem);
  max-width: 860px; margin-inline: auto;
}
.hero__crest {
  position: relative; z-index: 3; margin-top: clamp(2rem, 5vh, 4rem);
  display: flex; flex-direction: column; align-items: center;
  flex: none;
}
.hero__logo {
  width: min(460px, 78vw); height: auto; display: block;
}
@media (max-width: 640px) {
  .hero__logo { width: 280px; }
}
.hero h1 { font-size: var(--step-hero); font-weight: 700; margin-bottom: 0.4em; }
.hero .lede { font-size: var(--step-md); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* page hero (interior) smaller */
.pagehero { min-height: 62vh; }
.pagehero h1 { font-size: var(--step-xl); }

/* --------- Section title block --------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-size: var(--step-xl); font-weight: 600; margin-bottom: 0.4em; }

/* --------- Cards / grids --------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.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; } }

.card {
  background: var(--plum-surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.7rem 1.6rem 1.9rem; }
.card__body h3 { font-size: var(--step-lg); margin-bottom: 0.4rem; }

/* --------- Feature (alternating image/text) --------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature--flip .feature__media { order: -1; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature__body h2, .feature__body h3 { font-size: var(--step-xl); margin-bottom: 0.5em; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* --------- Materials / spec lists --------- */
.spec { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.spec li {
  display: flex; gap: 0.9rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--line); font-size: var(--step-base);
}
.spec li::before { content: "—"; color: var(--brass); flex: none; }

/* --------- Standard strip --------- */
.standard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.standard div { background: var(--plum-base); padding: clamp(2rem,4vw,3rem) 1.6rem; text-align: center; }
.standard .numeral { display: block; font-size: 2.4rem; margin-bottom: 0.4rem; font-style: normal; font-weight: 600; }
.standard h3 { font-family: var(--body); font-size: var(--step-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin-bottom: 0.7rem; }
.standard p { color: var(--cream-dim); font-size: var(--step-sm); margin: 0; }
@media (max-width: 700px) { .standard { grid-template-columns: 1fr; } }

/* --------- Quote --------- */
.quote { max-width: 24ch; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--display); font-size: var(--step-xl); font-weight: 500;
  font-style: italic; line-height: 1.25; margin: 0; color: var(--cream);
}
.quote cite { display: block; margin-top: 1.6rem; font-family: var(--body); font-style: normal;
  font-size: var(--step-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }

/* --------- Process steps --------- */
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem,3vw,2.6rem); padding: clamp(2rem,4vw,3rem) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--display); font-size: clamp(2.6rem,6vw,4.6rem); font-weight: 600; color: var(--brass); line-height: 0.9; }
.step__body h3 { font-size: var(--step-lg); margin-bottom: 0.5rem; }
.step__body .tag { font-size: var(--step-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }

/* --------- CTA band --------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,10,31,0.86), rgba(26,10,31,0.9)); }
.cta-band__inner { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { font-size: var(--step-xl); margin-bottom: 0.5em; }

/* --------- Form --------- */
.form { display: grid; gap: 1.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--step-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.field input, .field select, .field textarea {
  background: var(--plum-base); border: 1px solid var(--line); color: var(--cream);
  padding: 0.9rem 1rem; font-family: var(--body); font-size: var(--step-base);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 130px; }

/* --------- Footer --------- */
.footer { background: var(--plum-base); border-top: 1px solid var(--line); padding-block: clamp(3.5rem,6vw,5rem) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,4vw,4rem); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer h4 { font-family: var(--body); font-size: var(--step-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.2rem; }
.footer p, .footer a { color: var(--cream-dim); font-size: var(--step-sm); line-height: 1.8; }
.footer a:hover { color: var(--brass-bright); }
.footer__tag { font-family: var(--display); font-size: var(--step-lg); font-style: italic; color: var(--cream); max-width: 20ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__bottom {
  margin-top: clamp(3rem,5vw,4rem); padding-top: 1.8rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  font-size: var(--step-xs); color: var(--cream-faint); letter-spacing: 0.04em;
}
.footer__bottom a { color: var(--brass); font-size: var(--step-xs); }

/* --------- Reveal on scroll --------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --------- Misc --------- */
.full-media { position: relative; overflow: hidden; }
.full-media img { width: 100%; height: clamp(300px, 55vh, 640px); object-fit: cover; }
.pill { display: inline-block; font-size: var(--step-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--line); padding: 0.4em 1em; border-radius: 999px; }

/* =========================================
   CTA Architecture — conversion-focused
   ========================================= */

/* Two-path commission split (Private / Trade) */
.commission-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.commission-path { position: relative; padding: clamp(2rem, 3vw, 2.8rem); border: 1px solid var(--line); background: rgba(255,255,255,0.02); text-align: left; transition: border-color 0.4s ease, transform 0.4s ease; }
.commission-path:hover { border-color: var(--brass); transform: translateY(-4px); }
.commission-path h3 { font-family: var(--display); font-size: var(--step-lg); color: var(--cream); margin: 0.5rem 0 0.8rem; }
.commission-path p { color: var(--cream-dim); margin-bottom: 1.8rem; }
.commission-path .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.commission-path__mark { font-family: var(--display); font-style: italic; color: var(--brass); font-size: var(--step-sm); letter-spacing: 0.14em; text-transform: uppercase; }

/* Sticky enquire on mobile — never leaves the screen */
.mobile-cta { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.5); border-radius: 4px; }
.mobile-cta a { display: block; text-align: center; padding: 1.05rem; background: var(--brass); color: var(--plum-base); font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; text-decoration: none; border-radius: 4px; }
.mobile-cta a:hover { background: var(--brass-bright); }
@media (max-width: 720px) { .mobile-cta { display: block; } main { padding-bottom: 5rem; } }
@media (min-width: 721px) { .mobile-cta { display: none; } }

/* Inline "Start a commission" callout — softer than a band, sits mid-page */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.6rem, 3vw, 2.6rem); margin: clamp(2rem, 4vw, 3rem) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: rgba(255,255,255,0.02); }
.callout p { margin: 0; color: var(--cream); font-family: var(--display); font-size: var(--step-md); }
.callout p em { font-style: italic; color: var(--brass); }
.callout .btn { flex-shrink: 0; }
