/* =============================================
   HOLLIN & HEM · STYLESHEET (UptoData demo)
   Palette: charcoal, cream, antique gold, burgundy
   ============================================= */
:root {
  --charcoal: #1a1a1a;
  --charcoal-2: #242424;
  --cream: #f5f0e8;
  --paper: #faf8f5;
  --gold: #c9a96e;        /* on charcoal only (7.8:1) */
  --gold-light: #e0c88a;
  --gold-text: #806128;   /* small gold text on cream/paper (5.1:1+) */
  --burgundy: #7a2e3a;
  --text: #2c2c2c;
  --muted: #5c5c5c;       /* 5.9:1 on cream */
  --line: #e2d9c8;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --bar-h: 34px;
  --nav-h: 72px;
  --pad: clamp(4rem, 9vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --focus: var(--burgundy);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--charcoal); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
h3 { font-size: 1.2rem; }
p + p { margin-top: 1rem; }

/* --- FOCUS --- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
#nav, .mobile-menu, #hero, .section-dark, .footer, .demo-bar, .chat-panel, .chat-pill { --focus: var(--gold-light); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--charcoal); padding: 0.75rem 1rem; font-weight: 600;
}
.skip-link:focus-visible { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section-light { background: var(--paper); padding: var(--pad) 0; }
.section-cream { background: var(--cream); padding: var(--pad) 0; }
.section-dark  { background: var(--charcoal); color: var(--cream); padding: var(--pad) 0; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.6rem;
}
.label-on-dark { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; }
.small-note { font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }
.small-note.center { text-align: center; }

/* --- DEMO BAR --- */
.demo-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #0f0f0f; color: rgba(245,240,232,0.85);
  font-size: 0.8rem; border-bottom: 1px solid rgba(201,169,110,0.2);
}
.demo-bar a {
  color: var(--gold-light); display: inline-flex; align-items: center; min-height: var(--bar-h);
  text-decoration: underline; text-underline-offset: 3px;
}
.demo-bar a:hover { color: #fff; }

/* --- NAV --- */
#nav {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, top 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled { top: 0; background: rgba(26,26,26,0.97); box-shadow: 0 1px 0 rgba(201,169,110,0.2); }
/* Menu open: lift the nav above the demo bar so the close button can be tapped at the top of the page */
#nav.menu-open { z-index: 102; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; color: var(--cream); }
.logo-main { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.amp { color: var(--gold); font-style: italic; font-weight: 500; }
.logo-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  font-size: 0.9rem; color: rgba(245,240,232,0.9); text-decoration: none;
}
.nav-links a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; }
.nav-links .nav-cta { border: 1px solid var(--gold); color: var(--gold-light); margin-left: 0.5rem; padding: 0 1.1rem; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--charcoal); text-decoration: none; }
.burger {
  display: none; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(20,20,20,0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.mobile-menu ul { text-align: center; }
.mobile-menu a {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 1rem;
  font-family: var(--font-head); font-size: 1.6rem; color: var(--cream); text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold-light); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.75rem 1.6rem; font: 600 0.95rem/1.2 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(245,240,232,0.7); color: var(--cream); }
.btn-ghost:hover { background: rgba(245,240,232,0.12); border-color: var(--cream); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--burgundy); }
.btn.full { width: 100%; }

/* --- HERO --- */
#hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; overflow: hidden; background: var(--charcoal); }
.hero-bg, .hero-bg picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.7) 0, rgba(20,20,20,0) 180px),
    linear-gradient(90deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.78) 42%, rgba(20,20,20,0.35) 75%, rgba(20,20,20,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: calc(var(--bar-h) + var(--nav-h) + 2rem) var(--gutter) 4rem;
}
.hero-content > * { max-width: 600px; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); color: var(--cream); margin-bottom: 1.25rem; }
.hero-title em { color: var(--gold-light); }
.hero-tagline { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: rgba(245,240,232,0.92); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- ABOUT / SPLIT --- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-text p { color: var(--text); }
.split-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 18px 18px 0 var(--cream); }
.facts { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.facts li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts strong { color: var(--burgundy); }

/* --- PRICES --- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem 1.6rem 1.3rem; }
.price-card h3 { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--gold); }
.price-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .job { grid-column: 1; }
.price-list .price { grid-column: 2; grid-row: 1; font-weight: 600; color: var(--charcoal); text-align: right; white-space: nowrap; }
.price-list .time { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.card-note { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.price-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.extra-item { background: var(--charcoal); color: var(--cream); padding: 1.6rem; }
.extra-item h3 { color: var(--gold-light); margin-bottom: 0.5rem; }
.extra-item strong { color: var(--gold-light); }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-item { margin: 0; background: var(--cream); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-item figcaption { padding: 0.75rem 0.9rem 0.9rem; font-size: 0.875rem; color: var(--muted); }
.gallery-item figcaption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); }

/* --- PROCESS --- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.step { background: var(--charcoal-2); border-top: 2px solid var(--gold); padding: 1.5rem; }
.step-num { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: rgba(245,240,232,0.88); font-size: 0.95rem; }

/* --- REVIEWS --- */
#reviews .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.quote-card { margin: 0; background: var(--paper); border-left: 3px solid var(--gold); padding: 1.5rem; }
.quote-card blockquote { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.5; color: var(--charcoal); margin-bottom: 1rem; }
.quote-card figcaption { font-weight: 600; }
.quote-card figcaption span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }

/* --- CONTACT --- */
.contact-split { align-items: start; }
.contact-details { margin-top: 1.5rem; }
.contact-details div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; }
.contact-details dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); padding-top: 0.15rem; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; margin: -0.6rem 0; color: var(--burgundy); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-form { background: var(--cream); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.form-demo { font-size: 0.875rem; background: #fff; border-left: 3px solid var(--burgundy); padding: 0.6rem 0.8rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; font: inherit; color: var(--text);
  background: #fff; border: 1px solid #8c8577; border-radius: 2px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 1px; }
.form-group [aria-invalid="true"] { border-color: #a3192d; }
.field-error { display: block; color: #a3192d; font-size: 0.875rem; margin-top: 0.3rem; }
.field-error:empty { display: none; }
.field-hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.form-note:empty { display: none; }
.form-note { margin-top: 1rem; padding: 0.8rem 1rem; background: #fff; border: 1px solid var(--burgundy); color: var(--charcoal); font-weight: 600; }

/* --- FOOTER --- */
.footer { background: #141414; color: #b5afa3; padding: 3.5rem 0 calc(5.5rem + var(--safe-bottom)); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; color: var(--cream); text-underline-offset: 4px; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid #2c2c2c; padding-top: 1.25rem; }
.footer-small p + p { margin-top: 0.5rem; }
.footer-demo a { color: var(--gold-light); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* --- CHAT --- */
.chat-pill {
  position: fixed; right: 1.5rem; bottom: calc(1.5rem + var(--safe-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.2rem;
  background: var(--charcoal); color: var(--cream); border: 1px solid var(--gold); border-radius: 999px;
  font: 600 0.92rem var(--font-body); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: background 0.2s ease;
}
.chat-pill svg { color: var(--gold-light); }
.chat-pill:hover { background: var(--burgundy); }
.chat-pill[aria-expanded="true"] { display: none; }
.chat-panel {
  position: fixed; right: 1.5rem; bottom: calc(1.5rem + var(--safe-bottom)); z-index: 95;
  width: 370px; height: min(560px, calc(100vh - 6rem));
  display: flex; flex-direction: column; background: var(--charcoal); color: var(--cream);
  border: 1px solid rgba(201,169,110,0.5); box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.75rem 0.75rem 1rem; border-bottom: 1px solid rgba(201,169,110,0.35); }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-light); }
.chat-status { display: block; font-size: 0.78rem; color: rgba(245,240,232,0.8); }
.chat-close { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; background: none; border: 0; color: var(--cream); cursor: pointer; }
.chat-close:hover { color: var(--gold-light); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 0.65rem 0.85rem; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--charcoal-2); border-left: 2px solid var(--gold); }
.msg.user { align-self: flex-end; background: var(--cream); color: var(--charcoal); }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.chat-suggest button {
  min-height: 44px; padding: 0.5rem 0.9rem; text-align: left; font: 0.88rem var(--font-body);
  background: none; color: var(--gold-light); border: 1px solid rgba(201,169,110,0.6); border-radius: 999px; cursor: pointer;
}
.chat-suggest button:hover { background: rgba(201,169,110,0.15); color: #fff; }
.chat-input { display: flex; border-top: 1px solid rgba(201,169,110,0.35); }
.chat-input input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: 0.95rem var(--font-body); background: var(--charcoal); color: var(--cream); border: 0; }
.chat-input input::placeholder { color: rgba(245,240,232,0.65); }
.chat-input input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.chat-input button { width: 52px; background: var(--gold); color: var(--charcoal); border: 0; cursor: pointer; }
.chat-input button:hover { background: var(--gold-light); }
.chat-input button:disabled { opacity: 0.6; cursor: wait; }
.chat-foot { padding: 0.45rem 1rem 0.6rem; font-size: 0.75rem; color: rgba(245,240,232,0.75); }

/* --- REVEAL (opacity + small vertical move only, so nothing pushes the page sideways) --- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split-image { max-width: 480px; }
  .price-grid, .price-extra { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}
@media (max-width: 600px) {
  :root { --bar-h: 44px; }
  .demo-bar { font-size: 0.75rem; }
  .demo-bar > span { display: none; }
  .demo-bar a::before { content: 'Demo site by UptoData · '; color: rgba(245,240,232,0.85); white-space: pre; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.8) 45%, rgba(20,20,20,0.92) 100%); }
  #hero { align-items: flex-end; }
  .hero-content { padding-bottom: 5.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .split-image img { box-shadow: 10px 10px 0 var(--cream); }
  .steps { grid-template-columns: 1fr; }
  .price-card { padding: 1.25rem 1.1rem 1rem; }
  .gallery-item figcaption { padding: 0.6rem 0.65rem 0.75rem; font-size: 0.8rem; }
  .gallery-item figcaption strong { font-size: 0.95rem; }
  .contact-details div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .chat-pill { right: 1rem; bottom: calc(1rem + var(--safe-bottom)); }
  .chat-panel { right: 0.5rem; left: 0.5rem; bottom: calc(0.5rem + var(--safe-bottom)); width: auto; height: min(560px, calc(100svh - 5rem)); }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .msg.typing span { animation: none; opacity: 0.8; }
}
