/**
 * Main Stylesheet
 * J&C GENERAL LLC - Roofing & Exterior Services
 * Modern Premium Design
 */

:root {
    --primary-color: #0a67c8;
    --secondary-color: #061a36;
    --accent-color: #1f8df0;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #a0a0a0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   GLOBAL STYLES
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #084f9a;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

/* ================================================================
   TOP BAR
   ================================================================ */

.topbar {
    background: var(--secondary-color);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-color);
}

.topbar small {
    display: block;
}

.topbar a {
    color: var(--white);
}

.topbar a:hover {
    color: var(--primary-color);
}

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.site-logo {
    height: 58px;
    width: auto;
    display: inline-block;
    object-fit: contain;
}

.navbar-brand span {
    color: var(--secondary-color);
}

@media (max-width: 576px) {
    .site-logo {
        height: 46px;
    }
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    color: var(--dark-text) !important;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar .btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar .btn-danger:hover {
    background-color: #084f9a;
    border-color: #084f9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 103, 200, 0.3);
}

/* ================================================================
   FLOATING BUTTONS
   ================================================================ */

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.btn-float {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-call {
    background: linear-gradient(135deg, var(--primary-color), #084f9a);
}

.btn-estimate {
    background: linear-gradient(135deg, var(--accent-color), #0050a0);
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
    height: 70vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero::before {
    display: none;
}

/* Home hero uses rotating real images with no gradient overlay */
.hero-home {
    background: #061a36;
}

.hero-home::before {
    display: none;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.85s ease-in-out, transform 6s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-home .hero-content {
    background: rgba(0, 0, 0, 0.52);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    max-width: 760px;
}

.hero-home h1,
.hero-home p {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.hero-subpage-carousel .hero-content {
    background: rgba(0, 0, 0, 0.36);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    max-width: 760px;
}

.hero-subpage-carousel .hero-indicators {
    bottom: 12px;
}

.hero-indicators {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    min-width: 180px;
}

.hero .btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero .btn-danger:hover {
    background-color: #084f9a;
    border-color: #084f9a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 103, 200, 0.4);
}

.hero .btn-outline-light {
    border-color: white;
    color: white;
}

.hero .btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ================================================================
   TRUST SECTION
   ================================================================ */

.trust-section {
    padding: 4rem 0;
    background: var(--light-bg);
    text-align: center;
}

.trust-item {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-item h5 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* ================================================================
   SECTION GENERAL STYLES
   ================================================================ */

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    display: block;
    border-radius: 2px;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */

.services-section {
    background: white;
}

/* Main Service Card (Roofing) */
.main-service-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.main-service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 103, 200, 0.16) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, -50px) scale(1.1);
    }
}

.main-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 103, 200, 0.3);
}

.main-service-content {
    position: relative;
    z-index: 1;
}

.main-service-image {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.main-service-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.main-service-image-placeholder {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    background: #1f2937;
}

.main-service-image-placeholder i {
    font-size: 2.2rem;
}

.main-service-image-placeholder span {
    font-weight: 700;
}

.main-service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.main-service-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.main-service-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.main-service-card p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.main-service-card .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    margin-right: 1rem;
}

.main-service-card .btn-danger {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.main-service-card .btn-danger:hover {
    background: #084f9a;
    border-color: #084f9a;
    box-shadow: 0 5px 20px rgba(10, 103, 200, 0.4);
}

/* Service Cards Grid */
.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f4f8;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0b4e99, #123765);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image-placeholder i {
    font-size: 2rem;
}

.service-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    padding: 2rem 0 1rem;
    text-align: center;
}

.service-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.service-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    width: 100%;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.service-card .btn-outline-danger {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-card .btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.about-section {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 340px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
}

.about-image-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease-in-out, transform 6s ease-out;
}

.about-image-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.feature-item p {
    margin: 0;
    color: #666;
}

/* ================================================================
   WHY CHOOSE US SECTION
   ================================================================ */

.why-choose-section {
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--light-bg);
    transition: var(--transition);
}

.why-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.why-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-item h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.why-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ================================================================
   TESTIMONIALS SECTION
   ================================================================ */

.testimonials-section {
    background: var(--light-bg);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.testimonial-info h6 {
    margin: 0;
    color: var(--secondary-color);
}

.testimonial-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 0;
}

/* ================================================================
   CTA SECTION
   ================================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(10, 103, 200, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    min-width: 180px;
}

.cta-buttons .btn-danger {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-buttons .btn-danger:hover {
    background: #084f9a;
    border-color: #084f9a;
    box-shadow: 0 10px 25px rgba(10, 103, 200, 0.4);
    transform: translateY(-3px);
}

/* ================================================================
   CONTACT FORM
   ================================================================ */

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--dark-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10, 103, 200, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
}

.btn-submit:hover {
    background: #084f9a;
    border-color: #084f9a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(10, 103, 200, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ================================================================
   PROJECTS SECTION
   ================================================================ */

.projects-section {
    background: var(--light-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-overlay a:hover {
    background: #084f9a;
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-card h5 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero-home {
        height: 78vh;
        min-height: 560px;
        align-items: flex-end;
        padding: 0 1rem 3.8rem;
    }

    .hero-home .hero-content {
        width: 100%;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 14px;
        padding: 1rem 1rem;
    }

    .hero-home h1 {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 0.85rem;
    }

    .hero-home p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.1rem;
    }

    .hero-home .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 0.2rem;
    }

    .hero-home .hero-actions .btn {
        margin: 0;
        width: 100%;
        min-width: 0;
        padding: 0.72rem 1rem;
        font-size: 1.05rem;
    }

    .hero-home .hero-indicators {
        bottom: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        display: block;
        margin: 0.5rem auto;
    }

    section {
        padding: 3rem 0;
    }

    .about-content {
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1rem;
    }

    .floating-buttons {
        right: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .btn-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .main-service-card {
        padding: 2rem;
    }

    .main-service-card h3 {
        font-size: 1.8rem;
    }

    .main-service-image img {
        height: 220px;
    }

    .main-service-image-placeholder {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 45vh;
    }

    .hero-home {
        height: 82vh;
        min-height: 620px;
        padding: 0 0.9rem 3.9rem;
    }

    .hero-home .hero-content {
        background: rgba(0, 0, 0, 0.34);
        border-radius: 12px;
        padding: 0.9rem 0.85rem;
    }

    .hero-home h1 {
        font-size: 2rem;
        line-height: 1.16;
    }

    .hero-home p {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .hero-home .hero-actions .btn {
        font-size: 1rem;
        padding: 0.68rem 0.9rem;
    }

    .hero-home .hero-indicators {
        bottom: 12px;
    }

    .hero-subpage-carousel .hero-content {
        background: rgba(0, 0, 0, 0.3);
        padding: 0.8rem 0.9rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .trust-section {
        padding: 2rem 0;
    }

    .trust-item {
        padding: 1rem;
    }

    .trust-item i {
        font-size: 2rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .main-service-card {
        padding: 1.5rem;
    }

    .main-service-card h3 {
        font-size: 1.5rem;
    }

    .main-service-image img {
        height: 180px;
    }

    .main-service-image-placeholder {
        min-height: 170px;
    }

    .service-card-image {
        height: 170px;
    }

    .service-card-image-placeholder {
        height: 170px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   ANIMATIONS (AOS Integration)
   ================================================================ */

[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ================================================================
   UTILITIES
   ================================================================ */

.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--secondary-color) !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

/* ================================================================
   FADE IN ANIMATION
   ================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ================================================================
   SMOOTH SCROLL
   ================================================================ */

html {
    scroll-behavior: smooth;
}
