/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #28a745;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* --- Header --- */
.header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #6c757d;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.hero-search input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
}

.hero-search button {
    border-radius: 0;
    padding: 15px 25px;
}

/* --- Review List Section --- */
.review-list {
    background-color: var(--light-color);
}

.review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card.featured {
    border: 2px solid var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.service-logo {
    max-height: 60px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-value {
    color: var(--text-color);
    font-weight: 600;
}

.card-body .best-for {
    display: inline-block;
    background-color: #e7f5ff;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pricing span {
    display: block;
}

.pricing .deadline {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- How We Review Section --- */
.how-we-review {
    text-align: center;
}

.how-we-review p {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #6c757d;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-icon {
    background-color: var(--primary-color);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    font-size: 1.8rem;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--light-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* A large enough value to fit content */
    padding: 0 20px 20px 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #b0b0b0;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b0b0;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .card-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { gap: 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 60px 0; }
    .hero-search { flex-direction: column; border-radius: 5px; }
    .hero-search button { border-radius: 0 0 5px 5px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .main-nav ul { flex-direction: column; text-align: center; gap: 10px; }
    .container { padding: 0 15px; }
    section { padding: 60px 0; }
}