:root {
    --color-primary-25: #ffffff;
    --color-primary-50: #ffffff;
    --color-primary-100: #cfe6f3;
    --color-primary-200: #a7d2e9;
    --color-primary-300: #62c7ff;
    --color-primary-400: #257AA7;
    --color-primary-500: #007cc0; /* Primary color */
    --color-primary-600: #0069a7;
    --color-primary-700: #00568e;
    --color-primary-800: #003e71;
    --color-primary-900: #00446b;
    --color-primary-950: #00324f;
}


#tcm .header-logo img {
    max-width: 120px;
}

#tcm .nav-bar ul {
    list-style: none;
    display: flex;
    gap: 1em;
}

#tcm .nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#tcm .nav-bar a:hover {
    text-decoration: underline;
}

#tcm .section.wide {
    display:block;
}
#tcm .section.wide .text-wrap {
    max-width: 100%;
}
#tcm .section.wide.contact{
    width:100%;
    margin:0;
    background-color: #007cc0;
    color:white;
}
#tcm .section.wide.contact h2{
    width:100%;
    margin:0;
    color:white;
}
#tcm .section.wide.contact .text-wrap{
    width:80%;
    margin: 0 10%;
    color:white;
    display:flex;
    flex-direction: column;
    align-items: center;
}





#tcm .section {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2em 0em;
    gap: 1em;
    border-bottom: 1px solid #ddd;
    justify-content: space-around;
}

#tcm .section .text-wrap {
    flex: 1 1 60%; /* Allows text to take up about 60% of the container */
    max-width: 600px;
}

#tcm .section h2 {
    color: #0033A0; /* Honda Blue */
    font-size: 2em;
    margin: 0.5em 0;
}

#tcm .section p {
    font-size: 1em;
    line-height: 1.5;
}

#tcm .section img {
    flex: 1 1 40%; /* Allows image to take up about 40% of the container */
    max-width: 400px; /* Sets a maximum width for larger screens */
    width: 100%; /* Allows image to scale on smaller screens */
    height: auto;
    border-radius: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {#tcm 
    .section {
        flex-direction: column; /* Stacks text and image vertically */
        text-align: left;
        padding: 1em;
    }

    .section .text-wrap {
        max-width: 100%; /* Allows text to expand on smaller screens */
    }

    .section h2 {
        font-size: 1.8em;
    }

    .section p {
        font-size: 0.95em;
    }

    .section img {
        width: 80%; /* Adjusts image width for smaller screens */
        max-width: 300px; /* Adjusts max width to keep image small on medium screens */
        margin-top: 1em;
    }
}

@media (max-width: 480px) {#tcm 
    .section h2 {
        font-size: 1.5em;
    }

    .section p {
        font-size: 0.85em;
    }

    .section img {
        width: 100%; /* Full width on very small screens */
        max-width: 100%; /* Ensures image stays responsive on very small screens */
        margin-top: 1em;
    }
}





#tcm h2 {
    color: var(--color-primary-600);
}

#tcm .contact-button {
    display: inline-block;
    padding: 1em 1em;
    background-color: var(--color-primary-700);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 1em;
    width: 200px;
    text-align: center;
    
}

#tcm .contact-button:hover {
    background-color: var(--color-primary-800);
}

#tcm footer {
    background-color: var(--color-primary-900);
    color: white;
    text-align: center;
    padding: 1em 0;
}

/* Responsive design */
 @media (max-width: 768px) {
    .nav-bar ul {
        flex-direction: column;
        gap: 0.5em;
    }

    .section {
        padding: 1em;
    }
}
#tcm>section img{
    width:100%;
}
#tcm > section ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    color: white;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    width:80%;
    margin:0% 10%; /* Allows items to wrap on smaller screens */
}

#tcm > section ul li {
    color: white;
    background-color: #007cc0;
    width: 200px;
    height: 45px;
    line-height: 45px;
    border-radius: 2em;
    text-align: center;
    margin: 0.5em; /* Adds space around each item */
    flex: 1 1 180px; /* Allows items to shrink and wrap on smaller screens */
    max-width: calc(100% - 1em); /* Adjusts width to allow space for margins */
}

#tcm > section ul li a {
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #tcm > section ul {
        justify-content: center; /* Center items when stacked */
    }

    #tcm > section ul li {
        width: calc(100% - 1em); /* Full width on smaller screens with space around */
        max-width: 300px; /* Limits max width for readability */
    }
}
 #tcm main{
 }
 #tcm main section{
    margin:0 10%;
    width: 80%;
 }
 #tcm main section img{
    margin:0 0%;
    width: 100%;
 }
 #tcm .h1Wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

#tcm .h1Wrap img {
    width: 100%;
    height: auto;
    display: block;
}

#tcm .h1Wrap h1 {
    position: absolute;
    top: 50%; /* Centers the text vertically */
    left: 50%; /* Centers the text horizontally */
    transform: translate(-50%, -50%); /* Centers the text precisely */
    color: white;
    font-size: 2em;
    background-color: rgba(0, 0, 0, 0.5); /* Adds a semi-transparent background for readability */
    padding: 0.5em 1em;
    border-radius: 0.5em;
    max-width: 90%; /* Prevents text from stretching too wide on smaller screens */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #tcm .h1Wrap h1 {
        font-size: 1.5em; /* Reduces font size on tablets */
        padding: 0.4em 0.8em; /* Adjusts padding for better fit */
    }
}

@media (max-width: 480px) {
    #tcm .h1Wrap h1 {
        position: absolute;
        top: 0; /* Centers the text vertically */
        left: 0%; /* Centers the text horizontally */
        transform: translate(0, 0); /* Centers the text precisely */
        color: white;
        font-size: 2em;
        background-color: rgba(0, 0, 0, 0); /* Adds a semi-transparent background for readability */
        text-shadow: rgb(0, 0, 0)1px 0 10px;
        border-radius: 0.5em;
        max-width: 90%; 
    }
    
}
@media (max-width: 354px) {
    #tcm .h1Wrap h1 {
        position: absolute;
        top: 0; /* Centers the text vertically */
        left: 0%; /* Centers the text horizontally */
        transform: translate(0, 0); /* Centers the text precisely */
        color: white;
        font-size: 1.4em;
        background-color: rgba(0, 0, 0, 0); /* Adds a semi-transparent background for readability */
        text-shadow: rgb(0, 0, 0)1px 0 10px;
        border-radius: 0.5em;
        max-width: 90%; 
    }
    
}


/* Fade-in effect for sections */
#tcm .section {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#tcm .section.fade-in {
    opacity: 0; /* Start faded out */
    transform: translateY(20px); /* Slight upward offset */
}

#tcm .section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale and fade-in effect for images */
#tcm .section img {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#tcm .section img.fade-in {
    opacity: 0;
    transform: scale(0.95); /* Start slightly scaled down */
}

#tcm .section img.fade-in.visible {
    opacity: 1;
    transform: scale(1); /* Full size */
}

/* Button hover effect */
#tcm .contact-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#tcm .contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header text fade and slide-in */
#tcm .h1Wrap h1 {
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#tcm .h1Wrap h1.fade-in {
    opacity: 0;
    transform: translateY(-20px); /* Start slightly above */
}

#tcm .h1Wrap h1.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
