/* Shared page styles — shadcn/ui bridge + legacy token aliases */
@import url('contact.css');

:root {
  --navy: #0B2E59;
  --navy-dark: #071e3d;
  --navy-light: #1a4a7a;
  --gold: #C89B3C;
  --gold-light: #d4ad5a;
  --gold-dark: #a67f2e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e5e8ec;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --line-green: #06c755;
  --header-height: 4rem;
  --container: 1440px;
  --shadow-sm: 0 2px 8px rgba(11, 46, 89, 0.06);
  --shadow-md: 0 4px 20px rgba(11, 46, 89, 0.1);
  --shadow-lg: 0 8px 32px rgba(11, 46, 89, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
}

/* ========== Subpage Hero (shared across services, articles, reviews, contact) ========== */
.subpage-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2048 / 341;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  padding: 0 !important;
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.articles-hero .subpage-hero-bg {
  background-image: url('../assets/images/hero-articles.png');
  background-position: center 22%;
}

.reviews-hero .subpage-hero-bg {
  background-image: url('../assets/images/hero-reviews.png');
  background-position: 72% 18%;
}

.contact-hero .subpage-hero-bg {
  background-image: url('../assets/images/hero-contact.png');
  background-position: center 12%;
}

.services-hero .subpage-hero-bg {
  background-image: url('../assets/images/hero-services.png');
  background-position: 78% 16%;
}

.subpage-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.subpage-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subpage-hero-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.subpage-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  max-width: 600px;
}

.privacy-hero .subpage-hero-bg {
  background: linear-gradient(135deg, #0b2e59 0%, #1a4a7a 100%);
}

.legal-section {
  padding: 3rem 0 4rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
}

.legal-updated {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b2e59;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.85);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: #0b2e59;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .subpage-hero {
    aspect-ratio: 2048 / 341;
    margin-top: 0 !important;
  }

  .articles-hero .subpage-hero-bg {
    background-position: center 20%;
  }

  .reviews-hero .subpage-hero-bg {
    background-position: 68% 15%;
  }

  .contact-hero .subpage-hero-bg {
    background-position: center 10%;
  }

  .services-hero .subpage-hero-bg {
    background-position: 74% 14%;
  }

  .legal-content {
    padding: 24px 20px;
  }

  .legal-content h2 {
    font-size: 1.05rem;
  }

  .subpage-hero-inner h1 {
    font-size: 2.25rem;
  }

  .subpage-hero-subtitle {
    font-size: 1.05rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.section-title p {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

.accent-line {
  width: 3rem;
  height: 3px;
  background: hsl(var(--accent));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.gold {
  color: hsl(var(--accent));
}

.navy {
  color: hsl(var(--primary));
}

/* shadcn card + legacy page cards */
.card.contact-card,
.card.life-card,
.card.nonlife-card,
.card.category-card,
.card.faq-card,
.card.online-card,
.card.profile-card,
.card.portfolio-card,
.card.reviews-why-card,
.card.why-choose-item,
.card.download-card,
.card.license-card,
.card.award-card,
.card.success-story-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card.insurance-type-item,
.card.stat-item {
  border-radius: var(--radius);
}

a.card.article-card,
a.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.card.article-card:hover,
a.card.category-card:hover {
  box-shadow: var(--shadow-md);
}

/* CTA bars */
.contact-cta-bar,
.services-cta-bar,
.articles-cta-bar,
.reviews-cta-bar {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.contact-cta-bar .container,
.services-cta-bar .container,
.articles-cta-bar .container,
.reviews-cta-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-cta-text h2,
.services-cta-text h2,
.articles-cta-text h2,
.reviews-cta-text h2 {
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-cta-text p,
.services-cta-text p,
.articles-cta-text p,
.reviews-cta-text p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-cta-buttons,
.services-cta-buttons,
.articles-cta-buttons,
.reviews-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-cta-agent img,
.services-cta-agent img,
.articles-cta-agent img,
.reviews-cta-agent img {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid hsl(var(--accent));
}

/* Forms — shadcn Input pattern */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: hsl(var(--foreground));
}

.form-group input,
.form-group select,
.form-group textarea {
  display: flex;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input {
  height: 2.5rem;
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Trust bar */
.services-trust-bar {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1.5rem 0;
}

/* Testimonial slider on reviews */
.reviews-testimonials .testimonials-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
}

.reviews-testimonials .testimonial-card {
  flex: 0 0 calc(33.333% - 0.667rem);
  min-width: 0;
}

.reviews-testimonials .testimonials-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: hsl(var(--border));
  border: none;
  cursor: pointer;
}

.reviews-testimonials .testimonials-dots button.active {
  background: hsl(var(--accent));
  width: 24px;
}

/* Featured carousel articles */
.featured-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
}

@media (max-width: 1024px) {
  .reviews-testimonials .testimonial-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .contact-cta-bar .container,
  .services-cta-bar .container,
  .articles-cta-bar .container,
  .reviews-cta-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .reviews-testimonials .testimonial-card {
    flex: 0 0 100%;
  }
}
