/* ==========================================================================
   Used TV Buyer in Dubai — main stylesheet
   Palette: black / white / blue / gold
   ========================================================================== */
:root {
  --black: #0b0f19;
  --black-2: #141a28;
  --white: #ffffff;
  --off-white: #f6f7fb;
  --grey: #e4e7ef;
  --text: #1c2130;
  --muted: #5e6578;
  --blue: #1a5cff;
  --blue-dark: #0f3fc2;
  --blue-light: #e6edff;
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --whatsapp: #25d366;
  --whatsapp-dark: #1aa953;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 15, 25, .08);
  --shadow-lg: 0 24px 60px rgba(11, 15, 25, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--black); font-weight: 700; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
address { font-style: normal; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.h3 { font-size: 1.2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; white-space: nowrap; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-bottom: .6rem; }
.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,15,25,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark { color: var(--white); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text span, .brand-light span { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.brand-light { flex-direction: column; align-items: flex-start; margin-bottom: 1rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: #fff; margin-inline: auto; transition: transform .2s, opacity .2s; }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.primary-nav > ul > li { position: relative; }
.primary-nav a { color: rgba(255,255,255,.85); padding: .55rem .75rem; display: block; border-radius: 8px; font-weight: 500; font-size: .93rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.submenu-toggle { display: none; }
.submenu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--black-2); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-children:hover .submenu, .has-children:focus-within .submenu, .has-children.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: .55rem .8rem; font-size: .9rem; }
.nav-cta { display: flex; gap: .5rem; }

/* Breadcrumbs */
.breadcrumbs { background: var(--off-white); border-bottom: 1px solid var(--grey); font-size: .86rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: .6rem 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .4rem; color: var(--muted); }
.breadcrumbs li[aria-current] { color: var(--muted); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, rgba(26,92,255,.35), transparent 60%), linear-gradient(135deg, var(--black) 0%, #0e1a3d 100%); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.25), transparent 65%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1rem; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: .4rem; }
.hero-media { margin: 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

.page-hero { background: linear-gradient(135deg, var(--black) 0%, #0e1a3d 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.82); }
.page-hero.compact .lead { max-width: 70ch; }
.page-hero .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.page-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.page-hero-media { margin: 0; filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.alt-bg { background: var(--off-white); }
.section-title { text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 70ch; margin: -0.4rem auto 2.2rem; }
.intro-section { padding-bottom: 1rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; background: var(--black-2); aspect-ratio: 20 / 13; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 a, .card-body h2 a { color: var(--black); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-dark); }
.post-meta { font-size: .85rem; color: var(--muted); }

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.brand-card { background: #fff; border-left: 4px solid var(--gold); border-radius: 10px; padding: 1.6rem; box-shadow: var(--shadow); }
.brand-card h3 a { color: var(--black); }

/* Feature sections */
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-inner.reverse .feature-media { order: 2; }
.feature-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--black-2); }
.feature-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: var(--black); color: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; position: relative; }
.step h3 { color: #fff; margin-top: .4rem; }
.step p { color: rgba(255,255,255,.78); margin: 0; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--black); font-weight: 800; font-size: 1.2rem; }

/* Areas */
.area-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.area-chips a { display: inline-block; padding: .55rem 1.1rem; background: #fff; border: 1px solid var(--grey); border-radius: 999px; color: var(--text); font-weight: 500; font-size: .93rem; }
.area-chips a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.content-main .area-chips { justify-content: flex-start; }

/* Promo banner */
.promo-banner-section { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.promo-banner { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); line-height: 0; }
.promo-banner img { width: 100%; height: auto; }
.promo-banner a { display: block; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.trust-item { padding: 1.5rem; border-radius: var(--radius); background: var(--blue-light); }
.trust-item h3 { font-size: 1.05rem; color: var(--blue-dark); }
.trust-item p { margin: 0; font-size: .95rem; color: var(--text); }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--grey); border-radius: 12px; padding: 0 1.3rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); font-weight: 300; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-answer { padding-bottom: 1.1rem; color: var(--muted); }

/* Content layout */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.content-block { margin-bottom: 2.5rem; }
.content-block h2 { font-size: 1.6rem; }
.content-block h3 { margin-top: 1.4rem; }
.content-side { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 90px; align-self: start; }
.side-card { background: var(--off-white); border-radius: var(--radius); padding: 1.5rem; }
.side-card h2 { font-size: 1.1rem; }
.side-contact { background: var(--black); color: #fff; }
.side-contact h2 { color: #fff; }
.side-contact .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.side-contact a:not(.btn) { color: var(--gold); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { padding: .4rem 0; border-bottom: 1px solid var(--grey); }
.side-links li:last-child { border: 0; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.bundle-item { margin: 0; background: var(--off-white); border-radius: 12px; overflow: hidden; }
.bundle-item img { width: 100%; background: var(--black-2); }
.bundle-item figcaption { padding: 1rem; }
.bundle-item h3 { font-size: 1rem; margin-top: 0; }
.bundle-item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Forms */
.lead-form { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="datetime-local"], select, textarea { width: 100%; padding: .8rem .95rem; border: 1px solid #cfd4e0; border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea { resize: vertical; }
.form-note, .form-privacy { font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .95rem; }
.alert-success { background: #e6f7ec; color: #176a35; border: 1px solid #b7e4c7; }
.alert-error { background: #fdeaea; color: #8d1f1f; border: 1px solid #f5bcbc; }
.alert-warning { background: #fff6dc; color: #7a5a00; border: 1px solid #f3dd94; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--grey); }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.contact-list a { font-size: 1.1rem; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Blog */
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.blog-cats a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--grey); font-size: .9rem; color: var(--text); }
.blog-cats a[aria-current], .blog-cats a:hover { background: var(--black); color: #fff; border-color: var(--black); text-decoration: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem; }
.post-header { background: var(--off-white); padding: 3rem 0 2rem; }
.post-featured { margin: 2rem auto; border-radius: var(--radius); overflow: hidden; }
.post-content { padding: 1rem 0 2rem; font-size: 1.06rem; }
.post-content h2 { margin-top: 2rem; }
.post-content img { border-radius: 10px; }
.post-content blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .5rem 1.2rem; background: var(--off-white); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content th, .post-content td { border: 1px solid var(--grey); padding: .6rem .8rem; text-align: left; }
.post-cta { padding-bottom: 3rem; }

/* Legal / sitemap / error */
.legal-content { padding: 2.5rem 0 4rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding: 3rem 0 4rem; }
.sitemap-grid h2 { font-size: 1.15rem; border-bottom: 2px solid var(--gold); padding-bottom: .4rem; }
.sitemap-grid ul { list-style: none; padding: 0; }
.sitemap-grid ul ul { padding-left: 1rem; }
.sitemap-grid li { padding: .25rem 0; }
.error-page { min-height: 50vh; }
.error-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); padding-top: 4rem; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.footer-col li { padding: .25rem 0; font-size: .93rem; }
.footer-col address p { margin: 0 0 .4rem; font-size: .93rem; }
.footer-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }

/* Floating CTA */
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; z-index: 90; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .15s; }
.float-btn:hover { transform: scale(1.06); color: #fff; }
.float-whatsapp { background: var(--whatsapp); }
.float-call { background: var(--blue); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .page-hero-inner, .feature-inner, .contact-grid { grid-template-columns: 1fr; }
  .feature-inner.reverse .feature-media { order: 0; }
  .content-layout { grid-template-columns: 1fr; }
  .content-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-media, .hero-media { max-width: 560px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; align-items: center; }
  .primary-nav > ul > li > a { flex: 1; padding: .9rem .4rem; font-size: 1.05rem; }
  .submenu-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
  .submenu-toggle::after { content: "▾"; font-size: 1.1rem; color: var(--gold); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; padding: 0 0 .6rem 1rem; }
  .has-children.open .submenu { display: block; }
  .nav-cta { flex-direction: column; margin-top: 1.5rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 1.4rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
