/*
Theme Name: Scrap Any Van Or Car
Theme URI: https://scrapanyvanorcar.co.uk
Author: Scrap Any Van Or Car
Description: Custom theme for Scrap Any Van Or Car — Portsmouth scrap car & van collection service.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: scrapanyvanorcar
*/

:root {
  --coral: #e8553d;
  --coral-dark: #c9412d;
  --navy: #0d1b2a;
  --slate: #1b2838;
  --sand: #faf6f1;
  --cream: #fff8f0;
  --warm-gray: #6b6560;
  --gold: #d4a853;
  --gold-light: #f0d68a;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--sand);
  overflow-x: hidden;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Pill Bar ── */
.pill-bar {
  background: var(--navy);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: .3px;
}
.pill-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-bar a { color: #fff; }
.pill-bar a:hover { color: var(--gold-light); text-decoration: none; }
.pill-contacts { display: flex; gap: 18px; align-items: center; }
.pill-contacts a { display: inline-flex; align-items: center; gap: 6px; }
.pill-contacts svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill-badge {
  background: var(--coral);
  color: #fff;
  padding: 3px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Header ── */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 115px;
}
.brand { font-size: 26px; font-weight: 900; color: var(--navy); letter-spacing: -1px; }
.brand i { font-style: normal; color: var(--coral); }

.main-nav ul { display: flex; list-style: none; gap: 32px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width .25s;
}
.main-nav a:hover { text-decoration: none; }
.main-nav a:hover::after { width: 100%; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  position: absolute;
  left: 6px;
  transition: .3s;
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 24px; }

/* ── Hero ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 110px);
}
.hero-left {
  background: linear-gradient(160deg, var(--cream) 0%, #fde8d8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px 60px 0;
  padding-left: max(24px, calc((100vw - 1140px) / 2 + 24px));
}
.hero-left .tag {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  width: fit-content;
}
.hero-left h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-left h1 .em { color: var(--coral); }
.hero-left > p {
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 480px;
  margin-bottom: 32px;
}

.quote-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  max-width: 500px;
}
.quote-card h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.quote-card .fields { display: flex; flex-direction: column; gap: 12px; }
.quote-card input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e8e4df;
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--sand);
  color: var(--navy);
  text-transform: uppercase;
  transition: border-color .2s;
}
.quote-card input::placeholder { text-transform: none; color: #aaa; }
.quote-card input:focus { outline: none; border-color: var(--coral); }
.quote-card .btn-row { display: flex; gap: 10px; margin-top: 4px; }

.hero-right {
  background:
    linear-gradient(135deg, rgba(232,85,61,.15), rgba(212,168,83,.1)),
    url('images/hero.jpg') center/cover;
  position: relative;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 15%);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--slate); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Photo Strip ── */
.photo-strip { padding: 60px 0; background: var(--sand); }
.photo-strip h2 { text-align: center; font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 30px; }
.photo-strip h2 .em { color: var(--coral); }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-row figure { border-radius: var(--radius-xl); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.photo-row figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-row figure:hover img { transform: scale(1.05); }
.photo-row figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 20px 16px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* ── Marquee ── */
.marquee-strip {
  background: var(--navy);
  color: var(--gold-light);
  padding: 14px 0;
  overflow: hidden;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.marquee-inner { display: flex; gap: 60px; animation: scroll-left 20s linear infinite; width: max-content; }
.marquee-inner span { white-space: nowrap; }
.marquee-inner span::before { content: '✦ '; color: var(--coral); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Process ── */
.process { padding: 90px 0; }
.process .section-label { text-align: center; color: var(--coral); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }
.process h2 { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 50px; }
.process-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process-item {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .3s;
}
.process-item:hover { transform: translateY(-6px); }
.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -10px; right: 16px;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(232,85,61,.06);
  line-height: 1;
}
.process-item .icon-circle {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--coral), #f4845f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}
.process-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-item p { color: var(--warm-gray); font-size: .95rem; }

/* ── Bento Grid ── */
.bento { padding: 90px 0; background: #fff; }
.bento h2 { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 40px; }
.bento h2 .em { color: var(--coral); }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card { border-radius: var(--radius-xl); padding: 36px; position: relative; overflow: hidden; }
.b1 { grid-column: 1 / 8; background: var(--sand); }
.b2 { grid-column: 8 / 13; background: var(--navy); color: #fff; }
.b2 h3 { color: var(--gold-light); }
.b3 { grid-column: 1 / 5; background: var(--coral); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.b3 .big-num { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.b3 p { opacity: .9; margin-top: 4px; }
.b4 { grid-column: 5 / 13; background: linear-gradient(135deg, #fde8d8, #faf6f1); }
.bento-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.bento-card p { color: var(--warm-gray); line-height: 1.7; }
.b2 p { color: rgba(255,255,255,.75); }

/* ── Image Banner ── */
.img-banner { position: relative; height: 340px; overflow: hidden; }
.img-banner img { width: 100%; height: 100%; object-fit: cover; }
.img-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.8), rgba(232,85,61,.5));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.img-banner .overlay h2 { font-size: 2rem; font-weight: 900; letter-spacing: -1px; max-width: 600px; }
.img-banner .overlay h2 span { color: var(--gold-light); }

/* ── Vehicles ── */
.vehicles-section { padding: 90px 0; background: linear-gradient(170deg, var(--navy) 0%, var(--slate) 100%); color: #fff; }
.vehicles-section .section-label { color: var(--gold-light); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; text-align: center; }
.vehicles-section h2 { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 50px; }
.v-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.v-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); overflow: hidden; text-align: center; transition: background .3s, transform .3s; }
.v-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.v-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.v-card h3 { color: var(--gold-light); margin-bottom: 10px; font-size: 1.1rem; padding: 24px 24px 0; }
.v-card p { color: rgba(255,255,255,.65); font-size: .93rem; padding: 0 24px 28px; }
.vehicles-section .center { text-align: center; }

/* ── CTA Banner ── */
.cta-banner { padding: 80px 0; background: linear-gradient(135deg, var(--coral) 0%, #f4845f 50%, var(--gold) 100%); color: #fff; text-align: center; }
.cta-banner h2 { font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; opacity: .92; max-width: 550px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn-dark { background: var(--navy); }
.cta-btns .btn-dark:hover { background: #000; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .3px; }
.site-footer p { font-size: .93rem; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: var(--gold-light); text-decoration: none; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.site-footer li a { display: inline-flex; align-items: center; gap: 6px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .25s; }
.footer-socials a:hover { background: var(--coral); border-color: var(--coral); }
.footer-socials svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; font-size: .82rem; opacity: .5; }

/* ── WhatsApp Widget ── */
.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-fab { width: 62px; height: 62px; background: var(--whatsapp); border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.35); transition: transform .25s, box-shadow .25s; position: relative; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.45); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab .pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--whatsapp); animation: wa-pulse 2s infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }
.wa-chat { display: none; width: 340px; background: #fff; border-radius: var(--radius-xl); box-shadow: 0 12px 48px rgba(0,0,0,.15); overflow: hidden; animation: wa-in .3s ease; }
.wa-chat.open { display: block; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wa-chat-head { background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); padding: 18px 20px; display: flex; align-items: center; gap: 14px; color: #fff; }
.wa-chat-head .ava { width: 46px; height: 46px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.wa-chat-head .info h4 { font-size: .95rem; margin-bottom: 2px; }
.wa-chat-head .info small { opacity: .85; font-size: .78rem; }
.wa-chat-x { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px; }
.wa-chat-body { padding: 20px; background: #e5ddd5; }
.wa-bubble { background: #fff; padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) var(--radius); font-size: .9rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.08); position: relative; margin-bottom: 16px; }
.wa-bubble::before { content: ''; position: absolute; top: 0; left: -8px; border: 8px solid transparent; border-top-color: #fff; border-right-color: #fff; }
.wa-bubble .ts { display: block; text-align: right; color: #999; font-size: .72rem; margin-top: 6px; }
.wa-chat-foot { padding: 14px 16px; background: #f0f0f0; display: flex; gap: 10px; }
.wa-chat-foot input { flex: 1; padding: 11px 16px; border: none; border-radius: 24px; font-size: .9rem; background: #fff; outline: none; }
.wa-chat-foot button { width: 42px; height: 42px; background: var(--whatsapp); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.wa-chat-foot button:hover { background: var(--whatsapp-dark); }
.wa-chat-foot button svg { width: 18px; height: 18px; fill: #fff; }

/* ── Back to Top ── */
.btt { position: fixed; bottom: 100px; right: 30px; width: 42px; height: 42px; background: var(--navy); color: #fff; border: none; border-radius: 50%; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 998; font-size: 1.1rem; }
.btt.show { opacity: 1; pointer-events: auto; }
.btt:hover { background: var(--coral); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 50px 24px; }
  .process-track, .v-cards { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .b1, .b2, .b3, .b4 { grid-column: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .burger { display: block; }
  .main-nav ul {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-bottom: 2px solid var(--coral);
  }
  .main-nav ul.open { display: flex; }
  .pill-bar .wrap { justify-content: center; text-align: center; }
  .pill-contacts { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .quote-card .btn-row { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.8rem; }
  .wa-chat { width: 300px; }
  .photo-row { grid-template-columns: 1fr; }
}

.brand .site-logo { height: 105px; width: auto; display: block; }
@media (max-width: 600px) { .brand .site-logo { height: 77px; } }
