/* Root Variables */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --border: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; height: auto; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--border); }
.btn-link { color: var(--primary); }
.btn-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo img { width: 60px; }
.site-nav { display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  color: var(--muted);
}
.nav-link:hover { color: var(--primary); }
@media (max-width: 768px) {
  .site-nav { display: none; }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.feature-icon { width: 2rem; height: 2rem; stroke: #fff; margin: 0 auto 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* Brokers Section */
.brokers-section { padding: 3rem 0; }
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.section-title span { color: var(--accent); }
.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.broker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.broker-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
.broker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.broker-logo { max-height: 40px; }
.broker-rating .stars { color: var(--accent); font-size: 1.2rem; }
.broker-rating p { font-size: 0.9rem; color: var(--muted); }
.broker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.broker-stats li {
  background: var(--bg);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
  list-style: none;
}
.broker-stats span { display: block; font-size: 0.9rem; color: var(--muted); }
.broker-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.broker-features .icon { width: 1rem; height: 1rem; stroke: var(--primary); }

/* Why Choose Section */
.why-choose-section { padding: 3rem 0; background: #f1f5f9; }
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.why-choose-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.why-choose-card .icon { width: 2rem; height: 2rem; stroke: var(--primary); margin: 0 auto 1rem; }
.why-choose-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Criteria Section */
.criteria-section { padding: 3rem 0; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.criteria-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.criteria-card .icon { width: 2rem; height: 2rem; stroke: var(--primary); margin: 0 auto 1rem; }

/* FAQ Section */
.faq-section { padding: 3rem 0; background: #f1f5f9; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}
.faq-trigger::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}
.faq-item.active .faq-trigger::after { transform: translateY(-50%) rotate(45deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-content p { padding: 0 1rem 1rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--surface);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
}
.footer-logo { width: 60px; margin-bottom: 1rem; }
.footer-nav .nav-list { flex-direction: column; gap: 0.5rem; }
.footer-disclaimer h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.footer-disclaimer p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Cookies Banner */
.cookies-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  gap: 1rem;
}
.cookies-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.cookies-content p { font-size: 0.9rem; color: var(--muted); }
.cookies-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookies-btns .btn { padding: 0.5rem 1rem; }

/* Responsive Design */
@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
  .btn { padding: 0.5rem 1rem; }
  .broker-card { padding: 1rem; }
  .broker-stats { grid-template-columns: 1fr; }
}

/* Legal Pages */
.legal-page {
  padding: 5rem 0;
}
.legal-page__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.legal-page__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.legal-page__content h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}
.legal-page__content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.legal-page__content ul {
  margin: 1rem 0 1rem 1.5rem;
}
.legal-page__content li {
  list-style: disc;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.legal-page__content a {
  color: var(--primary);
  font-weight: 500;
}
.legal-page__content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}