/* trendfarma responsive overlay - standard flexbox patterns */
:root { --tf-primary:#2d8c4f; --tf-dark:#1a4d2c; --tf-light:#f5f9f5; --tf-text:#333; }
* { box-sizing: border-box; }
body { margin:0; }
img { max-width:100%; height:auto; }

/* Container alignment fix */
.container, .vc_row, .wpb_row, #content, .site-content, .wpb_wrapper {
  max-width: 1200px; margin-left:auto; margin-right:auto;
  padding-left:16px; padding-right:16px;
  box-sizing: border-box;
}
.vc_row { width:100% !important; max-width:1200px; }
.wpb_column { padding:8px; }

/* Header layout */
header, .site-header, #header_main, .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background:#fff;
  flex-wrap: wrap; gap:16px;
}
.site-logo, .logo, .header-logo, header img { max-height: 60px; width:auto; }

/* Mega menu container */
#mega_main_menu, .menu-main-container, nav.main-navigation { flex: 1; }
#mega_main_menu_ul, .menu, ul.menu {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin:0; padding:0; justify-content: flex-end;
}
#mega_main_menu_ul > li, .menu > li, ul.menu > li { position: relative; }
#mega_main_menu_ul > li > a, .menu > li > a, ul.menu > li > a {
  display:block; padding: 12px 16px; color: var(--tf-dark);
  text-decoration:none; font-weight:600; font-size:15px;
  border-radius: 4px; transition: background .15s, color .15s;
  text-transform: uppercase; letter-spacing:.5px;
}
#mega_main_menu_ul > li > a:hover, .menu > li > a:hover {
  background: var(--tf-light); color: var(--tf-primary);
}
#mega_main_menu_ul > li.current-menu-item > a,
.menu > li.current-menu-item > a {
  background: var(--tf-primary); color: #fff;
}

/* Submenu (dropdown) */
ul.sub-menu, .submenu, .mega_dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 6px; padding: 8px 0;
  list-style: none; margin: 0;
  display: none; z-index: 999;
}
li:hover > ul.sub-menu, li:hover > .submenu, li:hover > .mega_dropdown { display: block; }
ul.sub-menu li a, .submenu li a {
  display: block; padding: 8px 16px; color: var(--tf-text);
  text-decoration: none; font-size: 14px;
}
ul.sub-menu li a:hover { background: var(--tf-light); color: var(--tf-primary); }

/* Burger button */
.tf-burger {
  display: none; background:none; border:none;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.tf-burger span {
  display: block; width: 26px; height: 3px;
  background: var(--tf-dark); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.tf-burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tf-burger.active span:nth-child(2) { opacity: 0; }
.tf-burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile breakpoint */
@media (max-width: 900px) {
  header, .site-header, #header_main, .header-inner { padding: 8px 12px; }
  .tf-burger { display: flex; order: 2; }
  .site-logo, .logo, .header-logo, header img { max-height: 44px; }
  #mega_main_menu, .menu-main-container, nav.main-navigation {
    order: 3; width: 100%; display: none;
  }
  #mega_main_menu.tf-open, .menu-main-container.tf-open, nav.main-navigation.tf-open {
    display: block;
  }
  #mega_main_menu_ul, .menu, ul.menu {
    flex-direction: column; gap: 0; align-items: stretch;
  }
  #mega_main_menu_ul > li > a, .menu > li > a {
    border-bottom: 1px solid #eee; border-radius:0;
    padding: 14px 16px;
  }
  ul.sub-menu, .submenu, .mega_dropdown {
    position: static; box-shadow: none; padding: 0;
    background: var(--tf-light);
  }
  li:hover > ul.sub-menu { display: block; }
  /* Block alignment for content */
  .vc_row, .wpb_row { flex-direction: column; }
  .wpb_column { width: 100% !important; }
}

/* Footer cleanup */
footer, .site-footer, #footer_copyright {
  background: var(--tf-dark); color: #fff;
  padding: 24px 16px; text-align: center;
}
footer a, .site-footer a { color: #fff; }

/* Generic block fixes */
.vc_column-inner, .wpb_wrapper > * { max-width: 100%; }
img.aligncenter { display:block; margin:0 auto; }
.wp-block-image { text-align:center; }

/* Buttons / CTAs */
.button, .wp-block-button__link, button[type=submit], .vc_btn3, input[type=submit] {
  background: var(--tf-primary); color:#fff; border:none;
  padding: 12px 24px; border-radius: 4px; cursor:pointer;
  font-size:15px; font-weight:600; text-decoration:none;
  display:inline-block; transition: background .15s;
}
.button:hover, .wp-block-button__link:hover, .vc_btn3:hover { background: var(--tf-dark); }

/* Forms */
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; max-width: 480px; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 4px; font-size: 15px;
  box-sizing: border-box;
}

/* Typography */
h1,h2,h3,h4,h5 { color: var(--tf-dark); line-height: 1.3; }
