/* Main Styles for Find A Room Website */

/* ============ Global Styles ============ */
:root {
    --primary-color: #0d3c5f;
    --accent-color: #d4af37;
    /* Gold accent */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #333333;
    --gray-text: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

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

ul {
    list-style: none;
}

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

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

.text-center {
    text-align: center;
}

/* ============ Typography ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: black;
    font-size: 0.9rem;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #0a2e48;
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: #c19c2e;
    color: var(--white);
}

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

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

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

.btn-white:hover {
    background-color: #f0f0f0;
}

/* ============ Navigation ============ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
    position: relative;
}

.nav-link {
    font-weight: 500;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ============ Hero Section ============ */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============ Sections ============ */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--light-bg);
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

/* ============ Grid Layout ============ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============ Cards ============ */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
    width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 1rem;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    margin-top: auto;
}

/* Property Cards */
.property-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background-color: var(--white);
}

.property-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-details {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--gray-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-right: 0.5rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.property-feature {
    display: flex;
    align-items: center;
}

.property-feature i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 60, 95, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}
.service-card h3{
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.service-card p{
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    padding: 1rem;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-details h4 {
    margin-bottom: 0.25rem;
}

.author-details p {
    color: var(--gray-text);
    margin-bottom: 0;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Team Member Cards */
.team-card {
    text-align: center;
    padding: 1rem;
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    margin-bottom: 1rem;
}

.team-role {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============ Forms ============ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-message.error {
    color: #dc3545;
}

.form-message.success {
    color: #28a745;
}

/* ============ Alert/Notice Box ============ */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: rgba(13, 60, 95, 0.1);
    border: 1px solid rgba(13, 60, 95, 0.2);
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* ============ Features Section ============ */
.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(13, 60, 95, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
}

/* ============ Hero Slider ============ */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
}

.slide-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dot.active {
    background-color: var(--white);
}

/* ============ Steps/Process ============ */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.steps-line {
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 0;
}

/* ============ FAQ ============ */
.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background-color: var(--white);
    margin-top: -5px;
    display: none;
}

.faq-question.active+.faq-answer {
    display: block;
}

/* ============ Footer ============ */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    h3{
        font-size: 1.1rem;
    }
    p{
        font-size: 0.9rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0.5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 2rem;
    }

    .steps-line {
        display: none;
    }
    .hero h1{
        font-size: 1.75rem;
    }

    .hero p{
        font-size: 0.9rem;
    }
    .card{
        padding: 0.75rem;
    }
    .service-card{
        padding: 0.75rem;
    }
    .service-icon {
        width: 50px; /* Further adjusted for smaller screens */
        height: 50px; /* Further adjusted for smaller screens */
        font-size: 1.25rem; /* Further adjusted for smaller screens */
    }

    .team-img {
        width: 120px; /* Further adjusted for smaller screens */
        height: 120px; /* Further adjusted for smaller screens */
    }

}

@media (max-width: 576px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.5rem; /* Further adjusted for very small screens */
    }

    h2 {
        font-size: 1.25rem; /* Further adjusted for very small screens */
    }

    h3 {
        font-size: 1rem; /* Further adjusted for very small screens */
    }

    p {
        font-size: 0.8rem; /* Further adjusted for very small screens */
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .hero h1 {
        font-size: 1.5rem; /* Further adjusted for very small screens */
    }

    .hero p {
        font-size: 0.8rem; /* Further adjusted for very small screens */
    }

    .card {
        padding: 0.5rem; /* Further adjusted for very small screens */
    }

    .service-card {
        padding: 0.5rem; /* Further adjusted for very small screens */
    }

    .service-icon {
        width: 40px; /* Further adjusted for very small screens */
        height: 40px; /* Further adjusted for very small screens */
        font-size: 1rem; /* Further adjusted for very small screens */
    }

    .team-img {
        width: 100px; /* Further adjusted for very small screens */
        height: 100px; /* Further adjusted for very small screens */
    }

}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}