/* Advisorly - Professional Expert Consultation Platform */
:root {
  --navy: #0F2A43;
  --navy-light: #1A3A5C;
  --orange: #E67E22;
  --orange-hover: #D35400;
  --text: #2C3E50;
  --text-light: #5D6D7E;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E8EB;
  --success: #27AE60;
  --star: #F39C12;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--orange);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav a {
  font-weight: 500;
  font-size: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #0F2A43 0%, #1A3A5C 100%);
  color: white;
  padding: 80px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Topics */
.topics {
  padding: 60px 0;
  background: var(--bg-alt);
}

.topics h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--navy);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.topic-card {
  background: white;
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,42,67,0.1);
  border-color: var(--orange);
}

.topic-card h3 {
  font-size: 16px;
  margin-top: 8px;
  color: var(--navy);
}

/* How it works */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

/* Experts grid */
.experts-section {
  padding: 60px 0;
  background: var(--bg-alt);
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.expert-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,42,67,0.12);
}

.expert-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.expert-info {
  padding: 20px;
}

.expert-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--navy);
}

.expert-info .title {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  background: #E8F4FD;
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.price-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.rating {
  color: var(--star);
  font-size: 14px;
}

.availability {
  font-size: 13px;
  color: var(--success);
  margin-top: 8px;
}

/* Stats */
.stats {
  background: var(--navy);
  color: white;
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Guarantee */
.guarantee {
  background: #FFF8F0;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #F5E6D3;
  border-bottom: 1px solid #F5E6D3;
}

.guarantee strong {
  color: var(--orange);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: 12px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial .author {
  font-weight: 600;
  color: var(--navy);
}

/* Footer */
footer {
  background: var(--navy);
  color: #B0C4DE;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 15px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: #B0C4DE;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1A3A5C;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stripe-badge {
  background: white;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Page specific */
.page-hero {
  background: var(--bg-alt);
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 40px;
  color: var(--navy);
  margin-bottom: 10px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.expert-detail {
  padding: 40px 0;
}

.detail-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.detail-header img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 380px;
  object-position: top;
}

.vetted-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.package-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.package-card:hover, .package-card.popular {
  border-color: var(--orange);
}

.package-card.popular {
  position: relative;
}

.package-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.package-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0;
}

.availability-box {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  color: #276749;
}

/* Blog */
.blog-article {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-article h1 {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 10px;
}

.blog-meta {
  color: var(--text-light);
  margin-bottom: 30px;
}

.blog-article p {
  margin-bottom: 16px;
  font-size: 17px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  cursor: pointer;
  color: var(--navy);
}

.faq-item p {
  margin-top: 10px;
  display: none;
}

.faq-item.open p {
  display: block;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-page h1 {
  font-size: 72px;
  color: var(--navy);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .steps, .testimonial-grid, .stats-grid, .packages, .detail-header, .footer-grid {
    grid-template-columns: 1fr;
  }
  nav ul { display: none; }
  .header-inner { justify-content: center; }
}

@media (max-width: 600px) {
  .expert-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
}
