/* =================================================================
   Randy's Painting & Drywall — "Finish Quality" design system (vanilla)
   Royal blue + red + white · Archivo (display) / Hanken Grotesk (body).
   Marketing styles are scoped under `.mkt`; app/chat/admin styles follow.
   ================================================================= */

:root {
  /* Surfaces */
  --plaster:      #f3f6fc;
  --plaster-2:    #e8eef8;
  --plaster-3:    #dce6f5;
  --paper:        #ffffff;

  /* Ink & text (navy) */
  --ink:          #0f1b33;
  --ink-soft:     #2a3550;
  --muted:        #5c6679;
  --muted-2:      #7a8398;

  /* Brand — royal blue */
  --slate:        #1f56c4;
  --slate-2:      #2a66d6;
  --slate-deep:   #123075;
  --brand:        #1f56c4;

  /* Accent — red */
  --coral:        #d8322b;
  --coral-2:      #b4241d;
  --coral-soft:   #f4c7c3;

  /* Lines & utility */
  --line:         rgba(15, 27, 51, 0.12);
  --line-strong:  rgba(15, 27, 51, 0.22);
  --line-light:   rgba(255, 255, 255, 0.16);
  --shadow-sm:    0 1px 2px rgba(15,27,51,.06), 0 2px 6px rgba(15,27,51,.05);
  --shadow-md:    0 8px 24px rgba(15,27,51,.10), 0 2px 8px rgba(15,27,51,.06);
  --shadow-lg:    0 24px 60px rgba(15,27,51,.16), 0 6px 18px rgba(15,27,51,.08);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--plaster); color: var(--ink-soft); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--coral); color: #fff; }

/* =====================  MARKETING SCOPE  ===================== */
.mkt { font-family: var(--font-body); color: var(--ink-soft); line-height: 1.65; }
.mkt :is(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.mkt h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); }
.mkt h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.mkt h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); }
.mkt p  { color: var(--ink-soft); }
.mkt a  { color: inherit; text-decoration: none; }
.mkt ul { list-style: none; padding: 0; margin: 0; }

.mkt .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mkt .section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.mkt .section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.mkt .center { text-align: center; }
.mkt .mx-auto { margin-inline: auto; }

.mkt .eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-2); }
.mkt .eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--coral); box-shadow: 4px 4px 0 0 var(--slate); flex: none; }
.mkt .eyebrow--light { color: #fff; }
.mkt .eyebrow--light::before { box-shadow: 4px 4px 0 0 rgba(255,255,255,.85); }

.mkt .section-head { max-width: 56ch; margin-bottom: clamp(2rem, 3vw, 3.25rem); }
.mkt .section-head.center { margin-inline: auto; }
.mkt .section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.075rem; }

.mkt .mark { position: relative; white-space: nowrap; z-index: 0; color: #fff; }
.mkt .mark::after { content: ""; position: absolute; z-index: -1; left: -.22em; right: -.22em; bottom: -.06em; top: -.04em; background: var(--coral); transform: rotate(-1.4deg); border-radius: 60% 40% 55% 45% / 60% 55% 45% 40%; opacity: .95; }

.mkt .ul-brush { position: relative; display: inline-block; }
.mkt .ul-brush::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: .42em; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 60 4, 120 16, 180 8 S 280 6, 298 11' stroke='%23D8322B' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Buttons */
.mkt .btn { --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: var(--coral); display: inline-flex; align-items: center; gap: .6rem; padding: .92rem 1.6rem; background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd); border-radius: 999px; font-weight: 700; font-size: .98rem; letter-spacing: .01em; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s; box-shadow: 0 1px 2px rgba(15,27,51,.08); }
.mkt .btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.mkt .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mkt .btn:hover svg { transform: translateX(3px); }
.mkt .btn:active { transform: translateY(0); }
.mkt .btn--slate { --btn-bg: var(--slate); --btn-bd: var(--slate); }
.mkt .btn--slate:hover { background: var(--slate-deep); }
.mkt .btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.mkt .btn--outline:hover { --btn-bd: var(--ink); background: rgba(15,27,51,.03); }
.mkt .btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.mkt .btn--ghost-light:hover { --btn-bd: #fff; background: rgba(255,255,255,.08); }
.mkt .btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

.mkt .textlink { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--slate-2); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: gap .25s var(--ease), border-color .25s, color .2s; }
.mkt .textlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.mkt .textlink:hover { gap: .7rem; border-color: var(--coral); color: var(--coral-2); }

/* Hero */
.mkt .hero { position: relative; padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.mkt .hero__bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 50% at 85% 0%, rgba(31,86,196,.12), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(216,50,43,.07), transparent 70%); }
.mkt .hero__bg::after { content:""; position:absolute; inset:0; opacity:.5; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); }
.mkt .hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.mkt .hero__copy { max-width: 36rem; }
.mkt .hero h1 { margin: 1.25rem 0 0; }
.mkt .hero__slogan { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: var(--coral-2); }
.mkt .hero__lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.mkt .hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.mkt .hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.mkt .hero__trust .t { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.mkt .hero__trust .t svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.mkt .hero__visual { position: relative; }
.mkt .hero__frame { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mkt .hero__chips { position: absolute; left: -22px; bottom: 36px; display: flex; flex-direction: column; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); transform: rotate(-4deg); z-index: 3; }
.mkt .hero__chips span { width: 64px; height: 40px; }
.mkt .hero__badge { position: absolute; right: -14px; top: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; box-shadow: var(--shadow-md); z-index: 3; display: flex; align-items: center; gap: .75rem; }
.mkt .hero__badge .num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--slate); }
.mkt .hero__badge .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.2; }

/* Duotone placeholders */
.mkt .ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--slate-2), var(--slate-deep)); color: rgba(255,255,255,.85); overflow: hidden; }
.mkt .ph::before { content:""; position:absolute; inset:0; opacity:.14; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 9px); }
.mkt .ph__tag { position: relative; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.4); padding: .4rem .7rem; border-radius: 999px; }
.mkt .ph--coral { background: linear-gradient(135deg, var(--coral), var(--coral-2)); }
.mkt .ph--warm  { background: linear-gradient(135deg, #5b86d6, #1f56c4); }
.mkt .ph--cool  { background: linear-gradient(135deg, #2a66d6, #123075); }
.mkt .ph--sage  { background: linear-gradient(135deg, #4b7fd6, #1f3f8c); }
.mkt .ph--ink   { background: linear-gradient(135deg, #2a3550, #0f1b33); }

/* Marquee */
.mkt .marquee { background: var(--slate); color: #fff; overflow: hidden; border-block: 1px solid var(--slate-deep); }
.mkt .marquee__track { display: flex; gap: 0; width: max-content; animation: mkt-marquee 32s linear infinite; }
.mkt .marquee:hover .marquee__track { animation-play-state: paused; }
.mkt .marquee__track .m { display: inline-flex; align-items: center; gap: .8rem; padding: 1.05rem 2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: rgba(255,255,255,.92); }
.mkt .marquee__track .m::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
@keyframes mkt-marquee { to { transform: translateX(-50%); } }

/* Services */
.mkt .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.mkt .service-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem 1.85rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; overflow: hidden; }
.mkt .service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--coral); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.mkt .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.mkt .service-card:hover::before { transform: scaleY(1); }
.mkt .service-card__num { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--muted-2); }
.mkt .service-card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--plaster-2); display: grid; place-items: center; margin: 1rem 0 1.25rem; transition: background .3s, color .3s; color: var(--slate); }
.mkt .service-card:hover .service-card__icon { background: var(--slate); color: #fff; }
.mkt .service-card__icon svg { width: 26px; height: 26px; }
.mkt .service-card h3 { margin-bottom: .6rem; }
.mkt .service-card p { color: var(--muted); font-size: .96rem; }
.mkt .service-card ul { margin-top: 1rem; display: grid; gap: .5rem; }
.mkt .service-card li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.mkt .service-card li svg { width: 16px; height: 16px; color: var(--coral); flex: none; margin-top: .28rem; }

/* Split */
.mkt .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mkt .split + .split { margin-top: clamp(3rem, 5vw, 6rem); }
.mkt .split__media { aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.mkt .split--reverse .split__media { order: 2; }
.mkt .split__body h2 { margin-bottom: 1rem; }
.mkt .split__body p { color: var(--muted); }
.mkt .split__list { margin-top: 1.5rem; display: grid; gap: .85rem; }
.mkt .split__list li { display: flex; gap: .75rem; align-items: flex-start; }
.mkt .split__list li svg { width: 22px; height: 22px; color: var(--coral); flex: none; }
.mkt .split__list strong { color: var(--ink); display: block; }
.mkt .split__list span { color: var(--muted); font-size: .92rem; }

/* Stats */
.mkt .stats { background: var(--slate); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); }
.mkt .stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.mkt .stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: #fff; }
.mkt .stat__num .suffix { color: var(--coral-soft); }
.mkt .stat__lbl { margin-top: .6rem; font-size: .9rem; color: rgba(255,255,255,.75); letter-spacing: .04em; }

/* Process */
.mkt .process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.mkt .process__step { position: relative; padding-top: 2.5rem; }
.mkt .process__step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--coral); line-height: 1; }
.mkt .process__step h3 { font-size: 1.25rem; margin: .75rem 0 .5rem; }
.mkt .process__step p { font-size: .94rem; color: var(--muted); }
.mkt .process__step::after { content: ""; position: absolute; top: 1rem; left: 3.2rem; right: -1.25rem; height: 1px; background: var(--line-strong); }
.mkt .process__step:last-child::after { display: none; }

/* Testimonials */
.mkt .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.mkt .testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mkt .testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mkt .testi__stars { display: flex; gap: .15rem; color: var(--coral); }
.mkt .testi__stars svg { width: 18px; height: 18px; }
.mkt .testi__quote { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.mkt .testi__who { display: flex; align-items: center; gap: .85rem; margin-top: auto; padding-top: .5rem; }
.mkt .testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; flex: none; }
.mkt .testi__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.mkt .testi__meta { font-size: .82rem; color: var(--muted); }
.mkt .testi-cta { margin-top: 2rem; }
.mkt .testi-cta .btn svg { width: 1.05em; height: 1.05em; color: var(--coral); }

/* Gallery */
.mkt .gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.mkt .filter-btn { padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s var(--ease); }
.mkt .filter-btn:hover { border-color: var(--ink); }
.mkt .filter-btn.is-active { background: var(--slate); color: #fff; border-color: var(--slate); }
.mkt .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.mkt .gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mkt .gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mkt .gallery-item__cap { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(15,27,51,.78)); color: #fff; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.mkt .gallery-item__cap span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-soft); }

/* Before/After */
.mkt .ba { max-width: 760px; margin-inline: auto; }
.mkt .ba__slider { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); user-select: none; touch-action: none; }
.mkt .ba__layer { position: absolute; inset: 0; }
.mkt .ba__tag { position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(15,27,51,.6); color: #fff; }
.mkt .ba__tag--before { left: 1rem; } .mkt .ba__tag--after { right: 1rem; }
.mkt .ba__handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(15,27,51,.15); }
.mkt .ba__knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--slate); }
.mkt .ba__knob svg { width: 22px; height: 22px; }
.mkt .ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* CTA band */
.mkt .cta-band { position: relative; background: var(--slate); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.75rem, 4vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); overflow: hidden; }
.mkt .cta-band__bg { position: absolute; inset: 0; z-index: 0; opacity: .9; background: radial-gradient(50% 80% at 90% 10%, rgba(216,50,43,.4), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(18,48,117,.7), transparent 60%); }
.mkt .cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.mkt .cta-band h2 { color: #fff; max-width: 18ch; }
.mkt .cta-band p { color: rgba(255,255,255,.82); margin-top: .75rem; max-width: 42ch; }
.mkt .cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Page hero */
.mkt .page-hero { position: relative; padding-block: clamp(3rem, 3rem + 3vw, 5.5rem); overflow: hidden; }
.mkt .page-hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 80% 0%, rgba(31,86,196,.1), transparent 70%); }
.mkt .page-hero h1 { max-width: 16ch; }
.mkt .page-hero p { margin-top: 1.25rem; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }

/* About */
.mkt .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.mkt .value { padding: 1.75rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.mkt .value__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--coral); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.mkt .value__icon svg { width: 24px; height: 24px; }
.mkt .value h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.mkt .value p { color: var(--muted); font-size: .95rem; }
.mkt .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.mkt .team-card { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.mkt .team-card__photo { aspect-ratio: 1/1; }
.mkt .team-card__body { padding: 1.25rem; }
.mkt .team-card h3 { font-size: 1.2rem; }
.mkt .team-card .role { color: var(--coral-2); font-weight: 700; font-size: .88rem; margin-top: .2rem; }
.mkt .team-card p { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* Contact */
.mkt .contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.mkt .contact-aside { display: grid; gap: 1.1rem; }
.mkt .contact-card { display: flex; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); align-items: flex-start; }
.mkt .contact-card__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--plaster-2); color: var(--slate); display: grid; place-items: center; flex: none; }
.mkt .contact-card__icon svg { width: 22px; height: 22px; }
.mkt .contact-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.mkt .contact-card p, .mkt .contact-card a { color: var(--muted); font-size: .95rem; }
.mkt .contact-card a:hover { color: var(--coral-2); }
.mkt .form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }

/* FAQ */
.mkt .faq { max-width: 760px; margin-inline: auto; display: grid; gap: .75rem; }
.mkt .faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: border-color .25s; }
.mkt .faq-item.is-open { border-color: var(--slate-2); }
.mkt .faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; background: transparent; border: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: pointer; font-family: var(--font-body); }
.mkt .faq-a { display: none; }
.mkt .faq-item.is-open .faq-a { display: block; }
.mkt .faq-a__inner { padding: 0 1.5rem 1.35rem; color: var(--muted); }
.mkt .faq-q .icon { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; position: relative; color: var(--ink); transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s; }
.mkt .faq-q .icon::before, .mkt .faq-q .icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.mkt .faq-q .icon::before { width: 11px; height: 2px; }
.mkt .faq-q .icon::after { width: 2px; height: 11px; transition: transform .3s var(--ease); }
.mkt .faq-item.is-open .faq-q .icon { background: var(--coral); border-color: var(--coral); color: #fff; }
.mkt .faq-item.is-open .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }

/* Breadcrumb */
.mkt .breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.mkt .breadcrumb a:hover { color: var(--coral-2); }
.mkt .breadcrumb span { color: var(--line-strong); }

/* Footer */
.mkt .site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(3rem, 5vw, 5rem); }
.mkt .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.mkt .footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.mkt .footer-logo { display: inline-flex; background: #fff; padding: .6rem .85rem; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.mkt .footer-logo img { height: 72px; width: auto; display: block; }
.mkt .footer-about { margin-top: 1.25rem; font-size: .95rem; max-width: 34ch; line-height: 1.6; }
.mkt .footer-col h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.mkt .footer-col ul { display: grid; gap: .6rem; }
.mkt .footer-col a { font-size: .95rem; transition: color .2s; }
.mkt .footer-col a:hover { color: var(--coral); }
.mkt .footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; margin-bottom: .7rem; }
.mkt .footer-contact svg { width: 18px; height: 18px; color: var(--coral); flex: none; margin-top: .15rem; }
.mkt .footer-bottom { border-top: 1px solid var(--line-light); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.mkt .footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.mkt .footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-light); display: grid; place-items: center; color: rgba(255,255,255,.75); transition: background .25s, color .25s, transform .25s; }
.mkt .footer-social a:hover { background: var(--coral); color: #fff; border-color: var(--coral); transform: translateY(-3px); }
.mkt .footer-social svg { width: 18px; height: 18px; }

.mkt .gallery-item img, .mkt .hero__frame img, .mkt .ba__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================  NAVBAR (custom, not scoped)  ===================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243,246,252,.9); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; gap: 1.25rem; max-width: var(--container); margin-inline: auto; padding: .9rem var(--gutter); }
.nav__logo { flex: none; display: inline-flex; align-items: center; }
.nav__logo img { height: 52px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; font-weight: 600; }
.nav__center { margin-inline: auto; }
.nav__links a { color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--coral); }
.nav__auth { flex: none; display: flex; align-items: center; gap: 1rem; font-size: .92rem; white-space: nowrap; }
.nav__auth .who { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
.nav__auth .who { color: var(--muted); }
.nav__pill { background: var(--coral); color: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; font-size: .9rem; }
.nav__pill:hover { background: var(--coral-2); }
.nav__pill--slate { background: var(--slate); } .nav__pill--slate:hover { background: var(--slate-deep); }
.nav__toggle { display: none; margin-left: auto; height: 42px; width: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--slate); cursor: pointer; }
.nav__toggle svg { width: 22px; height: 22px; }
/* Mobile dropdown panel is hidden at all widths by default; the media query
   below turns it into the open-able menu on small screens. */
.nav__panel { display: none; }

@media (max-width: 900px) {
  .nav__center, .nav__auth.desktop { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: .25rem; background: var(--plaster); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-md); }
  .nav__panel.is-open { display: flex; }
  .nav__panel a { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; }
  .nav__panel .nav__pill { margin-top: .75rem; text-align: center; }
}

/* =====================  APP PAGES (auth/book/bookings/chat/admin)  ===================== */
.app-main { min-height: 60vh; }
.app-wrap { max-width: 30rem; margin-inline: auto; padding: 3rem var(--gutter); }
.app-wrap--wide { max-width: 44rem; }
.app-wrap--full { max-width: 64rem; }
.app-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); color: var(--ink); margin-bottom: .35rem; }
.app-sub { color: var(--muted); margin-bottom: 1.75rem; }
.app-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--slate-2); outline-offset: 1px; border-color: var(--slate-2); }
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.5rem; font-weight: 700; font-size: .98rem; cursor: pointer; transition: background .2s, opacity .2s; }
.btn-primary:hover { background: var(--coral-2); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-soft { display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.btn-soft:hover { background: rgba(15,27,51,.04); }
.form-error { background: #fdecea; color: var(--coral-2); border: 1px solid var(--coral-soft); border-radius: var(--radius-sm); padding: .6rem .85rem; font-size: .9rem; margin-bottom: 1rem; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.form-note a { color: var(--coral); font-weight: 600; }
.link-red { color: var(--coral); font-weight: 700; }

/* Status badges */
.badge { display: inline-block; border-radius: 999px; padding: .15rem .65rem; font-size: .72rem; font-weight: 700; text-transform: capitalize; }
.badge--pending { background: #fef3c7; color: #92670b; }
.badge--confirmed { background: #dcfce7; color: #166534; }
.badge--declined { background: #fee2e2; color: #b91c1c; }
.badge--cancelled { background: #e8eef8; color: #64748b; }
.badge--completed { background: #dbeafe; color: #1e40af; }
.badge--ai { background: #dbeafe; color: #1e40af; }
.badge--waiting_human { background: #fef3c7; color: #92670b; }
.badge--human { background: #d1fae5; color: #065f46; }
.badge--closed { background: #e8eef8; color: #64748b; }

/* Booking list */
.booking-list { list-style: none; padding: 0; display: grid; gap: .85rem; }
.booking-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.booking-item__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.booking-item__title { font-weight: 700; color: var(--ink); }
.booking-item__meta { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.booking-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; align-items: center; }

/* =====================  CHAT WIDGET + ROOM  ===================== */
.chat-bubble { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50; height: 3.5rem; width: 3.5rem; border-radius: 50%; background: var(--coral); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s; }
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble svg { width: 26px; height: 26px; }
.chat-panel { position: fixed; z-index: 40; background: #fff; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; inset: 0; }
.chat-panel.is-open { display: flex; }
@media (min-width: 640px) { .chat-panel { inset: auto; bottom: 1.25rem; right: 1.25rem; height: min(600px, 75vh); width: 370px; border-radius: var(--radius-lg); border: 1px solid var(--line); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; background: var(--coral); color: #fff; padding: .85rem 1.1rem; }
.chat-head .title { font-weight: 700; line-height: 1.2; }
.chat-head .sub { font-size: .75rem; color: rgba(255,255,255,.85); }
.chat-head button { background: transparent; border: 0; color: #fff; cursor: pointer; border-radius: 999px; padding: .25rem; display: grid; place-items: center; }
.chat-head button:hover { background: rgba(255,255,255,.2); }
.chat-head button svg { width: 20px; height: 20px; }
.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-banner { background: rgba(31,86,196,.07); color: var(--slate-deep); text-align: center; font-size: .82rem; padding: .5rem 1rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.msg { margin: .35rem 0; display: flex; flex-direction: column; }
.msg--customer { align-items: flex-end; }
.msg--ai, .msg--admin { align-items: flex-start; }
.msg__who { font-size: .7rem; color: var(--muted-2); margin-bottom: .15rem; }
.msg__bubble { max-width: 78%; white-space: pre-wrap; border-radius: 16px; padding: .5rem .85rem; font-size: .92rem; line-height: 1.45; }
.msg--customer .msg__bubble { background: var(--coral); color: #fff; }
.msg--ai .msg__bubble, .msg--admin .msg__bubble { background: var(--plaster-2); color: var(--ink); }
.msg--system { align-items: center; }
.msg--system .msg__sys { text-align: center; font-size: .75rem; color: var(--muted); margin: .4rem 0; }
.chat-typing { padding: .25rem 1rem; color: var(--muted); font-size: .82rem; font-style: italic; }
.chat-human { text-align: center; border-top: 1px solid var(--line); padding: .6rem 1rem; }
.chat-human button { background: transparent; border: 1px solid var(--coral); color: var(--coral); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .85rem; cursor: pointer; }
.chat-human p { font-size: .72rem; color: var(--muted); margin-top: .35rem; }
.chat-input { display: flex; gap: .5rem; border-top: 1px solid var(--line); padding: .65rem; }
.chat-input input { flex: 1; border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1rem; font: inherit; }
.chat-input button { background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; cursor: pointer; }
.chat-input button:disabled { opacity: .5; cursor: not-allowed; }

/* Full-page chat */
.chat-page { max-width: 42rem; margin-inline: auto; height: calc(100vh - 12rem); min-height: 420px; padding: 1.5rem var(--gutter); }
.chat-page .chat-shell { height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }

/* =====================  ADMIN DASHBOARD  ===================== */
.admin { max-width: 64rem; margin-inline: auto; padding: 1.5rem var(--gutter) 3rem; }
.tabs { display: inline-flex; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .25rem; margin: 1rem 0 1.5rem; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; padding: .45rem .9rem; border-radius: 7px; cursor: pointer; }
.tab.is-active { background: var(--slate); color: #fff; }
.kpi-section { margin-bottom: 1.5rem; }
.kpi-section h2 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.kpi__label { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.kpi__badge { font-size: .6rem; font-weight: 700; border-radius: 999px; padding: .1rem .45rem; }
.kpi__badge--live { background: #d1fae5; color: #065f46; }
.kpi__badge--today { background: #dbeafe; color: #1e40af; }
.kpi__value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--slate); margin-top: .4rem; }
button.kpi { cursor: pointer; text-align: left; transition: box-shadow .2s; }
button.kpi:hover { box-shadow: var(--shadow-md); }

.admin-chat { display: flex; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.admin-queue { width: 16rem; flex: none; border-right: 1px solid var(--line); overflow-y: auto; }
.admin-queue__item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .8rem 1rem; cursor: pointer; }
.admin-queue__item:hover, .admin-queue__item.is-active { background: var(--plaster-2); }
.admin-queue__item .cust { font-weight: 700; color: var(--ink); font-size: .9rem; }
.admin-queue__item .time { font-size: .75rem; color: var(--muted); }
.admin-chat__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-chat__bar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); align-items: center; }
.admin-chat__empty { padding: 2rem; color: var(--muted-2); }

.gallery-admin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-admin__item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-admin__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-admin__meta { padding: .5rem .65rem; font-size: .8rem; }
.gallery-admin__meta .cat { color: var(--slate-2); font-weight: 700; text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.gallery-admin__del { width: 100%; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--coral); font-weight: 700; padding: .45rem; cursor: pointer; font-size: .8rem; }
.gallery-admin__del:hover { background: #fdecea; }

.toast { position: fixed; top: 1rem; right: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .9rem; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
.toast.is-show { opacity: 1; transform: none; }
.toast--error { background: var(--coral-2); }

/* Responsive marketing */
@media (max-width: 980px) {
  .mkt .hero__grid { grid-template-columns: 1fr; }
  .mkt .hero__visual { max-width: 440px; margin-inline: auto; order: -1; }
  .mkt .split, .mkt .contact-grid { grid-template-columns: 1fr; }
  .mkt .split--reverse .split__media { order: 0; }
  .mkt .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .mkt .process { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .mkt .process__step::after { display: none; }
  .mkt .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .admin-queue { width: 100%; }
  .mkt .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .mkt .stats__grid, .mkt .footer-grid { grid-template-columns: 1fr; }
}

/* ----------  Blog  ---------- */
.blog-search {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.blog-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  pointer-events: none;
}
.blog-search__icon svg { width: 100%; height: 100%; display: block; }
.blog-search__input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-search__input::placeholder { color: var(--muted-2); }
.blog-search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 86, 196, .12);
}
.blog-noresults {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 35, 63, .08), 0 8px 24px rgba(22, 35, 63, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(22, 35, 63, .12), 0 16px 40px rgba(22, 35, 63, .10);
}
.blog-card[hidden] { display: none; }
.blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__img .ph { width: 100%; height: 100%; }
.blog-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.blog-card__date { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.blog-card__title { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.blog-card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }
.blog-card__more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .4rem; font-weight: 700; color: var(--brand, #d8322b); font-size: .9rem;
}
.blog-card__more svg { width: 1em; height: 1em; }

/* Single article */
.blog-article { max-width: 760px; }
.blog-article__img { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.blog-article__img img { width: 100%; height: auto; display: block; }
.blog-article__body p { margin: 0 0 1.2rem; line-height: 1.75; font-size: 1.05rem; }

/* Admin blog list */
.blog-admin__list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.blog-admin__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem; align-items: center;
  background: #fff; border-radius: 12px; padding: .75rem 1rem;
  box-shadow: 0 1px 3px rgba(22, 35, 63, .08);
}
.blog-admin__item img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.blog-admin__noimg {
  width: 72px; height: 56px; border-radius: 8px; background: var(--plaster-2, #eef);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--muted); text-align: center;
}
.blog-admin__title { font-weight: 700; margin-top: .25rem; }
.blog-admin__date { font-size: .8rem; color: var(--muted); }
.blog-admin__actions { white-space: nowrap; }
