/* Pacific Beach Builders Brand Styling */

/* Brand Color Variables */
:root {
  --primary-color: #2E86C1;    /* Ocean blue */
  --secondary-color: #F39C12;  /* Construction orange */
  --accent-color: #16A085;     /* Teal */
  --text-color: #2C3E50;       /* Dark slate */
  --light-bg: #ECF0F1;         /* Light gray */
  --white: #ffffff;
  --dark: #34495E;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
}

/* Override Universal Theme Colors */

/* Primary brand color overrides */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.btn-template-main,
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-template-main:hover,
.btn-primary:hover {
  background-color: #2573A7 !important;
  border-color: #2573A7 !important;
}

/* Secondary accent color */
.text-primary,
.carousel-caption h1,
.carousel-caption h2,
.section-title h2 {
  color: var(--primary-color) !important;
}

/* Construction orange accents */
.features .feature-icon,
.icon-box .icon,
.testimonials .quote-icon {
  color: var(--secondary-color) !important;
}

/* CTA and action buttons */
.btn-template-transparent-primary {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.btn-template-transparent-primary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

/* Professional text styling with font loading optimization */
body {
  color: var(--text-color);
  font-family: 'Inter', 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-display: swap; /* Ensure fonts load with fallback */
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-color);
}

/* Header and navigation styling */
.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
}

/* Hero carousel styling */
.carousel-item {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 134, 193, 0.8) 0%, rgba(22, 160, 133, 0.8) 100%);
  z-index: 1;
}

.carousel-caption {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 3rem 2rem;
  border: 2px solid var(--secondary-color);
  backdrop-filter: blur(5px);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-caption h1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.carousel-caption p {
  color: var(--white);
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Features section styling */
.features {
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
  padding: 80px 0;
}

.features .section-title {
  margin-bottom: 3rem;
}

.feature-box {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-top: 4px solid var(--secondary-color);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transition: height 0.4s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-box:hover::before {
  height: 8px;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  display: block;
}

.feature-box:hover .feature-icon {
  transform: scale(1.1);
  color: var(--primary-color);
}

.feature-box h4 {
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-box p {
  color: #6c757d;
  line-height: 1.8;
  font-size: 0.95rem;
}

.feature-box .btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Testimonials styling */
.testimonials {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--white);
}

.testimonial-item {
  background: var(--white);
  color: var(--text-color);
  border-radius: 10px;
  padding: 2rem;
  margin: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
}

/* Contact section styling */
.see-more {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #E67E22 100%);
  color: var(--white);
}

.see-more .btn-template-transparent-white {
  border-color: var(--white);
  color: var(--white);
}

.see-more .btn-template-transparent-white:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}

/* Footer styling */
.footer {
  background-color: var(--dark);
  color: var(--white);
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer a:hover {
  color: var(--secondary-color);
}

/* Professional construction industry touches */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* Section spacing improvements */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: rgba(236, 240, 241, 0.3);
}

/* Content spacing improvements */
.container {
  max-width: 1200px;
}

.row {
  margin-bottom: 2rem;
}

/* Button improvements */
.btn {
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #E67E22 100%);
  color: var(--white);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .carousel-item {
    min-height: 450px;
  }
  
  .carousel-caption {
    padding: 2rem 1rem;
    max-width: 90%;
  }
  
  .carousel-caption h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-box {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .carousel-caption h1 {
    font-size: 1.6rem;
  }
  
  .carousel-caption {
    padding: 1.5rem 1rem;
  }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Construction-specific elements */
.construction-badge {
  background: var(--warning);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.license-info {
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Service area highlights */
.service-area-tag {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
  margin: 0.25rem;
  display: inline-block;
}

/* Accessibility improvements */
/* Enhanced focus indicators for keyboard navigation */
a:focus, 
button:focus, 
input:focus, 
textarea:focus, 
select:focus,
.btn:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3) !important;
}

/* Skip navigation link for screen readers */
.skip-navigation {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-navigation:focus {
  position: absolute;
  left: 6px;
  top: 7px;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--secondary-color);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}