body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile-first responsive breakpoints */
:root {
    --mobile-padding: 1rem;
    --tablet-padding: 1.5rem;
    --desktop-padding: 2rem;
    --touch-target-size: 44px;
    --mobile-font-size: 0.875rem;
    --tablet-font-size: 1rem;
    --desktop-font-size: 1.125rem;
}

/* Improved touch targets for mobile */
button, a, input, textarea, select {
    min-height: var(--touch-target-size);
    min-width: var(--touch-target-size);
}

/* Mobile-first container */
.container {
    width: 100%;
    margin: 0 auto;
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: var(--tablet-padding);
        padding-right: var(--tablet-padding);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: var(--desktop-padding);
        padding-right: var(--desktop-padding);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Responsive Navbar Logo Styling */
.navbar-logo-main {
    font-size: 1.25rem;
    font-weight: 700;
}
.navbar-logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .navbar-logo-main {
        font-size: 1.5rem;
    }
    .navbar-logo-sub {
        font-size: 0.875rem;
    }
}

/* Contact Page Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.webp') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
}

/* Animated background elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Contact form styling */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
    background: #ffffff;
    padding: 0 0.5rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #f97316;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Contact info cards */
.contact-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 1;
}

/* Map container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 300px;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Success message animation */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Dropdown Styles */
#mobileMenuDropdown {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mobileMenuDropdown.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Ensure mobile menu button is clickable */
#mobileMenuButton {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
    border-radius: 8px;
    padding: 8px;
}

#mobileMenuButton:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.1);
}

#mobileMenuButton:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hamburger to X animation */
#mobileMenuButton span {
    transition: all 0.3s ease;
}

#mobileMenuButton.open span:nth-child(1) {
    transform: rotate(45deg) translate(0, 5px);
}

#mobileMenuButton.open span:nth-child(2) {
    opacity: 0;
}

#mobileMenuButton.open span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -5px);
}

/* Make navigation more transparent when mobile menu is open */
nav.mobile-menu-open {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hide mobile menu on larger screens */
@media (min-width: 768px) {
    #mobileMenuButton {
        display: none !important;
    }
    #mobileMenuDropdown {
        display: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Form validation styles */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Contact form section improvements */
.contact-form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #6b7280;
}

/* Sidebar improvements */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-sidebar {
        gap: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
}

/* --- Unified Contact Section Styles --- */
.unified-contact-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    padding: 3rem 1rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 900px;
}

.unified-contact-heading {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #f97316, #ea580c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -1px;
}

.unified-contact-subheading {
    font-size: 1.25rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.unified-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .unified-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .unified-contact-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.unified-contact-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    text-align: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.unified-contact-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.unified-contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(249,115,22,0.15);
}

/* Mailto Button Styles */
.mailto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #f97316, #ea580c, #fbbf24);
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(249,115,22,0.18);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.3s;
    margin: 2rem auto 0 auto;
    min-width: 220px;
    min-height: 56px;
    letter-spacing: 0.02em;
    gap: 0.75rem;
}
.mailto-btn:hover, .mailto-btn:focus {
    background: linear-gradient(90deg, #ea580c, #f97316, #fbbf24);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 36px rgba(249,115,22,0.22);
    outline: none;
}

/* Service Areas List */
.service-areas-list {
    background: rgba(251,191,36,0.08);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    color: #fbbf24;
    font-weight: 600;
    margin: 0 auto;
    max-width: 500px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(251,191,36,0.08);
} 

/* Back to Top Button */
#backToTop {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
} 

/* FAQ Section Styles */
.faq-section {
    background: #f9fafb;
    border-radius: 1.25rem;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.06);
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
}
.faq-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 6px rgba(249, 115, 22, 0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover {
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.10);
    border-color: #f97316;
}
.faq-question {
    color: #f97316;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: #374151;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Responsive Call Now Button Styles */
#callNowBtn {
  position: fixed;
  bottom: 92px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f97316 60%, #ffb347 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px 0 rgba(249,115,22,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: callnow-pulse 1.5s infinite;
  border: none;
  outline: none;
  font-size: 0;
}
#callNowBtn:active {
  transform: scale(0.96);
}
#callNowBtn .callnow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
#callNowBtn svg {
  width: 32px;
  height: 32px;
  color: #fff;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px #ffb34788);
}
@keyframes callnow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249,115,22,0.5), 0 4px 24px 0 rgba(249,115,22,0.25);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249,115,22,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249,115,22,0.5), 0 4px 24px 0 rgba(249,115,22,0.25);
  }
}
@media (min-width: 768px) {
  #callNowBtn {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #callNowBtn {
    display: flex;
  }
}

/* Back to Top Button */
#backToTop {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: 0 4px 24px 0 rgba(249,115,22,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  background: linear-gradient(135deg, #f97316 60%, #ffb347 100%);
  color: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  z-index: 99;
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
} 

#callNowBtn:active, #backToTop:active {
  transform: scale(0.96);
}

#callNowBtn .callnow-icon, #backToTop .callnow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

#callNowBtn svg, #backToTop svg {
  width: 32px !important;
  height: 32px !important;
  color: #fff;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px #ffb34788);
}

#backToTop:hover, #callNowBtn:hover {
  background: linear-gradient(135deg, #ffb347 60%, #f97316 100%);
  box-shadow: 0 6px 32px 0 rgba(249,115,22,0.28), 0 2px 8px 0 rgba(0,0,0,0.13);
  transform: scale(1.08);
}

@media (min-width: 768px) {
  #callNowBtn {
    display: none !important;
  }
}