/* =========================================================
   PaintPro UK — Design System
   Palette: Deep Navy / Warm White / Soft Grey / Gold Accent
   Fonts: Inter (body) + Playfair Display (headings)
   ========================================================= */

:root {
  --color-navy: #17243A;
  --color-navy-light: #22324c;
  --color-white: #F8F7F3;
  --color-grey: #E9EAEC;
  --color-gold: #C49A55;
  --color-gold-dark: #a9823f;
  --color-text: #252525;
  --color-text-muted: #6b7280;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(23, 36, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 36, 58, 0.12);
  --container-width: 1180px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 .5em; color: var(--color-navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--color-grey); }
.section-navy { background: var(--color-navy); color: var(--color-white); }
.section-navy h2, .section-navy h3 { color: var(--color-white); }
.text-center { text-align: center; }
.eyebrow { color: var(--color-gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 680px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; text-align: center;
}
.btn-primary { background: var(--color-gold); color: var(--color-navy); }
.btn-primary:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: var(--color-navy); color: var(--color-navy); }
.btn-secondary:hover { background: var(--color-navy); color: var(--color-white); }
.btn-light { background: var(--color-white); color: var(--color-navy); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* Navbar */
/* Note: no backdrop-filter here on purpose — it creates a new CSS containing
   block for fixed-position descendants, which breaks the mobile nav drawer's
   position:fixed (it would anchor to the navbar instead of the viewport). */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(248,247,243,.98); border-bottom: 1px solid var(--color-grey); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--color-navy); }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .95rem; }
.nav-links .btn { display: none; } /* this CTA only appears inside the mobile drawer — see media query below */
.nav-links a:hover { color: var(--color-gold-dark); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--color-white); flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; z-index: 110; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary, .nav-cta .btn-primary { display: none; }
  .nav-links .btn { display: flex; margin-top: 10px; }
}

/* Hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,36,58,.72), rgba(23,36,58,.85)); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.85); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; padding: 20px; }
.trust-item svg { color: var(--color-gold); margin-bottom: 10px; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4/3; background: var(--color-grey); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-price { color: var(--color-gold-dark); font-weight: 700; }

/* Gallery */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-filters button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--color-grey); background: #fff; cursor: pointer; font-size: .88rem; }
.gallery-filters button.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.gallery-grid { columns: 3 220px; column-gap: 18px; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.gallery-grid img { width: 100%; }
.lightbox { position: fixed; inset: 0; background: rgba(23,36,58,.92); display: none; align-items: center; justify-content: center; z-index: 999; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: var(--color-gold); letter-spacing: 2px; margin-bottom: 10px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--color-grey); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--color-navy); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--color-text-muted); }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 16px; }

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #d7d9dd; border-radius: 8px; font-family: inherit; font-size: .98rem; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(196,154,85,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.radio-card { border: 2px solid var(--color-grey); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; font-weight: 600; transition: all .15s ease; }
.radio-card.selected { border-color: var(--color-gold); background: rgba(196,154,85,.08); }
.radio-card input { display: none; }
.error-text { color: #c0392b; font-size: .85rem; margin-top: 4px; }
.help-text { color: var(--color-text-muted); font-size: .85rem; margin-top: 4px; }

/* Booking wizard */
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 40px; overflow-x: auto; gap: 6px; }
.wizard-step { flex: 1; text-align: center; min-width: 90px; }
.wizard-step .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--color-grey); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; font-size: .85rem; }
.wizard-step.active .dot, .wizard-step.done .dot { background: var(--color-gold); color: var(--color-navy); }
.wizard-step span.label { font-size: .75rem; color: var(--color-text-muted); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.upload-dropzone { border: 2px dashed var(--color-grey); border-radius: 12px; padding: 36px; text-align: center; cursor: pointer; color: var(--color-text-muted); }
.upload-dropzone.dragover { border-color: var(--color-gold); background: rgba(196,154,85,.06); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.upload-preview .thumb { position: relative; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; }
.upload-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .thumb button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: .7rem; line-height: 1; }
.review-box { background: var(--color-grey); border-radius: var(--radius); padding: 24px; }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .92rem; }
.review-row dt { color: var(--color-text-muted); }

/* Footer */
footer.site-footer { background: var(--color-navy); color: rgba(255,255,255,.85); padding: 56px 0 24px; }
footer.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; }
footer.site-footer a:hover { color: var(--color-gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }

/* Floating buttons */
.floating-actions { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-call { background: var(--color-navy); color: #fff; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #e4f6ea; color: #1e7b3f; }
.alert-error { background: #fbe7e5; color: #a3291a; }

/* Badges (admin statuses reused on confirmation page) */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-new { background: #e7ecff; color: #3049c9; }
.badge-pending { background: #fff3cd; color: #8a6d1f; }
.badge-confirmed { background: #d9f3e4; color: #1e7b3f; }
.badge-in_progress { background: #dff1fb; color: #1b6a95; }
.badge-completed { background: #e4e4e4; color: #3a3a3a; }
.badge-cancelled { background: #fbe0e0; color: #a3291a; }

.skip-link { position: absolute; left: -999px; top: auto; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 10px; z-index: 1000; }
