/* Solar Carport Installation Company Template - Main CSS */

/* ========== COLOR PALETTE ========== */
:root {
    /* Primary Colors - Pastel High Contrast */
    --primary-color: #4A90E2;      /* Sky Blue */
    --secondary-color: #7ED321;    /* Green Energy */
    --accent-color: #F5A623;       /* Solar Yellow */
    --neutral-color: #9B9B9B;      /* Gray */
    --highlight-color: #BD10E0;    /* Purple */
    
    /* Light & Dark Shades */
    --primary-light: #E8F4FD;
    --primary-dark: #2E5A8A;
    --secondary-light: #F0FBE8;
    --secondary-dark: #5BA113;
    --accent-light: #FDF4E3;
    --accent-dark: #D18F1A;
    --neutral-light: #F5F5F5;
    --neutral-dark: #666666;
    --highlight-light: #F9E8FD;
    --highlight-dark: #8B0BA3;
    
    /* System Colors */
    --text-color: #2C3E50;
    --bg-color: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* ========== TYPOGRAPHY - CONSERVATIVE SIZES ========== */
/* Reduced font sizes for conservative approach */
.navbar-brand {
    font-size: 1.25rem !important; /* Conservative brand size */
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem; /* Conservative h1 size */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem; /* Conservative paragraph size */
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* ========== GLOBAL STYLES ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* ========== ACCESSIBILITY ========== */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
    z-index: 2000;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 6px;
    color: white;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== HEADER STYLES ========== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 275px;
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.5);
}

.btn-primary:disabled {
    background-color: var(--neutral-color);
    border-color: var(--neutral-color);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(126, 211, 33, 0.5);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--neutral-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* ========== CARD STYLES ========== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.card-header {
    background-color: var(--primary-light);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.card-body {
    padding: 2rem;
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* ========== TEAM SECTION ========== */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 5px solid var(--primary-light);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonial-card {
    background: var(--neutral-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 3px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* ========== FAQ SECTION ========== */
.faq-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-color);
    margin-bottom: 0;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.form-check {
    margin-bottom: 2rem;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-light);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-light);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item span {
    font-weight: 500;
    color: var(--text-color);
}

/* ========== FOOTER STYLES ========== */
.footer {
    background-color: var(--accent-color) !important;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--neutral-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* ========== GALLERY STYLES ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--primary-light); }

.shadow-lg {
    box-shadow: 0 10px 30px var(--shadow-color);
}

.rounded-lg {
    border-radius: 15px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== BREADCRUMB STYLES ========== */
.breadcrumb-nav {
    padding: 100px 0 2rem 0;
    background: var(--neutral-light);
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* ========== SPACE PAGE STYLES ========== */
#space {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 2rem 0;
}

/* ========== DECORATIVE ELEMENTS ========== */
.decorative-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 60%;
    right: 15%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    bottom: 20%;
    left: 20%;
}

/* ========== BACK TO TOP BUTTON ========== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow-color);
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========== LOADING STATES ========== */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
