/*
Theme Name:   Hello Elementor Child
Template:     hello-elementor
Description:  Child theme for The 911 Plumbers
Version:      1.7
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@400;500;700&display=swap');

:root {
  --color-white: #FFFFFF;
  --color-gray: #EEEEEE;
  --color-red: #e6242b;
  --color-navy: #0f2840;
  --color-blue: #3e92d6;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.217), 16px);
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
}

h1 { font-size: clamp(40px, 2.5rem + ((1vw - 3.2px) * 4.348), 80px); line-height: 1; }
h2 { font-size: clamp(27.9px, 1.743rem + ((1vw - 3.2px) * 2.186), 48px); line-height: 1; }
h3 { font-size: clamp(20px, 1.25rem + ((1vw - 3.2px) * 1.304), 32px); line-height: 1.2; }
h4 { font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.435), 22px); line-height: 1.3; }

/* ===== TOP BAR ===== */
.plumber-topbar {
  background: var(--color-navy);
  color: white;
  padding: 8px 20px;
}
.plumber-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}
.plumber-topbar .plumber-callnow {
  background: var(--color-red);
  color: white;
  padding: 5px 14px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2px;
  display: inline-block;
}
.plumber-topbar .plumber-callnow:hover { opacity: 0.88; }

/* ===== MAIN HEADER ===== */
.plumber-header {
  background: white;
  border-bottom: 1px solid var(--color-gray);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.plumber-header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}
.plumber-logo-col {
  width: 200px;
  padding: 10px 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.plumber-logo-col a { display: flex; align-items: center; }
.plumber-logo-col img { max-width: 120px; height: auto; max-height: 56px; object-fit: contain; }
.plumber-logo-text {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
  text-decoration: none;
}
.plumber-nav-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plumber-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.plumber-menu li a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 22px 14px;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}
.plumber-menu li a:hover,
.plumber-menu li.current-menu-item > a,
.plumber-menu li.current_page_item > a {
  color: var(--color-navy);
  border-bottom: 3px solid var(--color-navy);
}
.plumber-hotline-col {
  background: var(--color-red);
  color: white;
  padding: 15px 24px;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plumber-hotline-label { font-size: 0.78rem; color: rgba(255,255,255,0.85); margin-bottom: 2px; }
.plumber-hotline-number a {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}
.plumber-hotline-number a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.plumber-footer {
  background: var(--color-navy);
  color: white;
}
.plumber-footer a { color: white; text-decoration: none; }
.plumber-footer a:hover { text-decoration: underline; }
.plumber-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 22% 1fr 1fr;
  gap: 48px;
}
.plumber-footer-logo img,
.plumber-footer-logo .custom-logo { max-width: 180px; height: auto; }
.plumber-footer-logo p {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}
.footer-col-label { color: #676767; font-size: 0.88rem; margin: 0 0 14px; }
.plumber-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plumber-footer-nav-list li { margin-bottom: 10px; }
.plumber-footer-nav-list a { font-size: 0.92rem; }
.footer-contact-group { margin-bottom: 14px; }
.footer-contact-label { color: var(--color-blue); font-size: 0.78rem; margin: 0 0 2px; }
.footer-contact-value { font-size: 0.88rem; margin: 0; }
.plumber-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
}
.plumber-footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px;
}
.plumber-footer-bottom p { font-size: 0.78rem; margin: 0; color: rgba(255,255,255,0.6); }

/* ===== FULL-WIDTH COLUMNS (contact/form sections) ===== */
/* Makes stretched-section columns span the full viewport, not just the container */
.e-full-cols > .elementor-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.e-full-cols > .elementor-container > .elementor-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== ELEMENTOR OVERRIDES ===== */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
}
.elementor-widget-text-editor {
  font-family: 'Roboto', sans-serif;
  line-height: 1.65;
}

/* Ensure Elementor sections stretch full width */
.elementor-section-stretched { width: 100% !important; left: 0 !important; }

/* Button hover */
.elementor-button:hover { opacity: 0.9; }

/* ===== CONTACT FORM 7 STYLING ===== */
.wpcf7-form p { margin: 0 0 14px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 1px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: #3e92d6;
}
.wpcf7-form textarea { min-height: 100px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 13px 20px;
  background: #3e92d6;
  color: white;
  border: none;
  border-radius: 2px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.wpcf7-form input[type="submit"]:hover { background: #0f2840; }
.wpcf7-not-valid-tip { color: #e6242b; font-size: 0.8rem; margin-top: 2px; }
.wpcf7-response-output { margin-top: 12px !important; padding: 10px 14px; border-radius: 2px; font-size: 0.9rem; }

/* ===== HAMBURGER BUTTON ===== */
.plumber-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 0 !important;
}
.plumber-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: all 0.3s;
  border-radius: 0;
}
/* X animation when open */
.plumber-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.plumber-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.plumber-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .plumber-hotline-col { display: none; }
  .plumber-logo-col { width: auto; }
  .plumber-footer-inner { grid-template-columns: 1fr 1fr; }
  .plumber-footer-logo { grid-column: 1 / -1; }

  .plumber-menu-toggle { display: flex; }

  .plumber-logo-col {
    width: auto;
    flex: 1;
    padding: 8px 16px;
  }
  .plumber-logo-col img { max-width: 160px; max-height: 72px; }

  .plumber-nav-col {
    justify-content: flex-end;
    flex: 0;
    padding-right: 16px;
  }
  /* Menu drops from the header (sticky = positioning context), full viewport width */
  .plumber-menu {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    flex-direction: column;
    z-index: 9997;
    border-top: 2px solid var(--color-navy);
  }
  .plumber-menu.is-open { display: flex; }
  .plumber-menu li { width: 100%; }
  .plumber-menu li a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-gray);
    font-size: 0.95rem;
  }
  .plumber-menu li a:hover,
  .plumber-menu li.current-menu-item > a,
  .plumber-menu li.current_page_item > a {
    border-bottom: 1px solid var(--color-gray);
    background: #f8f8f8;
    color: var(--color-navy);
  }
}
@media (max-width: 600px) {
  .plumber-footer-inner { grid-template-columns: 1fr; padding: 40px 20px 30px; }
}
