/*
Theme Name: Venus Express
Theme URI: https://venus-express.com
Author: Venus Express
Description: Custom WordPress theme for Venus Express Pte Ltd — Singapore freight forwarder. Mirrors the React design with editable menus, pages, and customizer fields.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: venus-express
*/

:root {
  --background: #f6f5f1;
  --surface: #f6f5f1;
  --ui-text: #1d1d1d;
  --ink: #14172a;
  --brand: #b8312d;
  --brand-90: #a52a26;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-900: #18181b;
  --zinc-950-5: rgba(9, 9, 11, 0.05);
  --zinc-950-10: rgba(9, 9, 11, 0.1);
  --radius: 6px;
  --max-w: 1280px;
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ui-text);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--zinc-950-5);
  background: rgba(246,245,241,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.site-header__left { display: flex; align-items: center; gap: 32px; }
.site-header__logo img { height: 68px; width: auto; }
.site-nav { display: none; align-items: center; gap: 24px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: 14px; font-weight: 500; transition: color .15s;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-parent > a {
  color: var(--brand);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.site-nav .menu-item-has-children { position: relative; }
.site-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.site-nav .sub-menu {
  position: absolute; left: 0; top: 100%;
  display: flex; flex-direction: column; gap: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--zinc-950-10);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: all .15s;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub-menu li { width: 100%; }
.site-nav .sub-menu a {
  display: block; padding: 8px 12px; border-radius: 4px;
  color: var(--zinc-700);
}
.site-nav .sub-menu a:hover { background: var(--zinc-100); color: var(--brand); }

.site-header__right { display: flex; align-items: center; gap: 16px; }
.client-login { padding: 8px 12px; font-size: 14px; font-weight: 500; }
.client-login:hover { color: var(--brand); }
.btn-quote {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff !important;
  padding: 8px 16px 8px 12px;
  font-size: 14px; font-weight: 500;
  border-radius: 4px; border: 1px solid var(--brand);
  transition: background .15s;
}
.btn-quote:hover { background: var(--brand-90); }
.btn-quote::before { content: ""; display: inline-block; width: 12px; height: 2px; background: currentColor; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--zinc-950-10);
  border-radius: 6px; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ui-text); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.mobile-nav { display: none; padding: 16px 24px; border-top: 1px solid var(--zinc-950-5); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; }
.mobile-nav .sub-menu a { padding-left: 16px; font-weight: 400; color: var(--zinc-600); }

/* ---------- Hero (home) ---------- */
.hero { padding: 80px 0; }
@media (min-width: 1024px) { .hero { padding: 128px 0; } }
.hero__grid { display: flex; flex-direction: column; gap: 64px; }
@media (min-width: 1024px) { .hero__grid { flex-direction: row; } }
.hero__copy { flex: 0 0 65%; }
.hero__visual { flex: 0 0 35%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--zinc-950-5); padding: 4px 8px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 4px; margin-bottom: 32px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05; margin-bottom: 32px;
}
.hero__lead {
  max-width: 48ch; font-size: 18px; color: var(--zinc-600); margin-bottom: 40px;
}
@media (min-width: 1024px) { .hero__lead { font-size: 20px; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 24px;
  font-size: 14px; font-weight: 500; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #1f2340; }
.btn-ghost { background: transparent; border-color: var(--zinc-950-10); }
.btn-ghost:hover { background: var(--zinc-950-5); }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-90); }
.hero__image img {
  aspect-ratio: 3/4; width: 100%; object-fit: cover;
  border-radius: 12px; outline: 1px solid rgba(0,0,0,.05); outline-offset: -1px;
}

/* ---------- Services grid (home) ---------- */
.section-services { background: rgba(244,244,245,0.5); border-top: 1px solid var(--zinc-950-5); border-bottom: 1px solid var(--zinc-950-5); padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.section-head h2 { font-size: 30px; margin-bottom: 16px; }
.section-head__lead { max-width: 56ch; color: var(--zinc-600); }
.section-head__rule { display: none; flex: 1; height: 1px; background: var(--zinc-950-10); margin-bottom: 8px; }
@media (min-width: 768px) { .section-head__rule { display: block; } }
.svc-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--zinc-950-10);
  border: 1px solid var(--zinc-950-10); border-radius: 8px; overflow: hidden;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card {
  display: flex; flex-direction: column; background: var(--surface);
  transition: background .15s;
}
.svc-card:hover { background: var(--zinc-50); }
.svc-card__image { aspect-ratio: 4/3; width: 100%; overflow: hidden; background: var(--zinc-100); }
.svc-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card__image img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 32px; }
.svc-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(184,49,45,.08);
  color: var(--brand); border-radius: 4px;
  font-size: 12px; font-weight: 700; font-style: italic;
  margin-bottom: 24px;
}
.svc-card__title { font-weight: 600; margin-bottom: 12px; }
.svc-card__desc { font-size: 14px; color: var(--zinc-500); flex: 1; margin-bottom: 32px; }
.svc-card__tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }

/* ---------- Metrics ---------- */
.section-metrics { padding: 96px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric__value { font-size: 36px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.metric__label { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-400); }

/* ---------- Focus / dark band ---------- */
.section-focus { background: var(--ink); color: #fff; padding: 96px 0; }
.focus-grid { display: flex; flex-direction: column; align-items: center; gap: 80px; }
@media (min-width: 1024px) { .focus-grid { flex-direction: row; } }
.focus-grid > div { flex: 1; }
.focus-image { aspect-ratio: 1/1; width: 100%; object-fit: cover; border-radius: 12px; outline: 1px solid rgba(255,255,255,.1); outline-offset: -1px; }
.section-focus h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin-bottom: 32px; }
.section-focus .lead { color: rgba(255,255,255,.7); font-size: 18px; max-width: 40ch; margin-bottom: 32px; }
.focus-list { list-style: none; padding: 0; margin: 0 0 40px; }
.focus-list li {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.focus-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }

/* ---------- Page hero ---------- */
.page-hero { background: rgba(244,244,245,0.5); border-bottom: 1px solid var(--zinc-950-5); padding: 80px 0; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; }
.page-hero p { margin-top: 24px; max-width: 60ch; font-size: 18px; color: var(--zinc-600); }

/* ---------- Generic article / page body ---------- */
.page-section { padding: 80px 0; }
.prose { color: var(--zinc-700); line-height: 1.6; max-width: 75ch; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; color: var(--zinc-900); }
.prose h3 { font-size: 20px; margin: 32px 0 12px; color: var(--zinc-900); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose ul ul { list-style: circle; margin: 8px 0; }
.prose li { margin-bottom: 4px; }
.prose img { margin: 16px 0; border-radius: 8px; }
.prose a { color: var(--brand); text-decoration: underline; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-card { background: var(--zinc-100); padding: 24px; border-radius: 8px; margin-top: 32px; }
.about-card__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-block h2 { font-size: 20px; margin-bottom: 16px; }
.contact-block .lines p { font-size: 14px; color: var(--zinc-600); margin-bottom: 4px; }
.hours { list-style: none; padding: 0; margin: 0; border: 1px solid var(--zinc-950-10); border-radius: 8px; overflow: hidden; }
.hours li { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; }
.hours li:nth-child(odd) { background: var(--zinc-50); }
.hours .day { font-weight: 500; color: var(--zinc-700); }
.hours .time { color: var(--zinc-500); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--zinc-500); display: block; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--zinc-950-10);
  border-radius: 4px; font-family: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.form-notice { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.form-notice.success { background: #ecfdf5; color: #047857; }
.form-notice.error { background: #fef2f2; color: #b91c1c; }

/* ---------- Services index (cards) ---------- */
.svc-index-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--zinc-950-10);
  border: 1px solid var(--zinc-950-10); border-radius: 8px; overflow: hidden;
}
@media (min-width: 768px) { .svc-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-index-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-index-card { display: flex; flex-direction: column; background: var(--surface); padding: 32px; transition: background .15s; }
.svc-index-card:hover { background: var(--zinc-50); }
.svc-index-card h2 { font-size: 18px; margin-bottom: 12px; }
.svc-index-card p { font-size: 14px; color: var(--zinc-500); flex: 1; }
.svc-index-card .more { margin-top: 24px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }

/* ---------- Service page (with sidebar) ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: 240px 1fr; } }
.svc-sidebar__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-400); margin-bottom: 16px; }
.svc-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.svc-sidebar a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--zinc-600); border-radius: 4px; transition: all .15s;
}
.svc-sidebar a:hover { background: var(--zinc-100); color: var(--brand); }
.svc-sidebar a.active { background: var(--brand); color: #fff; }
.svc-article img.hero-image {
  aspect-ratio: 16/10; width: 100%; object-fit: cover;
  border-radius: 12px; margin-bottom: 32px;
  outline: 1px solid rgba(0,0,0,.05); outline-offset: -1px;
}
.carriers { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; font-size: 14px; color: var(--zinc-600); }
@media (min-width: 640px) { .carriers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .carriers { grid-template-columns: repeat(4, 1fr); } }
.carriers div { border-bottom: 1px solid var(--zinc-100); padding-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--zinc-950-5); background: var(--zinc-100); padding: 80px 0; }
.site-footer__top { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; margin-bottom: 64px; }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; } }
.site-footer__brand { max-width: 40ch; }
.site-footer__brand img { height: 77px; width: auto; margin-bottom: 24px; }
.site-footer__brand p { font-size: 14px; color: var(--zinc-500); line-height: 1.6; }
.site-footer__brand p + p { margin-top: 16px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 64px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-400); }
.site-footer__col a { font-size: 14px; font-weight: 500; color: var(--zinc-600); }
.site-footer__col a:hover { color: var(--brand); }
.site-footer__bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--zinc-950-5); padding-top: 32px;
}
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copy { font-size: 12px; color: var(--zinc-400); }
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a { font-size: 12px; font-weight: 500; color: var(--zinc-400); }
.site-footer__legal a:hover { color: var(--brand); }

.screen-reader-text { position: absolute !important; left: -10000px; }
