:root{
    --main-color-red:#A91E23;
    --main-color-yellow:#F9B815;
    --main-text-color:#333;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent mobile auto-linking styles for phone numbers */
a[href^="tel:"] {
    color: inherit !important;
    text-decoration: underline !important;
}

/* General mobile phone number auto-link prevention */
.phone-number,
.contact-text h3 {
    -webkit-text-size-adjust: none;
}

/* Override mobile browser auto-link styles */
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: underline !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: var(--main-text-color);
}

#logo {
    width:300px;
    height: auto;
}

.screenContainer {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.top-bar {
    background-color: var(--main-color-red);
    height: 25px;
    width: 100%;
}

.nav-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--main-color-red);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

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

.contact-text h2 {
    margin: 0;
    font-size: 24px;
    color: var(--main-color-red);
    font-weight: bold;
    line-height: 1.2;
}

.contact-text h3 {
    margin: 2px 0 0 0;
    font-size: 22px;
    color: var(--main-text-color);
    font-weight: bold;
    line-height: 1.2;
}

/* Remove mobile phone number auto-linking styles */
.contact-text h3 a,
.contact-text h3 a:link,
.contact-text h3 a:visited,
.contact-text h3 a:hover,
.contact-text h3 a:active {
    color: var(--main-text-color) !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

/********** nav **********/

header nav{
    background-color: var(--main-color-yellow);
    padding: 10px 0;
    position: relative;
}

nav .nav-links{
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav .nav-links a{
    text-decoration: none;
    color: var(--main-text-color);
    padding: 10px 15px;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--main-text-color);
    margin: 2px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/********** footer ***********/

footer{
    font-size: 14px;
}

/********** nav **********/

.hero-section{
    height: 550px;
    position: relative;
    display: flow-root;
    background-image: url('/images/istockphoto-1486531642-1024x1024-wmremove-transformed.jpeg');
    background-size: cover;
    background-position: bottom center;
    background-color: #efefef;
}

.hero-text-wrapper{
        height: 100%;
        position: relative;
    }

.hero-text{
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    color: var(--main-text-color);
    text-align: left;
    background-color: rgba(255, 255, 255, 1); /* Optional: adds a semi-transparent background for better readability */
    padding: 30px;
    font-size: 32px;
    width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-text h1{
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--main-color-red);
}

/********** Sections **********/

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--main-color-red);
    margin-bottom: 40px;
    margin-top: 0;
}

.section-title.left {
    text-align: left;
}

/********** content pages **********/

.content-section {
    padding: 60px 0;
    background-color: #fff;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    font-size: 36px;
    color: var(--main-color-red);
    margin-bottom: 40px;
    margin-top: 0;
}

.content-text h3 {
    color: var(--main-color-red);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--main-text-color);
    margin-bottom: 20px;
}

.content-text ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-text li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--main-text-color);
    margin-bottom: 10px;
}

/********** Services Section **********/

.services-section {
    padding: 60px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--main-color-red);
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
}

.service-item p {
    color: var(--main-text-color);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/********** About Section **********/

.about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--main-text-color);
    margin-bottom: 25px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}

/********** Partners Section **********/

.partners-section {
    padding: 60px 0;
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
    align-items: center;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    border-radius: 8px;
    height: 120px;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/********** Footer **********/

.main-footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-img {
    max-width: 250px;
    height: auto;
}

.footer-contact h3,
.footer-links h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-contact .contact-details p {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

.footer-contact .contact-details p:first-child {
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--main-color-yellow);
}

.footer-links a.nav-contact-us {
    display: none;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: left;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}