/* ==========================================================================
   Delta Export — shared design system
   One stylesheet for every page: export, scrap and realty.
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #121416;
  --ink-2: #3a3e45;
  --muted: #6c7078;
  --line: #e6e3dc;
  --line-strong: #d5d1c8;
  --accent: #b5471d;
  --accent-hover: #9a3a15;
  --accent-soft: #f7ebe3;
  --success: #1f7a4d;
  --success-soft: #e6f4ec;
  --dark: #111315;
  --dark-2: #1b1e21;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 21, .05);
  --shadow: 0 1px 2px rgba(17, 19, 21, .04), 0 12px 32px -12px rgba(17, 19, 21, .14);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.display { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.04em; line-height: 1; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn i { font-size: .9em; transition: transform .2s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e33; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ecebe7; }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-danger { background: #b42318; color: #fff; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.link-arrow i { font-size: 12px; transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(17,19,21,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-links .nav-cta { margin-left: 10px; background: var(--ink); color: #fff; padding: 9px 16px; }
.nav-links .nav-cta:hover { background: #2a2e33; color: #fff; }
.nav-links a.nav-cta.active { color: #fff; }
.nav-links .nav-cta.active::after { display: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.active span::after { transform: translateY(-5px) rotate(-45deg); }

/* Section sub-navigation (used by Realty) */
.subnav { border-top: 1px solid var(--line); background: var(--surface); }
.subnav .wrap { display: flex; align-items: center; gap: 4px; height: 50px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav-title { font-size: 13px; font-weight: 600; margin-right: 14px; padding-right: 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.subnav a:not(.subnav-title) {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.subnav a:not(.subnav-title):hover { color: var(--ink); }
.subnav a.active { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.subnav .subnav-cta { margin-left: auto; color: var(--accent) !important; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #e9e7e2; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: grid; gap: 14px; max-width: 640px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center > div { justify-items: center; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-copy .display em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta { display: flex; gap: 36px; margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.hero-meta span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.hero-visual figcaption {
  position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px;
  display: flex; justify-content: space-between; align-items: end; color: #fff; font-size: 14px;
}
.hero-visual figcaption b { display: block; font-size: 17px; font-weight: 600; }

/* ---------- Divisions (three businesses) ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.division { display: flex; flex-direction: column; gap: 14px; padding: 32px; min-height: 280px; border-right: 1px solid var(--line); transition: background .25s var(--ease); }
.division:last-child { border-right: 0; }
.division:hover { background: #fdfcfa; }
.division-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.division h3 { font-size: 24px; }
.division p { color: var(--muted); font-size: 15px; }
.division .tags { margin-top: auto; }
.division .link-arrow { margin-top: 8px; }
.division:hover .link-arrow { color: var(--accent); }
.division:hover .link-arrow i { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); color: var(--ink-2);
}
.tag-success { background: var(--success-soft); color: var(--success); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.04em; max-width: 16ch; }
.page-head .lead { max-width: 56ch; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Product cards (spices) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.product-body h3 { font-size: 20px; }
.product-body h3 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.product-body p { color: var(--muted); font-size: 15px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

/* Search */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 460px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,19,21,.06); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted); display: none; }
.search-clear.active { display: grid; place-items: center; }
.search-clear:hover { background: var(--surface-2); color: var(--ink); }
.search-info { font-size: 14px; color: var(--muted); }

.notice-card {
  display: none; margin-bottom: 28px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid #efd6c8;
}
.notice-card h3 { font-size: 18px; margin-bottom: 6px; }
.notice-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; max-width: 70ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Metal / scrap ---------- */
.metal-grid { display: grid; gap: 20px; }
.metal {
  display: grid; grid-template-columns: 380px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.element {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px; padding: 28px; color: #fff; overflow: hidden;
}
.element::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,0) 0 6px, rgba(255,255,255,.05) 6px 7px);
  mix-blend-mode: overlay;
}
.element > * { position: relative; }
.element-copper { background: linear-gradient(145deg, #d98c5f 0%, #b25a2e 45%, #6f3316 100%); }
.element-aluminium { background: linear-gradient(145deg, #dfe3e7 0%, #a4acb4 45%, #5f6770 100%); }
.element-brass { background: linear-gradient(145deg, #e7c878 0%, #b8903a 45%, #6e521a 100%); }
.element-top { display: flex; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; opacity: .85; }
.element-symbol { font-size: 96px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.element-name { font-size: 15px; opacity: .9; }
.metal-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.5vw, 44px); }
.metal-body h3 { font-size: clamp(24px, 2.4vw, 30px); }
.metal-body > p { color: var(--muted); max-width: 62ch; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list li span { color: var(--muted); }
.spec-list li b { font-weight: 500; text-align: right; }
.metal-body .btn-row { margin-top: auto; padding-top: 6px; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature i { font-size: 18px; color: var(--accent); margin-bottom: 6px; }
.feature h3 { font-size: 17px; letter-spacing: -.015em; }
.feature p { font-size: 15px; color: var(--muted); }
.section-dark .features, .section-dark .feature + .feature { border-color: rgba(255,255,255,.1); }
.section-dark .feature p { color: #9ca1a8; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cert { padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: var(--dark-2); display: grid; gap: 8px; align-content: start; }
.cert b { font-size: 15px; font-weight: 600; color: #fff; }
.cert span { font-size: 13.5px; color: #9ca1a8; line-height: 1.5; }
.cert i { color: #e5946c; margin-bottom: 8px; }

/* ---------- Split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 18px; }
.prose p { color: var(--ink-2); font-size: 17px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stat { padding: 28px; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.panel h3 { font-size: 22px; }
.panel p { color: var(--muted); }

.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: v; }
.value-list li { padding: 28px 28px 28px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; counter-increment: v; }
.value-list li::before { content: counter(v, decimal-leading-zero); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.value-list h3 { font-size: 18px; }
.value-list p { font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: #fff; padding: clamp(40px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(181,71,29,.55), transparent); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; max-width: 20ch; }
.cta p { color: #a8adb4; margin-top: 10px; max-width: 48ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.contact-card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 8px; }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card a:not(.btn) { font-weight: 500; font-size: 16px; }
.contact-card a:not(.btn):hover { color: var(--accent); }
.hours { display: grid; }
.hours li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours li span:last-child { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a8adb4; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-grid .brand small { color: #7e838a; }
.footer-grid p { font-size: 14.5px; max-width: 36ch; }
.footer-grid h4 { font-size: 13px; font-weight: 500; color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7e838a; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #1faa59; color: #fff; font-size: 24px;
  box-shadow: 0 10px 24px -8px rgba(31,170,89,.6); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }

/* ==========================================================================
   Realty
   ========================================================================== */
.rt-hero { position: relative; color: #fff; padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.rt-hero-bg { position: absolute; inset: 0; background: url("../images/realty/hero.jpg") center/cover; }
.rt-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,.55), rgba(10,12,14,.72)); }
.rt-hero .wrap { position: relative; display: grid; gap: 22px; }
.rt-hero .eyebrow { color: #f1b894; }
.rt-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; max-width: 14ch; }
.rt-hero .lead { color: #d9dcdf; }

.search-card { margin-top: 18px; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 980px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 6px 10px; background: var(--surface-2); border-radius: 10px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.search-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 0; align-items: stretch; }
.search-row .field { padding: 10px 18px; border-right: 1px solid var(--line); }
.search-row .field:nth-last-child(2) { border-right: 0; }
.search-row .btn { height: auto; min-height: 56px; margin: 4px; border-radius: 12px; }
.field { display: grid; gap: 2px; }
.field > span, .form-grid label > span { font-size: 12px; font-weight: 500; color: var(--muted); }
.field input, .field select { border: 0; padding: 4px 0; background: transparent; font-size: 15px; outline: none; width: 100%; }
.quick-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #c9cdd1; margin-top: 4px; }
.quick-cities button { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.quick-cities button:hover { background: rgba(255,255,255,.16); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.cat:hover { border-color: var(--ink); }
.cat i { font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.cat b { font-weight: 600; font-size: 17px; }
.cat span { font-size: 14px; color: var(--muted); }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card { display: flex; flex-direction: column; gap: 14px; }
.property-card .photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.property-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .photo img { transform: scale(1.04); }
.property-card .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.property-card .badges .tag { background: rgba(255,255,255,.94); backdrop-filter: blur(6px); }
.property-card .badges .tag-success { color: var(--success); }
.pc-body { display: grid; gap: 4px; }
.pc-price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.pc-price small, .detail-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pc-body h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.pc-body h3 a:hover { color: var(--accent); }
.pc-loc { font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.facts span + span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.facts b { color: var(--ink); font-weight: 500; }

.owner-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.owner-band .panel:first-child { background: var(--dark); color: #fff; border-color: var(--dark); }
.owner-band .panel:first-child p { color: #a8adb4; }
.owner-band .panel:first-child .btn { justify-self: start; margin-top: 12px; }
.check-list { display: grid; gap: 18px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.check-list i { color: var(--accent); margin-top: 4px; }
.check-list b { display: block; font-weight: 500; }
.check-list span { font-size: 14.5px; color: var(--muted); }

.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 40px 0 24px; }
.listing-head h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.035em; }
.listing-head p { color: var(--muted); margin-top: 6px; }
.filter-bar {
  position: sticky; top: calc(var(--header-h) + 51px); z-index: 20;
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 10px;
  padding: 12px 0; margin-bottom: 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.input, .filter-bar input, .filter-bar select, .form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.form-grid textarea { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus, .filter-bar input:focus, .filter-bar select:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,19,21,.06);
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236c7078' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px !important; }
.field select { background-position: right 0 center; padding-right: 20px !important; }

.empty { grid-column: 1 / -1; text-align: center; padding: 72px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: grid; gap: 8px; justify-items: center; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); }
.empty a { color: var(--accent); font-weight: 500; }

.detail { padding: 32px 0 96px; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--surface-2); margin-bottom: 36px; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.detail-main { display: grid; gap: 22px; }
.detail-main h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.detail-main .facts { font-size: 15px; padding: 18px 0; border-block: 1px solid var(--line); }
.detail-main > p { color: var(--ink-2); font-size: 17px; }
.enquiry { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.detail-price { font-size: 32px; font-weight: 600; letter-spacing: -.035em; }

.form-page { max-width: 860px; padding: 48px 0 96px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.form-section { padding: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.form-section h2 { font-size: 18px; display: flex; gap: 12px; align-items: baseline; }
.form-section h2 span { font-size: 13px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid .wide { grid-column: 1 / -1; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .15s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { padding: 24px clamp(22px, 3vw, 32px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 14.5px; color: var(--success); font-weight: 500; }

/* Dashboard / admin */
.notice { padding: 14px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); margin-bottom: 24px; }
.notice a { color: var(--accent); font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 24px; }
.stats-grid article { padding: 24px; display: grid; gap: 4px; }
.stats-grid article + article { border-left: 1px solid var(--line); }
.stats-grid strong { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.stats-grid span { font-size: 14px; color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(20px, 3vw, 28px); margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 18px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row strong { display: block; font-weight: 500; }
.row span { font-size: 14px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.photo-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .features .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metal { grid-template-columns: 300px 1fr; }
  .detail-grid { grid-template-columns: 1fr 340px; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-links.active { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:hover { background: none; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active:not(.nav-cta) { color: var(--accent); }
  .nav-links .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 10px; border: 0; }

  .hero-grid, .split, .two-col, .owner-band, .detail-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .divisions { grid-template-columns: 1fr; }
  .division { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .division:last-child { border-bottom: 0; }
  .product-grid, .property-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .metal { grid-template-columns: 1fr; }
  .element { min-height: 200px; }
  .element-symbol { font-size: 72px; }
  .value-list { grid-template-columns: repeat(2, 1fr); }
  .stat-row, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stats-grid article:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3), .stats-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .field { border-bottom: 1px solid var(--line); }
  .search-row .field:nth-child(2) { border-right: 0; }
  .search-row .field:nth-last-child(2) { border-right: 1px solid var(--line); }
  .filter-bar { grid-template-columns: 1fr 1fr; position: static; }
  .filter-bar input { grid-column: 1 / -1; }
  .enquiry { position: static; }
  .detail-media { aspect-ratio: 4 / 3; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 600px) {
  .product-grid, .property-grid, .contact-grid, .cat-grid, .value-list, .form-grid, .cert-grid { grid-template-columns: 1fr; }
  .features, .features.cols-3 { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0 8px; border-left: 0 !important; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .spec-list { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .hero-meta strong { font-size: 24px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row .field { border-right: 0 !important; }
  .listing-head { flex-direction: column; align-items: start; }
  .cta { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; align-items: start; }
}

/* ---------- Mobile device polish (iOS / Android) ---------- */
html { -webkit-tap-highlight-color: transparent; }
.wa-float { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  /* iOS Safari zooms into inputs smaller than 16px */
  input, select, textarea, .field input, .field select { font-size: 16px !important; }
  .nav-links { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
}
