/*
Theme Name: Vision Quest Trading
Theme URI: https://example.com/
Author: Ignite Media
Description: One-page company website for VISION QUEST TRADING L.L.C, UAE food and beverage supplier.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vision-quest
*/
:root {
  --ink: #0f1613;
  --paper: #ffffff;
  --stone: #f3f3f0;
  --line: #e2e2dd;
  --text: #1a1f1c;
  --muted: #5d6460;
  --gold: #c2a05f;
  --gold-deep: #8a6c31;
  --on-dark: #f4f4f1;
  --on-dark-2: rgba(244, 244, 241, .74);
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --arabic: "Noto Kufi Arabic", "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; scrollbar-color: #b9bbb6 var(--paper); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[lang="ar"] { font-family: var(--arabic); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--on-dark); text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d3b475; }
.btn-ghost { color: var(--on-dark); border-color: rgba(244, 244, 241, .45); }
.btn-ghost:hover { background: rgba(244, 244, 241, .1); border-color: var(--on-dark); }

/* header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.header.scrolled, .header.menu-open { background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 32px; transition: padding .4s var(--ease); }
.header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text b { display: block; font-size: 1.0625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-text small { display: block; margin-top: 4px; font-size: .6875rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .72; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .9; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 22, 19, .65) 0%, rgba(15, 22, 19, .35) 30%, rgba(15, 22, 19, .9) 100%), linear-gradient(90deg, rgba(15, 22, 19, .85) 0%, rgba(15, 22, 19, .2) 75%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 160px var(--gutter) clamp(56px, 8vw, 96px); }
.hero-place { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { margin-top: 22px; max-width: 13em; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-lede { margin-top: 26px; max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-strip { border-top: 1px solid rgba(244, 244, 241, .16); background: rgba(15, 22, 19, .4); }
.marquee { overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { flex: none; padding: 0 22px; font-size: .9375rem; font-weight: 500; color: var(--on-dark-2); white-space: nowrap; position: relative; }
.marquee-track span[lang="ar"] { color: var(--gold); }
.marquee-track span:not([lang="ar"])::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: rgba(244, 244, 241, .35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* section heads */
.section h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.1; letter-spacing: -.03em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); max-width: 32em; justify-self: end; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy h2 { max-width: 14em; }
.about-copy > p { margin-top: 24px; color: var(--muted); max-width: 34em; }
.about-copy > p + p { margin-top: 16px; }
.facts { margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 16px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; color: var(--gold-deep); line-height: 1; }
.facts dd { margin: 10px 0 0; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.about-media { position: relative; aspect-ratio: 5 / 5.4; }
.about-img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-a { inset: 0 18% 14% 0; }
.about-img-b { width: 46%; aspect-ratio: 4 / 5; right: 0; bottom: 0; border: 8px solid var(--paper); border-radius: calc(var(--radius) + 6px); box-shadow: 0 24px 50px -24px rgba(15, 22, 19, .45); }

/* products */
.products { background: var(--stone); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(340px, 30vw, 420px); gap: 16px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); isolation: isolate; }
.cat-wide { grid-column: span 2; }
.cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 22, 19, 0) 25%, rgba(15, 22, 19, .55) 55%, rgba(15, 22, 19, .94) 100%); }
.cat:hover img { transform: scale(1.05); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.4vw, 32px); }
.cat-ar { font-size: .9375rem; color: var(--gold); margin-bottom: 8px; text-align: left; }
.cat h3 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.cat-body > p:last-child { margin-top: 10px; max-width: 30em; font-size: .9375rem; color: var(--on-dark-2); line-height: 1.55; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.why-head p { margin-top: 20px; color: var(--muted); max-width: 22em; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.why-list li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.why-list li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.why-list svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-list h3 { margin-top: 22px; font-size: 1.25rem; letter-spacing: -.01em; }
.why-list p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* process */
.process { position: relative; color: var(--on-dark); background: var(--ink); isolation: isolate; overflow: hidden; }
.process-media { position: absolute; inset: 0; z-index: -1; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-media::after { content: ""; position: absolute; inset: 0; background: rgba(15, 22, 19, .84); }
.process h2 { max-width: 12em; }
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; padding: 28px 28px 0 0; border-top: 1px solid rgba(244, 244, 241, .22); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.steps li + li { padding-left: 28px; }
.steps li + li::before { left: 28px; }
.step-n { font-size: .8125rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 18px; font-size: 1.375rem; letter-spacing: -.01em; }
.steps p { margin-top: 10px; color: var(--on-dark-2); font-size: 1rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy > p { margin-top: 20px; color: var(--muted); max-width: 30em; }
.contact-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-deep); text-decoration: underline; }
.form { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 44px); background: var(--stone); border-radius: calc(var(--radius) + 4px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label { font-size: .875rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6460' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9cac4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(194, 160, 95, .22); }
.field textarea::placeholder { color: #767c78; }
.field.invalid input { border-color: #b3261e; }
.err { display: none; font-size: .8125rem; color: #b3261e; }
.field.invalid .err { display: block; }
.form .btn { justify-self: start; }
.form-status { font-size: .9375rem; min-height: 1.4em; color: var(--gold-deep); font-weight: 600; }

/* footer */
.footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 40px; align-items: start; padding-bottom: 48px; }
.footer-note { margin-top: 18px; color: var(--on-dark-2); font-size: .9375rem; max-width: 26em; }
.footer-grid > .footer-note { margin-top: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-base { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(244, 244, 241, .14); font-size: .8125rem; color: var(--on-dark-2); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); color: var(--text); box-shadow: 0 12px 30px -12px rgba(15, 22, 19, .25); }
  .nav.open ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
}
@media (max-width: 900px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { aspect-ratio: 5 / 4.6; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { justify-self: start; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand-text b { font-size: .9375rem; letter-spacing: .1em; }
  .hero-inner { padding-top: 130px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 360px; }
  .cat-wide { grid-column: auto; }
  .why-list { grid-template-columns: minmax(0, 1fr); }
  .why-list li, .why-list li:nth-child(even) { padding: 28px 0; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { padding-left: 0; }
  .steps li + li::before { left: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: 90px 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .marquee-track { animation: none; }
  .hero-media img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* WordPress admin bar (logged-in users only) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
