/*
 * Global Stylesheet for Retriever Homes website
 * --------------------------------------------
 * Defines the colour palette, typography and responsive layout for the site.
 */

/* CSS Variables for easy theme management */
:root {
    --primary-color: #205375;      /* deep blue for headings and primary buttons */
    --secondary-color: #F5AF19;    /* warm golden accent for highlights and secondary buttons */
    --dark-color: #102C57;         /* darker blue used in the footer */
    --light-color: #FFFFFF;        /* white used for backgrounds */
    --text-color: #333333;         /* dark grey for body text */
    --bg-color: #F9FAFC;           /* very light grey for section backgrounds */
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.center {
    text-align: center;
}

/* Header & Navigation */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    width: 100%;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Logo image inside the brand */
.brand .logo-img {
    /* Increase the logo size for better visibility */
    /* Further increase the logo size for greater prominence */
    /* Increase logo size to 1.5× the previous for greater prominence */
    height: 135px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.nav-menu a {
    color: var(--primary-color);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-speed);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-speed);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Responsive navigation toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary-color);
    height: 3px;
    width: 28px;
    border-radius: 3px;
    transition: transform var(--transition-speed);
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 250px;
        background: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transition: right var(--transition-speed);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-toggle:checked ~ .nav-menu {
        right: 0;
    }
    .nav-toggle-label {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
    background-image: url('img/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--light-color);
}

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

/* Process Section */
.process-section {
    background: var(--light-color);
}

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

.step {
    flex: 1 1 30%;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.step:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* About Section */
.about-section {
    background: var(--bg-color);
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 50%;
}

.about-image {
    flex: 1 1 50%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Benefits Section */
.benefits-section {
    background: var(--light-color);
}

.comparison-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.comparison-col {
    flex: 1 1 45%;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comparison-col h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.comparison-col ul {
    list-style: none;
}

.comparison-col li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.comparison-col.traditional li::before {
    content: "\2717"; /* Unicode cross */
    position: absolute;
    left: 0;
    top: 0;
    color: #D9534F;
    font-size: 1rem;
}

.comparison-col.retriever li::before {
    content: "\2713"; /* Unicode checkmark */
    position: absolute;
    left: 0;
    top: 0;
    color: #5cb85c;
    font-size: 1rem;
}

/* Reasons Section */
.reasons-section {
    background: var(--bg-color);
}

.reasons-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
}

.reasons-list li {
    background: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding-left: 40px;
    font-size: 0.95rem;
}

.reasons-list li::before {
    content: "\2022"; /* bullet */
    position: absolute;
    left: 15px;
    top: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

/* Ordered list styling for the agent partner steps */
.agent-steps {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    list-style-type: decimal;
    color: var(--text-color);
    font-size: 0.95rem;
}

.agent-steps li {
    margin-bottom: 0.75rem;
}

/* Spacing adjustments specific to the agent details section */
.agent-details-section p {
    margin-bottom: 1.2rem;
}

.agent-details-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-section {
    background: var(--light-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background: var(--bg-color);
}

.contact-description {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus {
    border-color: var(--secondary-color);
}

.privacy-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    color: #777;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer a {
    color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .step {
        flex: 1 1 45%;
    }
    .comparison-col {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column-reverse;
    }
    .step {
        flex: 1 1 100%;
    }
    .form-row {
        flex-direction: column;
    }
    .form-group {
        flex: 1 1 100%;
    }
}