/* =======================================
    CLEAN GUTTTERS - Custom Stules
    Description: Complete Styling for gutter cleaning website
    ====================================== */

/* =======================================
  1. ROOT VARIABLES & RESER 
  ======================================== */

:root {
  /* Primary Colors Blue & Green Theme */
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #6ea8fe;
  --secondary-color: #28a745;
  --secondary-dark: #1e7e34;
  --secondary-light: #5cb85c;

  /* Neutral Colors */
  --dark: #212529;
  --gray-dark: #343a40;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --light: #f8f9fa;
  --white: #ffffff;

  /* Functional Colors */
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max-width: 1200px;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 01rem 3rem rgba(0, 0, 0, 0.175);

  /* Transitions */
  --transition-base: all 0.3s ease;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================
   2. NAVIGATION
   ============================= */
.navbar {
  transition: var(--transition-base);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.navbar-brand:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-section {
  min-height: 75vh;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(40, 167, 69, 0.8)),
  url('https://placehold.co/1920x1080/6c757d/ffffff?text=E+J+Gutter+Cleaning+Melbourne');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp is ease;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-badges .badge-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================
   4. BUTTONS
   ================================== */
.btn {
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #084298);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}


.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* =============================
   5. SERVICE CARDS
   ============================= */
.service-card {
  transition: var(--transition-base);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3.5rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  color: var(--white);
}

/* =============================
   6. PAGE HEADER
   ============================= */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 3rem 0;
  margin-bottom: 0;
}

/* =============================
   7. FEATURE ICONS
   ============================= */
.feature-icon-circle {
  width: 88px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-circle {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
}

/* ==============================
   8. TESTIMONIALS
   ============================== */
.avatar-circle {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===========================
   9. GRADIENT BACKGROUNDS
   =========================== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* ============================
   10. SERVICE BADGES
   ============================ */
.service-badge {
  background: var(--primary-light);
  display: inline-block;
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* ============================
   11. PROCESS NUMBERS
   ============================ */
.process-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* ================================
   12. GALLERY
   ================================ */
.sticky-gallery-filter {
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.filter-btn {
  transition: var(--transition-base);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.gallery-item {
  transition: var(--transition-base);
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.gallery-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.gallery-card:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-image-wrapper:hover .gallery-overlay { 
  opacity: 1;
}

.gallery-info {
  padding: 1rem;
  background: var(--white);
}

/* Gallery Filtering */
.gallery-item.hidden {
  display: none;
}

/* ============================
   13. STATS SECTION
   ============================ */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-weight: 500;
}

/* ============================
   14. FAQ ACCORDION
   ============================ */
.accordion-button {
  font-weight: 600;
  background: var(--white);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--white);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--border-radius-lg) !important;
  overflow: hidden;
}

/* ===============================
   15. CONTACT FORM
   =============================== */
.contact-card {
  transition: var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(-shadow-lg);
}

.contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.contact-info-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.map-container iframe {
  width: 100%;
  filter: grayscale(20%);
  transition: var(--transition-base);
}

.map-container iframe:hover {
  filter: grayscale(0%);
}

/* ==================================
   16. FOOTER
   ================================== */
footer {
  background: var(--dark) !important;
}

footer a {
  transition: var(--transition-base);
}

footer a:hover {
  color: var(--primary-light) !important;
  transform: translateX(3px);
}

.social-links a {
  transition: var(--transition-base);
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* ==============================
   17. SCROLL TO TOP BUTTON
   ============================== */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 1000;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}

#scrollToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(13, 110, 253, 0.4);
}

#scrollToTop.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   18. UTILITY CLASSES
   =================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm-hover {
  transition: var(--transition-base);
} 

.shadow-sm-hover:hover {
  box-shadow: var(--shadow);
}

/* ==================================
   19. ANIMATIONS
   ================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===============================
   20. RESPONSIVE DESIGN
   =============================== */

/* Tablets and below */
@media (max-width: 991px) {
  .hero-section { 
    min-height: 60vh;
    background-attachment: scroll;
  }

  .display-3 { 
    font-size: 2.5rem;
  }

  .display-4 { 
    font-size: 2rem;
  }

  .display-5 { 
    font-size: 1.75rem; 
  }

  .display-6 { 
    font-size: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem; 
    width: 80px; 
    height: 80px;
  }

  .stat-number {
    font-size: 2.5rem; 
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .hero-section {
    min-height: 50vh; 
    padding: 2rem 0;
  }

  .display-3 {
    font-size: 2rem; 
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem; 
    font-size: 1rem; 
  }

  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .page-header {
    padding: 2rem 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .process-number { 
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .service-icon {
    font-size: 2rem;
    width: 70px;
    height: 70px;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  .hero-badges.col-auto {
    flex: 00 50%;
    max-width: 50%;
  } 

  .hero-badges badge-item {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* ===========================
   21. LOADING STATES
   =========================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================
   22. PRINT STYLES
   ============================ */
@media print {
  .navbar,
  .page-header,
  footer, 
  #scrollToTop, 
  .btn {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
  }
  
  a {
    color: var(--dark) !important;
    text-decoration: underline !important;
  }
}

/* ===============================
   23. ACCESSIBILITY
   =============================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===============================
   24. CUSTOM SCROLLBAR
   =============================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ======================================
   25. SMOOTH TRANSITIONS FOR ALL LINKS
   ====================================== */
a {
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==============================
   END OF STYLESHEET
   ============================== */

