/*
Theme Name: BLUFILTER
Theme URI: https://blufilter.ro
Author: BLUFILTER
Description: Temă WordPress minimalistă pentru BLUFILTER — producător de filtre habitaclu. Pagină principală de prezentare, catalog răsfoibil și pagină de contact.
Version: 7.3
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blufilter
*/

/* ============================================================
   Tokens
   ============================================================ */
:root{
  --blue:      #1b5fa9;
  --blue-dark: #14477f;
  --blue-pale: #eef4fa;
  --ink:       #1a1a1a;
  --ink-soft:  #5f6b78;
  --line:      #e3e7eb;
  --bg:        #ffffff;
  --bg-alt:    #fafbfc;
  --radius:    3px;
  --container: 1080px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{transition-duration:.001ms !important;}
}

body{
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit; text-decoration:none;}
img, svg, iframe{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}

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

h1,h2,h3{
  margin:0 0 .5em 0;
  font-weight:600;
  letter-spacing:-0.015em;
  line-height:1.2;
  color:var(--ink);
}
h1{font-size:clamp(30px, 4vw, 44px);}
h2{font-size:clamp(23px, 2.6vw, 30px);}
h3{font-size:17px;}

p{margin:0 0 1em;}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:500;
  padding:11px 22px;
  border-radius:var(--radius);
  border:1px solid transparent;
  white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-solid{background:var(--blue); color:#fff;}
.btn-solid:hover{background:var(--blue-dark);}
.btn-outline{border-color:var(--line); color:var(--ink);}
.btn-outline:hover{border-color:var(--blue); color:var(--blue);}

/* ============================================================
   Nav
   ============================================================ */
.site-nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.site-nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:70px;
  gap:20px;
}
.brand{display:flex; align-items:center; height:30px;}
.brand img{height:100%; width:auto; mix-blend-mode:multiply;}

.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  list-style:none;
  margin:0 0 0 auto;
  padding:0;
  font-size:15px;
}
.nav-links li{white-space:nowrap;}
.nav-links a{color:var(--ink-soft); transition:color .15s ease;}
.nav-links a:hover{color:var(--ink);}

/* Catalog — singurul element evidențiat */
.nav-links li.bf-nav-cta > a{
  color:#fff;
  background:var(--blue);
  padding:8px 18px;
  border-radius:var(--radius);
  font-weight:500;
}
.nav-links li.bf-nav-cta > a:hover{background:var(--blue-dark); color:#fff;}

.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width:32px; height:32px;
  position:relative;
  padding:0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute;
  left:5px; right:5px;
  height:1.5px;
  background:var(--ink);
}
.nav-toggle span{top:15px;}
.nav-toggle span::before{top:-6px;}
.nav-toggle span::after{top:6px;}

@media (max-width:860px){
  .nav-toggle{display:block;}
  .nav-links{
    position:fixed;
    inset:70px 0 auto 0;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:8px 28px 20px;
    font-size:16px;
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links li{width:100%; padding:12px 0; border-bottom:1px solid var(--line);}
  .nav-links li:last-child{border-bottom:none;}
  .nav-links li.bf-nav-cta > a{display:inline-block;}
  .nav-actions{display:none;}
}

/* ============================================================
   Sections
   ============================================================ */
section{padding:80px 0; border-top:1px solid var(--line);}
section:first-of-type{border-top:none;}

#de-ce-noi, #despre, #tehnologie{scroll-margin-top:78px;}

.section-head{max-width:600px; margin-bottom:40px;}
.section-head p{color:var(--ink-soft); margin:0;}

.label{
  font-size:13px;
  font-weight:500;
  color:var(--blue);
  margin-bottom:12px;
}

/* --- Hero --- */
.hero{
  padding:88px 0 0;
  border:none;
  text-align:center;
  overflow:hidden;
}
.hero-label{
  font-size:13px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(32px, 5.2vw, 58px);
  line-height:1.08;
  letter-spacing:-0.025em;
  margin:0 auto 22px;
  max-width:16ch;
}
.hero h1 span{color:var(--blue);}
.hero-lead{
  font-size:clamp(16px, 1.8vw, 18.5px);
  color:var(--ink-soft);
  max-width:54ch;
  margin:0 auto 32px;
}
.hero-cta{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:64px;
}
.btn-lg{padding:13px 28px; font-size:16px;}

/* banda de pliuri, pe toată lățimea */
.hero-band{position:relative;}
.pleat-band{
  display:block;
  width:100%;
  height:clamp(90px, 13vw, 168px);
}
.hero-band-legend{
  display:flex;
  justify-content:space-between;
  max-width:var(--container);
  margin:0 auto;
  padding:12px 28px 0;
  font-size:12.5px;
}
.hero-band-legend .dirty{color:var(--ink-soft);}
.hero-band-legend .clean{color:var(--blue);}

.hero-photo img{
  width:100%;
  height:clamp(220px, 30vw, 380px);
  object-fit:cover;
}

/* --- Ilustrații --- */
.illus{width:100%; height:auto; display:block;}

/* --- De ce noi --- */
.reason-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:36px 56px;
}
.reason .ico{
  width:26px;
  height:26px;
  color:var(--blue);
  margin-bottom:12px;
}
.reason h3{margin-bottom:6px;}
.reason p{
  color:var(--ink-soft);
  font-size:15px;
  margin:0;
}

/* --- Despre noi --- */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:start;
}
.about-grid{align-items:start; grid-template-columns:1.15fr .85fr;}
.about-grid p{color:var(--ink-soft); margin:0 0 16px;}
.about-grid > div:first-child p:last-child{margin-bottom:0;}

/* coloana din dreapta: trei afirmații concrete */
.about-facts{
  border-left:2px solid var(--blue);
  padding-left:26px;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.about-fact h3{
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  margin:0 0 5px;
  letter-spacing:-0.01em;
}
.about-fact p{
  font-size:14.5px;
  color:var(--ink-soft);
  margin:0;
  line-height:1.55;
}

.stat-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.stat b{display:block; font-size:26px; font-weight:600; color:var(--blue);}
.stat span{font-size:13px; color:var(--ink-soft);}

/* --- Tehnologie: secțiuni transversale --- */
.cross-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
  margin-bottom:8px;
}
.cross{
  margin:0;
  padding:18px 14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-alt);
}
.cross figcaption{
  margin-top:12px;
  font-size:13.5px;
  color:var(--ink-soft);
  text-align:center;
  line-height:1.5;
}
.cross figcaption strong{
  color:var(--ink);
  font-weight:600;
}
.illus-type{width:100%; height:auto; display:block;}

@media (max-width:900px){
  .cross-grid{grid-template-columns:1fr; gap:20px; max-width:520px; margin-inline:auto;}
}
@media (max-width:760px){
  .reason-grid, .about-grid{grid-template-columns:1fr; gap:28px;}
  .about-facts{
    border-left:none;
    border-top:2px solid var(--blue);
    padding-left:0;
    padding-top:24px;
  }
}

/* ============================================================
   Footer
   ============================================================ */
footer{
  border-top:1px solid var(--line);
  padding:44px 0 32px;
  background:var(--bg-alt);
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  padding-bottom:24px;
  margin-bottom:20px;
  border-bottom:1px solid var(--line);
}
.footer-top .brand{height:24px;}
.footer-links{display:flex; gap:24px; flex-wrap:wrap; font-size:14px; color:var(--ink-soft);}
.footer-links a:hover{color:var(--ink);}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  color:var(--ink-soft);
}

/* ============================================================
   Catalog — tabel de aplicații auto
   ============================================================ */
.catalog-hero{padding:56px 0 24px; text-align:center;}
.catalog-hero p{color:var(--ink-soft); max-width:62ch; margin:0 auto;}
.catalog-hero .cat-year{
  color:var(--blue);
  font-weight:600;
}
.catalog-wrap{padding-bottom:48px;}

.cat-brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:2px solid var(--blue);
}
.cat-brandbar img{height:36px; width:auto; mix-blend-mode:multiply;}
.cat-count{font-size:13.5px; color:var(--ink-soft);}
.cat-count strong{color:var(--blue); font-weight:600;}

.cat-tools{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}
.cat-brandsel{
  min-width:230px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px 14px;
  font-family:inherit;
  font-size:14.5px;
  color:var(--ink);
  background:#fff;
  text-align:center;
  text-align-last:center;
}
.cat-brandsel:focus{outline:none; border-color:var(--blue);}

.cat-table-scroll{
  border:1px solid var(--line);
  border-radius:var(--radius);
}

/* lățimi fixe, ca tot tabelul să încapă în chenar fără derulare */
.cat-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:12.5px;
  background:#fff;
}
.cat-table col.w-brand{width:10%;}
.cat-table col.w-model{width:16%;}
.cat-table col.w-note {width:7%;}
.cat-table col.w-ac   {width:5%;}
.cat-table col.w-year {width:8%;}
.cat-table col.w-size {width:12%;}
.cat-table col.w-code {width:9%;}
.cat-table col.w-oem  {width:12%;}

/* --- antet pe două rânduri --- */
.cat-table thead th{
  position:sticky;
  z-index:3;
  background:var(--blue);
  color:#fff;
  font-weight:600;
  font-size:10.5px;
  letter-spacing:.03em;
  text-align:left;
  padding:8px 8px;
  border-right:1px solid rgba(255,255,255,.22);
  line-height:1.25;
}
.cat-table thead tr.cat-grouphead th{top:70px;}
.cat-table thead tr.cat-subhead th{
  top:100px;
  background:var(--blue-dark);
  font-size:10px;
  font-weight:500;
  padding:5px 8px;
}
.cat-table thead th:last-child{border-right:none;}
.cat-table thead th.c-grp{text-align:center; letter-spacing:.05em;}

/* --- coloana de marcă --- */
.cat-table td.c-brand{
  background:#e9edf1;
  color:var(--blue);
  font-weight:700;
  font-size:11.5px;
  text-align:center;
  vertical-align:middle;
  border-right:1px solid var(--line);
  padding:7px 5px;
  line-height:1.25;
}
.cat-table td.c-brand span{display:block; word-break:break-word;}

/* --- rânduri --- */
.cat-table tbody td{
  padding:6px 8px;
  border-bottom:1px solid #eceff2;
  border-right:1px solid #f3f5f7;
  vertical-align:middle;
  color:var(--ink);
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cat-table tbody tr:last-child td{border-bottom:none;}
.cat-table tbody td:last-child{border-right:none;}

.cat-table td.c-model{font-weight:500;}
.cat-table td.c-note{color:var(--ink-soft); font-size:11px; font-style:italic;}
.cat-table td.c-ac{
  text-align:center;
  font-weight:600;
  color:var(--blue);
  white-space:nowrap;
}
.cat-table th.c-ac{text-align:center;}
.cat-table td.c-year{color:var(--ink-soft); white-space:nowrap;}
.cat-table td.c-size{color:var(--ink-soft); font-size:11.5px;}
.cat-table td.c-oem{color:var(--ink-soft); font-size:11px;}

/* --- delimitarea grupurilor de marcă --- */
.cat-table tbody tr.brand-start > td{border-top:2px solid var(--blue);}
.cat-table tbody tr.brand-start:first-child > td{border-top:none;}
.cat-table tbody tr.brand-end > td{border-bottom:2px solid var(--blue);}
.cat-table tbody tr.brand-end:last-child > td{border-bottom:none;}

.cat-table tbody tr:hover > td:not(.c-brand){background:#f2f8fd;}
.cat-table tbody tr:hover > td.c-code{background:#dbe8f6;}

.cat-table td.c-code{background:var(--blue-pale); white-space:nowrap;}
.cat-table td.c-code b{color:var(--blue-dark); font-weight:700;}

.cat-legend{
  margin:12px 0 0;
  font-size:12.5px;
  color:var(--ink-soft);
}
.cat-nores{padding:26px 16px; margin:0; text-align:center; color:var(--ink-soft); font-size:14px;}
.catalog-back{text-align:center; padding-bottom:64px;}

/* ============================================================
   Telefon și tabletă: tabelul întreg, micșorat ca o pagină de PDF
   Se vede exact ca pe calculator, doar mai mic; cine vrea să
   citească dă zoom cu degetele. Scara o calculează script.js.
   ============================================================ */
.cat-zoom{transform-origin:top left;}

@media (max-width:900px){
  .cat-table-scroll{
    overflow:hidden;          /* stratul micșorat e decupat curat */
    border:1px solid var(--line);
    border-radius:var(--radius);
  }
  /* tabelul păstrează lățimea de pe calculator, ca proporțiile
     coloanelor să rămână identice */
  .cat-zoom{width:1000px;}
  .cat-table{
    width:1000px;
    min-width:1000px;
    table-layout:fixed;
  }
  /* antetul nu mai stă lipit — pagina se derulează, nu tabelul */
  .cat-table thead th{position:static;}

  /* indiciu pentru vizitator */
  .cat-zoomhint{display:block;}
}

.cat-zoomhint{
  display:none;
  margin:10px 0 0;
  font-size:12.5px;
  color:var(--ink-soft);
  text-align:center;
}

@media (max-width:640px){
  .catalog-hero{padding:44px 0 20px;}
  .cat-brandbar img{height:28px;}
  .cat-brandsel{width:100%; min-width:0;}
}

/* ============================================================
   Contact
   ============================================================ */
.contact-hero{padding:64px 0 8px; text-align:center;}
.contact-hero h1{margin-left:auto; margin-right:auto;}
.contact-hero p{color:var(--ink-soft); max-width:50ch; margin:0 auto;}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:64px;
  max-width:940px;
  margin:44px auto 88px;
}
.contact-info h2, .contact-form h2{font-size:19px; margin-bottom:16px;}
.contact-info > p{color:var(--ink-soft); font-size:15px; margin-bottom:24px;}

.contact-detail{
  display:flex;
  gap:16px;
  padding:14px 0;
  border-top:1px solid var(--line);
  font-size:15px;
}
.contact-detail:first-of-type{border-top:none;}
.contact-detail .k{
  font-size:13px;
  color:var(--ink-soft);
  width:74px;
  flex-shrink:0;
}
.contact-detail .v a:hover{color:var(--blue);}

.map-box{
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  line-height:0;
}
.map-box iframe{
  display:block;
  width:100%;
  height:220px;
  border:0;
}
@media (max-width:820px){
  .map-box iframe{height:200px;}
}

.field{margin-bottom:18px;}
.field label{display:block; font-size:14px; margin-bottom:6px;}
.field input, .field textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:11px 13px;
  font-family:inherit;
  font-size:15px;
  color:var(--ink);
  background:#fff;
  resize:vertical;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--blue);
}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.form-note{font-size:13px; color:var(--ink-soft); margin-top:12px;}

@media (max-width:820px){
  .contact-grid{grid-template-columns:1fr; gap:40px; margin-bottom:64px;}
  .field-row{grid-template-columns:1fr;}
}

/* ============================================================
   Small screens
   ============================================================ */
@media (max-width:640px){
  .wrap{padding:0 20px;}
  section{padding:56px 0;}
  .hero{padding:52px 0 0;}
  .hero-cta{flex-direction:column; align-items:stretch; margin-bottom:44px;}
  .hero-band-legend{padding:10px 20px 0; font-size:11.5px;}
  .stat-row{grid-template-columns:1fr; gap:12px;}
  .footer-top{flex-direction:column; align-items:flex-start;}
}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}

/* ============================================================
   Tipuri de filtre (hârtie / cărbune / antibacterian)
   ============================================================ */
.types-head{
  max-width:620px;
  margin:64px 0 32px;
  padding-top:40px;
  border-top:1px solid var(--line);
}
.types-title{
  font-size:20px;
  margin-bottom:8px;
}
.types-head p{
  color:var(--ink-soft);
  margin:0;
}

.type-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}

.type-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
}

.type-photo{
  aspect-ratio:4/3;
  background:var(--blue-pale);
  overflow:hidden;
}
.type-photo.is-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg-alt);
  border-bottom:1px dashed var(--line);
}
.type-photo.is-empty span{
  font-size:13px;
  color:var(--ink-soft);
}
.type-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* slot gol — marchează clar unde intră poza reală */
.type-body{
  padding:22px 20px 24px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.type-tag{
  align-self:flex-start;
  font-size:12px;
  color:var(--blue);
  background:var(--blue-pale);
  padding:3px 9px;
  border-radius:2px;
  margin-bottom:10px;
}
.type-body h4{
  font-size:17px;
  font-weight:600;
  margin:0 0 8px;
  letter-spacing:-0.01em;
}
.type-body p{
  font-size:14.5px;
  color:var(--ink-soft);
  margin:0 0 16px;
}

.type-specs{
  list-style:none;
  margin:auto 0 0;
  padding:16px 0 0;
  border-top:1px solid var(--line);
  font-size:14px;
  color:var(--ink-soft);
}
.type-specs li{
  position:relative;
  padding-left:18px;
  margin-bottom:7px;
}
.type-specs li:last-child{margin-bottom:0;}
.type-specs li::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--blue);
  opacity:.55;
}

@media (max-width:900px){
  .type-grid{grid-template-columns:1fr; gap:20px;}
  .type-photo{aspect-ratio:16/9;}
  .types-head{margin-top:48px;}
}

/* ============================================================
   Selector de limbă RO / EN / IT
   ============================================================ */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  letter-spacing:.04em;
  padding-left:14px;
  border-left:1px solid var(--line);
}
.lang-switch a,
.lang-switch span{
  color:var(--ink-soft);
  transition:color .15s ease;
}
.lang-switch a:hover{color:var(--blue);}
.lang-switch .is-active{
  color:var(--blue);
  font-weight:600;
}

@media (max-width:860px){
  /* pe mobil selectorul rămâne vizibil lângă butonul de meniu */
  .nav-actions{
    display:flex;
    margin-left:auto;
    margin-right:8px;
  }
  .nav-actions .btn{display:none;}
  .lang-switch{font-size:12px;}
  .lang-switch a{padding:4px 7px;}
}

/* ============================================================
   OEM & soluții personalizate
   ============================================================ */
#oem{scroll-margin-top:78px;}

.oem-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:28px;
}
.oem-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 28px;
  background:var(--bg-alt);
  display:flex;
  flex-direction:column;
}
.oem-card .ico{
  width:28px;
  height:28px;
  color:var(--blue);
  margin-bottom:16px;
}
.oem-card h3{
  font-size:18px;
  margin-bottom:8px;
}
.oem-card > p{
  font-size:15px;
  color:var(--ink-soft);
  margin:0 0 18px;
}
.oem-card .type-specs{
  margin-top:auto;
  border-top-color:var(--line);
}

.oem-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  margin-top:32px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.oem-foot p{
  margin:0;
  font-size:15px;
  color:var(--ink-soft);
  max-width:52ch;
}

@media (max-width:820px){
  .oem-grid{grid-template-columns:1fr; gap:20px;}
  .oem-card{padding:26px 22px;}
  .oem-foot{flex-direction:column; align-items:flex-start; gap:18px;}
  .oem-foot .btn{width:100%;}
}
