/* ============================================================
   Static Trader — Main Stylesheet
   High-conversion, mobile-first design
   ============================================================ */

/* ---- Reset & Custom Properties ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2e4a;
  --navy-dark:   #0f1e32;
  --navy-light:  #243a5e;
  --orange:      #C9A84C;
  --orange-dark: #A8872A;
  --orange-light:#D9BE73;
  --green:       #16a34a;
  --red:         #dc2626;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  all .2s ease;
  --container:   1200px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ---- Container ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-size: .9375rem;
  font-weight: 600; transition: var(--transition); border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.0625rem; border-radius: 10px; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}

.site-logo { flex-shrink: 0; }
.logo-text { font-size: 1.375rem; font-weight: 800; color: var(--navy); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem;
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.main-nav a:hover { background: var(--bg); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 6px; font-size: .9rem;
  font-weight: 600; color: var(--navy);
}
.header-phone:hover { color: var(--orange); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--white); }
.mobile-nav ul { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 16px; border-radius: 8px; font-weight: 500; color: var(--text); }
.mobile-nav a:hover, .mobile-nav .cta-link { background: var(--orange); color: var(--white); }
.mobile-nav .cta-link { font-weight: 600; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}
@media (max-width: 640px) {
  .header-cta .btn { display: none; }
}
.mobile-nav.open { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white); padding: 80px 0 100px; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--white); clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px; padding: 6px 16px; font-size: .875rem; font-weight: 500;
  margin-bottom: 20px; color: rgba(255,255,255,.95);
}
.hero h1 { color: var(--white); margin-bottom: 8px; }
.hero-sub { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--orange-light); font-weight: 700; margin-bottom: 20px; }
.hero-desc { font-size: 1.0625rem; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 12px 18px;
}
.trust-item .trust-value { font-size: 1.25rem; font-weight: 800; color: var(--white); }
.trust-item .trust-label { font-size: .8125rem; color: rgba(255,255,255,.7); }

.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  color: var(--text);
}
.hero-card h3 { color: var(--navy); margin-bottom: 6px; }
.hero-card p { margin-bottom: 24px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 80px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow { color: var(--orange); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.0625rem; max-width: 560px; margin: 0 auto; }

.steps-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card { text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step-card p { font-size: .9375rem; }

/* ============================================================
   FEATURED CARAVANS
   ============================================================ */
.featured-caravans { padding: 80px 0; }
.caravan-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .caravan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .caravan-grid { grid-template-columns: repeat(3, 1fr); } }

.caravan-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.caravan-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.caravan-card:hover .card-title { color: var(--orange); }

.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.caravan-card:hover .card-image img { transform: scale(1.04); }
.card-image .no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-light); font-size: .875rem; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.card-badge.sold { background: var(--text-muted); color: #fff; }

/* DG / CH badges — bottom of card image */
.card-img-badges {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card-img-badge {
  background: rgba(10, 20, 40, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.15);
}

.card-body { padding: 20px; }
.card-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; transition: var(--transition); line-height: 1.3; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-meta span {
  display: flex; align-items: center; gap: 5px; font-size: .8125rem;
  color: var(--text-muted); font-weight: 500;
}
.card-price { font-size: 1.375rem; font-weight: 800; color: var(--navy); }
.card-price.poa { color: var(--text-muted); font-size: 1rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ============================================================
   WHY SELL WITH US — Trust section
   ============================================================ */
.why-sell { padding: 80px 0; background: var(--navy); color: var(--white); }
.why-sell h2 { color: var(--white); }
.why-sell .section-header p { color: rgba(255,255,255,.7); }

.features-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px;
}
.feature-icon {
  width: 52px; height: 52px; background: var(--orange);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--white);
}
.feature-card h3 { color: var(--white); margin-bottom: 8px; }
.feature-card p { color: rgba(255,255,255,.65); font-size: .9375rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--orange); color: var(--white); padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.0625rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-section { padding: 80px 0; background: var(--bg); }
.blog-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: 22px; }
.blog-category-pill {
  display: inline-block; background: var(--bg); color: var(--orange);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.blog-card-body p { font-size: .9rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--text-muted); }

/* ============================================================
   SELL YOUR CARAVAN PAGE
   ============================================================ */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.0625rem; }

.sell-section { padding: 64px 0; }
.sell-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .sell-layout { grid-template-columns: 1fr 400px; } }

.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; }
.form-card h2 { margin-bottom: 24px; font-size: 1.375rem; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
label .required { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], select, textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 8px; font-size: .9375rem; color: var(--text);
  background: var(--white); transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange); background: #fffbf5;
}
input.error, select.error, textarea.error { border-color: var(--red); }
.field-error { font-size: .8125rem; color: var(--red); margin-top: 4px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 100px; }

.form-submit { margin-top: 28px; }
.form-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 24px; text-align: center; display: none; }
.form-success.show { display: block; }
.form-success h3 { color: var(--green); margin-bottom: 8px; }

.sell-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--bg); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); }
.sidebar-card h3 { font-size: 1.125rem; margin-bottom: 16px; }
.benefit-list { display: flex; flex-direction: column; gap: 12px; }
.benefit-item { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; }
.benefit-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.call-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.call-card h3 { color: var(--white); margin-bottom: 8px; }
.call-card p { color: rgba(255,255,255,.75); margin-bottom: 20px; }
.call-number { font-size: 1.5rem; font-weight: 800; color: var(--orange-light); display: block; }

/* ============================================================
   CARAVAN LISTING PAGE
   ============================================================ */
.listing-section { padding: 48px 0 80px; }
.listing-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.listing-count { font-size: .9375rem; color: var(--text-muted); }

.filter-bar { background: var(--bg); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; border: 1px solid var(--border); }
.filter-bar form { display: grid; gap: 12px; }
@media (min-width: 640px) { .filter-bar form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.filter-bar .btn { align-self: end; }
.filter-search { grid-column: 1 / -1; }
@media (min-width: 640px) { .filter-search { grid-column: auto; } }

/* ============================================================
   CARAVAN DETAIL PAGE
   ============================================================ */
.caravan-detail { padding: 48px 0 80px; }
.detail-layout { display: grid; gap: 48px; }
@media (min-width: 960px) { .detail-layout { grid-template-columns: 1fr 380px; align-items: start; } }

.gallery { margin-bottom: 32px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-price-box { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--orange-light); margin-bottom: 16px; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.spec-item { background: rgba(255,255,255,.08); border-radius: 8px; padding: 12px; }
.spec-label { font-size: .75rem; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.spec-value { font-weight: 700; color: var(--white); }
.detail-features { margin: 24px 0; }
.detail-features h3 { margin-bottom: 14px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: .8125rem; font-weight: 500; color: var(--text); }

.enquiry-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.enquiry-form-card h3 { margin-bottom: 20px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-layout { display: grid; gap: 48px; }
@media (min-width: 960px) { .blog-layout { grid-template-columns: 1fr 300px; } }
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.widget h4 { margin-bottom: 16px; font-size: 1rem; color: var(--navy); }
.category-list li { margin-bottom: 4px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 6px; font-size: .9rem; transition: var(--transition); color: var(--text); }
.category-list a:hover { background: var(--white); color: var(--orange); }
.cat-count { background: var(--border); color: var(--text-muted); border-radius: 10px; padding: 1px 8px; font-size: .75rem; font-weight: 600; }

.blog-post-hero { background: var(--navy); padding: 64px 0; }
.blog-post-hero h1 { color: var(--white); margin-bottom: 16px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .875rem; }
.post-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.post-content h2, .post-content h3 { margin: 2em 0 .75em; }
.post-content p { margin-bottom: 1.25em; }
.post-content img { border-radius: var(--radius); margin: 2em 0; }
.post-content ul, .post-content ol { margin: 1em 0 1em 1.5em; }
.post-content li { margin-bottom: .5em; }
.post-content a:not(.btn) { color: var(--orange); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--orange); padding-left: 20px; margin: 2em 0; font-style: italic; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 64px 0; }
.contact-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info h2 { margin-bottom: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand p { font-size: .9375rem; margin-top: 16px; max-width: 280px; }
.footer-logo .logo-text { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 8px; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-social a:hover { background: var(--orange); color: var(--white); }

.footer-links h4 { color: var(--white); font-size: .9375rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-contact h4 { color: var(--white); margin-bottom: 16px; font-size: .9375rem; }
.footer-contact address { font-style: normal; font-size: .9rem; }
.footer-contact a:hover { color: var(--orange); }
.footer-contact p { margin-bottom: 6px; }
.footer-trust { margin-top: 20px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8125rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
}
.whatsapp-float:hover { background: #20b558; transform: scale(1.08); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; font-weight: 600; font-size: .875rem;
  border: 2px solid var(--border); color: var(--text); transition: var(--transition);
}
.pagination a:hover, .pagination a.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy  { color: var(--navy); }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.grid-cta { display: grid; place-items: center; margin-top: 48px; }

/* Alert */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .9375rem; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* Error pages */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 48px 20px; }
.error-page h1 { font-size: 6rem; color: var(--border); }

/* Section divider */
.section-divider { height: 2px; background: var(--border); margin: 0; }

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */
#video-lb {
  display: flex;
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  -webkit-overflow-scrolling: touch;
}
#video-lb.open {
  opacity: 1;
  pointer-events: auto;
}

#video-lb-inner {
  background: #111;
  border-radius: 12px;
  width: 100%; max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,.7);
  transform: scale(.96);
  transition: transform .2s ease;
}
#video-lb.open #video-lb-inner { transform: scale(1); }

#video-lb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#video-lb-label  { color: rgba(255,255,255,.9); font-weight: 600; font-size: .9rem; }
#video-lb-counter { color: rgba(255,255,255,.45); font-size: .8rem; }
#video-lb-close {
  background: none; border: none; color: #fff;
  font-size: 1.75rem; line-height: 1; cursor: pointer;
  opacity: .7; padding: 0 4px; transition: opacity .15s;
}
#video-lb-close:hover { opacity: 1; }

#video-lb-stage { background: #000; position: relative; }
#vlb-video  { width: 100%; max-height: 72vh; display: block; background: #000; }
#vlb-iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }

#video-lb-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; gap: 10px;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  #video-lb { padding: 12px; }
  #video-lb-inner { border-radius: 8px; }
  #vlb-video { max-height: 50vh; }
  #video-lb-nav .btn { padding: 8px 12px; font-size: .8rem; }
  #video-lb-topbar { padding: 10px 14px; }
}
#video-lb-dots { display: flex; gap: 8px; align-items: center; }
.vlb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: none; cursor: pointer;
  transition: background .15s, transform .15s;
  padding: 0;
}
.vlb-dot.active { background: var(--orange); transform: scale(1.3); }
#video-lb-nav .btn { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); }
#video-lb-nav .btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============================================================
   VIDEO THUMBNAIL (gallery + admin)
   ============================================================ */
.vid-thumb-wrap {
  position: relative;
  width: 100%; height: 100%;
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vid-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--navy);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.gallery-thumb.vid-thumb-wrap { background: #111; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, .92);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 24px;
  animation: lb-fade .18s ease;
}
#lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

#lightbox-img {
  max-width: 100%; max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: lb-scale .18s ease;
}
@keyframes lb-scale { from { transform: scale(.96); } to { transform: scale(1); } }

#lightbox-caption {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  margin-top: 14px;
  text-align: center;
  max-width: 600px;
}

#lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2.25rem; line-height: 1;
  cursor: pointer; opacity: .8;
  transition: opacity .15s;
  padding: 4px 10px;
}
#lightbox-close:hover { opacity: 1; }
