/* 
   Ford and Ford Properties - Main Stylesheet
   Corporate Housing & Furnished Rentals in Hickory, NC
*/

/* ===== Base/Reset Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2C3E50;    /* Deep blue-gray */
    --secondary: #16A085;  /* Teal */
    --accent: #E74C3C;     /* Accent red */
    --light: #ECF0F1;      /* Light gray */
    --dark: #2C3E50;       /* Dark blue-gray */
    --text: #333333;       /* Text color */
    --text-light: #7f8c8d; /* Light text */
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 2.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* ===== Header & Navigation ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary);
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    background: url('../images/hero_image.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    max-width: 600px;
}

.hero-content h1, 
.hero-content h2 {
    color: var(--white);
    margin: 0 0 1rem 0;
    text-align: left;
}

.hero-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--white);
}

.hero-content .cta-buttons {
    justify-content: flex-start;
    margin: 1.5rem 0 0;
}

@media screen and (max-width: 992px) {
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-content h1,
    .hero-content h2 {
        text-align: center;
    }
    
    .hero-content .cta-buttons {
        justify-content: center;
    }
}

/* ===== Services Section ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ===== Why Us Section ===== */
.why-us {
    background: url('../images/why_bg_image.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.why-us .container {
    position: relative;
    z-index: 2;
}

.why-us .section-header h2 {
    color: var(--white);
}

.why-us .section-header p {
    color: var(--white);
}

.why-us .section-header h2::after {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text);
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.benefit-item p {
    color: var(--text);
}

.benefit-item i {
    color: var(--secondary);
}

.why-us .cta-center .btn-primary {
    background-color: var(--light);
    color: var(--primary);
    border: 2px solid var(--light);
}

.why-us .cta-center .btn-primary:hover {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
}

/* ===== Testimonials Section ===== */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--secondary);
    line-height: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-left: 0;
}

.testimonial-author p::before {
    display: none;
}

/* ===== Featured Properties Section ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-details {
    padding: 1.5rem;
}

.property-details h3 {
    margin-bottom: 0.5rem;
}

.property-details p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

/* ===== Contact CTA Section ===== */
.contact-cta {
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 4rem 0;
}

.contact-cta h2 {
    color: var(--light);
    margin-bottom: 1rem;
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--light);
    font-weight: 500;
}

.contact-cta .btn-primary {
    background-color: var(--light);
    color: var(--primary);
    border: 2px solid var(--light);
}

.contact-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.footer-info {
    max-width: 400px;
}

.footer-info h3, 
.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
}

.footer-info h3::after, 
.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-info p {
    color: var(--light);
    opacity: 0.9;
    line-height: 1.6;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--light);
    opacity: 0.9;
}

.contact-info p i {
    margin-right: 0.75rem;
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.contact-info p a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info p a:hover {
    color: var(--secondary);
}

.footer-links {
    max-width: 400px;
    text-align: right;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.footer-links ul li a {
    color: var(--light);
    transition: var(--transition);
    opacity: 0.9;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info,
    .footer-links {
        max-width: 100%;
        text-align: center;
    }

    .footer-info h3::after,
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem;
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
        background-color: var(--white);
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav.active ul li a {
        color: var(--dark);
    }
    
    .mobile-nav-toggle {
        display: block;
        z-index: 1002;
        cursor: pointer;
    }
    
    /* Add overlay when mobile menu is active */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999; /* Lower than the nav z-index */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none; /* Allow clicks to pass through */
    }
    
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
    
    .property-grid,
    .testimonial-slider,
    .benefits-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .property-card,
    .testimonial-item,
    .benefit-item,
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
} 