/* ==========================================================================
   Fonturile, găzduite pe serverul propriu
   --------------------------------------------------------------------------
   Aduse de pe serverele Google, textul se reașeza după ce soseau, iar pagina
   sărea cu circa o sută de pixeli — destul cât o apăsare să nimerească alt
   element. Livrate de aici, ajung odată cu pagina.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonturi/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonturi/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonturi/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonturi/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Fonturi de rezervă potrivite ca lățime, folosite în intervalul scurt până
   când sosesc cele de mai sus. Fără potrivire, textul s-ar reașeza. */

@font-face {
  font-family: 'Inter rezervă';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 89.6%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Oswald rezervă';
  src: local('Arial Narrow'), local('Helvetica Neue Condensed'), local('Liberation Sans Narrow');
  size-adjust: 111%;
  ascent-override: 108%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ==========================================================================
   EtherHVAC — stiluri principale
   ========================================================================== */

:root {
  --red: #ae1b23;
  --red-dark: #8c141b;
  --red-bright: #d8434e;
  --red-soft: #fbeef0;
  --ink: #16191d;
  --ink-2: #1e242b;
  --text: #3a414a;
  --muted: #6d757f;
  --line: #e5e8eb;
  --bg-soft: #f5f6f8;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(22, 25, 29, 0.06);
  --shadow-md: 0 16px 40px rgba(22, 25, 29, 0.12);
  --font-body: "Inter", "Inter rezervă", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Oswald", "Oswald rezervă", "Arial Narrow", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Titluri */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* Butoane */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(174, 27, 35, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #cfd4d9;
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--red);
}

.btn-light:hover {
  background: #f1f2f4;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 17px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--white);
  background: transparent;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header.solid,
body.menu-open .site-header {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(22, 25, 29, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: inherit;
}

.logo img {
  flex-shrink: 0;
}

.logo em {
  font-style: normal;
  color: var(--red);
}

.site-header.solid .logo em,
body.menu-open .logo em {
  color: var(--red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-list > li > a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header.solid .nav-list > li > a:hover,
body.menu-open .nav-list > li > a:hover {
  background: var(--bg-soft);
}

.nav-list > li > a.active {
  background: var(--red);
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  padding: 11px 20px;
  font-size: 14px;
}

/* Submeniu Produse */

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* Doar pe dispozitive cu mouse: pe ecran tactil starea de „hover" poate
   rămâne blocată după o atingere, iar submeniul ar acoperi pagina. */
@media (hover: hover) {
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.sub-menu a:hover {
  background: var(--red-soft);
  color: var(--red);
}

.has-sub > a .chevron {
  transition: transform 0.2s;
}

.has-sub:hover > a .chevron {
  transform: rotate(180deg);
}

/* Buton meniu mobil */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  color: inherit;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(13, 16, 20, 0.6) 0%, rgba(13, 16, 20, 0.45) 45%, rgba(13, 16, 20, 0.72) 100%),
    url("../img/hero-bg.svg") center / cover no-repeat;
  background-color: var(--ink);
  padding: 140px 0 100px;
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hero p {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: float 2.2s ease-in-out infinite;
}

.hero-scroll:hover {
  color: var(--white);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   Secțiuni
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--ink);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark .overline {
  color: var(--red-bright);
}

.section-dark .section-head p {
  color: #9aa3ad;
}

/* Categorii de produse */

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

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Caseta e pătrată, ca fotografiile de produs să încapă întregi: sunt
   fotografiate în format pătrat, iar o decupare ar tăia din ele. */
.cat-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.05);
}

.cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}

.cat-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cat-card-body h3 a:hover {
  color: var(--red);
}

.cat-card-body p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
  flex: 1;
}

/* Despre noi */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--ink-2);
  border: 1px solid #2a313a;
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s, border-color 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.contact-card .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(174, 27, 35, 0.18);
  color: var(--red-bright);
  margin-bottom: 18px;
}

.contact-card .label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b939e;
  margin-bottom: 6px;
}

.contact-card .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}

.contact-card a.value:hover {
  color: var(--red-bright);
}

.contact-card .value + .value {
  margin-top: 12px;
}

.contact-card a.value {
  display: block;
}

/* Eticheta de deasupra fiecărei valori — țara pentru telefoane, rolul pentru
   adresele de e-mail. Trebuie citită dintr-o privire, ca vizitatorul să știe
   pe ce sună sau cui scrie. */
.contact-card .value small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--red-bright);
  margin-bottom: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #101317;
  color: #9aa3ad;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 72px 0 56px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red-bright);
}

.footer-bottom {
  border-top: 1px solid #21262d;
  padding: 24px 0;
  text-align: center;
  font-size: 13.5px;
  color: #6d757f;
}

/* ==========================================================================
   Pagini de categorie
   ========================================================================== */

.page-hero {
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(13, 16, 20, 0.72) 0%, rgba(13, 16, 20, 0.55) 55%, rgba(13, 16, 20, 0.8) 100%),
    url("../img/hero-bg.svg") center / cover no-repeat;
  background-color: var(--ink);
  padding: 160px 0 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

/* Introducere + caracteristici */

.cat-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

/* Când sub titlu nu există text, coloana se aliniază pe mijloc. */
.cat-intro-scurt {
  align-items: center;
}

.cat-desc h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  margin-bottom: 20px;
}

.cat-desc p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.features-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.features-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}

/* Tabel specificații */

.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 34%;
  min-width: 180px;
  background: #fafbfc;
  font-weight: 600;
  color: var(--ink);
}

.spec-table td {
  color: var(--muted);
}

/* Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Fotografiile se văd întregi: cele cu alt format primesc o ramă,
   în loc să fie decupate */
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--bg-soft);
}

/* Catalog PDF */

.pdf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.pdf-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red);
  flex-shrink: 0;
}

.pdf-card-top .pdf-text {
  flex: 1;
  min-width: 220px;
}

.pdf-card-top h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.pdf-card-top p {
  color: var(--muted);
  font-size: 15px;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pdf-viewer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}

.pdf-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 64px 24px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: background 0.25s;
}

.pdf-load:hover {
  background: #eef0f3;
}

.pdf-load svg {
  color: var(--red);
}

.pdf-load span {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.pdf-load small {
  max-width: 380px;
  font-size: 13.5px;
  color: var(--muted);
}

.pdf-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: var(--bg-soft);
}

/* Afișat doar când browserul nu poate reda PDF-ul încorporat (frecvent pe mobil) */
.pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
}

.pdf-fallback p {
  color: var(--muted);
  font-size: 15px;
  max-width: 340px;
}

/* Bandă CTA */

.cta-strip {
  background: linear-gradient(120deg, var(--red) 0%, #78121a 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 15, 0.88);
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: var(--red);
}

/* ==========================================================================
   Animații la scroll
   ========================================================================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll {
    animation: none;
  }
}


/* ==========================================================================
   Zone de apăsare
   --------------------------------------------------------------------------
   Pe ecran tactil, o legătură de 16–24 px înălțime este greu de nimerit cu
   degetul. Marginile de mai jos duc fiecare zonă apăsabilă spre 44 px, fără
   să schimbe aspectul textului.
   ========================================================================== */

.footer-col a,
.footer-contact a,
.breadcrumbs a {
  display: inline-block;
  padding: 10px 0;
}

/* Valorile din fișele de contact rămân una sub alta: pe ecran îngust, două
   numere de telefon pe același rând ajung lipite. */
.contact-card a.value,
.contact-card span.value {
  padding: 10px 0;
}

/* Cardul de categorie se apasă oriunde, nu doar pe titlu sau pe buton:
   imaginea, textul și spațiul dintre ele duc toate în aceeași pagină. */
.cat-card {
  position: relative;
}

.cat-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cat-card .btn,
.cat-card-media {
  position: relative;
  z-index: 2;
}

.logo {
  min-height: 44px;
}

.footer-col li,
.footer-contact li {
  margin-bottom: 2px;
}

.contact-card .value + .value {
  margin-top: 2px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

@media (max-width: 960px) {
  .nav-cta {
    padding: 15px 20px;
  }

  .nav-list > li > a {
    padding: 14px;
  }

  .sub-menu a {
    padding: 13px 14px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    color: var(--ink);
    padding: 16px 24px 28px;
    box-shadow: 0 24px 40px rgba(22, 25, 29, 0.12);
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list > li > a {
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 16px;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    /* „inherit", nu „visible": altfel submeniul rămâne apăsabil peste
       conținutul paginii chiar și cu sertarul de meniu închis, iar o
       atingere pe un card ajunge la altă categorie. */
    visibility: inherit;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 2px 0 6px 14px;
    margin: 2px 0 4px 14px;
    min-width: 0;
  }

  .has-sub > a .chevron {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .about-grid,
  .cat-intro {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .cat-grid,
  .contact-grid,
  .features-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 90px;
  }

  .pdf-card {
    padding: 26px 20px;
  }

  .pdf-frame {
    height: 440px;
  }

  .pdf-actions .btn {
    width: 100%;
  }

  .social-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
