/*
Theme Name: ADU CONSTRUCTION
Theme URI: https://example.com
Author: Theme Generator
Author URI: https://example.com
Description: A custom WordPress theme generated with theme builder
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adu-construction
Tags: custom-logo, featured-images
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.site-header {
  background-color: var(--theme-header-bg, #a69b9b);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.site-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-phone-color, #0073aa);
  font-size: var(--theme-phone-size, 23px);
  font-family: var(--theme-phone-font, Arial, sans-serif);
  font-weight: 600;
}

.header-phone a {
  color: inherit;
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--theme-burger-color, #0073aa);
  margin: 5px 0;
  transition: 0.3s;
}

.hero-banner {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* DEFAULT BACKGROUND: Embedded directly in CSS like the logo */
  /* This is the baked-in default from the builder - PHP only overrides when user changes via Customizer */
  background-image: url('assets/hero-background.jpg');
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: var(--theme-title-size, 48px);
  font-family: var(--theme-title-font, Arial, sans-serif);
  color: var(--theme-title-color, #ffffff);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--theme-cta-bg, #0073aa);
  color: var(--theme-cta-color, #ffffff);
  border-radius: var(--theme-cta-radius, 4px);
  font-size: var(--theme-cta-size, 16px);
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.site-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.site-footer {
  background-color: var(--theme-footer-bg, #999494);
  color: var(--theme-footer-color, #ffffff);
  padding: 2rem;
  text-align: center;
}

.footer-copyright {
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  margin: 0 0.5rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

/* Click to Call Styles */
.click-to-call-btn {
  position: fixed;
  z-index: 1000001;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #fff;
  background-color: var(--theme-ctc-color, #0073aa);
}
.click-to-call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.click-to-call-small { width: 48px; height: 48px; }
.click-to-call-medium { width: 56px; height: 56px; }
.click-to-call-large { width: 64px; height: 64px; }
.click-to-call-pulse { animation: ctc-pulse 2s infinite; }
.click-to-call-bounce { animation: ctc-bounce 2s infinite; }

@keyframes ctc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,115,170,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(0,115,170,0); }
}

@keyframes ctc-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Popup Styles */
.popup-trigger-btn {
  position: fixed;
  z-index: 9998;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
  background-color: var(--theme-popup-btn-bg, #0073aa);
  color: var(--theme-popup-btn-color, #ffffff);
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup-modal {
  position: relative;
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  background-color: var(--theme-popup-bg, #ffffff);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  padding: 2rem;
}
.popup-overlay.active .popup-modal {
  transform: scale(1);
  opacity: 1;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  cursor: pointer;
}

/* Full Page Iframe Overlay - scroll lock */
html.fpo-active, body.fpo-active {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}
.full-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
.full-page-overlay iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  overflow: hidden;
}
.full-page-overlay-close {
  position: fixed;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  line-height: 1.1;
  background-color: var(--fpo-btn-bg, #ffffff) !important;
  color: var(--fpo-btn-fg, #000000) !important;
}
.full-page-overlay-close:hover {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .header-inner {
    padding: 0 1rem;
  }
  .site-logo img {
    max-height: 40px;
  }
  .click-to-call-desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .click-to-call-mobile-only {
    display: none !important;
  }
}