/*
Theme Name: AZ RoofDaddy
Theme URI: https://azroofdaddy.com
Author: EliteWebExpert
Author URI: https://elitewebexpert.com
Description: Professional roofing company WordPress theme with modern design, responsive layout, and service showcase.
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: business, roofing, professional, one-column, two-columns, custom-colors, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, responsive
Text Domain: priority-one-roofing
*/

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding-top: 1rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  width: 100%;
  gap: 1rem;
}

.site-logo {
  flex: 0 1 auto;
  max-width: 300px;
}

.site-logo a {
  display: block;
  line-height: 0;
}

.site-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80px;
  transition: opacity 0.3s;
  display: block;
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo-link img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80px;
  display: block;
  transition: opacity 0.3s;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.phone-link {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.phone-link:hover {
  background: white;
}

.btn-estimate {
  padding: 0.5rem 1.5rem;
  background: #2563eb;
  color: white;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.btn-estimate:hover {
  background: #1d4ed8;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
  color: white;
  width: 100%;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out;
  text-align: left;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  max-width: 48rem;
  text-align: left;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  padding: 1.5rem 2rem;
  background: #2563eb;
  color: white;
  font-size: 1.125rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

.roc-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: white;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.5rem);
}

.service-icon {
  display: inline-flex;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: #dbeafe;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

.service-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
}

.service-description {
  color: #6b7280;
  line-height: 1.625;
}

/* Tailored Solutions Section */
.tailored-section {
  padding: 5rem 0;
  background: #f9fafb;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.solution-content h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.solution-content p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.625;
  margin-bottom: 2rem;
}

.solution-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.solution-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}

.solution-image:hover img {
  transform: scale(1.1);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: white;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image transition effects */
.hero-background,
.solution-image img {
  transition: opacity 0.3s ease-in-out;
}

#hero-bg-image,
#residential-image,
#commercial-image,
#about-team-image {
  transition: opacity 0.3s ease-in-out;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .solution-image img {
    height: 350px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .site-header {
    padding-top: 0.75rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .header-inner {
    min-height: 70px;
    gap: 0.75rem;
  }
  
  .site-logo {
    max-width: 250px;
  }
  
  .site-logo img,
  .custom-logo-link img {
    max-height: 70px;
  }
  
  .phone-link {
    display: none;
  }
  
  .btn-estimate {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero-section {
    min-height: 600px;
    height: auto;
    padding: 8rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .roc-badge {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .services-section,
  .tailored-section,
  .about-section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .solution-content h3 {
    font-size: 1.75rem;
  }
  
  .solution-content p {
    font-size: 1rem;
  }
  
  .solution-image img {
    height: 300px;
  }
  
  /* Footer single column on tablets */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .site-footer {
    padding: 2rem 0;
  }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  .site-header {
    padding-top: 0.5rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .header-inner {
    min-height: 70px;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  
  .site-logo {
    flex: 0 1 auto;
    max-width: 200px;
  }
  
  .site-logo img,
  .custom-logo-link img {
    max-height: 60px;
  }
  
  .header-nav {
    gap: 0.5rem;
    flex: 0 0 auto;
  }
  
  .btn-estimate {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
  }
  
  .hero-section {
    min-height: 500px;
    padding: 6rem 0 3rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }
  
  .roc-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .section-container {
    padding: 0 1rem;
  }
  
  .services-section,
  .tailored-section,
  .about-section {
    padding: 2.5rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
  
  .solution-content h3 {
    font-size: 1.5rem;
  }
  
  .solution-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .solution-image img {
    height: 250px;
  }
  
  .btn-estimate {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /* Footer - FORCE single column on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  /* Override the span 2 on mobile */
  .footer-section[style*="grid-column"] {
    grid-column: 1 / -1 !important;
  }
  
  .footer-company {
    grid-column: 1 / -1 !important;
  }
  
  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-section ul li {
    font-size: 0.9rem;
  }
  
  .footer-section p {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
  }
}

/* Very small devices (375px and below) */
@media (max-width: 375px) {
  .site-header {
    padding-top: 0.5rem;
  }
  
  .header-container {
    padding: 0 0.75rem;
  }
  
  .header-inner {
    min-height: 65px;
    padding: 0.5rem 0;
  }
  
  .site-logo {
    max-width: 180px;
  }
  
  .site-logo img,
  .custom-logo-link img {
    max-height: 55px;
  }
  
  .btn-estimate {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .hero-title {
    font-size: 1.65rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
}

/* Very small devices (320px and below) */
@media (max-width: 320px) {
  .site-header {
    padding-top: 0.5rem;
  }
  
  .header-container {
    padding: 0 0.5rem;
  }
  
  .header-inner {
    min-height: 60px;
    gap: 0.4rem;
    padding: 0.5rem 0;
  }
  
  .site-logo {
    max-width: 160px;
  }
  
  .site-logo img,
  .custom-logo-link img {
    max-height: 50px;
  }
  
  .btn-estimate {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Landscape mode for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}