/* Base styles and resets */
:root {
    --blue: #0476D0;
    --blue-dark: #0359A1;
    --blue-light: #66B6ED;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --transition-standard: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Scroll margin for section anchors */
[id] {
    scroll-margin-top: 110px;
}

/* Ensure content doesn't overlap with fixed navbar */
.content-wrapper {
    padding-top: 0;
}

/* Swiper specific styles */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img,
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.7;
    transition: var(--transition-standard);
}

.swiper-pagination-bullet-active {
    background: var(--blue);
    opacity: 1;
    transform: scale(1.2);
}

/* Hero section styling */
.hero-section {
    position: relative;
    z-index: 1;
    margin-top: 100px !important;
}

/* Text shadow for hero text */
.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero section spacing for inner pages */
.gallery-hero, .contact-hero {
    padding-top: 12rem !important;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Button styling */
.btn, 
a[href^="tel:"], 
a[href$="contact.html"]:not(.no-hover):not(.footer-link),
a.inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition-standard);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after,
a[href^="tel:"]::after, 
a[href$="contact.html"]:not(.no-hover):not(.footer-link)::after,
a.inline-flex::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::after,
a[href^="tel:"]:hover::after, 
a[href$="contact.html"]:not(.no-hover):not(.footer-link):hover::after,
a.inline-flex:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover, 
a[href^="tel:"]:hover, 
a[href$="contact.html"]:not(.no-hover):not(.footer-link):hover,
a.inline-flex:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* No hover effect for items with the no-hover class */
.no-hover, .no-hover:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Card and shadow styles */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hamburger Menu Animation */
.hamburger-menu {
    cursor: pointer;
    transition: var(--transition-standard);
}

.hamburger-menu span {
    display: block;
    height: 2px;
    background-color: var(--blue);
    transition: var(--transition-standard);
}

.hamburger-menu.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav-right {
    transition: var(--transition-standard);
}

.nav-right.active {
    right: 0;
    transform: translateX(0);
    visibility: visible;
}

/* Navbar styles */
#navbar {
    transition: var(--transition-standard);
    backdrop-filter: blur(8px);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    #navbar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Modern card styles */
.modern-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-standard);
    background-color: white;
}

.modern-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* Accessibility helper classes */
.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;
}

/* Image comparison slider custom styles */
img-comparison-slider {
    --divider-width: 2px;
    --divider-color: var(--blue);
    --handle-size: 40px;
}

img-comparison-slider::part(handle) {
    background-color: var(--blue);
    border: 3px solid white;
}
