/* Stuart Turner General Contracting - Modern Styling */

:root {
    /* Coral Reef Tropical Theme - Jimmy Buffett Inspired */
    --primary-color: #00AEEF; /* Ocean Blue */
    --secondary-color: #FF6B6B; /* Coral Pink */
    --accent-color: #FFD93D; /* Sandy Yellow */
    --tertiary-color: #4ECDC4; /* Turquoise */
    --dark-color: #2C3E50; /* Deep Ocean */
    --light-color: #F7F9FC; /* Sandy White */
    --text-color: #34495E; /* Reef Gray */
    --border-color: #BDC3C7; /* Light Coral */
    --shadow-color: rgba(0, 174, 239, 0.1); /* Ocean Shadow */
    --gradient-1: linear-gradient(135deg, #00AEEF 0%, #4ECDC4 100%); /* Ocean to Turquoise */
    --gradient-2: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%); /* Coral to Sand */
    --gradient-3: linear-gradient(135deg, #2C3E50 0%, #34495E 100%); /* Deep Ocean */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Gator Coast accent - subtle Florida Gators orange, used sparingly as an outline/accent color */
    --accent-outline-color: #FA4616; /* UF Orange */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #F0F8FF 0%, #E6F3FF 100%); /* Light ocean gradient */
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Coral Reef Theme Enhancements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><radialGradient id="coral1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23FF6B6B;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%23FFD93D;stop-opacity:0.1"/></radialGradient><radialGradient id="coral2" cx="30%" cy="70%" r="40%"><stop offset="0%" style="stop-color:%234ECDC4;stop-opacity:0.2"/><stop offset="100%" style="stop-color:%2300AEEF;stop-opacity:0.1"/></radialGradient></defs><circle cx="200" cy="150" r="80" fill="url(%23coral1)"/><circle cx="600" cy="200" r="60" fill="url(%23coral2)"/><circle cx="800" cy="100" r="40" fill="url(%23coral1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.service-card {
    position: relative;
}

/* Wave Animation */
@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wave-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: wave 10s infinite linear;
}

/* Layout */
.main-content {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: calc(100vh - 80px);
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background: var(--gradient-1) !important;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px var(--shadow-color);
    }

.btn-warning {
    background: var(--gradient-2);
    border: none;
    color: var(--dark-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px var(--shadow-color);
        color: var(--dark-color) !important;
    }

/* Navigation Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 174, 239, 0.95) !important; /* Ocean Blue */
    border-bottom: 3px solid var(--accent-outline-color);
    transition: all 0.3s ease;
}

.navbar-brand .logo-container {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.navbar-brand .logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.navbar-brand:hover .logo-container {
    transform: scale(1.1);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        transform: translateY(-2px);
        color: var(--secondary-color) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 80%;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px var(--shadow-color);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--light-color);
        transform: translateX(5px);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.95) 0%, rgba(78, 205, 196, 0.9) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%2300AEEF;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%234ECDC4;stop-opacity:0.3"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23bg)"/><polygon points="0,150 200,100 400,180 600,120 800,200 1000,150 1000,300 0,300" fill="%23FF6B6B" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title:focus {
    outline: none;
}

/* Remove focus outline from all headings */
h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}

/* Remove tabindex focus visibility */
[tabindex="-1"]:focus {
    outline: none !important;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards & Components */
.service-card {
    background: white;
    border: none;
    border-top: 3px solid transparent;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--shadow-color);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

    .service-card:hover {
        transform: translateY(-10px);
        border-top-color: var(--accent-outline-color);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .service-card .card-body {
        padding: 2rem;
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--gradient-2);
    color: var(--dark-color);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        width: 60px;
        height: 4px;
        background: var(--gradient-2);
        transform: translateX(-50%);
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Forms */
.form-floating > .form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
    }

.form-floating > label {
    color: var(--text-color);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-light-blue {
    background: rgba(0, 174, 239, 0.05); /* Ocean blue tint */
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-1) border-box;
}

.shadow-soft {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

    .hover-opacity-100:hover {
        opacity: 1 !important;
    }

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .service-card .card-body {
        padding: 1.5rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .stat-item {
        padding: 1.5rem 0.5rem;
    }
}

/* Responsive brand text */
@media (max-width: 1400px) {
    .navbar-brand .brand-text .fw-bold {
        font-size: 1.1rem !important;
    }
    .navbar-brand .brand-text .small {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 1200px) {
    .navbar-brand .brand-text .fw-bold {
        font-size: 1rem !important;
    }
    .navbar-brand .brand-text .small {
        font-size: 0.65rem !important;
    }
}

/* Loading Animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    .main-content {
        padding-top: 0 !important;
    }
}

/* Gator Coast Footer Accents */
.palm-divider {
    color: var(--accent-outline-color);
    opacity: 0.6;
    margin: 0 auto 0.75rem;
}

.site-version {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.5rem;
    letter-spacing: 0.03em;
}
