/* CSS Variables for consistent theming */
:root {
    --primary-color: #ff6b35;
    --secondary-color: rgb(126, 126, 126);
    --dark-bg: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --link-hover: #0066cc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --max-width: 1400px;
}

/* Universal styles */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-family: Montserrat, Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
}

html {
    font-family: Montserrat, Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
}

body {
    color: var(--text-dark);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
}

a:hover {
    cursor: pointer;
    color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
    line-height: 1.7;
}

button {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}




/* header styles */

header {
    width: 100%; /* fill available space but constrain with max-width */
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 10px;
}

/* Style the hamburger menu */
.icon {
    background: var(--secondary-color);
    display: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.nav-list {
    display: flex;
    justify-content: space-around;
}


.logo {
    width: 15%;
    height: auto;
    min-width: 150px;
}


.nav-list li {
    display: inline;
    list-style-type: none;
    padding: 0.8rem;
    font-size: 1rem;
    position: relative;
}

.nav-list li a {
    position: relative;
    padding-bottom: 2px;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--link-hover);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-list li a:hover::after {
    width: 100%;
}

/* The dropdown container */
.dropdown {
    /* overflow: hidden; */
    display: inline;

}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 1rem;
    border: none;
    outline: none;
    color: black;
    padding: 0;
    background-color: inherit;
    font-family: inherit;

    /* Important for vertical align on mobile phones */
    margin: 0;
    /* Important for vertical align on mobile phones */

}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.dropdown:hover .dropbtn {
    color: blue;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light-bg);
    color: var(--text-dark);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 4px;
    margin: 4px 8px;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateX(4px);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.mobile-nav-list {
    display: none;
}

/* Mobile Styles */
@media only screen and (max-width: 567px) {
    header {
        width: 80vw;

        display: flex;
        flex-direction: column;
        justify-content: end;

    }

    nav {
        margin-left: 1rem;

    }


    .logo {
        min-width: 250px;

    }

    .dropdown .dropbtn {
        font-size: 0.5rem;
    }

    .icon {
        background: white;
        display: inline;
        font-size: 1.5rem;
        padding: 0.5rem;
        color: rgb(126, 126, 126);
        position: relative;
        right: 4px;


    }



    .icon:hover {
        color: rgb(126, 126, 126);
    }

    .nav-list {
        display: none;
    }

    .mobile-nav-list {
        width: 100vw;
        margin: 0 auto;
    }


    .mobile-nav-list a {
        display: block;
        width: 100vw;
        padding: 16px;
        line-height: 1.5;
        color: white;
        background-color: var(--secondary-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all var(--transition-speed) ease;
        font-weight: 500;
    }

    .mobile-nav-list a:hover {
        background-color: var(--dark-bg);
        padding-left: 24px;
    }


}

@media only screen and (min-width: 567px) and (max-width: 629px) {
    #desk-nav li {
        padding: 0.1rem;
        font-size: 0.7rem;
    }
}

/* Tablet Styles */

@media only screen and (min-width: 780px) and (max-width: 1100px) {
    header {
        width: 80vw;
    }

    nav {
        margin-left: 1rem;
    }

    .nav-list li {
        padding: 0.3rem;
        font-size: 1rem;
        margin-left: 10px;
    }

    .mobile-nav-list {
        display: none;
        color: white;
    }

    .logo {
        min-width: 150px;
    }

    .dropdown .dropbtn {
        font-size: 1rem;
    }
}

@media only screen and (min-width:451px) and (max-width: 780px) {
    .nav-list li {
        padding: 0.2rem;
        font-size: 0.8rem;
        margin-left: 10px;
    }

    .mobile-nav-list {
        display: none;
    }

    header {
        width: 80vw;
    }

    .dropdown .dropbtn {
        font-size: 0.8rem;
    }
}




/* main styles */

main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-container {
    width: 100vw;
    height: 65vh;
    background-color: var(--dark-bg);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.intro {

    width: 100vw;
    background: url("../media/liverpoolv4.png");
    /* opacity: 0.5; */
    background-repeat: no-repeat;
    background-size: cover;
    height: 65vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;




}

.intro-design {

    width: 100vw;
    background: url("../media/Drawing1_opaqueV3.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 65vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;


}

.intro-surveys {

    width: 100vw;
    background: url("../media/main_opaquev2.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 65vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;



}

.section-container-contact {
    width: 100vw;
    min-height: 30vh;
    height: auto;
    background-color: black;
    margin: 0 auto;
}

.intro-container-contact {
    width: 100vw;
    min-height: 30vh;
    height: auto;
    background: url("../media/main_opaque.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

.intro-container-contact h1 {
    color: white;
    font-size: 3rem;
}

.contact-text-container {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.intro-container-contact a:hover {
    color: blue;
}




.text-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.main-text {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    top: -8rem;


}

.intro h1,
.intro-design h1,
.intro-surveys h1 {
    color: white;
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.intro p,
.intro-design p,
.intro-surveys p {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.main-button {
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    margin-top: 5rem;
    text-align: center;
    border: none;
    font-family: Montserrat, Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
    cursor: pointer;
}

.main-button:hover::before {
    left: 100%;
}

.main-button:active {
    transform: translateY(-1px);
}

.main-button h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}


.map-container .design-list {
    list-style-type: none;
}

.map-container {
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    color: rgba(44, 44, 44, 0.753);

}

.map {
    border-radius: 20px;
    margin-left: 18px;
}

.design-list li {
    color: rgba(44, 44, 44, 0.753);
}


#where {
    margin-top: -3rem;
}

/* Mobile Styles */
@media only screen and (max-height: 380px) {
    .main-button {
        margin-top: 2rem;
    }
}

@media only screen and (max-width: 450px) {

    .section-container,
    .intro,
    .intro-design,
    .intro-surveys {
        width: 100vw;
        height: 90vh;
    }


    .map,
    .mobile-nomap {
        display: none;
    }

    .map-container .design-list {
        list-style-type: disc;
    }

    .map-container {
        margin: 0 auto;
        width: 88vw;
        display: flex;
        justify-content: space-evenly;
        align-items: center;


    }


    /* mobile image for design page */
    .intro-design {
        background: url("../media/mobile_design2v2.png");

    }

    .intro {
        background: url("../media/liverpool_more_opaque_mobile.png");
    }

    #title {
        font-size: 1.8rem;
        text-align: center;
    }

    #intro-p {
        font-size: 1rem;
        text-align: center;
    }

    .main-button {
        padding: 0.8rem;
        font-size: 0.7rem;
        position: relative;
        left: 8px;

    }

    .text-container {
        width: 90vw;
        margin: 0 auto;

    }

    .main-text {
        width: 90vw;
        margin: 0 auto;
        position: relative;
        top: -8rem;


    }

    #reviews h1 {
        text-align: left;
    }

}

/* Tablet Styles */

@media only screen and (min-width: 781px) and (max-width: 936px) {


    #title {
        font-size: 2rem;
        text-align: center;
    }

    #intro-p {
        font-size: 1rem;
        text-align: center;
    }

    .main-button {
        padding: 0.7rem;

    }

    .text-container {
        width: 80vw;

    }

    .map,
    .mobile-nomap {
        display: none;
    }

    .map-container .design-list {
        list-style-type: disc;
    }

    .map-container {
        margin: 0 auto;
        width: 90vw;
        display: flex;
        justify-content: space-evenly;
        /* align-items: center; */

    }


}

/*Small Tablet Styles */

@media only screen and (min-width:451px) and (max-width: 936px) {

    .section-container,
    .intro,
    .intro-design,
    .intro-surveys {
        width: 100vw;
        height: 75vh;
    }

    #title {
        font-size: 2rem;
        text-align: center;
    }

    #intro-p {
        font-size: 1rem;
        text-align: center;
    }

    .main-button {
        padding: 0.7rem;

    }

    .map,
    .mobile-nomap {
        display: none;
    }

    .map-container .design-list {
        list-style-type: disc;
    }

    .map-container {
        margin: 0 auto;
        width: 90vw;
        display: flex;
        justify-content: space-evenly;
        /* align-items: center; */

    }

}

@media only screen and (min-width: 936px) and (max-width: 1200px) {

    .map,
    .mobile-nomap {
        display: none;
    }

    .map-container .design-list {
        list-style-type: disc;
    }

    .map-container {
        margin: 0 auto;
        width: 90%;
        max-width: 900px;
        display: flex;
        justify-content: space-evenly;
        /* align-items: center; */

    }
}

@media only screen and (min-width: 1200px) {
    .map {
        width: 50vw;
    }
}


.who {
    width: 90%;
    max-width: var(--max-width);
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.who p {
    line-height: 1.8;
    color: var(--text-dark);
}



.design-list {

    margin: 0 0 20px 20px;

}


.design-list li {
    margin-bottom: 15px;
    font-weight: bold;

}

.img {
    width: 60%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.about-container {
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;

}

.about-container h2 {
    text-align: center;
    color: rgb(44, 44, 44);
}

.img-container {
    display: flex;
    justify-content: center;
    width: 90%;
    max-width: 900px;
}

.form {
    margin: 25px auto 20px;
    width: 90%;
    max-width: 600px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Montserrat, Arial, sans-serif;
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed) ease;
}

.form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.form-submit {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-submit h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-submit h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.success-message-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

@media only screen and (max-width: 450px) {
    .form-submit {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .form-submit h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0 0 1rem 0;
    }
    
    .form-submit h2 {
        font-size: 1.15rem;
        line-height: 1.5;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .success-message-section {
        min-height: 50vh;
        padding: 1rem;
        width: 100%;
    }
}

.fcf-form-class {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.fcf-form-control {
    width: 100%;
    padding: 12px 16px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    border: 2px solid #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    background-color: white;
    box-sizing: border-box;
}

.fcf-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.fcf-form-control::placeholder {
    color: #999;
    opacity: 1;
}

.fcf-form-control:hover {
    border-color: #ccc;
}

#fcf-button {
    width: 100%;
    border-radius: var(--border-radius);
    margin-top: 25px;
    padding: 14px;
    font-family: inherit;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#fcf-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

#fcf-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#fcf-button:hover::before {
    left: 100%;
}

#fcf-button:active {
    transform: translateY(0);
}

#fcf-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3), var(--shadow-lg);
}

.form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-container-contact i {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    transition: transform var(--transition-speed) ease;
}

.phone,
.email {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10vw;
    transition: transform var(--transition-speed) ease;
}

.phone:hover,
.email:hover {
    transform: translateY(-4px);
}

.phone:hover i,
.email:hover i {
    transform: scale(1.15);
}

.phone a,
.email a {
    color: white;
    font-weight: 500;
}

.top-contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.phone {
    margin-bottom: 0;
}

.title {
    text-align: center;
}

#reviews {
    margin-top: -3rem;
    width: 70vw;
    margin: 0 auto;
}



/* Mobile Styles */
@media only screen and (max-width: 450px) {
    .who {
        display: flex;
        flex-direction: column;
        width: 80vw;
        margin-bottom: 2rem;

    }

    .img {
        width: 80vw;
        height: auto;
    }

    .about-container {
        width: 80vw;

    }

    .two {
        display: none;
    }

    .img {
        margin-top: 3rem;
    }

    #reviews {
        width: 65vw;
        margin: 0 auto;
    }

    .about-container h2 {
        text-align: left;
    }

    .section-container-contact i {
        font-size: 1.5rem;
        color: white;
    }

    .section-container-contact h1 {
        font-size: 1.5rem;
        color: white;
        margin-bottom: 1rem;
    }

    .section-container-contact,
    .intro-container-contact {
        height: auto;
        min-height: 35vh;
        padding: 2rem 0;
    }

    .top-contact {
        flex-direction: column;
        margin-right: 0;
        gap: 1rem;
        width: 100%;
    }

    .phone,
    .email {
        width: 100%;
        margin-bottom: 1rem;
    }

    .phone {
        margin-bottom: 1rem;
    }

    .form {
        width: 80vw;
    }

    .fcf-form-class {
        width: 90%;
        max-width: 500px;
        height: auto;
    }

    .fcf-form-control {
        width: 100%;
        padding: 8px 0 10px 0;
        margin-top: 20px;
        border-radius: 5px;
        text-align: left;
        font-family: Montserrat, Arial;
    }

    #fcf-button {

        width: 100%;
        border-radius: 10px;
        margin-top: 20px;
        padding: 10px 0 10px 0;
        font-family: Montserrat, Arial;

    }

    .form-submit {
        width: 80vw;
        height: 55vh;

    }
}

/* Tablet Styles */
@media only screen and (min-width: 912px) and (max-width: 1100px) {
    .who {
        display: flex;
        flex-direction: column;
        width: 80vw;
        margin-bottom: 2rem;

    }

    .img {
        width: 80vw;
        height: auto;
    }

    .about-container {
        width: 80vw;

    }

    .two {
        display: none;
    }

    .img {
        margin-top: 3rem;
    }

    .section-container-contact i,
    .section-container-contact h1 {
        font-size: 2rem;
        color: white;
    }

    .section-container-contact p {
        font-size: 1rem;
    }

    .section-container-contact,
    .intro-container-contact {
        height: auto;
        min-height: 35vh;
        padding: 2rem 0;
    }

    .top-contact {
        flex-direction: column;
        margin-right: 0;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .phone,
    .email {
        width: auto;
        min-width: 200px;
    }

    .phone {
        margin-bottom: 1rem;
    }

    .form {
        width: 90vw;
    }

    .fcf-form-class {
        width: 90%;
        max-width: 500px;
        height: 380px;
    }

    .fcf-form-control {
        width: 100%;
        padding: 8px 0 10px 0;
        margin-top: 20px;
        border-radius: 5px;
        text-align: left;
        font-family: Montserrat, Arial;
    }

    #fcf-button {

        width: 100%;
        border-radius: 10px;
        margin-top: 20px;
        padding: 10px 0 10px 0;
        font-family: Montserrat, Arial;

    }

    .form-submit {
        width: 80vw;
        height: 67vh;

    }
}



/* Small Tablet Styles */
@media only screen and (min-width: 451px) and (max-width: 912px) {
    .who {
        display: flex;
        flex-direction: column;
        width: 80vw;
        margin-bottom: 2rem;

    }

    .img {
        width: 80vw;
        height: auto;
    }

    .about-container {
        width: 80vw;

    }

    .two {
        display: none;
    }

    .img {
        margin-top: 3rem;
    }

    .section-container-contact i,
    .section-container-contact h1 {
        font-size: 2rem;
        color: white;
    }

    .section-container-contact p {
        font-size: 1rem;
    }

    .section-container-contact,
    .intro-container-contact {
        height: auto;
        min-height: 35vh;
        padding: 2rem 0;
    }

    .top-contact {
        flex-direction: column;
        margin-right: 0;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .phone,
    .email {
        width: auto;
        min-width: 200px;
    }

    .phone {
        margin-bottom: 1rem;
    }

    .form {
        width: 90vw;
    }

    .fcf-form-class {
        width: 90%;
        max-width: 500px;
        height: 380px;
    }

    .fcf-form-control {
        width: 100%;
        padding: 8px 0 10px 0;
        margin-top: 20px;
        border-radius: 5px;
        text-align: left;
        font-family: Montserrat, Arial;
    }

    #fcf-button {

        width: 100%;
        border-radius: 10px;
        margin-top: 20px;
        padding: 10px 0 10px 0;
        font-family: Montserrat, Arial;

    }
}

/* Height less than 610px */

@media only screen and (max-height: 610px) {

    .section-container-contact,
    .intro-container-contact {
        height: 60vh;
    }

    #reviews {
        width: 70vw;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 1100px) and (max-height: 800px) {
    .fcf-form-class {
        width: 75%;
        height: 55vh;
    }

}

/* Footer Styles */

footer {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #6e6e6e);
    min-height: 18vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

footer a {
    color: white;
    transition: color var(--transition-speed) ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-color);
}

.f-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.f-container h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.f-container p {
    margin: 0.25rem 0;
    font-size: 1rem;
}

.f-container p a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.socials a {
    padding: 12px;
    font-size: 28px;
    width: 50px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
}

.socials a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* .footer-contact {
    padding: 7px 0 7px 0;
} */

/* Mobile Styles */
@media only screen and (max-width: 450px) {
    .f-container {
        width: 85%;
        padding: 1rem 0;
        gap: 0.6rem;
    }

    footer {
        min-height: 25vh;
        height: auto;
        padding: 2.5rem 1rem;
    }
    
    footer h3 {
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
    }
    
    footer p {
        margin: 0.4rem 0;
        font-size: 0.95rem;
    }

    .socials {
        margin-top: 1.25rem;
        gap: 1.25rem;
    }
    
    .socials a {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

@media only screen and (min-width: 451px) and (max-width: 1100px) {
    footer {
        min-height: 25vh;
        height: auto;
    }
    
    .f-container {
        gap: 1rem;
    }
}

@media only screen and (max-height: 550px) {
    footer {
        min-height: 200px;
        height: auto;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed; /* Stay in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(126, 126, 126); /* Background color */
    display: flex;
    justify-content: center; /* Center the loader */
    align-items: center; /* Center the loader */
    z-index: 9999; /* Ensure it’s above all other content */
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.1); /* Light border */
    border-top: 8px solid white; /* Top border color */
    border-radius: 50%; /* Circular shape */
    width: 50px; /* Width of the loader */
    height: 50px; /* Height of the loader */
    animation: spin 1s linear infinite; /* Spinning animation */
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.who, .form, .about-container {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scroll offset for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Improved accessibility - skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* Nest Hub (approx. 1024×600) specific fixes to avoid overflow */
@media only screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    .section-container,
    .intro,
    .intro-design,
    .intro-surveys {
        height: 58vh;
    }

    .main-text {
        top: -5rem; /* reduce overlap further */
        width: 88%;
        max-width: 760px;
    }

    .text-container {
        margin-top: 4rem;
        padding: 1rem;
        width: 88%;
        max-width: 760px;
    }

    .main-button {
        margin-top: 1.25rem;
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
        display: inline-block;
        box-sizing: border-box;
    }

    .map-container {
        width: 90%;
        max-width: 900px;
    }
}