/*
 * pages.css — stiluri specifice pentru pagini standard (Despre, Contact, brand pages)
 */

.gm-page-content {
  padding: var(--gm-s-7) 0;
}

/* Brand single — hero overlay card stil Bridge */
.gm-brand-single .gm-hero-overlay {
  background: transparent;
  padding: 0;
}
.gm-brand-single .gm-hero-card {
  background: var(--gm-bg-overlay);
  padding: var(--gm-s-5) var(--gm-s-6);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.gm-brand-single .gm-hero-title {
  margin-bottom: var(--gm-s-2);
}
.gm-brand-single .gm-hero-subtitle {
  font-style: italic;
  margin-top: var(--gm-s-2);
}

/* Brand content — Caracteristici principale, Istoricul, Galerie, Gama */
.gm-brand-single .gm-brand-content {
  padding-top: var(--gm-s-5);
  padding-bottom: var(--gm-s-5);
}
.gm-brand-single .gm-brand-content:not(.has-hero) {
  padding-top: var(--gm-header-height);
}

/* Bridge-style hero — fullbleed image cu overlay box maro peste */
.gm-bridge-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  /* Padding equal to header height ca imaginea sa fie sub topbar */
}
.gm-bridge-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.gm-bridge-hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gm-bridge-hero-title {
  color: var(--gm-white);
  font-size: 60px;
  font-weight: 600;
  font-family: var(--gm-font-display);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  padding: 0 var(--gm-s-4);
}
/* over-hero box — randerd din content, peste imaginea hero (max-width contained) */
.gm-row.over-hero {
  margin-top: -180px;  /* trage box-ul peste hero, jos central pe imagine */
  position: relative;
  z-index: 5;
  background: transparent;
  padding: 0;
}
.gm-row.over-hero > .gm-col {
  display: flex;
  justify-content: center;
}
.gm-row.over-hero .gm-row {
  margin: 0;
  width: 100%;
}
.gm-row.over-hero .gm-col-10-12 {
  width: 100%;
  max-width: 720px;  /* match live exact box width */
  margin: 0 auto;
}
.gm-row.over-hero .gm-col-1-12 {
  display: none;
}
.gm-row.over-hero .gm-holder.box.block-dark.hero-box {
  background: rgba(91, 69, 56, 0.92);
  color: var(--gm-white);
  padding: var(--gm-s-5) var(--gm-s-6);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.gm-row.over-hero h1 {
  color: var(--gm-white);
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: var(--gm-s-2);
  font-weight: 500;
}
.gm-row.over-hero .gm-text p,
.gm-row.over-hero p.intro,
.gm-row.over-hero p.intro.script {
  color: var(--gm-white);
  font-family: var(--gm-font-script);
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  opacity: 0.96;
}
.gm-brand-content {
  padding: var(--gm-s-7) 0;
}
.gm-brand-content h2,
.gm-brand-content h3 {
  font-style: italic;
  font-weight: 500;
}

/* WPBakery legacy shortcodes rendered minimal */
.gm-row { display: block; margin-bottom: var(--gm-s-4); }
.gm-col { display: block; }
.gm-col-1-12 { width: 8.33%; }
.gm-col-2-12 { width: 16.66%; }
.gm-col-3-12 { width: 25%; }
.gm-col-4-12 { width: 33.33%; }
.gm-col-5-12 { width: 41.66%; }
.gm-col-6-12, .gm-col-1-2 { width: 50%; }
.gm-col-7-12 { width: 58.33%; }
.gm-col-8-12, .gm-col-2-3 { width: 66.66%; }
.gm-col-9-12, .gm-col-3-4 { width: 75%; }
.gm-col-10-12 { width: 83.33%; }
.gm-col-11-12 { width: 91.66%; }
.gm-col-12-12, .gm-col-1-1 { width: 100%; }
.gm-col-1-3 { width: 33.33%; }

/* qode_elements_holder — container cu coloane configurabile */
.gm-holder { display: block; }
.gm-holder.gm-holder-one_column { display: block; }
.gm-holder.gm-holder-two_columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gm-s-4); }
.gm-holder.gm-holder-three_columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gm-s-4); }
.gm-holder.gm-holder-four_columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gm-s-4); }

/* Box variant — Caracteristici principale (white card cu listă) */
.gm-holder.box {
  background: var(--gm-white);
  padding: var(--gm-s-5);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-card);
}
.gm-holder.box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gm-holder.box li {
  position: relative;
  padding-left: var(--gm-s-5);
  margin-bottom: var(--gm-s-2);
  list-style: none;
}
.gm-holder.box li::before {
  content: '🌿';
  position: absolute;
  left: 0; top: 0;
  color: var(--gm-green);
}

/* Block dark — Hero box și Istoricul section */
.gm-holder.block-dark {
  background: var(--gm-bg-overlay);
  color: var(--gm-white);
  padding: var(--gm-s-5) var(--gm-s-6);
  margin: 0 auto;
  text-align: center;
}
.gm-holder.block-dark h1, .gm-holder.block-dark h3 { color: var(--gm-white); }
.gm-holder.block-dark p.intro.script { font-style: italic; opacity: 0.95; }

.gm-holder.hero-box {
  max-width: 720px;
  margin: 0 auto;
}

/* Section utility classes (din content) */
.gm-text { margin-bottom: var(--gm-s-3); }
.gm-text h3.script { font-style: italic; font-weight: 500; }
.gm-text h2.script { font-style: italic; font-weight: 500; text-align: center; margin-bottom: var(--gm-s-4); }
.gm-text h4.script.underline {
  font-style: italic;
  font-weight: 500;
  margin: var(--gm-s-5) 0 var(--gm-s-3);
  padding-bottom: var(--gm-s-2);
  border-bottom: 1px solid var(--gm-rule);
}

/* Spacer */
.gm-spacer.space-medium { height: 48px; }
.gm-spacer.space-normal { height: 32px; }

/* Image standalone */
.gm-img { margin: var(--gm-s-3) 0; text-align: center; }
.gm-img img { display: inline-block; max-width: 100%; height: auto; }

/* vc_single_image — contained în coloana părinte, nu full bleed */
.gm-img-single {
  margin: var(--gm-s-3) 0;
}
.gm-img-single img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--gm-radius-sm);
}
.gm-img-single.column-logo img {
  max-width: 200px;
  margin: 0 auto;
}

/* Layout cu coloane interne (vc_row_inner cu vc_column_inner) */
.gm-row.section2 > .gm-col,
.gm-row.section4 > .gm-col,
.gm-row.section5 > .gm-col {
  width: 100%;
  max-width: var(--gm-container);
  margin: 0 auto;
  padding-inline: var(--gm-s-4);
}
.gm-row .gm-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gm-s-4);
  align-items: flex-start;
  margin-bottom: var(--gm-s-4);
}
.gm-row .gm-row > .gm-col {
  min-width: 0;
}
/* Width helpers in flex context */
.gm-row .gm-row > .gm-col-1-12 { flex: 0 0 auto; width: calc(8.33% - var(--gm-s-4) + var(--gm-s-4)/12); }
.gm-row .gm-row > .gm-col-2-12 { flex: 0 0 auto; width: calc(16.66% - var(--gm-s-4) + var(--gm-s-4)/6); }
.gm-row .gm-row > .gm-col-3-12 { flex: 0 0 auto; width: calc(25% - var(--gm-s-4)*0.75); }
.gm-row .gm-row > .gm-col-4-12 { flex: 0 0 auto; width: calc(33.33% - var(--gm-s-4)*0.667); }
.gm-row .gm-row > .gm-col-5-12 { flex: 0 0 auto; width: calc(41.66% - var(--gm-s-4)*0.583); }
.gm-row .gm-row > .gm-col-6-12,
.gm-row .gm-row > .gm-col-1-2 { flex: 0 0 auto; width: calc(50% - var(--gm-s-4)*0.5); }
.gm-row .gm-row > .gm-col-7-12 { flex: 0 0 auto; width: calc(58.33% - var(--gm-s-4)*0.417); }
.gm-row .gm-row > .gm-col-8-12,
.gm-row .gm-row > .gm-col-2-3 { flex: 0 0 auto; width: calc(66.66% - var(--gm-s-4)*0.333); }
.gm-row .gm-row > .gm-col-9-12,
.gm-row .gm-row > .gm-col-3-4 { flex: 0 0 auto; width: calc(75% - var(--gm-s-4)*0.25); }
.gm-row .gm-row > .gm-col-10-12 { flex: 0 0 auto; width: calc(83.33% - var(--gm-s-4)*0.167); }
.gm-row .gm-row > .gm-col-11-12 { flex: 0 0 auto; width: calc(91.66% - var(--gm-s-4)*0.083); }
.gm-row .gm-row > .gm-col-12-12,
.gm-row .gm-row > .gm-col-1-1 { flex: 0 0 auto; width: 100%; }
.gm-row .gm-row > .gm-col-1-3 { flex: 0 0 auto; width: calc(33.33% - var(--gm-s-4)*0.667); }

@media (max-width: 768px) {
  .gm-row .gm-row > .gm-col { width: 100% !important; }
}

/* Galerie thumbnails strip — match Bridge live (10-col strip) */
.gm-gallery {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: var(--gm-s-5) 0;
}
.gm-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gm-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gm-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gm-gallery-cols-5 { grid-template-columns: repeat(5, 1fr); }
.gm-gallery-cols-6 { grid-template-columns: repeat(6, 1fr); }
.gm-gallery-cols-7 { grid-template-columns: repeat(7, 1fr); }
.gm-gallery-cols-8 { grid-template-columns: repeat(8, 1fr); }
.gm-gallery-cols-9 { grid-template-columns: repeat(9, 1fr); }
.gm-gallery-cols-10 { grid-template-columns: repeat(10, 1fr); }
.gm-gallery-cols-11 { grid-template-columns: repeat(11, 1fr); }
.gm-gallery-cols-12 { grid-template-columns: repeat(12, 1fr); }
.gm-gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}
.gm-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Product card (image_with_text) — pentru gama produse */
.gm-product {
  text-align: center;
  margin-bottom: var(--gm-s-4);
}
.gm-product-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gm-radius-circle);
  overflow: hidden;
  background: var(--gm-bg-soft, #f5f0ed);
  margin-bottom: var(--gm-s-2);
}
.gm-product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gm-product:hover .gm-product-image img { transform: scale(1.06); }
.gm-product-title {
  font-family: var(--gm-font-display);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: var(--gm-walnut-text);
  text-align: center;
}

/* Video wrapper (vc_video) */
.gm-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: var(--gm-s-4) auto;
  aspect-ratio: 16 / 9;
}
.gm-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--gm-radius);
}

/* Sections cu el_class din shortcode-uri Bridge */
.gm-row.section2 { padding: var(--gm-s-7) 0; background: var(--gm-cream); }
.gm-row.section3, .gm-row.block-dark {
  padding: var(--gm-s-8) 0;
  background: var(--gm-bg-section-dark);
  color: var(--gm-white);
}
.gm-row.section3 h2, .gm-row.section3 h3, .gm-row.block-dark h2, .gm-row.block-dark h3 { color: var(--gm-white); }
.gm-row.section4 { padding: var(--gm-s-8) 0; background: var(--gm-white); }
.gm-row.section5 { padding: var(--gm-s-8) 0; background: var(--gm-cream); }
.gm-row.section-minus { margin-top: -40px; }

/* CF7 stub form */
.gm-cf7-stub {
  background: var(--gm-white);
  padding: var(--gm-s-5);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-card);
  max-width: 600px;
}
.gm-cf7-stub label {
  display: block;
  font-size: 13px;
  color: var(--gm-text-muted);
  margin-bottom: var(--gm-s-3);
}
.gm-cf7-stub input, .gm-cf7-stub textarea {
  width: 100%;
  padding: var(--gm-s-2);
  border: 0;
  border-bottom: 1px solid var(--gm-rule);
  background: transparent;
  font: inherit;
  color: var(--gm-walnut-text);
}
.gm-cf7-stub input:focus, .gm-cf7-stub textarea:focus {
  outline: none;
  border-bottom-color: var(--gm-red);
}
.gm-cf7-note { color: var(--gm-text-muted); font-style: italic; }

/* Icon list (contact info) */
.gm-icon-list {
  list-style: none;
  padding: 0;
  margin: var(--gm-s-3) 0;
}
.gm-icon-list-item {
  display: flex;
  align-items: center;
  gap: var(--gm-s-2);
  margin-bottom: var(--gm-s-2);
  font-size: 14px;
  list-style: none;
  padding-left: 0;
}
.gm-icon-list-item::before { content: none; }
.gm-icon-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--gm-orange);
  flex-shrink: 0;
}
.gm-icon-list-item a { color: var(--gm-walnut-text); }
.gm-icon-list-item a:hover { color: var(--gm-red); }

/* Google Map */
.gm-map {
  width: 100%;
  margin: var(--gm-s-5) 0;
  border-radius: var(--gm-radius);
  overflow: hidden;
}
.gm-map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* Image with text (alternative shortcode) */
.gm-image-with-text {
  display: flex;
  gap: var(--gm-s-3);
  margin-bottom: var(--gm-s-3);
  align-items: center;
}
.gm-iwt-image { flex: 0 0 80px; }
.gm-iwt-image img { border-radius: var(--gm-radius-sm); }
.gm-iwt-text h4 { margin: 0 0 var(--gm-s-1); }

/* Separator */
.gm-separator {
  border: 0;
  height: 1px;
  background: var(--gm-rule);
  margin: var(--gm-s-5) 0;
}

/* Brand CTA jos */
.gm-brand-cta {
  background: var(--gm-cream);
  padding: var(--gm-s-7) 0;
  text-align: center;
}
.gm-brand-cta h2 { margin-bottom: var(--gm-s-2); }
.gm-brand-cta p { margin-bottom: var(--gm-s-4); }

/* Contact page */
.page-template-default .gm-page-content,
.page-id-contact .gm-page-content {
  background: var(--gm-white);
}

@media (max-width: 768px) {
  .gm-gallery { grid-template-columns: repeat(3, 1fr); }
  .gm-col { width: 100% !important; }
}
