/*
 * Layout: container și grid, bara de sus, header + meniuri, meniul mobil, footer.
 */

/* ── Container și grid (doar coloanele folosite) ──────────── */

.container {
  width: 1170px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-xs-12,
.col-sm-4,
.col-sm-6,
.col-sm-8,
.col-sm-12,
.col-md-3,
.col-md-5,
.col-md-7,
.col-md-9,
.col-lg-3,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-9,
.col-lg-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.col-xs-12 {
  float: left;
  width: 100%;
}

@media (min-width: 768px) {
  .col-sm-4,
  .col-sm-6,
  .col-sm-8,
  .col-sm-12 { float: left; }
  .col-sm-12 { width: 100%; }
  .col-sm-8 { width: 66.66666667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-4 { width: 33.33333333%; }
}

@media (min-width: 992px) {
  .col-md-3,
  .col-md-5,
  .col-md-7,
  .col-md-9 { float: left; }
  .col-md-9 { width: 75%; }
  .col-md-7 { width: 58.33333333%; }
  .col-md-5 { width: 41.66666667%; }
  .col-md-3 { width: 25%; }
}

@media (min-width: 1200px) {
  .col-lg-3,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-9,
  .col-lg-12 { float: left; }
  .col-lg-12 { width: 100%; }
  .col-lg-9 { width: 75%; }
  .col-lg-7 { width: 58.33333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-5 { width: 41.66666667%; }
  .col-lg-3 { width: 25%; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container { width: 960px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container { width: 738px; }
}

@media (max-width: 767px) {
  .container { width: 100%; }
  .mobile-text-left { text-align: left; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.right-content {
  float: right;
}

#main {
  padding-left: 0;
  padding-right: 0;
}

#site-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ── Bara de sus ──────────────────────────────────────────── */

#top-bar {
  position: relative;
  z-index: 9998;
  border-top: 4px solid var(--dragne-navy);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--dragne-navy);
  font-family: var(--dragne-font);
  font-size: 13px;
}

#top-bar .top-bar-text {
  display: none;
}

#top-bar a {
  color: rgba(255, 255, 255, 0.65);
}

#top-bar a:hover {
  color: #fff;
}

/* ── Header ───────────────────────────────────────────────── */

#header {
  position: relative;
  z-index: 300;
  background-color: var(--dragne-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header .header-type {
  padding-top: 20px;
  padding-bottom: 20px;
}

#header .header-standard {
  display: table;
  width: 100%;
}

#header .header-standard #logo {
  display: table-cell;
  margin-right: 15px;
  vertical-align: middle;
}

#header .header-standard .nav-content {
  display: table-cell;
  vertical-align: middle;
}

#header .header-standard nav {
  float: right;
}

/* Logo: SVG inline, linia fină albă + blur ușor = aspectul vechiului PNG */
#header #logo a,
#header #logo .site-logo {
  display: block;
  line-height: 0;
}

#logo .site-logo {
  max-width: 210px;
}

#header #logo .sticky-logo {
  display: none;
  line-height: 0;
}

#header #logo .dragne-logo-svg {
  display: block;
  width: 271px;
  height: 30px;
  overflow: visible;
}

/* Înmuierea ușoară a logo-ului stă pe învelitoare, nu pe <svg>: Safari (iOS) desenează o dungă neagră
   la marginea zonei de filtru când blur e pe un <svg> inline. */
#header #logo .site-logo,
#header #logo .sticky-logo {
  filter: blur(0.4px);
}

/* iOS (toate browserele folosesc WebKit): fără înmuiere — filtrul lasă tot o dungă neagră deasupra logo-ului. */
@supports (-webkit-touch-callout: none) {
  #header #logo .site-logo,
  #header #logo .sticky-logo {
    filter: none;
  }
}

#header #logo .dragne-logo-svg path {
  stroke: #fff;
  stroke-width: 0.35px;
  stroke-linejoin: round;
}

/* Meniul principal */
#header ul.menu {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

#header ul.menu > li.menu-item {
  position: relative;
  float: left;
}

nav ul.menu > li > a {
  border-radius: 2px;
}

nav ul.menu > li.menu-item-has-children > a {
  border-radius: 2px 2px 0 0;
}

#header ul.menu > li.menu-item > a {
  position: relative;
  display: block;
  padding: 0 10px;
  font-family: var(--dragne-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  background-color: transparent;
  transition: color 0.2s ease;
}

#header ul.menu > li.menu-item:hover > a,
#header ul.menu > li.menu-item > a:hover,
#header ul.menu li.menu-item.current-menu-item > a,
#header ul.menu li.menu-item.current-menu-parent > a,
#header ul.menu li.menu-item.current-menu-ancestor > a,
#header ul.menu > li.menu-item.current_page_parent > a,
#header ul.menu > li.menu-item.current-page-ancestor > a {
  color: #fff;
  background-color: transparent;
}

#header ul.menu > li.current-menu-item > a,
#header ul.menu > li.current-menu-ancestor > a {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Săgeata elementelor cu sub-meniu (iconița: components.css) */
#header ul.menu > li.menu-item-has-children > a::after {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.4;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#header ul.menu > li.menu-item:hover > a::after {
  color: #fff;
}

/* Sub-meniuri */
#header ul.menu ul.sub-menu {
  position: absolute;
  z-index: 13;
  top: 100%;
  display: none;
  min-width: 190px;
  padding: 8px 0;
  list-style: none;
  border-top: 0;
  background-color: var(--dragne-navy);
  box-shadow: 0 12px 24px rgba(14, 25, 47, 0.25);
  animation-duration: 0.2s;
  animation-fill-mode: both;
}

#header ul.menu ul.sub-menu ul.sub-menu {
  left: 100%;
  top: -4px;
}

/* .in-window (site.js): sub-meniul ar ieși din fereastră → se deschide spre stânga */
#header ul.menu ul.sub-menu.in-window {
  right: 0;
}

#header ul.menu ul.sub-menu ul.sub-menu.in-window {
  left: auto;
  right: 100%;
}

#header ul.menu ul.sub-menu > li.menu-item {
  position: relative;
}

#header ul.menu ul.sub-menu > li.menu-item > a {
  display: block;
  min-width: 120px;
  padding: 2px 10px;
  border: 0;
  font-family: var(--dragne-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
  background-color: transparent;
}

#header ul.menu ul.sub-menu > li.menu-item > a:hover,
#header ul.menu ul.sub-menu > li.current-menu-item > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Butonul meniului mobil (iconița: components.css) */
#header #mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #f6f3f3;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

#header #mobile-menu-button:hover {
  color: #fff;
  background-color: var(--dragne-navy);
}

/* Header sticky (clasa pusă de site.js) */
#header.sticky-header {
  position: fixed;
  z-index: 9997;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 40px;
  border-bottom-width: 0;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.1);
}

#header.sticky-header .header-type {
  padding-top: 0;
  padding-bottom: 0;
}

#header.sticky-header #logo {
  float: left;
  text-align: left;
}

#header.sticky-header #logo .site-logo {
  display: none;
}

#header.sticky-header #logo .sticky-logo {
  display: block;
}

#header.sticky-header #logo .sticky-logo .dragne-logo-svg {
  margin-top: 5px;
}

#header.sticky-header .nav-content,
#header.sticky-header nav {
  float: right;
}

#header.sticky-header nav {
  width: auto;
}

#header.sticky-header nav ul.menu > li > a {
  border-radius: 0;
}

#header.sticky-header #mobile-menu-button {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.sticky-menu-additional {
  position: fixed;
  z-index: 9;
  top: 0;
  -webkit-transform: translateZ(0);
}

.sticky-menu-additional > ul {
  margin-left: 0;
  margin-right: 0;
}

.sticky-menu-additional .language-change-content {
  display: none;
}

/* ── Meniul mobil ─────────────────────────────────────────── */

.mobile-menu-content {
  display: none;
}

.mobile-menu-content ul.menu > li.menu-item > a {
  font-family: var(--dragne-font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dragne-navy);
}

.mobile-menu-content ul.menu ul.sub-menu > li.menu-item > a {
  font-family: var(--dragne-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dragne-grey);
}

.back-site-content {
  font-family: var(--dragne-font-text);
  background-color: var(--dragne-navy);
}

@media (max-width: 991px) {
  #header {
    top: 0;
  }

  #header #mobile-menu-button {
    display: block;
  }

  #header nav ul.menu {
    display: none;
  }

  #header.sticky-header {
    position: relative;
  }

  #main {
    position: relative;
    left: 0;
    transition: left 0.4s ease;
  }

  .mobile-site-content {
    overflow: hidden;
  }

  .mobile-site-content #main {
    left: 300px;
    max-height: 100%;
    overflow: hidden;
    cursor: pointer;
  }

  .mobile-menu-content {
    position: fixed;
    z-index: 11;
    top: 0;
    bottom: 0;
    left: -300px;
    display: block;
    width: 300px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: rgba(153, 153, 153, 0.1) 1px 0 1px;
    transition: left 0.4s ease;
  }

  .mobile-menu-content.in-window {
    left: 0;
  }

  .mobile-menu-content .back-site-content a {
    display: block;
    padding: 12px 15px;
    font-weight: normal;
    text-align: right;
    color: #fff;
    transition: padding 0.4s ease, background-color 0.4s ease;
  }

  .mobile-menu-content .back-site-content a::before {
    font-size: 16px;
    padding-right: 5px;
  }

  .mobile-menu-content .back-site-content a:hover {
    padding-right: 25px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-content ul.menu {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    list-style: none;
  }

  .mobile-menu-content ul.menu li.menu-item {
    position: relative;
    border-bottom: 1px solid var(--dragne-line);
  }

  .mobile-menu-content ul.menu li.menu-item > a {
    position: relative;
    display: block;
    padding: 12px 15px;
  }

  .mobile-menu-content ul.menu li.menu-item.menu-item-has-children > a::after {
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -0.5em;
  }

  .mobile-menu-content ul.menu li.menu-item.active-sub-menu {
    border-bottom: 0;
  }

  .mobile-menu-content ul.menu li.menu-item.active-sub-menu > a {
    border-bottom: 1px solid var(--dragne-line);
  }

  .mobile-menu-content ul.menu li.menu-item ul.sub-menu {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    list-style: none;
    animation-duration: 0.2s;
    animation-fill-mode: both;
  }

  .mobile-menu-content ul.menu li.menu-item ul.sub-menu li.menu-item > a {
    padding: 12px 30px;
  }

  .mobile-menu-content ul.menu li.menu-item ul.sub-menu li.menu-item li.menu-item > a {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .mobile-menu-content ul.menu li.menu-item ul.sub-menu li.menu-item ul.sub-menu {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--dragne-line);
  }
}

/* ── Footer ───────────────────────────────────────────────── */

.dragne-footer {
  padding-block: 112px 40px;
  background-color: var(--dragne-navy);
  font-family: var(--dragne-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.dragne-footer .df-wrap {
  width: min(1170px, 100% - 32px);
  margin-inline: auto;
}

.dragne-footer .df-lead {
  max-width: 16em;
  margin: 0 0 72px;
  font-family: var(--dragne-font);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Înaintea regulilor generale pentru linkuri: la hover, offset-ul de 4px le înlocuiește pe cel de 8px */
.dragne-footer .df-lead a {
  font-weight: inherit;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

.dragne-footer .df-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dragne-footer .df-col-title {
  margin: 0 0 16px;
  font-family: var(--dragne-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.dragne-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dragne-footer li {
  margin: 0;
}

.dragne-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.dragne-footer a:hover,
.dragne-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dragne-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dragne-footer .df-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.dragne-footer .df-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.dragne-footer .df-legal a {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
  .dragne-footer { padding-block: 72px 32px; }
  .dragne-footer .df-lead { margin-bottom: 48px; }
  .dragne-footer .df-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
