:root{
    --light-blue: #8B9EBE;
    --gray: #565656;
    --off-white: #F7F7F7;
    --lime: #E4DF8B;
}

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--off-white);
    color: var(--gray);
    font-family: Arial, sans-serif;
}

/* scroll margins */
#home, #about, #partners, #contact {
    scroll-margin-top: 190px; 
}

.loading-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-logo {
    width: 150px;
    height: 150px;
    background-image: url('../logo_tr.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--light-blue);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    height: 180px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--off-white);
    z-index: 1;
    border-bottom-left-radius: 30px;

    position: fixed;
    width: 100%;
    top: 0;
    transition: height 0.5s ease;
}

.header-logo-div {
    padding-inline: 30px;  
    height: 100%;
    width: 15%;
    border-inline-end: solid 1px #00000041;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}
.header-content-div {
    display: flex; 
    flex-direction: column;
    height: 100%; 
    width: 85%; 
}

.header-content-upper-row{
    border-bottom: solid 1px #00000041;
    font-size: 14px;
}

.header-content-row{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 50%;
}

header a{
    text-decoration: none;
    color: var(--gray);
    font-weight: bold;
    font-size: 18px;
}

.nav-contact-info{
    margin-inline-start: 10px;
}

.nav-contact-info a{
    font-size: 14px;
    font-weight: normal;
    
}

header a:hover{
    color: var(--light-blue);
}

header a.active{
    color: var(--light-blue);
}

button{
    background-color: var(--lime);
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    font-family: inherit;
    height: 40px;
}

button:hover{
    background-color: var(--off-white);
    border-color: var(--lime);
    border: solid 1px;
    color: var(--off-white);
    color: var(--gray);
}


header i {
    color: var(--light-blue);
}

.header-mobile-menu-icon{
    display: none;
    position: absolute;
    inset-inline-end: 30px;
    width: 30px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}


.header-mobile-language-selector{
    position: absolute;
    inset-inline-start: 20px;
    display: none;
}


#main-post-text{
    height: 100%; 
    width: 50%;
}

#main-post-media{
    height: 100%; 
    width: 50%;  
    background-image: url('../photos/int-wide1.jpeg');
    background-size:cover; 
    background-position: top; 
    background-repeat: no-repeat; 
    border-end-start-radius: 30px; 
}

#main-post-text-inner{
    height: 90%; 
    width: 100%; 
    top: 0;;
    z-index: -100; 
    color: black; 
    font-weight: 600; 
    font-size: 1.5em;
    background-color: #00000015; 
    border-end-end-radius: 400px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: start; 
    gap: 10px; 
    padding: 20px;
}

#main-post-text-innermost h1{
    color: var(--light-blue)
}

.mobile-header-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hidden{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}



@media (max-width: 1000px) {
    .moved-down{
        transform: translateY(120px);
    }

    .moved-down-prescription{
        transform: translateY(30px);
    }

    #nav-regular{
        display: none;
    }

    .header-logo-div{
        width: 100%;
        height: 200px;
    }

    .header-mobile-menu-icon{
        display: block;
    }

    #main-post-text{
        width: 100%;
        position: absolute;
        left: 0;
    }

    #main-post-media{
        width: 100%;
    }

    #main-post-text-inner{
        background-color: #00000070;
        padding: 0;
        height: 85%;;
    }

    #main-post-text-innermost{
        padding: 20px;
        color: var(--off-white) 
    }

    #main-post-text-innermost h1{
        color: var(--off-white)
    }

    header{
        flex-direction: column;
        justify-content: center;
    }

    header a {
        margin-bottom: 10px;
    }

    button {
        margin-bottom: 10px;
    }

    .header-mobile-language-selector{
        display: block;
    }
}

.offerings {
    background-color: #00000015;
    width: 100%;
    padding: 50px 0;
    margin-top: 40px;
    border-start-start-radius: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap ;
}

.offering{
    width: 25%;
    min-width: 300px;
    min-height: 300px;
    margin: 20px 20px;
    text-align: center;
}

@media (max-width: 1000px) {
    .offering{
        min-height: 0px;
    }
}

.offerings .offering i {
    display: block;
    font-size: clamp(36px, 6vw, 64px);
    color: var(--light-blue);
    margin: 0 auto 16px;
}

.offerings a{
    text-decoration: none;
    color: var(--light-blue);
    font-size: 16px;
}

.offerings a:hover{
    color: var(--gray);
}



.about {
    width: 100%;
    height: 800px;

    /* background-image: url('../background.jpg');
    background-size: cover;
    background-position: center; */
    /* background-color: var(--gray); */

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about-image {
    width: 40%;
    height: 700px;
    background-image: url('../photos/extRightCrpd.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    border-end-start-radius: 200px;
    margin-inline-end: 50px;
}

.about-text {
    width: 40%;
    height: 80%;
    /* color: white; */
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

.about-mobile{
    display: none;
}

@media (max-width: 1000px) {
    .about {
        display: none;
    }

    .about-mobile{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 20px;
    }

    .about-mobile-image{
        width: 100%;
        height: 300px;
        background-image: url('../photos/extRightCrpd.jpeg');
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        border-radius: 15px;
    }

    .about-mobile-text{
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
    }
}


.insurance-companies {
    justify-self: center;
    width: 90%;
}

/* Refill Request Page Styles */
.refill-request {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.refill-request h1 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.refill-request p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray);
}

.form-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.refill-request label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-weight: bold;
}

.refill-request input[type="text"],
.refill-request input[type="tel"],
.refill-request input[type="email"],
.refill-request textarea,
.refill-request select {
    width: 90%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    color: var(--gray);
}

.refill-request input[type="file"] {
    margin-bottom: 1.5rem;
}

.refill-request textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions button {
    background-color: var(--lime);
    color: var(--gray);
    font-size: 1rem;
    padding: 1rem 2rem;
    height: auto;
    min-width: 200px;
}

.form-actions button:hover {
    background-color: var(--off-white);
    border: 1px solid var(--lime);
}

#recaptcha-div {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .refill-request {
        padding: 15px;
    }
}
    

.insurance-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-inline: 50px;
}

.insurance-logo {
    width: 180px;
    height: auto;
    margin: 20px;
    margin-inline: 40px;
}
.insurance-logo img {
    max-width: 100%;
    height: auto;
}





.payment-methods-image{
    width: 300px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    justify-self: center;
    background-image: url(../photos/paymentMethodsLandscape.png);
}


.contact{
    /* background-color: var(--light-blue); */
    /* color: white; */
    padding: 50px 0;
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    justify-self: center;


    /* background-color: #00000015; */
    
    border-radius: 100px;
   
    width: 90%;
}
.contact a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 10px 0;
}
.contact a:hover{
    color: var(--gray);
}
.contact i{
    margin-right: 10px;
}


.contact-methods{
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 500px;
}
.contact form{
    display: flex;
    flex-direction: column;
    width: 300px;
    margin-top: 20px;
}

.contact form label, .contact form input, .contact form textarea, .contact form button{
    margin-bottom: 8px;
} 

.contact form input, .contact form textarea{
    padding: 10px;
    border-radius: 10px;
    border: solid 1px var(--gray);
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}

.contact-inner{
    display: flex;
    flex-direction: row;
        flex-wrap: wrap;
    align-items: start;
    justify-content: center;
}

.contact-method{
    margin: 20px;
}

footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

footer i{
    color: var(--gray);
    font-size: 24px;
}

.footer-social-media{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-rights{
    margin-inline-start: 5px;
}

@media (max-width: 1000px) {
    .social-media-follow-prompt {
        visibility: hidden;
    }
}