/* CTX Renovate Custom Styles */

:root {
    --primary-color: #1a365d;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --navy-dark: #0f2533;
    --navy-light: #2c5282;
    --gold-accent: #d69e2e;
    --font-family: 'Source Sans Pro', sans-serif;
    --hero-font: 'Playfair Display', serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
    transition: all 0.3s ease;
}

/* Page transition animations */
.page-transition {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Smooth animations for all interactive elements */
* {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Apply more inviting fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hero-font);
}

.navbar-brand {
    font-family: var(--hero-font);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Brand text styling with Austin Texas flair */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: #f8f9fa;
    opacity: 0.95;
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: -2px;
}

/* Responsive adjustments for tagline */
@media (max-width: 768px) {
    .tagline {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
}

/* Hero subtitle styling */
.hero-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #6c757d;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
}

.text-gold {
    color: var(--gold-accent) !important;
}

.footer-social-link, .footer-contact-link {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.footer-social-link:hover, .footer-contact-link:hover {
    background: var(--gold-accent);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.footer-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-link:hover {
    color: var(--gold-accent) !important;
    transform: translateX(5px);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-accent) !important;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background-color: var(--light-color);
}

.stat-item h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Counter Animation Styles */
.counter {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Blog Styles */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
}

.blog-content ul li, .blog-content ol li {
    margin-bottom: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
}

/* Service Areas Styles */
.service-area-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.service-area-list li {
    padding: 0.25rem 0;
    color: #495057;
    font-weight: 500;
}

.service-area-card h4 {
    font-size: 1.1rem;
}

.service-area-card .text-gold {
    color: var(--gold-color) !important;
}

/* Make service areas section more compact on mobile */
@media (max-width: 768px) {
    .service-area-card {
        margin-bottom: 1rem !important;
    }
    
    .service-area-list {
        font-size: 0.9rem;
    }
    
    .service-area-card h4 {
        font-size: 1rem;
    }
}

/* Hero Panoramic Styles */
.hero-panoramic {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-panorama-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-background {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, rgba(26, 54, 93, 0.9) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.4);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
    font-family: var(--hero-font);
}

.hero-title-container {
    flex-wrap: wrap;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Responsive adjustments for hero title */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-panoramic {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-logo {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .hero-title-container {
        flex-direction: column;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        height: 60px;
    }
}

/* Testimonials Styles */
.testimonials-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.testimonial-author h5,
.testimonial-author h6 {
    font-family: var(--hero-font);
}

.testimonials-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
}

/* Star ratings */
.fa-star {
    font-size: 0.9rem;
    margin-right: 2px;
}

/* Badge styling for testimonials */
.badge.bg-outline-primary {
    background-color: transparent !important;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Blog Hero Panoramic Styles */
.blog-hero-panoramic {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--primary-color);
}

.blog-hero-panorama-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.6);
    z-index: 2;
}

.blog-hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--hero-font);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* Responsive adjustments for blog hero */
@media (max-width: 768px) {
    .blog-hero-panoramic {
        height: 40vh;
        min-height: 350px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

/* Card Animation Stagger */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial Card Animations */
.testimonial-card {
    animation: fadeInScale 0.6s ease-out;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blog Card Hover Animation */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-card:hover .card {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.1);
}

/* Navbar Animation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(26, 54, 93, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

/* 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: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero title animation */
.hero-title {
    animation: heroTitleSlide 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stats counter pulse effect */
.counter {
    transition: all 0.3s ease;
}

.counter.counting {
    color: var(--gold-accent);
    transform: scale(1.1);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

.flash-messages .alert {
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Info */
.contact-info i {
    color: var(--gold-accent);
}

.contact-info a {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--gold-accent);
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stats-section .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .flash-messages {
        width: 95%;
    }
}

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

.hero-section .container > .row {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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