/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f2137;
  --navy-light: #1a3a5c;
  --green:      #10b981;
  --green-dark: #059669;
  --slate:      #64748b;
  --slate-light:#94a3b8;
  --bg:         #f8fafc;
  --bg-card:    #ffffff;
  --border:     #e2e8f0;
  --text:       #0f2137;
  --text-muted: #64748b;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 12px 32px rgba(0,0,0,.1);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1.2rem;  font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { color: var(--text-muted); }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.nav-lang { display:flex; align-items:center; gap:4px; margin-left:8px; }
.nav-lang-current { color:#fff; font-size:.78rem; font-weight:700; letter-spacing:.04em; }
.nav-lang-link { color:rgba(255,255,255,.5); font-size:.78rem; font-weight:600; letter-spacing:.04em; transition:color .15s; text-decoration:none; }
.nav-lang-link:hover { color:#fff; }
.nav-lang-sep { color:rgba(255,255,255,.25); font-size:.72rem; }
.nav-fav-icon { display:flex; align-items:center; color:rgba(255,255,255,.7); text-decoration:none; padding:6px 8px; border-radius:var(--radius-sm); transition:color .15s; line-height:1; margin-left:auto; margin-right:8px; }
.nav-fav-icon:hover { color:#fff; }
.footer-lang-wrap { display:flex; align-items:center; }
.footer-lang-select { background:rgba(255,255,255,.07); color:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.15); border-radius:6px; padding:5px 28px 5px 10px; font-size:.78rem; font-family:var(--font); cursor:pointer; appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 8px center; outline:none; transition:color .15s,border-color .15s; }
.footer-lang-select:hover,.footer-lang-select:focus { color:#fff; border-color:rgba(255,255,255,.35); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 160px;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
}
.hero-gallery-img {
  overflow: hidden;
  border-radius: 10px;
}
.hero-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-gallery-img:hover img { transform: scale(1.04); }
.hero-gallery-img--tall {
  grid-row: span 2;
  border-radius: 10px;
}
.hero-gallery-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-gallery { display: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-search {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 56px;
}
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: var(--font);
}
.hero-search input:focus { box-shadow: 0 0 0 3px rgba(16,185,129,.4); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ─── Segment Cards ─────────────────────────────────────────────────────────── */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.segment-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.segment-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.segment-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.segment-card-body { padding: 14px 16px 18px; }
.segment-name { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.segment-range { font-size: .8rem; color: var(--text-muted); }

/* ─── Company Cards ─────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.card-logo-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
/* Logo image variant — card context (48×48, light bg) */
.logo-img-card {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
/* Logo image variant — company row (44×44) */
.logo-img-row {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-featured { background: rgba(16,185,129,.12); color: var(--green-dark); }
.badge-segment  { background: var(--bg); border: 1px solid var(--border); color: var(--slate); }

.card-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-tagline { font-size: .875rem; color: var(--text-muted); }

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-meta-item { }
.card-meta-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-light); font-weight: 600; margin-bottom: 2px; }
.card-meta-value { font-size: .95rem; font-weight: 700; color: var(--text); }

.card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .75rem;
  color: var(--slate);
  font-weight: 500;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-location { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.card-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover { color: var(--navy); }

/* ─── Section headers ───────────────────────────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p  { font-size: 1.05rem; max-width: 600px; }
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── Why Modular section ───────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.why-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.why-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.why-card p  { font-size: .9rem; }

/* ─── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; max-width: 480px; }
.cta-banner p  { color: rgba(255,255,255,.7); }
.cta-actions   { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: .875rem; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,.45); font-size: .78rem; text-decoration: none; transition: color .15s; }
.footer-legal-links a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 11px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem; width: 280px; max-width: 100%; outline: none; transition: border-color .15s; }
.newsletter-form input[type="email"]:focus { border-color: var(--green); }
.newsletter-form .btn { flex-shrink: 0; }

/* ─── Directory page ────────────────────────────────────────────────────────── */
.dir-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.dir-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.dir-hero p  { color: rgba(255,255,255,.65); }

.dir-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0 80px;
}
.dir-filters {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 80px;
}
.filter-group { margin-bottom: 18px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 8px; }
.filter-options { display: flex; flex-direction: column; gap: 2px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .72rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all .15s;
  user-select: none;
}
.filter-option:hover { background: var(--bg); color: var(--text); }
.filter-option input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-reset {
  width: 100%;
  padding: 7px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all .2s;
  margin-top: 16px;
}
.filter-reset:hover { border-color: var(--navy); color: var(--navy); }

.dir-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.dir-count { font-size: .9rem; color: var(--text-muted); }
.dir-sort {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  outline: none;
}
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dir-grid { grid-template-columns: 1fr; } }

/* ─── Model cards (directory + homepage + similar sections) ─────────────────── */
.model-card { background:var(--bg-card); border:1.5px solid var(--border); border-radius:var(--radius); padding:14px; cursor:pointer; transition:all .2s; display:flex; flex-direction:column; gap:0; }
.model-card:hover { border-color:var(--green); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.model-card-body { display:flex; flex-direction:column; gap:7px; padding-top:10px; flex:1; }
.model-card-header { display:flex; flex-direction:column; gap:3px; }
.model-company { font-size:.72rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }
.model-name { font-size:.95rem; font-weight:700; color:var(--text); margin-top:2px; line-height:1.25; }
.model-facts { display:flex; align-items:center; gap:5px; font-size:.82rem; color:var(--slate); flex-wrap:wrap; }
.model-fact-price { font-weight:700; color:var(--green); font-size:.88rem; }
.model-fact-sep { color:var(--border); }
.model-specs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.model-spec { text-align:center; background:var(--bg); border-radius:8px; padding:8px 4px; }
.model-spec-val { font-size:.95rem; font-weight:700; color:var(--text); }
.model-spec-lbl { font-size:.65rem; color:var(--slate-light); text-transform:uppercase; letter-spacing:.04em; margin-top:2px; }
.model-badges { display:flex; flex-wrap:wrap; gap:4px; }
.model-badge { font-size:.68rem; font-weight:600; padding:2px 8px; border-radius:99px; border:1px solid; }
.badge-passivhaus { background:rgba(16,185,129,.1); color:var(--green-dark); border-color:rgba(16,185,129,.25); }
.badge-mortageable { background:rgba(2,132,199,.1); color:#0369a1; border-color:rgba(2,132,199,.25); }
.badge-cte { background:rgba(124,58,237,.1); color:#6d28d9; border-color:rgba(124,58,237,.25); }
.model-footer { display:flex; justify-content:space-between; align-items:center; padding-top:8px; border-top:1px solid var(--border); margin-top:auto; }
.company-row-card { background:var(--bg-card); border:1.5px solid var(--border); border-radius:var(--radius); padding:16px 20px; cursor:pointer; transition:all .2s; display:flex; align-items:center; gap:16px; }
.company-row-card:hover { border-color:var(--green); box-shadow:var(--shadow); transform:translateY(-1px); }
.company-row-logo { width:64px; height:64px; background:linear-gradient(135deg,var(--navy),var(--navy-light)); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:1.1rem; flex-shrink:0; }
.company-row-info { flex:1; min-width:0; }
.company-row-name { font-weight:700; font-size:.95rem; color:var(--text); }
.company-row-meta-inline { display:flex; align-items:center; gap:6px; font-size:.78rem; color:var(--text-muted); margin-top:2px; }
.company-row-dot { color:var(--border); }
.company-row-meta { display:flex; gap:20px; flex-shrink:0; }
.company-row-stat { text-align:right; }
.company-row-val { font-size:.88rem; font-weight:700; color:var(--text); }
.company-row-lbl { font-size:.65rem; color:var(--slate-light); text-transform:uppercase; letter-spacing:.04em; }
.company-row-arrow { font-size:.9rem; color:var(--slate-light); flex-shrink:0; transition:color .15s; }
.company-row-card:hover .company-row-arrow { color:var(--green); }
.dir-grid-companies { display:flex; flex-direction:column; gap:8px; }
.model-row-thumb { width:64px; height:48px; border-radius:6px; overflow:hidden; flex-shrink:0; background:#e2e8f0; }
.model-row-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.model-row-thumb-empty { display:flex; align-items:center; justify-content:center; font-size:1.2rem; color:var(--slate-light); }
.company-grid-card { background:var(--bg-card); border:1.5px solid var(--border); border-radius:var(--radius); padding:20px 16px; cursor:pointer; transition:all .2s; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; }
.company-grid-card:hover { border-color:var(--green); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.company-grid-logo { display:flex; justify-content:center; }
.company-grid-name { font-weight:700; font-size:.95rem; color:var(--text); }
.company-grid-meta { font-size:.76rem; color:var(--text-muted); }
.company-grid-stats { display:grid; grid-template-columns:1fr 1fr 1fr; gap:4px; width:100%; margin-top:4px; border-top:1px solid var(--border); padding-top:12px; }
.company-grid-stat { text-align:center; }

.dir-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.dir-empty-icon { font-size: 2.5rem; margin-bottom: 16px; }

/* ─── Company detail page ───────────────────────────────────────────────────── */
.company-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.company-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.company-logo-lg {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
/* Logo image variant — hero context (72×72, white bg on dark hero) */
.logo-img-hero {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.company-hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.company-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 8px; }
.company-hero-tagline { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.company-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.company-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 48px 0 80px;
}
.company-main { display: flex; flex-direction: column; gap: 32px; }
.company-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.company-block h3 { margin-bottom: 20px; }
/* Gallery block — sits above At a Glance */
.gallery-block {
  padding: 28px;
}
.gallery-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.gallery-header h3 { margin-bottom: 0; }
.gallery-count-badge {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.company-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.company-stat { text-align: center; }
.company-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); }
.company-stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

.company-highlights-list { display: flex; flex-wrap: wrap; gap: 8px; }
.company-highlight-tag {
  background: rgba(16,185,129,.1);
  color: var(--green-dark);
  border: 1px solid rgba(16,185,129,.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
}

.services-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}
.services-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Model summary cards (company page "Our Models" grid) ──────────────────── */
.company-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .company-models-grid { grid-template-columns: 1fr; } }

.model-summary-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.model-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.model-summary-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}
.model-summary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.model-summary-card:hover .model-summary-img { transform: scale(1.04); }
.model-summary-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  color: var(--slate-light);
}
.model-summary-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.model-summary-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.model-summary-specs {
  font-size: .8rem;
  color: var(--text-muted);
}
.model-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}
.model-summary-price {
  font-size: .95rem;
  font-weight: 800;
  color: var(--green-dark);
}

.certs-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-badge {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate);
}

.company-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h4 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon { font-size: 1rem; width: 24px; text-align: center; flex-shrink: 0; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 20px; }

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ─── Search bar (directory) ────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  margin-bottom: 0;
}
.search-bar input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .8rem;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .2s;
}
.search-bar input:focus { border-color: var(--green); }
.search-bar-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .8rem;
  color: var(--slate-light);
  pointer-events: none;
}

/* ─── Similar-models card (3-col row, no negative-margin bleed) ─────────────── */
.sim-card {
  padding: 0 !important;
  overflow: hidden;
}
.sim-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}
.sim-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.sim-card:hover .sim-card-img { transform: scale(1.04); }
.sim-card-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  color: var(--slate-light);
}
.sim-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ─── Logo in model card header ────────────────────────────────────────────── */
.logo-img-model {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img-model img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.model-card-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
}

/* ─── Model card image ──────────────────────────────────────────────────────── */
.model-card-img-wrap {
  position: relative;
  width: calc(100% + 28px);
  margin: 0 -14px 0;
  height: 168px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #e2e8f0;
}
.model-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.model-card:hover .model-card-img { transform: scale(1.04); }
.model-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--slate-light);
}
.model-card-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Image gallery (company detail) ────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}
.gallery-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #e2e8f0;
}
/* Hero image: full width, taller */
.gallery-img-wrap.gallery-hero {
  grid-column: 1 / -1;
  aspect-ratio: 16/6;
  border-radius: var(--radius);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-img-wrap:hover .gallery-img { transform: scale(1.04); }
.gallery-img-wrap:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.10);
}
/* "+X more" overlay on last thumbnail */
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.52);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-img-wrap.gallery-hero { aspect-ratio: 16/9; }
}
.gallery-empty { color: var(--text-muted); font-size: .9rem; padding: 20px 0; }

/* ─── Lightbox ───────────────────────────────────────────────────────────────── */
.lightbox {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transition: opacity .15s ease;
}
.lightbox-img.fading { opacity: 0; }
.lightbox-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.lightbox-caption {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}
.lightbox-counter {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 99px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ─── Favorites ─────────────────────────────────────────────────────────────── */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform .15s, background .15s;
  line-height: 1;
  padding: 0;
  color: var(--slate);
}
.fav-btn:hover { transform: scale(1.15); background: #fff; }
.fav-btn.active { color: #e11d48; }
.model-card { position: relative; }
.company-row-card { position: relative; }
.company-grid-card { position: relative; }
.fav-page-empty { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.fav-page-empty-icon { font-size: 2.5rem; margin-bottom: 16px; }
.fav-section { margin-bottom: 56px; }
.fav-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 16px; }
.fav-section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.fav-section-count { font-size: .85rem; color: var(--text-muted); }
.nav-fav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ─── Utilities ─────────────────────────────────────────────────────────────── */
.text-green  { color: var(--green-dark); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0 !important; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.gap-12 { gap: 12px; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
/* ─── Hamburger ─────────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-filters { position: static; }
  .company-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-fav-icon { order: -1; margin-left: auto; margin-right: 4px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .hero-stats { gap: 20px 28px; }
  .hero-stats > div { min-width: 110px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-filters-bar { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 16px 24px; }
  .hero-search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 36px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ─── Landing Pages ─────────────────────────────────────────────────────────── */
.lp-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 64px 0 56px; }
.lp-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 16px; max-width: 700px; line-height: 1.15; }
.lp-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0; max-width: 620px; line-height: 1.7; }
.lp-breadcrumb { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.lp-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.lp-breadcrumb a:hover { color: #fff; }
.lp-intro { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 40px 0; }
.lp-intro-inner { max-width: 860px; }
.lp-intro p { font-size: .95rem; color: var(--text-muted); line-height: 1.85; margin: 0 0 14px; }
.lp-intro p:last-child { margin: 0; }
.lp-content-section { padding: 48px 0 0; }
.lp-content-section h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.lp-content-section p { font-size: .93rem; color: var(--text-muted); line-height: 1.85; margin: 0 0 14px; }
.lp-embed { padding: 48px 0 0; }
.lp-embed-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.lp-embed-header h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.lp-faq { padding: 64px 0; background: #f8fafc; border-top: 1px solid var(--border); }
.lp-faq h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 32px; text-align: center; }
.lp-related { padding: 48px 0 64px; }
.lp-related h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 20px; color: var(--text); }
.lp-related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-related-grid a { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 24px; font-size: .85rem; font-weight: 500; color: var(--text); background: var(--bg-card); text-decoration: none; transition: border-color .15s, background .15s; }
.lp-related-grid a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.blog-faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--bg-card); }
.blog-faq-q { width: 100%; text-align: left; background: none; border: none; padding: 16px 20px; font-family: var(--font); font-size: .93rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blog-faq-q:hover { background: var(--bg); }
.faq-chevron { flex-shrink: 0; font-size: .75rem; color: var(--text-muted); }
.blog-faq-a { padding: 0 20px 16px; font-size: .9rem; color: var(--text-muted); line-height: 1.75; }
.dir-embed-wrap { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.dir-embed-inner { padding: 24px; }
.dir-embed-cta { display: inline-block; margin-top: 16px; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.dir-embed-cta:hover { text-decoration: underline; }
