/* ============================================
   KANAAN CONSTRUCTION - MAIN STYLESHEET
   Professional, Minimalistic Construction Design
   ============================================ */

/* ============ ROOT & GLOBAL STYLES ============ */
:root {
    --primary-dark: #1a1a1a;
    --primary-charcoal: #2d2d2d;
    --primary-grey: #4a4a4a;
    --accent-blue: #1e3a5f;
    --accent-gold: #d4af37;
    --text-light: #f5f5f5;
    --text-dark: #1a1a1a;
    --border-light: #e0e0e0;
    --footer-blue: #0d1f3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

h4 {
    font-size: 1.4rem;
    color: var(--primary-grey);
}

p {
    font-size: 1rem;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============ HEADER & NAVIGATION ============ */
header {
    background-color: #ffffff;
    padding: 3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeInOut 6s ease-in-out infinite;
    background-size: cover;
    background-position: center;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
}
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }
.hero-slide:nth-child(7) { animation-delay: 36s; }
.hero-slide:nth-child(8) { animation-delay: 42s; }
.hero-slide:nth-child(9) { animation-delay: 48s; }
.hero-slide:nth-child(10) { animation-delay: 54s; }
.hero-slide:nth-child(11) { animation-delay: 60s; }
.hero-slide:nth-child(12) { animation-delay: 66s; }

@keyframes fadeInOut {
    0% { opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; }
}



/* Service Card Link Styling */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-link:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-link:hover .service-link {
    color: var(--accent-gold);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    animation: slideUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

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

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* ============ SERVICES SECTION (HOMEPAGE) ============ */
.services-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--primary-grey);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.service-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.service-card-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card-content p {
    font-size: 0.95rem;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card-content a {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-card-content a:hover {
    gap: 1rem;
}

/* ============ FOLLOW US SECTION ============ */
.follow-us-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.follow-us-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background-color: var(--accent-gold);
    transform: scale(1.1);
}

.social-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--text-light);
}

/* ============ ABOUT US SECTION ============ */
.about-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ PORTFOLIO SECTION ============ */
.portfolio-section {
    padding: 6rem 2rem;
    background-color: #f9f9f9;
}

.portfolio-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* ============ ABOUT PAGE STYLES ============ */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.about-section {
    padding: 4rem 0; /* Added padding for better separation */
    border-bottom: 1px solid #f0f0f0; /* Subtle separator */
}

.full-width-section {
    padding: 4rem 2rem; /* Restore horizontal padding for full-width text */
}

.full-width-section .about-text {
    flex: 1 1 100%; /* Make text full width */
}

.full-width-section .about-grid {
    display: block; /* Remove flex for full-width section */
}
.about-section:last-child {
    border-bottom: none;
}
.about-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--accent-blue);
    padding-bottom: 1rem;
}
.about-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}
.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}
.about-grid.reverse {
    flex-direction: row-reverse;
}
.about-grid.reverse .about-text {
    /* No change needed for flexbox */
}
.about-grid.reverse .about-image {
    /* No change needed for flexbox */
}
.about-text {
    padding: 0; /* Removed unnecessary padding */
    flex: 1 1 45%; /* Flexible width for horizontal flow */
}
.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1 1 45%; /* Flexible width for horizontal flow */
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.value-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-blue);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}
.value-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}
.certifications-section {
    background-color: #f9f9f9;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
}
.certifications-section h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
.certifications-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cert-item img {
    height: 80px;
    width: auto;
}
.cert-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }
    .about-grid .about-text,
    .about-grid .about-image {
        flex: 1 1 100%;
    }
    .about-grid.reverse {
        grid-template-areas: none; /* Reset grid area for mobile */
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--accent-blue);
}

.testimonial-message {
    font-style: italic;
    color: var(--primary-grey);
    margin-bottom: 0;
}

.testimonial-photo {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.testimonials-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.testimonials-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: var(--accent-gold);
    font-size: 1.5rem; /* Increased size for more impact */
    margin-bottom: 1rem;
    /* Shiny effect */
    text-shadow: 0 0 5px var(--accent-gold), 0 0 10px var(--accent-gold);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ============ CONTACT FORM SECTION ============ */
.contact-section {
    padding: 6rem 2rem;
    background-color: #f9f9f9;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload:hover {
    border-color: var(--accent-blue);
    background-color: #f0f5ff;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-text {
    color: var(--primary-grey);
    font-size: 0.95rem;
}

.file-upload-text strong {
    color: var(--accent-blue);
}

.contact-details {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item p {
    font-size: 1.1rem;
    color: var(--primary-grey);
    margin: 0;
}

.map-container {
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    border-radius: 8px;
}

/* ============ INTERNAL PAGE HEADER BAR ============ */
.internal-header-bar {
    background-color: var(--footer-blue);
    color: white; /* Explicitly set to white as requested */
}

.internal-header-bar h1 {
    color: white;
    margin: 0; /* Remove default h1 margin-bottom */
    padding: 1rem 0;
    margin-top: 110px; /* To push it down below the sticky header */
    position: relative;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============ FOOTER ============ */
footer {
    background-color: var(--footer-blue);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(245, 245, 245, 0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-certifications {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

.footer-certifications img {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-certifications img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 245, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.9rem;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 400px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .services-section,
    .about-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .contact-form,
    .contact-details {
        padding: 1.5rem;
    }

    .hero {
        height: 300px;
    }
}
