/*
Theme Name:   Astra Child
Theme URI:    https://etrrs.ca
Description:  Astra Child Theme for ETRRS
Author:       ETRRS
Template:     astra
Version:      1.0.6
*/

/* ═══════════════════════════════════════════════════
   ETRRS FORM PAGES — break out of Astra containers
   Body classes used:
   .page-template-page-request-a-quote-php
   .page-template-page-join-the-team-php
═══════════════════════════════════════════════════ */

:root {
  --etrrs-bg:     #0a0a0a;
  --etrrs-input:  #1a1a1a;
  --etrrs-border: #2e2e2e;
  --etrrs-gold:   #d6b667;
  --etrrs-gold-h: #c4a255;
  --etrrs-white:  #ffffff;
  --etrrs-gray:   #9a9a9a;
  --etrrs-font:   'Montserrat', sans-serif;
}

/* 1. Make body + Astra wrappers dark and full-width */
body.page-template-page-request-a-quote-php,
body.page-template-page-join-the-team-php {
  background-color: var(--etrrs-bg) !important;
}
body.page-template-page-request-a-quote-php #content,
body.page-template-page-join-the-team-php #content {
  background-color: var(--etrrs-bg) !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.page-template-page-request-a-quote-php #content > .ast-container,
body.page-template-page-join-the-team-php #content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Page wrapper */
.etrrs-page-wrap {
  background-color: var(--etrrs-bg);
  min-height: 60vh;
  font-family: var(--etrrs-font);
  color: var(--etrrs-white);
  width: 100%;
}

/* 3. Hero */
.etrrs-hero {
  padding: 90px 24px 64px;
  text-align: center;
  background: linear-gradient(160deg, #141414 0%, var(--etrrs-bg) 100%);
  border-bottom: 1px solid #1e1e1e;
}
.etrrs-hero::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--etrrs-gold);
  margin: 22px auto 0;
  border-radius: 2px;
}
.etrrs-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--etrrs-gold);
  margin-bottom: 16px;
  font-family: var(--etrrs-font);
}
.etrrs-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--etrrs-white) !important;
  margin: 0 0 18px !important;
  font-family: var(--etrrs-font) !important;
  text-align: center !important;
}
.etrrs-hero-sub {
  font-size: 1rem;
  color: var(--etrrs-gray);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
  font-family: var(--etrrs-font);
}

/* 4. Content area */
.etrrs-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* 5. Notices */
.etrrs-notice {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  font-size: 0.94rem;
  font-weight: 500;
  font-family: var(--etrrs-font);
}
.etrrs-notice.success {
  background: rgba(214,182,103,.1);
  border: 1px solid rgba(214,182,103,.35);
  color: var(--etrrs-gold);
}
.etrrs-notice.error {
  background: rgba(220,60,60,.08);
  border: 1px solid rgba(220,60,60,.3);
  color: #e07070;
}

/* 6. Form layout */
.etrrs-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.etrrs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 600px) {
  .etrrs-form-row { grid-template-columns: 1fr; }
}
.etrrs-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 7. Labels */
.etrrs-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  color: var(--etrrs-gold) !important;
  font-family: var(--etrrs-font) !important;
  margin: 0 !important;
}

/* 8. Inputs — override Astra with high specificity */
.etrrs-page-wrap .etrrs-input,
.etrrs-page-wrap .etrrs-select,
.etrrs-page-wrap .etrrs-textarea,
body.page-template-page-request-a-quote-php .etrrs-input,
body.page-template-page-request-a-quote-php .etrrs-select,
body.page-template-page-request-a-quote-php .etrrs-textarea,
body.page-template-page-join-the-team-php .etrrs-input,
body.page-template-page-join-the-team-php .etrrs-select,
body.page-template-page-join-the-team-php .etrrs-textarea {
  background-color: var(--etrrs-input) !important;
  background-image: none !important;
  border: 1px solid var(--etrrs-border) !important;
  border-radius: 6px !important;
  color: var(--etrrs-white) !important;
  font-family: var(--etrrs-font) !important;
  font-size: 0.95rem !important;
  padding: 13px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .2s, box-shadow .2s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
}
.etrrs-page-wrap .etrrs-input::placeholder,
.etrrs-page-wrap .etrrs-textarea::placeholder {
  color: #555 !important;
  opacity: 1 !important;
}
.etrrs-page-wrap .etrrs-input:focus,
.etrrs-page-wrap .etrrs-select:focus,
.etrrs-page-wrap .etrrs-textarea:focus {
  border-color: var(--etrrs-gold) !important;
  box-shadow: 0 0 0 3px rgba(214,182,103,.14) !important;
  outline: none !important;
}

/* select arrow */
.etrrs-page-wrap .etrrs-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23d6b667'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}
.etrrs-page-wrap .etrrs-select option {
  background-color: #1a1a1a;
  color: #fff;
}

/* textarea */
.etrrs-page-wrap .etrrs-textarea {
  resize: vertical !important;
  min-height: 130px !important;
}

/* 9. Submit button */
.etrrs-page-wrap .etrrs-btn,
body.page-template-page-request-a-quote-php .etrrs-btn,
body.page-template-page-join-the-team-php .etrrs-btn {
  background-color: var(--etrrs-gold) !important;
  background-image: none !important;
  color: #000 !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--etrrs-font) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  padding: 15px 40px !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: background-color .2s, transform .1s !important;
  box-shadow: none !important;
  text-decoration: none !important;
  width: auto !important;
}
.etrrs-page-wrap .etrrs-btn:hover {
  background-color: var(--etrrs-gold-h) !important;
  transform: translateY(-1px) !important;
  color: #000 !important;
}
.etrrs-page-wrap .etrrs-btn:active {
  transform: translateY(0) !important;
}

/* 10. Hide footer nav widget title */
#nav_menu-2 .widget-title {
  display: none !important;
}

/* ═══════════════════════════════════════
   FOOTER REDESIGN
═══════════════════════════════════════ */

/* Dark background — all wrappers */
.site-footer,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap .ast-builder-grid-row-container-inner,
.site-primary-footer-wrap .ast-builder-grid-row-container-inner,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  background-color: #0f0f0f !important;
  background-image: none !important;
}
.site-footer {
  border-top: 1px solid #1e1e1e;
}
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  border-top: 1px solid #1e1e1e !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Above-footer padding */
.site-above-footer-wrap {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Logo: invert black logo to white */
.site-footer-above-section-1 .wp-block-image img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9;
}

/* Col 1 — logo + nav stacked */
.site-footer-above-section-1 .footer-widget-area-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  align-items: flex-start !important;
}

/* Nav links */
.site-footer .menu-company-container ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.site-footer .menu-company-container .menu-link {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.83rem !important;
  font-weight: 500 !important;
  color: #8a8a8a !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s !important;
}
.site-footer .menu-company-container .menu-link:hover,
.site-footer .menu-company-container .menu-link:focus {
  color: #d6b667 !important;
}

/* Col 2 — phone with label
   ::before on the inner html element, not on the flex section */
.site-footer-above-section-2 {
  text-align: center !important;
}
.site-footer .ast-footer-html-1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.site-footer .ast-builder-html-element::before {
  content: 'CALL US';
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #d6b667;
  margin-bottom: 10px;
}
.site-footer .ast-builder-html-element h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #ffffff !important;
}
.site-footer .ast-builder-html-element h3 a,
.site-footer .ast-builder-html-element h3 strong span a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.site-footer .ast-builder-html-element h3 a:hover {
  color: #d6b667 !important;
}

/* Col 3 — subscribe form
   ::before on the widget inner container, not on the flex section */
.site-footer-above-section-3 .footer-widget-area-inner {
  display: flex !important;
  flex-direction: column !important;
}
.site-footer-above-section-3 .footer-widget-area-inner::before {
  content: 'STAY IN TOUCH';
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #d6b667;
  margin-bottom: 16px;
}
.site-footer .wpforms-field-container {
  margin-bottom: 10px !important;
}
.site-footer #wpforms-form-11 .wpforms-field-large,
.site-footer #wpforms-form-11 input[type="email"] {
  background-color: #1a1a1a !important;
  border: 1px solid #2e2e2e !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.875rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.site-footer #wpforms-form-11 input[type="email"]::placeholder {
  color: #555 !important;
}
.site-footer #wpforms-form-11 input[type="email"]:focus {
  border-color: #d6b667 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(214,182,103,.14) !important;
}
.site-footer #wpforms-form-11 .wpforms-submit {
  background-color: #d6b667 !important;
  color: #000 !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  margin-top: 8px !important;
}
.site-footer #wpforms-form-11 .wpforms-submit:hover {
  background-color: #c4a255 !important;
}
.site-footer .wpforms-field-label {
  color: #8a8a8a !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

/* Copyright bar */
.ast-footer-copyright p {
  color: #444 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
}

/* Desktop top-align columns */
@media (min-width: 922px) {
  .site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row,
  .site-above-footer-wrap[data-section="section-above-footer-builder"] .site-footer-section {
    align-items: flex-start !important;
  }
}

/* Hide fixed "CLICK TO CALL 24/7" button */
.elementor-element-28c032e {
  display: none !important;
}

/* Mobile footer: center + tight spacing */
@media (max-width: 544px) {
  .site-above-footer-wrap {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  /* Each stacked section: less margin between them */
  .site-above-footer-wrap .site-footer-section {
    margin-bottom: 24px !important;
  }
  .site-above-footer-wrap .site-footer-section:last-child {
    margin-bottom: 0 !important;
  }
  /* Col 1: logo + nav centered, compact */
  .site-footer-above-section-1 .footer-widget-area-inner {
    align-items: center !important;
    gap: 16px !important;
  }
  /* Nav: compact gap, no extra li margin */
  .site-footer .menu-company-container ul {
    align-items: center !important;
    gap: 6px !important;
  }
  .site-footer .menu-company-container ul li {
    margin: 0 !important;
  }
  /* Logo smaller on mobile */
  .site-footer-above-section-1 .wp-block-image img {
    width: 120px !important;
  }
  /* Col 2: phone tighter */
  .site-footer-above-section-2 {
    padding: 0 !important;
  }
  /* Col 3: form centered */
  .site-footer-above-section-3 .footer-widget-area-inner {
    align-items: center !important;
  }
  .site-footer #wpforms-form-11 .wpforms-submit {
    width: 100% !important;
  }
  /* Copyright less padding */
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* Fix white stripe: remove bottom padding from #content on all pages */
#content,
#primary,
.ast-container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body.home #content,
body.home #primary,
body.home .entry-content,
body.home .ast-container {
  background-color: transparent !important;
}

/* ═══════════════════════════════════════
   END FOOTER REDESIGN
═══════════════════════════════════════ */

/* 11. Mobile: hide hero background image */
@media (max-width: 767px) {
  .elementor-302 .elementor-element.elementor-element-e29115e::before {
    background-image: none !important;
  }
}

/* 12. Mobile: hero h1 padding + h2 color */
@media (max-width: 767px) {
  .elementor-302 .elementor-element.elementor-element-809ac5b > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }
  .elementor-element-bc1a54a .elementor-heading-title {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    color: #000000 !important;
  }
}

/* 13. Hide Astra page title on these templates */
body.page-template-page-request-a-quote-php .ast-page-title-wrap,
body.page-template-page-join-the-team-php .ast-page-title-wrap,
body.page-template-page-request-a-quote-php .entry-title,
body.page-template-page-join-the-team-php .entry-title {
  display: none !important;
}
