/* -- THEME TWEAKS -- */

.site-header {
  padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Text Balance / Pretty */

:is(h1, h2, h3, h4, h5, h6),
.balance {
  text-wrap: balance;
}

p,
blockquote,
li {
  text-wrap: pretty;
}

p:last-child:last-of-type {
  margin-bottom: 0px;
}

/* -- GENERATEPRESS / GENERATEBLOCKS COMPATIBILITY -- */

.main-navigation a[class*="gb-text-"] {
  display: inline-flex;
  text-decoration: none;
}

.main-navigation a.gb-text-f6fbb362,
.main-navigation a.gb-text-66ffcd2d {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
}

.main-navigation a.gb-text-f6fbb362:hover,
.main-navigation a.gb-text-f6fbb362:focus,
.main-navigation a.gb-text-66ffcd2d:hover,
.main-navigation a.gb-text-66ffcd2d:focus {
  background-color: var(--contrast-2);
  color: var(--base-2);
}

/* -- UTILITIES -- */

/* Line Limits */
.line-limit-3,
.line-limit-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-limit-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.line-limit-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* -- DOCUMENT DOWNLOADS -- */

.documents-downloads {
  display: grid;
  gap: 1rem;
}

.document-download-card {
  align-items: center;
  background: var(--base-2, #fff);
  border-radius: 0.75rem;
  color: var(--contrast, #1f2928);
  border: 1px solid var(--base-3, #e5e5e5);
  display: flex;
  justify-content: space-between;
  padding: clamp(1.25rem, 1.023rem + 1.136vw, 2rem);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.document-download-card:hover,
.document-download-card:focus-visible {
  color: var(--contrast, #1f2928);
  border-color: var(--accent-2, #5b7f1d);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 41, 40, 0.08);
}

.document-download-card__content {
  display: grid;
  gap: 0.25rem;
}

.document-download-card__meta {
  color: var(--accent-2, #5b7f1d);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.document-download-card__title {
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.document-download-card__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  margin-left: 1.5rem;
}

.document-download-card__icon svg {
  display: block;
  height: 1.5rem;
  width: 1.5rem;
}

.documents-downloads__archive-link {
  color: var(--contrast, #1f2928);
  display: inline-flex;
  font-weight: 800;
  margin-top: 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.documents-downloads__archive-link:hover,
.documents-downloads__archive-link:focus-visible {
  color: var(--accent-2, #5b7f1d);
}

/* -- POST LOOP CARDS -- */

.gb-loop-item-3028c691 {
  align-items: center;
}

.gb-loop-item-3028c691 .gb-element-fb238674 {
  flex: 0 0 140px;
}

.gb-loop-item-3028c691 .gb-element-935777e4 {
  flex: 1 1 auto;
  min-width: 0;
}

.gb-loop-item-3028c691 .gb-media-d3f4431b {
  display: block;
}

@media (max-width: 480px) {
  .gb-loop-item-3028c691 .gb-element-fb238674 {
    flex-basis: 110px;
  }

  .gb-loop-item-3028c691 .gb-media-d3f4431b {
    width: 110px;
  }
}

.store_modal_title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.758vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.wordpress-store-locator-address-title,
.wordpress-store-locator-radius-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
}

.store_locator_name {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 0.962rem + 0.189vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
}

.store_locator_actions .btn {
  border-radius: 12px;
}

.store_locator_infowindow {
  margin-bottom: 1rem;
}

.store_locator_infowindow .store_locator_actions .btn {
  margin: 0 10px;
}

/* -- DESPRE NOI — REȚEAUA NAȚIONALĂ DE COLECTARE -- */

.gb-element-reteaua003 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .gb-element-reteaua003 {
    grid-template-columns: 1fr;
  }
}

.gb-element-reteaua009 .store-locator-container-fluid {
  border-radius: 12px;
  overflow: hidden;
}

/* -- DESPRE NOI — ȘCOALA AZALEEA -- */

.gb-element-scoala003 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .gb-element-scoala003 {
    grid-template-columns: 1fr;
  }
}

/* -- DESPRE NOI — CTA BANNER -- */

.gb-element-cta001 {
  background-color: var(--contrast);
}

.gb-element-cta001 .wp-block-group {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* -- CONTACT — FORMULAR (CF7) -- */

.mc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

/* Inside the grid, spacing comes from the gap, not per-field margins, so the
   last cell isn't stretched by the theme's p:last-child rule. */
.mc-form__grid .mc-form__field {
  margin-bottom: 0;
}

.mc-form__field,
.mc-form__consent,
.mc-form__actions {
  margin-bottom: 1rem;
}

.mc-form__actions {
  margin-top: 0.5rem;
}

.mc-form__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--contrast-2);
}

/* CF7 injects a <br> after each label; with block labels it renders as an
   empty line between label and input. */
.mc-form__field br {
  display: none;
}

/* The control wrapper is inline by default, which leaves a text-node gap. */
.mc-form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 leaves whitespace text nodes around the control; zeroing the paragraph's
   font-size stops them rendering as stray lines, and children opt back in. */
.mc-form__field {
  font-size: 0;
}

.mc-form__field > label,
.mc-form__field .wpcf7-form-control-wrap,
.mc-form__field .wpcf7-not-valid-tip {
  font-size: 1rem;
}

.mc-form__field > label {
  font-size: 0.9375rem;
}

.mc-form__req {
  color: var(--accent-3);
}

.mc-form input[type="text"],
.mc-form input[type="email"],
.mc-form input[type="tel"],
.mc-form select,
.mc-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--gp-font--body);
  font-size: 1rem;
  color: var(--contrast);
  background-color: var(--base-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.mc-form ::placeholder {
  color: var(--contrast-3);
  opacity: 1;
}

.mc-form input:focus-visible,
.mc-form select:focus-visible,
.mc-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-color: var(--accent-2);
}

.mc-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--contrast-3);
}

.mc-form__consent a {
  color: var(--accent-2);
  text-underline-offset: 0.2em;
}

.mc-form__consent a:hover,
.mc-form__consent a:focus {
  color: var(--accent-3);
}

.mc-form .wpcf7-list-item {
  margin: 0;
}

.mc-form .wpcf7-submit {
  width: auto;
  cursor: pointer;
  border: 0;
}

/* Validation + response states */

.mc-form .wpcf7-not-valid {
  border-color: var(--accent-3);
}

.mc-form .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-3);
}

.mc-form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  font-size: 0.9375rem;
}

.mc-form form.sent .wpcf7-response-output {
  border-color: var(--accent-2);
  background-color: var(--base-3);
  color: var(--contrast-2);
}

.mc-form form.invalid .wpcf7-response-output,
.mc-form form.unaccepted .wpcf7-response-output,
.mc-form form.payment-required .wpcf7-response-output,
.mc-form form.failed .wpcf7-response-output,
.mc-form form.aborted .wpcf7-response-output,
.mc-form form.spam .wpcf7-response-output {
  border-color: var(--accent-3);
  background-color: var(--base-2);
  color: var(--accent-3);
}

@media (max-width: 767px) {
  .mc-form__grid {
    grid-template-columns: 1fr;
  }
}

/* -- CONTACT — HARTA -- */

.mc-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-1);
}

@media (max-width: 767px) {
  .mc-map {
    aspect-ratio: 4 / 3;
  }
}

.mc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -- DESPRE NOI — ACCORDION ROWS -- */

/* GeneratePress styles every <button>; the accordion toggle is not a button in
   the visual sense, so neutralise the theme's fill, border and hover accent. */
.gb-accordion__toggle,
.gb-accordion__toggle:hover,
.gb-accordion__toggle:focus,
.gb-accordion__toggle:active {
  background-color: transparent;
  border: 0;
  color: inherit;
}

/* Soft neutral wash instead of the orange accent. */
.gb-accordion__toggle:hover,
.gb-accordion__toggle:focus-visible,
.gb-accordion__toggle[aria-expanded="true"] {
  background-color: var(--base-5);
}

.gb-accordion__toggle:focus {
  outline: none;
}

.gb-accordion__toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

/* A closed panel must take no space. GB collapses it with max-height:0, but
   vertical padding sits outside max-height and still paints as an empty strip.
   The per-block inline CSS sets that padding, so override it by id-strength
   specificity rather than relying on source order. */
.gb-accordion .gb-accordion__content {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

/* Restore breathing room only while the row is open. */
.gb-accordion
  .gb-accordion__item:has( .gb-accordion__toggle[aria-expanded="true"] )
  .gb-accordion__content {
  padding-top: 0.5rem;
  padding-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

/* -- OVERLAY PANELS — MODAL -- */

.gb-overlay .gb-overlay__content {
  position: relative;
  max-width: min(46rem, calc(100vw - 2rem));
  max-height: min(80vh, 46rem);
  overflow-y: auto;
  background-color: var(--base-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(23, 32, 33, 0.22);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  padding-top: clamp(2.75rem, 2.25rem + 2vw, 3.5rem);
}

.mc-overlay-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-1);
  border-radius: 50%;
  background-color: var(--base-2);
  color: var(--contrast-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mc-overlay-close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.mc-overlay-close:hover,
.mc-overlay-close:focus-visible {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--base-2);
}

.mc-overlay-close:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* The panel content carries its own section wrapper (background + padding),
   which would render as a second panel inside the modal. */
.gb-overlay .gb-overlay__content > [class*="section-"] {
  background-color: transparent;
  padding: 0;
  max-width: none;
}

.gb-overlay .gb-overlay__content > *:last-child,
.gb-overlay .gb-overlay__content > [class*="section-"] > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .gb-overlay .gb-overlay__content {
    max-height: 85vh;
  }
}

/* -- CINE SUNTEM — CARD CTA ALIGNMENT -- */

/* Card bodies differ in length, so a fixed margin leaves the CTAs at
   different heights. The cards are already flex columns: pushing the CTA
   with auto margin pins it to the bottom of every card. */
.gb-element-csgrid > * {
  justify-content: flex-start;
}

.gb-element-csgrid [class*="gb-text-csc"] {
  margin-top: auto;
  padding-top: 1.25rem;
}
