/* ==========================================================================
   Port Stephens Auto Emporium — shared stylesheet
   Split black-and-white theme | Editorial / premium minimalist
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* light (default) palette */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --bg-elevated: #f5f5f5;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --text: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --accent: #0a0a0a;
  --accent-text: #ffffff;
  --btn-bg: #0a0a0a;
  --btn-text: #ffffff;
  --btn-ghost-text: #0a0a0a;
  --btn-ghost-border: #0a0a0a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 14px 50px rgba(0,0,0,0.12);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1280px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark section overrides (applied locally to sections) ---------- */
.dark {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #b4b4b4;
  --text-muted: #777777;
  --accent: #ffffff;
  --accent-text: #0a0a0a;
  --btn-bg: #ffffff;
  --btn-text: #0a0a0a;
  --btn-ghost-text: #ffffff;
  --btn-ghost-border: #ffffff;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  display: block;
}
.muted { color: var(--text-secondary); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 6rem 0; background: var(--bg); color: var(--text); }
.section-tight { padding: 3rem 0; }
.text-center { text-align: center; }

/* ---------- Promo banner ---------- */
.promo-banner {
  background: #0a0a0a;
  color: #ffffff;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.promo-banner strong { font-weight: 600; }
.promo-banner a {
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.5rem;
  color: #ffffff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #0a0a0a;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; }
.brand-text span { font-size: 0.68rem; color: #6a6a6a; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-sans); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  color: #4a4a4a;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #0a0a0a; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0a0a0a;
}

.nav-cta {
  background: #0a0a0a;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover { background: #2a2a2a; color: #ffffff; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a0a0a;
  transition: all 0.2s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-text); }
.btn-ghost { background: transparent; color: var(--btn-ghost-text); border-color: var(--btn-ghost-border); }
.btn-ghost:hover { background: var(--btn-ghost-text); color: var(--bg); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.15rem 2.25rem; font-size: 1rem; }

/* ---------- Image frame (with fallback) ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #ececec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.dark .image-frame {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 50%, #181818 100%);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 2;
}
/* When image fails to load, JS adds .no-image — hide the broken img.
   The .image-frame's gradient background stays visible underneath. */
.image-frame.no-image img { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}
.hero .image-frame {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0a0a0a;
}
.hero .image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-inner { padding: 4rem 1.5rem; max-width: 920px; }
.hero h1 { margin-bottom: 1.5rem; color: #ffffff; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 660px;
  margin: 0 auto 2.5rem;
}
.hero .eyebrow { color: #ffffff; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-primary { background: #ffffff; color: #0a0a0a; }
.hero .btn-primary:hover { background: #f5f5f5; }
.hero .btn-ghost { color: #ffffff; border-color: #ffffff; }
.hero .btn-ghost:hover { background: #ffffff; color: #0a0a0a; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.hero-stats .stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { margin-bottom: 1.25rem; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  border-color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dark .feature-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Inventory ---------- */
.inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 140px; flex: 1; }
.filter-group label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.filter-group select,
.filter-group input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--text);
}
.filter-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 0.65rem;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  color: var(--text);
}
.vehicle-card:hover {
  border-color: var(--text);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.dark .vehicle-card:hover { box-shadow: 0 14px 50px rgba(0,0,0,0.5); }
.vehicle-image { aspect-ratio: 16 / 10; position: relative; }
.vehicle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}
.vehicle-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.vehicle-meta { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.vehicle-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text); }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.82rem; color: var(--text-secondary); }
.vehicle-price { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text); margin-top: auto; font-weight: 600; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* ---------- Vehicle detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
}
.detail-gallery { display: flex; flex-direction: column; gap: 1rem; }
.detail-main-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
}
.gallery-thumb {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.15s var(--ease);
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb .image-frame {
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.6;
}
.gallery-thumb:hover .image-frame { opacity: 1; }
.gallery-thumb.active .image-frame {
  border-color: var(--text);
  opacity: 1;
}

/* ----- Carousel navigation ----- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a0a;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.15s var(--ease);
}
.gallery-nav:hover {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}
.gallery-nav:active { transform: translateY(-50%) scale(0.95); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-prev::before { content: ''; display: inline-block; transform: translateY(-1px); }

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 5;
  pointer-events: none;
  font-family: var(--font-sans);
}
.detail-info h1 { margin-bottom: 0.5rem; font-size: clamp(2rem, 4vw, 2.75rem); }
.detail-info .price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text);
  margin: 1rem 0;
  font-weight: 600;
}
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.spec-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 1rem;
}
.spec-list li span:first-child { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600; }
.spec-list li span:last-child { color: var(--text); font-weight: 500; text-align: right; }

/* ---------- Two-column hero (storage, sell, finance, services) ---------- */
.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-hero .image-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ---------- Promo card ---------- */
.promo-card {
  background: #0a0a0a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 4rem auto;
  max-width: 760px;
}
.promo-card .eyebrow { color: #ffffff; }
.promo-card h2 { color: #ffffff; margin-bottom: 1rem; }
.promo-card h2 em { font-style: italic; font-weight: 400; }
.promo-card p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 1.75rem; }
.promo-card .btn-primary { background: #ffffff; color: #0a0a0a; }
.promo-card .btn-primary:hover { background: #f0f0f0; }

/* ---------- Pricing tiers ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.price-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.price-tier.featured {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}
.price-tier.featured h3, .price-tier.featured .price-amount { color: #ffffff; }
.price-tier.featured li { color: rgba(255,255,255,0.8); }
.price-tier.featured .btn-primary { background: #ffffff; color: #0a0a0a; }
.price-tier.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #0a0a0a;
}
.price-tier h3 { margin-bottom: 0.5rem; }
.price-tier .price-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text);
  margin: 1rem 0 1.5rem;
  font-weight: 600;
}
.price-tier .price-amount span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.price-tier.featured .price-amount span { color: rgba(255,255,255,0.6); }
.price-tier ul { list-style: none; margin-bottom: 2rem; flex: 1; }
.price-tier li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.price-tier li::before {
  content: '→';
  flex-shrink: 0;
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card .stars { color: var(--text); font-size: 0.95rem; letter-spacing: 0.18em; }
.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}
.testimonial-card .attribution {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.testimonial-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}
.testimonial-card .attribution-text strong { display: block; font-size: 0.9rem; }
.testimonial-card .attribution-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- About / two-col ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-grid .image-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.about-grid p { margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.value-item {
  border-left: 2px solid var(--text);
  padding-left: 1.4rem;
}
.value-item h4 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
  font-family: var(--font-sans);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}
.form-feedback.success { background: #f0f9f0; color: #166534; border: 1px solid #bbe5bb; display: block; }
.form-feedback.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
}
.dark .form-feedback.success { background: #0f2a16; color: #86efac; border-color: #1f4a2a; }
.dark .form-feedback.error { background: #2a0f0f; color: #fca5a5; border-color: #4a1f1f; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-info .info-block h4 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-info .info-block p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.contact-info .info-block a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.contact-info .info-block a:hover { text-decoration: none; }
.map-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  letter-spacing: 0.05em;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--bg);
  color: var(--text);
  padding: 6rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Finance calculator ---------- */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.calc-result {
  background: #0a0a0a;
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result .label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; }
.calc-result .amount { font-family: var(--font-serif); font-size: 2.5rem; margin: 0.5rem 0; font-weight: 600; }
.calc-result .terms { font-size: 0.85rem; opacity: 0.7; }
.calc-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.5rem; text-align: center; line-height: 1.5; }

/* ---------- Services list ---------- */
.service-list { display: flex; flex-direction: column; gap: 2.5rem; }
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; padding-bottom: 0; }
.service-item.reverse > div:first-child { order: 2; }
.service-item .image-frame { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--border); }
.service-item h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.service-item p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.service-item ul { list-style: none; }
.service-item li { padding: 0.4rem 0; font-size: 0.95rem; color: var(--text); display: flex; gap: 0.6rem; }
.service-item li::before { content: '→'; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0a0a;
  color: #ffffff;
  border-top: 1px solid #0a0a0a;
  padding: 5rem 0 2rem;
}
.site-footer .brand { color: #ffffff; }
.site-footer .brand-logo { background: #ffffff; color: #0a0a0a; }
.site-footer .brand-text span { color: #999; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: #999; font-size: 0.9rem; margin-top: 1rem; max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li { color: #999; font-size: 0.9rem; }
.footer-col a { color: #cccccc; font-size: 0.9rem; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #777;
}

/* ---------- Page header (subpage hero) ---------- */
.page-header {
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { color: var(--text-secondary); max-width: 660px; margin: 0 auto; font-size: 1.08rem; }
.page-header.dark { background: #0a0a0a; color: #ffffff; border-color: #1f1f1f; }
.page-header.dark h1 { color: #ffffff; }
.page-header.dark p { color: rgba(255,255,255,0.75); }
.page-header.dark .eyebrow { color: #ffffff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { display: none; }

  .hero { min-height: 75vh; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; margin-top: 2.5rem; }

  .detail-grid, .split-hero, .about-grid, .contact-grid, .service-item, .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-item.reverse > div:first-child { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .spec-list { grid-template-columns: 1fr; }
  .filter-count { width: 100%; text-align: right; }
  .promo-card, .form-card, .calc-card { padding: 2rem 1.5rem; }
  .gallery-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .gallery-prev { left: 0.5rem; }
  .gallery-next { right: 0.5rem; }
  .gallery-counter { bottom: 0.5rem; right: 0.5rem; padding: 0.3rem 0.65rem; font-size: 0.75rem; }
  .detail-thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
}
