/* ==========================================================================
   Photo Restoration Services - Derbyshire & Nottinghamshire
   Stylesheet - built for clarity, large text and easy reading (50+ friendly)
   ========================================================================== */

:root {
  --navy: #1b3a4b;
  --navy-dark: #12262f;
  --teal: #2f6f6b;
  --gold: #c8912b;
  --gold-dark: #8a5f16; /* darkened from #a5741c for WCAG AA text contrast */
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #3c3c3c;
  --line: #e2ddd0;
  --success-bg: #eaf6ea;
  --success-ink: #1c5b1c;
  --error-bg: #fbeaea;
  --error-ink: #8a1f1f;
  --radius: 12px;
  --max-width: 1180px;
  --shadow: 0 4px 18px rgba(27, 58, 75, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 1.2em 0 0.6em; }
h3 { font-size: 1.35rem; margin: 1em 0 0.5em; }
p { margin: 0 0 1.1em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-dark); }
/* Inline links within body copy keep a light underline (not colour alone) so they're
   still easy to spot without making every link look bold/heavy */
p a, li a, td a, .faq-a a, .price-note a, .hint a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.5em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #1a1a1a;
  padding: 12px 20px; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.bg-white { background: var(--paper); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-cream { background: var(--cream); }

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--navy-dark); color: #f4ede0; font-size: 15px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #f4ede0; font-weight: 700; }
.top-bar .call-link { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--max-width); margin: 0 auto; padding: 12px 24px;
}
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }

nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav.main-nav a {
  display: inline-block; padding: 12px 16px; text-decoration: none; color: var(--navy);
  font-weight: 700; font-family: Arial, Helvetica, sans-serif; font-size: 16px; border-radius: 8px;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { background: var(--cream); color: var(--gold-dark); }

.btn {
  display: inline-block; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: transform .08s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #201400; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-large { padding: 18px 34px; font-size: 19px; }
.btn-block { display: block; width: 100%; }

.nav-toggle { display: none; background: var(--navy); color: #fff; border: none; padding: 12px 16px; border-radius: 8px; font-weight: 700; font-family: Arial, sans-serif; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { font-family: Arial, sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-dark); font-size: 14px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.trust-line { margin-top: 22px; font-family: Arial, sans-serif; font-size: 16px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { color: var(--gold-dark); letter-spacing: 2px; }

/* ---------- Before/After Slider ---------- */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); touch-action: pan-y; user-select: none; background: #ddd;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); pointer-events: none; }
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.ba-slider .ba-before-wrap img { width: var(--ba-img-w, 100%); max-width: none; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; z-index: 3;
  transform: translateX(-2px); cursor: ew-resize; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; background: var(--gold); color: #201400; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.ba-label { position: absolute; top: 12px; z-index: 4; background: rgba(27,58,75,.85); color: #fff; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .03em; }
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }
.ba-caption { text-align: center; font-family: Arial, sans-serif; font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .icon { font-size: 34px; margin-bottom: 10px; display: block; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--gold); }

.step-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.step-list li { counter-increment: step; padding-left: 64px; position: relative; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px;
  background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 19px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; font-size: 19px;
  font-weight: 700; color: var(--navy); font-family: 'Source Serif 4', Georgia, serif; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { font-size: 26px; color: var(--gold-dark); font-family: Arial, sans-serif; transition: transform .15s ease; flex-shrink: 0; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: Arial, sans-serif; font-weight: 700; margin-bottom: 8px; font-size: 17px; color: var(--navy); }
.field .hint { font-family: Arial, sans-serif; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; font-size: 17px;
  font-family: Arial, sans-serif; background: #fff; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.upload-box {
  border: 3px dashed var(--teal); border-radius: var(--radius); padding: 30px; text-align: center; background: #f2f7f6;
}
.upload-box .icon { font-size: 40px; }
fieldset { border: 2px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 0 0 22px; }
legend { font-family: Arial, sans-serif; font-weight: 700; padding: 0 8px; color: var(--navy); }
.radio-row, .checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: Arial, sans-serif; }
.radio-row input, .checkbox-row input { width: 22px; height: 22px; }
#form-status { margin-top: 18px; padding: 16px 18px; border-radius: 8px; font-family: Arial, sans-serif; display: none; }
#form-status.show { display: block; }
#form-status.success { background: var(--success-bg); color: var(--success-ink); }
#form-status.error { background: var(--error-bg); color: var(--error-ink); }

/* ---------- Area chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: Arial, sans-serif; font-weight: 700; font-size: 15px; background: #fff; border: 2px solid var(--line);
  padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--navy);
}
.chip:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- Banner / testimonial ---------- */
.testimonial { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; }
.testimonial p { font-size: 1.2rem; font-style: italic; }
.testimonial .who { font-family: Arial, sans-serif; font-weight: 700; color: var(--gold); font-style: normal; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-family: Arial, sans-serif; font-size: 14px; color: var(--ink-soft); padding: 14px 0 0; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #d9d3c4; padding: 50px 0 20px; margin-top: 60px; }
footer a { color: #f4ede0; }
footer .grid { grid-template-columns: repeat(4, 1fr); }
footer h4 { color: #fff; font-family: Arial, sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-top: 0; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 10px; font-family: Arial, sans-serif; font-size: 15px; }
.footer-bottom { border-top: 1px solid #2a4451; margin-top: 34px; padding-top: 20px; font-family: Arial, sans-serif; font-size: 13px; color: #9fb0b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile Call/WhatsApp/Upload bar ---------- */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-cta { display: none; }
  .top-bar { display: none; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px;
    box-shadow: var(--shadow); z-index: 500;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav ul { flex-direction: column; width: 100%; }
  nav.main-nav a { display: block; padding: 16px; font-size: 18px; }
  .nav-toggle { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  body { font-size: 18px; padding-bottom: 64px; }
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
    background: var(--navy); padding: 10px; gap: 10px; box-shadow: 0 -4px 14px rgba(0,0,0,.2);
  }
  .sticky-cta a { flex: 1; font-size: 14px; padding: 14px 10px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero { padding: 30px 0 40px; }
  .header-inner { padding: 14px 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- v2 additions: logo, whatsapp, pricing table, service pages ---------- */
.brand { display: flex; flex-direction: row; align-items: center; gap: 0; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; border-radius: 0; display: block; }
/* Brand name is still in the accessible name / SEO via visually-hidden text - the logo
   image already carries the wordmark visually, so we don't repeat it on screen */
.brand-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-logo { height: 56px; width: auto; margin-bottom: 26px; border-radius: 0; }

.btn-whatsapp { background: #25D366; color: #04350f; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

.call-link svg, .btn-whatsapp svg { vertical-align: middle; margin-right: 6px; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; font-family: Arial, sans-serif; font-size: 17px; }
.price-table caption { text-align: left; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; }
.price-table th { background: var(--navy); color: #fff; }
.price-table tr:nth-child(even) td { background: var(--cream); }
.price-table td.price { font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.price-note { font-family: Arial, sans-serif; font-size: 15px; color: var(--ink-soft); background: var(--cream); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 8px 8px 0; margin-top: 18px; }
.table-scroll { overflow-x: auto; margin-bottom: 12px; }

/* Service type cards with photos */
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.svc-card:hover { border-color: var(--gold); }
.svc-card .svc-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc-card .svc-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.svc-card .svc-body { padding: 20px 22px; }
.svc-card h3 { margin-top: 0; }

/* ---------- Filmstrip (decorative, subtle motion) ---------- */
.filmstrip { background: var(--navy-dark); overflow: hidden; padding: 18px 0; }
.filmstrip-track {
  display: flex; gap: 14px; width: max-content;
  animation: filmstrip-scroll 100s linear infinite;
}
.filmstrip:hover .filmstrip-track, .filmstrip:focus-within .filmstrip-track { animation-play-state: paused; }
.filmstrip-frame {
  position: relative; flex: 0 0 auto; width: 150px; height: 100px; border-radius: 6px; overflow: hidden;
  border: 3px solid #35505c; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.filmstrip-frame img { width: 100%; height: 100%; object-fit: cover; }
.filmstrip-frame::before, .filmstrip-frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, #0a181f 0 6px, transparent 6px 14px);
}
.filmstrip-frame::before { top: -3px; }
.filmstrip-frame::after { bottom: -3px; }
@keyframes filmstrip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .filmstrip-track { animation: none; }
  .filmstrip { overflow-x: auto; }
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--navy-dark); color: #f4ede0; padding: 20px; box-shadow: 0 -4px 18px rgba(0,0,0,.3);
  display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#cookie-banner p { margin: 0; font-family: Arial, sans-serif; font-size: 15px; max-width: 640px; }
#cookie-banner a { color: #f4ede0; text-decoration-color: var(--gold); }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner .btn { padding: 12px 20px; font-size: 15px; }
body.has-sticky-cta #cookie-banner { padding-bottom: 20px; }
@media (max-width: 900px) {
  #cookie-banner { padding-bottom: 84px; }
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[aria-live] { position: relative; }
