/* 
   We Buy Houses in Yorkshire - Main Stylesheet
   A modern, responsive landing page for a real estate investment company
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --success-color: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

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

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

section {
    padding: 5rem 0;
}

.hidden {
    display: none;
}

/* ===== HEADER & NAVIGATION ===== */
.hero {
/*     background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;  */
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('man.png') no-repeat center center/cover;
    color: #fff;
    padding: 2rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0;
}

.contact-info .phone {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.hero-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #c0392b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== VALUE PROPOSITION SECTION ===== */
.value-proposition {
    background-color: var(--light-gray);
}

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

.benefit-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    background-color: #fff;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* ===== CONTACT FORM SECTION ===== */
.contact {
    background-color: var(--light-gray);
}

.form-container {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.submit-button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 1rem;
}

#form-success {
    text-align: center;
    padding: 2rem;
}

#form-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #fff;
}

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

.testimonial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.location {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: var(--light-gray);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--success-color);
    flex-shrink: 0;
}

/* ===== FAQS SECTION ===== */
.faqs {
    background-color: #fff;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background-color: var(--light-gray);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.accordion-button:hover {
    background-color: var(--medium-gray);
}

.accordion-button::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-button.active::after {
    content: '-';
}

.accordion-content {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1.2rem;
    max-height: 200px;
}

/* ===== FOOTER SECTION ===== */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-logo p {
    color: var(--medium-gray);
}

.footer-contact h4, .footer-links h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--medium-gray);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .benefit-card, .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .benefit-card i, .step i {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
