/* Custom styles to match the design draft */

/* Make strong tags use Satoshi Bold font */
strong {
    font-family: 'Satoshi-Bold', sans-serif;
    font-weight: 700;
}

/* Style for clickable phone number */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.phone-link:hover {
    color: var(--main-color);
}

.phone-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--main-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.phone-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section-3 {
    position: relative;
    padding-left: 0;
    width: 100%; /* Full container width */
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    z-index: 5;
}

/* Create full width section */

/* Position pattern at the left edge */
.pattern-bottom-left {
    position: relative;
    width: 469px;
    height: 203px;
    background-position: left bottom;
    background-repeat: no-repeat;
    margin: 0;
    flex: none;
    visibility: hidden; /* Hide the original element as we're using ::before */
}

/* New contact wrapper for logo and contact info layout */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
    z-index: 10;
}

/* Contact section heading */
.contact-wrapper h2 {
    margin-bottom: 35px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 12px;
    width: 100%;
    font-weight: normal;
}

.contact-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #000;
    transform: scaleX(1);
    transition: transform 0.5s ease;
}

/* Override existing styles for contact section */
.contact-section {
    position: relative;
    margin-left: 0;
    margin-bottom: 0;
    flex: 1; 
    padding-top: 0;
    align-self: flex-start;
    z-index: 10;
    box-sizing: border-box;
}

/* New container for logo and contact info together */
.contact-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 600px;
    gap: 30px;
}

/* Contact info styles */
.contact-info {
    margin-left: 0;
    padding-left: 0;
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Email link styling */
.email-container {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.protected-email {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.protected-email:hover {
    color: var(--main-color);
}

.protected-email.revealed {
    color: var(--main-color);
    text-decoration: underline;
}

/* Logo on the left side */
.logo-footer {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    position: relative;
    max-width: 200px;
    display: flex;
    align-items: center;
}

.contact-section.fade-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
/* Fixed container width override for .section-3 */
.section-3 {
    max-width: none !important;
    overflow: visible;
}

/* Logo size */
.logo-footer img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1200px) {
    .section-3::before {
        background-size: 380px 165px;
        height: 165px;
    }
    
    .section-3 {
        min-height: 165px;
    }
    
    .pattern-bottom-left {
        height: 165px;
        width: 380px;
    }
    
    .logo-footer img {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .section-3 {
        flex-wrap: wrap;
        min-height: 165px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-3::before {
        background-size: 335px 145px;
        height: 145px;
    }
    
    .pattern-bottom-left {
        width: 335px;
        height: 145px;
    }
    
    .contact-left {
        gap: 20px;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .contact-info {
        width: auto;
        min-width: 0;
        flex: 1;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .logo-footer {
        max-width: 180px;
        flex-shrink: 0;
    }
    
    /* Ensure contact info text doesn't overflow */
    .contact-info p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .pattern-bottom-left {
        width: 335px;
        height: 145px;
    }
    
    .section-3 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-3::before {
        width: 100vw;
        background-position: left bottom;
        height: 145px;
    }
    
    .contact-wrapper {
        margin-top: 155px; /* Slightly more than height of the pattern image */
        flex-direction: column;
        padding-left: 25px;
        width: 100%;
    }
    
    .contact-section {
        margin-top: 0;
        padding-left: 0;
        width: 100%;
    }
    
    .contact-left {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        gap: 20px;
        align-items: center;
    }
    
    .logo-footer {
        margin-bottom: 0;
        max-width: 140px;
        flex-shrink: 0;
    }
    
    .logo-footer img {
        width: 100%;
        max-height: 60px;
        object-fit: contain;
    }
    
    .contact-info {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .pattern-bottom-left {
        width: 235px;
        height: 102px;
    }
    
    .section-3 {
        display: flex;
        flex-direction: column;
    }
    
    .section-3::before {
        height: 102px;
    }
    
    .contact-wrapper {
        margin-top: 110px; /* Just above pattern image height */
        flex-direction: column;
        align-items: flex-start;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .contact-wrapper h2 {
        text-align: left;
        font-size: 1.6rem;
    }
    
    .logo-footer {
        margin-bottom: 0;
        width: 100%;
        max-width: 120px;
    }
    
    .logo-footer img {
        width: 100%;
        display: block;
    }
    
    /* Keep horizontal layout on mobile but adjust sizes */
    .contact-left {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .contact-info {
        margin-left: 0;
        font-size: 0.95rem;
    }
    
    .contact-info p {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .contact-section h2::after {
        left: 0;
        transform: none;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .contact-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-footer {
        margin-bottom: 15px;
    }
    
    .contact-info p {
        margin-bottom: 8px;
    }
}


/* ===== BROWSER FIXES ===== */
/* Previously in edge-fix.css */

/* Fix for Edge and IE flexbox alignment issues */
.contact-wrapper {
    display: flex;
    align-items: flex-start;
}

/* Fix potential image scaling issues */
.logo-footer img {
    max-width: 100%;
}

/* Fix for contact section vertical alignment */
@media (min-width: 769px) {
    .contact-section {
        padding-top: 15px; /* Add a bit of padding to better align with logo */
    }
}

/* Fix for Firefox flexbox rendering */
@supports (-moz-appearance:none) {
    .section-3::before {
        background-position: right bottom;
    }
    
    .logo-footer {
        align-self: flex-start;
    }
}

/* Fix for Safari rendering */
@supports (-webkit-touch-callout: none) {
    .contact-wrapper {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    .logo-footer img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Ensure proper section layout in all browsers */
.section-3 {
    overflow: visible !important;
}

/* Fix for mobile browsers */
@media (max-width: 576px) {
    .section-3::before {
        width: 100% !important;
        left: 0 !important;
    }
}

/* ===== PATTERN SIZE ADJUSTMENTS ===== */
/* Previously in pattern-fix.css */

/* Pattern-bottom-right size adjustment */
.pattern-bottom-right {
    width: 497px !important;
    height: 482px !important;
    background-size: contain !important;
}


.animated-bg {
    position: fixed;
    top: 0;
    left: 50vw;
    width: 100vw;
    height: 100vh;
    transform: scale(1.5); /* Start from a larger size */
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1s ease-in-out;
} 

.animated-bg.loaded {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 1700px) {

    .animated-bg {  
    left: 55vw;
    }
}

@media (max-width: 1500px) {

    .animated-bg {  
    left: 65vw;
    }
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .pattern-bottom-right {
        width: 400px !important;
        height: 388px !important;
    }   

        .animated-bg {  
            left: 70vw;
        }
}

@media (max-width: 992px) {
    .pattern-bottom-right {
        width: 350px !important;
        height: 339px !important;
    }
         .animated-bg {  
            left: 0vw;
            top: 0vh;
        }

      .animated-bg canvas {  
            opacity: 0.1;
            left: -50vw;
        }
}

@media (max-width: 768px) {
    .pattern-bottom-right {
        width: 300px !important;
        height: 291px !important;
    }

        .animated-bg {  
            left: 0vw;
            top: 0vh;
        }

      .animated-bg canvas {  
            opacity: 0.1;
            left: -50vw;
        }

}

@media (max-width: 576px) {
    .pattern-bottom-right {
        width: 220px !important;
        height: 213px !important;
    }
        .animated-bg {  
            left: 0vw;
            top: 0vh;
        }

      .animated-bg canvas {  
            opacity: 0.1;
            left: -50vw;
        }

        .highlight-span::before {
            display: none;
        }

}

@media (max-width: 400px) {
    .pattern-bottom-right {
        width: 160px !important;
        height: 155px !important;
    }
} 



.animated-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}