/*
 Theme Name: Hello Elementor Child - Megabac
 Template: hello-elementor
 Version: 2.0
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  --megabac-green: #174135;
  --megabac-green-light: #1e5a49;
  --megabac-gold: #c5a55a;
  --megabac-dark: #3B3A3A;
  --megabac-gray: #8F8F8F;
  --megabac-light-gray: #f5f5f5;
  --megabac-white: #FFFFFF;
  --megabac-bg: #F7F7F7;
}

body {
  font-family: 'Montserrat', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--megabac-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--megabac-white) !important;
  padding: 8px 30px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .site-branding {
  display: flex;
  align-items: center;
}

.site-header .custom-logo-link img,
.site-header .custom-logo {
  max-height: 55px;
  width: auto;
}

.site-header .site-title,
.site-header .site-title a {
  display: none !important;
}

.site-header a {
  color: var(--megabac-green) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.site-header a:hover {
  color: var(--megabac-gold) !important;
}

.site-header .site-navigation .menu li {
  margin: 0 5px;
}

.site-header .site-navigation .menu li a {
  padding: 8px 10px;
  font-size: 13px;
}

/* Hide page title on pages */
.page .entry-header,
.page .page-header,
h1.entry-title,
.elementor-page-title {
  display: none !important;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  color: var(--megabac-green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; margin-bottom: 0.3em; }
h4, h5, h6 { color: var(--megabac-dark); font-family: 'Montserrat', sans-serif; }

a { color: var(--megabac-green); transition: color 0.3s; }
a:hover { color: var(--megabac-gold); }

/* ===== ELEMENTOR OVERRIDES ===== */
.elementor-widget-heading .elementor-heading-title {
  line-height: 1.3;
}

.elementor-section {
  padding: 0;
}

/* Remove alternating background from sections - let Elementor control it */
.elementor-section:nth-child(even) {
  background-color: transparent;
}

.elementor-button {
  background-color: var(--megabac-green) !important;
  border-radius: 25px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  padding: 12px 30px !important;
  transition: all 0.3s !important;
  border: none !important;
}

.elementor-button:hover {
  background-color: var(--megabac-green-light) !important;
  transform: translateY(-1px);
}

/* Green buttons variant */
.elementor-button.elementor-button-link {
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
}

/* ===== FOOTER ===== */
footer, .site-footer {
  background: var(--megabac-green);
  color: white;
  padding: 40px 0;
}

footer a, .site-footer a {
  color: var(--megabac-gold) !important;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--megabac-green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(23,65,53,0.1);
}

/* Form submit button */
input[type="submit"],
button[type="submit"] {
  background-color: var(--megabac-green);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--megabac-green-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .site-header {
    padding: 5px 15px !important;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* Hide WordPress theme footer - we use Elementor footer */
.site-footer {
  display: none !important;
}

/* Fix Elementor section padding */
.elementor-section .elementor-container {
  max-width: 1200px;
}

/* Ensure full-width sections work */
.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* Fix image display in HTML widgets */
.elementor-widget-html img {
  max-width: 100%;
  height: auto;
}

/* Remove any default WordPress margins on page content */
.site-main .page-content,
.site-main .entry-content {
  margin: 0;
  padding: 0;
}

/* Hide WordPress comments section */
.comments-area,
#comments,
.comment-respond,
.comment-list {
  display: none !important;
}
