/* Base Styles */
:root {
    --primary: #d8ab21;
    --primary-light: #e3bd4a;
    --primary-lighter: #eacd76;
    --dark: #000000;
    --light: #ffffff;
    --gray-light: #f4f4f4; /* Slightly changed for better contrast on bg-light */
    --gray: #666666;
    --font-primary: 'Arial', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--gray-light);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--light);
}

/* Buttons */
.btn-primary, .btn-white, .survey-btn-nav {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary, .survey-btn-nav {
    background-color: var(--primary);
    color: var(--light) !important; /* Ensure text color is light for links */
}
.survey-btn-nav:hover {
    background-color: var(--primary-light);
    color: var(--light) !important;
}


.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-white {
    background-color: var(--light);
    color: var(--primary) !important;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Input Error Style */
input.error, textarea.error {
    border: 1px solid red !important;
}


/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px; /* Fixed Nav bar height - adjust as needed */
    display: flex;
    align-items: center;
    padding: 0 15px; /* Horizontal padding for the nav bar itself */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%; /* Container takes full height of nav */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%; /* Link takes full height of container */
}

.nav-logo {
    /* If original logo height is, for example, 120px, then 120px / 2 = 60px */
    height: 100px;   /* <<< SET THIS TO HALF THE ORIGINAL HEIGHT OF YOUR nestin-logo.png FILE */
    width: auto;    /* Maintain aspect ratio */
    object-fit: contain;
    display: block;
}

/* Ensure your .nav-links are also aligned nicely */
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.nav-links li {
    margin-left: 25px;
    display: flex;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--light);
}
.nav-links a.survey-btn-nav {
    padding: 10px 20px;
    font-size: 0.85rem;
}


.nav-links a:not(.survey-btn-nav):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.survey-btn-nav):hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section -- MODIFIED */
#hero {
    display: flex;
    align-items: center;
    /*
       Adjust padding:
       Top padding: fixed nav height (e.g., 70px) + desired space (e.g., 60px) = 130px
       Bottom padding: desired space (e.g., 70px)
    */
    padding: 130px 0 70px; /* << ADJUST PADDING to control spacing and overall height */
    overflow: hidden;

    /* GRADIENT BACKGROUND */
    background: var(--primary-lighter); /* Fallback */
    /* background-image: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary) 100%);
    /* Example: background-image: linear-gradient(to bottom, #fef9e7, #eacd76); */
}

#hero .container {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative; /* For z-index context if needed */
}

.hero-content {
    flex: 1.2;
    padding-right: 30px;
    position: relative; /* Ensure text is above potential pseudo-elements for gradient overlay */
    z-index: 2;
}

/* Ensure text color has good contrast with the gradient */
.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark); /* Or var(--light) if gradient is very dark */
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray); /* Or var(--light) if gradient is very dark */
    margin-bottom: 30px;
}
/* If hero text becomes light, adjust button: */
/*
.hero-content .btn-primary {
    background-color: var(--light);
    color: var(--primary);
}
.hero-content .btn-primary:hover {
    background-color: rgba(255,255,255,0.9);
}
*/

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1; /* Ensure image is behind text if overlapping occurs */
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); /* Consider a lighter shadow for lighter gradients */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}
/* End of Hero Section Modifications */


/* About Section */
#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
}

/* Why NestIn Section */
.why-nestin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.why-nestin-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
}

.why-nestin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.why-nestin-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

.why-nestin-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.why-nestin-card p {
    color: var(--gray);
    font-size: 0.95rem;
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.quote {
    margin-bottom: 20px;
    position: relative;
}

.quote i.fa-quote-left {
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: -5px;
    left: -10px;
}

.quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gray);
    padding-left: 25px;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-left: 25px;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: var(--dark);
}

.client-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.testimonial-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light);
    border: 1px solid var(--gray-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.testimonial-controls button:hover {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

/* Call to Action */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(216, 171, 33, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #000000;
    color: var(--light);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-section .footer-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    /* background-color: var(--light); */ /* Consider if needed based on logo transparency */
    /* padding: 5px; */
    /* border-radius: 5px; */
    display: block;
    object-fit: contain;
}


.footer-logo-section p {
    margin: 15px 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
}

.footer-links h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 8px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
}
.footer-newsletter h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 8px;
}


.footer-newsletter p {
    margin-bottom: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
}

.footer-newsletter input:focus {
    outline: none;
}

.footer-newsletter button {
    padding: 12px 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Survey Full Page Styles */
#full-page-survey {
    padding-top: 120px; /* Account for fixed nav (e.g. 70px nav + 50px space) */
    padding-bottom: 80px;
}

.survey-full-page-container {
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.survey-header {
    background-color: var(--primary);
    color: var(--light);
    padding: 30px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.survey-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light);
}
.survey-header h2:after {
    background-color: var(--light);
}
.survey-header p {
    color: rgba(255, 255, 255, 0.9);
}


#survey-form {
    padding: 30px 40px;
}

.survey-question {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.survey-question:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}


.survey-question label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.05rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"],
.radio-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: -2px;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95rem;
    color: var(--gray);
}

.radio-option input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 0.9rem;
}
.radio-option input[type="text"]:focus {
     outline: none;
    border-color: var(--primary);
}


.survey-question textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
    font-family: var(--font-primary);
}
.survey-question textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.survey-contact-details,
.contact-details {
    background-color: var(--gray-light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.survey-contact-details h3,
.contact-details h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.4rem;
}
.survey-contact-details .form-group input,
.contact-details .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}
.survey-contact-details .form-group input:focus,
.contact-details .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}
.survey-contact-details .form-group,
.contact-details .form-group {
    margin-bottom: 15px;
}


.survey-submit {
    text-align: center;
    margin-top: 30px;
}

.survey-submit button {
    padding: 15px 40px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Hero Responsive Adjustments */
    #hero {
        padding: 100px 0 60px; /* Adjust padding for smaller screens, considering nav height */
    }
    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px; /* Space between text and image */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    /* End Hero Responsive */


    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px; /* Space for logo/close button in mobile nav */
        gap: 20px;
        transition: var(--transition);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links.active a:not(.survey-btn-nav) {
        color: var(--dark) !important; /* Dark text for regular links on white active panel */
    }

    .nav-links.active a:not(.survey-btn-nav):after {
        background-color: var(--dark); /* Underline color for regular links on active panel */
    }

    .nav-links.active a:not(.survey-btn-nav):hover {
        color: var(--primary) !important; /* Hover color for regular links on active panel (e.g., gold) */
    }
    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px;
    }
    .nav-links a.survey-btn-nav {
        margin: 10px 20px;
    }
    .nav-links a:not(.survey-btn-nav):after {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: block;
        z-index: 1002;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .why-nestin-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-newsletter form {
        flex-direction: column;
    }
    .footer-newsletter input {
        margin-bottom: 10px;
    }

    #survey-form {
        padding: 20px;
    }
    .survey-full-page-container {
        max-width: 100%;
    }

    /* Hero responsive adjustments for mobile */
    #hero {
        padding: 90px 0 50px; /* Further adjust padding for mobile nav */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .why-nestin-card,
    .service-card,
    .testimonial {
        padding: 30px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
    .cta-content p {
        font-size: 1rem;
    }

    .survey-header h2 {
        font-size: 1.6rem;
    }
    .survey-header p {
        font-size: 0.9rem;
    }
    .survey-question label {
        font-size: 1rem;
    }
    .radio-option label {
        font-size: 0.9rem;
    }
    .survey-submit button {
        width: 100%;
    }
}