/* Solar Carport Installation Company Template - Main CSS */

/* ========== COLOR PALETTE ========== */
:root {
    /* Primary Colors - Pastel High Contrast */
    --primary-color: #4480dc;      /* Sky Blue */
    --secondary-color: #61c510;    /* Green Energy */
    --accent-color: #f4b133;       /* Solar Yellow */
    --neutral-color: #a1a1a1;      /* Gray */
    --highlight-color: #ef0df2;    /* Purple */
    
    /* Light & Dark Shades */
    --primary-light: #ebf2fa;
    --primary-dark: #2f5585;
    --secondary-light: #e9fbdd;
    --secondary-dark: #5ca313;
    --accent-light: #e4d4c4;
    --accent-dark: #bc8c08;
    --neutral-light: #F5F5F5;
    --neutral-dark: #6f6f6f;
    --highlight-light: #fcf4ff;
    --highlight-dark: #9c15a9;
    
    /* System Colors */
    --text-color: #2c3544;
    --bg-color: #FFFFFF;
    --border-color: #e6e6e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* ========== TYPOGRAPHY - CONSERVATIVE SIZES ========== */
/* Reduced font sizes for conservative approach */
.navbar-brand {
    font-size: 1.28rem !important; /* Conservative brand size */
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 2.58rem; /* 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: 1.03rem;
}

h3 {
    font-size: 1.63rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.79rem;
}

h4 {
    font-size: 1.32rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

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: 11px;
    border-radius: 9px;
    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(11px);
    box-shadow: 0 8px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 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: 150px;
}

/* ========== 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: 8px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 9px 110px rgba(77, 155, 212, 0.30);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(63, 122, 211, 0.50);
}

.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 18px rgba(94, 210, 20, 0.30);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(142, 190, 38, 0.50);
}

.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 17px rgba(78, 176, 243, 0.30);
}

/* ========== 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: 110px;
    box-shadow: 0 9px 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 7px 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.66rem;
}

.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.78rem;
    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(99, 160, 241, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #ef2f37;
    box-shadow: 0 0 0 0.2rem rgba(241, 53, 100, 0.25);
}

.invalid-feedback {
    display: block;
    font-size: 0.94rem;
    color: #ee5248;
    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(60, 134, 241, 0.25);
}

.form-check-label {
    font-size: 1.01rem;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.79rem;
    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.59rem;
    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-light);
    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 ========== */
#bba6dck-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.34rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow-color);
}

#cac3d5k-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#aca0b7k-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 - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
