/* Naseer & Sons public site — design system.
   Tailwind utilities still work via CDN; component classes defined here. */

:root {
  --p-bg: #ffffff;
  --p-bg-soft: #f8f7f4;
  --p-bg-dark: #0b1220;
  --p-text: #1c1917;
  --p-muted: #57534e;
  --p-faint: #a8a29e;
  --p-line: #e7e5e4;
  --p-accent: #b08947;     /* warm gold — premium dealer feel */
  --p-accent-hover: #93702f;
  --p-accent-soft: #f5edd9;
  --p-radius-sm: 6px;
  --p-radius-md: 10px;
  --p-radius-lg: 14px;
  --p-shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --p-shadow: 0 6px 24px -8px rgba(15,23,42,.18);
  --p-shadow-lg: 0 20px 50px -12px rgba(15,23,42,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--p-bg);
  color: var(--p-text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Inter', Georgia, serif;
  letter-spacing: -0.01em;
}

/* --- Nav --- */
.p-nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p-line);
  z-index: 40;
}
.p-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.p-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--p-text);
  text-decoration: none;
  white-space: nowrap;
}
.p-logo-mark {
  display: inline-block;
  width: 28px; height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--p-text);
  color: var(--p-accent);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.p-nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.p-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--p-muted);
  text-decoration: none;
  border-radius: var(--p-radius-md);
  transition: color .15s, background .15s;
}
.p-nav-link:hover { color: var(--p-text); background: var(--p-bg-soft); }
.p-nav-link.is-active { color: var(--p-text); font-weight: 600; }

/* --- Buttons --- */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.p-btn-primary {
  background: var(--p-text);
  color: var(--p-bg);
  border-color: var(--p-text);
}
.p-btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--p-shadow); }
.p-btn-accent {
  background: var(--p-accent);
  color: #fff;
  border-color: var(--p-accent);
}
.p-btn-accent:hover { background: var(--p-accent-hover); border-color: var(--p-accent-hover); transform: translateY(-1px); }
.p-btn-outline {
  background: transparent;
  color: var(--p-text);
  border-color: var(--p-text);
}
.p-btn-outline:hover { background: var(--p-text); color: var(--p-bg); }
.p-btn-ghost {
  background: transparent;
  color: var(--p-muted);
  border-color: var(--p-line);
}
.p-btn-ghost:hover { background: var(--p-bg-soft); color: var(--p-text); }
.p-btn-block { width: 100%; justify-content: center; }
.p-btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- Hero --- */
.p-hero {
  position: relative;
  background: var(--p-bg-dark);
  color: #fff;
  overflow: hidden;
}
.p-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(176,137,71,.25), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(176,137,71,.10), transparent 60%);
}
.p-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 36px;
}
.p-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 10px;
}
.p-hero h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.p-hero p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
}
.p-hero-actions {
  display: flex; gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.p-hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
  font-size: 12px;
}
.p-hero-trust > div { font-size: 11.5px; color: rgba(255,255,255,.6); }
.p-hero-trust strong { display: inline-block; font-size: 15px; color: #fff; font-family: 'Playfair Display', serif; margin-right: 4px; }

/* --- Section --- */
.p-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
}
.p-section-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 6px;
}
.p-section h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.p-section .p-section-sub {
  color: var(--p-muted);
  font-size: 14px;
  max-width: 580px;
}

/* --- Value props (compact strip) --- */
.p-values {
  background: var(--p-bg-soft);
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}
.p-values .p-section { padding: 22px 24px; }
.p-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.p-value {
  display: flex; gap: 10px;
  align-items: center;
}
.p-value-icon {
  width: 32px; height: 32px;
  background: var(--p-text); color: var(--p-accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.p-value h3 { font-size: 14px; margin: 0; font-weight: 600; font-family: inherit; }
.p-value p { color: var(--p-muted); font-size: 12.5px; line-height: 1.45; margin: 2px 0 0; }

/* --- Filter bar (compact, single row) --- */
.p-filter {
  background: var(--p-bg);
  border: 1px solid var(--p-line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--p-shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.p-filter .p-filter-field {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--p-line);
  padding-right: 10px;
}
.p-filter .p-filter-field:last-of-type { border-right: 0; }
.p-filter .p-filter-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  padding: 8px 4px;
  color: var(--p-text);
  outline: none;
  font-family: inherit;
}
.p-filter .p-filter-field input::placeholder { color: var(--p-faint); }
.p-filter-actions { display: flex; gap: 4px; align-items: center; }
.p-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  font-size: 14px;
  background: #fff;
  color: var(--p-text);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.p-input:focus {
  outline: none;
  border-color: var(--p-accent);
  box-shadow: 0 0 0 3px rgba(176,137,71,.18);
}
.p-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--p-muted);
  margin-bottom: 6px;
  display: block;
}

/* --- Car cards --- */
.p-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: block;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-lg); border-color: #d6d3d1; }
.p-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--p-bg-soft);
  overflow: hidden;
}
.p-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
}
.p-card-badge-reserved { background: rgba(239, 200, 70, .95); }
.p-card-body { padding: 18px 20px 20px; }
.p-card-eyebrow { font-size: 11.5px; font-weight: 600; color: var(--p-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.p-card h3 {
  font-size: 19px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  margin: 4px 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.p-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--p-text);
  margin: -2px 0 10px;
}
.p-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--p-muted);
}
.p-card-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.p-card-meta-item-strong { color: var(--p-text); font-weight: 500; }

/* --- Form --- */
.p-form-card {
  background: var(--p-bg-soft);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-lg);
  padding: 28px;
}
.p-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .p-form-row { grid-template-columns: 1fr; } }
.p-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}
.p-captcha-q {
  display: flex; gap: 10px; align-items: center;
  background: #fff;
  border: 1px dashed var(--p-line);
  border-radius: var(--p-radius-md);
  padding: 8px 12px;
  font-size: 14px;
}
.p-captcha-q label { font-weight: 500; color: var(--p-muted); }
.p-captcha-q input { width: 80px; }

/* --- Toast --- */
.p-toasts {
  position: fixed;
  top: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 380px;
  z-index: 60;
}
.p-toast {
  background: #fff;
  border: 1px solid var(--p-line);
  border-left: 4px solid var(--p-text);
  border-radius: var(--p-radius-md);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--p-shadow);
}
.p-toast-success { border-left-color: #15803d; }
.p-toast-error { border-left-color: #b91c1c; }

/* --- Footer --- */
.p-footer {
  background: var(--p-bg-dark);
  color: rgba(255,255,255,.7);
  margin-top: 80px;
}
.p-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .p-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .p-footer-inner { grid-template-columns: 1fr; } }
.p-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.p-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.p-footer a:hover { color: #fff; }
.p-footer-brand { max-width: 320px; }
.p-footer-brand .p-logo { color: #fff; }
.p-footer-brand p { font-size: 13.5px; margin: 12px 0 0; line-height: 1.55; }
.p-footer-list { list-style: none; padding: 0; margin: 0; }
.p-footer-list li { margin-bottom: 8px; font-size: 14px; }
.p-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}

/* --- Detail layout --- */
.p-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.p-backlink { font-size: 13px; color: var(--p-muted); text-decoration: none; }
.p-backlink:hover { color: var(--p-text); }
.p-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 18px;
}
@media (max-width: 900px) { .p-detail-grid { grid-template-columns: 1fr; } }
.p-gallery {
  background: var(--p-bg-soft);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.p-gallery img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.p-thumbs > div { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--p-bg-soft); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-specs {
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 20px;
}
.p-spec { padding: 14px 0; border-bottom: 1px solid var(--p-line); }
.p-spec:nth-last-child(-n+2) { border-bottom: 0; }
.p-spec dt { font-size: 11.5px; text-transform: uppercase; color: var(--p-muted); letter-spacing: 0.06em; }
.p-spec dd { margin: 4px 0 0; font-size: 15px; }

/* --- Landed-cost estimate --- */
.p-estimate { margin-top: 4px; }
.p-estimate-warning {
  background: #fef3c7;
  color: #a16207;
  border: 1px solid #fde68a;
  border-radius: var(--p-radius-md);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}
.p-estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.p-estimate-table th,
.p-estimate-table td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--p-line);
  text-align: left;
}
.p-estimate-table thead th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-muted);
}
.p-estimate-table tbody tr:last-child td { border-bottom: 0; }
.p-estimate-table tfoot th {
  padding-top: 12px;
  border-top: 2px solid var(--p-text);
  border-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-text);
}
.p-estimate-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--p-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--p-line);
}

/* --- Market page notes --- */
.p-note {
  font-size: 13.5px;
  color: var(--p-muted);
  background: var(--p-bg-soft);
  border-radius: var(--p-radius-md);
  padding: 12px 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* --- Misc utilities --- */
.p-text-accent { color: var(--p-accent); }
.p-text-muted { color: var(--p-muted); }

/* --- Home: export destination cards --- */
.p-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.p-market-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: var(--p-bg);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.p-market-card:hover {
  border-color: var(--p-accent);
  box-shadow: var(--p-shadow-sm);
}
.p-market-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
}
.p-market-meta {
  font-size: 12.5px;
  color: var(--p-muted);
}

/* --- Nav: dropdown --- */
.p-nav-dropdown { position: relative; }
.p-nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.p-nav-dropdown > summary::-webkit-details-marker { display: none; }
.p-nav-dropdown > summary::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}
.p-nav-dropdown[open] > summary { color: var(--p-text); background: var(--p-bg-soft); }
.p-nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--p-bg);
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  box-shadow: var(--p-shadow);
  z-index: 50;
}
.p-nav-dropdown-link {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--p-muted);
  text-decoration: none;
  border-radius: var(--p-radius-sm);
}
.p-nav-dropdown-link:hover { color: var(--p-text); background: var(--p-bg-soft); }

/* --- Nav: mobile toggle --- */
.p-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  cursor: pointer;
}
.p-nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--p-text);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .p-nav-inner { flex-wrap: wrap; gap: 8px; }
  .p-nav-toggle { display: flex; }
  .p-nav .p-logo { font-size: 13px; }
  .p-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 4px;
  }
  .p-nav-links.is-open { display: flex; }
  .p-nav-link, .p-nav-dropdown > summary { padding: 10px 12px; }
  .p-nav-dropdown-panel {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .p-nav-links .p-btn { margin-top: 6px; justify-content: center; }
}
