/* ==========================================
   Template 9: Burgundy & Gold
   晶華保險經紀人股份有限公司
   ========================================== */

:root {
  --primary: #6B2D47;
  --primary-rgb: 107, 45, 71;
  --accent: #D4AF7A;
  --dark: #3A1829;
  --light-bg: #FDF9F5;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #6c757d;
}

body {
  font-family: 'Inter Tight', sans-serif;
  color: var(--black);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* Navbar - NO fixed-top, content-wrap container-fluid */
.custom-navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(58, 24, 41, 0.08);
  padding: 12px 0;
  z-index: 1030;
}

.content-wrap {
  width: 100%;
  padding: 0 15px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 3rem;
  border-radius: 6px;
}

.navbar-brand .navbar-caption {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black) !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.link {
  color: var(--black) !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link.link:hover,
.nav-link.link.active {
  background-color: rgba(107, 45, 71, 0.08);
  color: var(--primary) !important;
}

.navbar-buttons .btn {
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
}

.btn-black {
  background-color: var(--black) !important;
  border-color: var(--black) !important;
  color: var(--white) !important;
}

.btn-black:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

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

.btn-black-outline:hover {
  background: var(--black) !important;
  color: var(--white) !important;
}

/* Hero - Split Hero, NOT full-screen, NOT parallax, container-fluid */
.hero-section {
  padding: 40px 0 80px;
  background-color: var(--light-bg);
  position: relative;
}

.hero-section .hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(58, 24, 41, 0.15);
}

.hero-section .hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-section .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-style: italic;
}

.hero-section .hero-content .hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-section .hero-content .hero-detail {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 2rem;
}

/* Section Styles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  font-style: italic;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(212, 175, 122, 0.15);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(58, 24, 41, 0.12);
  border-color: var(--accent);
}

.feature-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212, 175, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(212, 175, 122, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(58, 24, 41, 0.12);
}

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

.service-card .card-body {
  padding: 25px;
}

.service-card .card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card .card-body p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-card .card-body .btn {
  padding: 8px 20px;
  font-weight: 600;
}

/* Image + Text Sections */
.image-text-section {
  padding: 80px 0;
}

.image-text-section img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(58, 24, 41, 0.1);
  width: 100%;
}

.image-text-section .content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  font-style: italic;
}

.image-text-section .content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Team Cards */
.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(212, 175, 122, 0.1);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(58, 24, 41, 0.12);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card .card-body {
  padding: 25px 20px;
}

.team-card .card-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.team-card .card-body .role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}

/* FAQ Accordion */
.accordion-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(212, 175, 122, 0.2);
  border-radius: 8px !important;
  padding: 18px 20px;
  font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(107, 45, 71, 0.05);
  color: var(--primary);
  box-shadow: none;
  border-color: var(--accent);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.accordion-body {
  background: var(--white);
  padding: 20px;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  border: 1px solid rgba(212, 175, 122, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.accordion-item {
  margin-bottom: 12px;
  border: none;
  background: transparent;
}

/* Contact Form */
.contact-section {
  padding: 80px 0;
}

.contact-section .form-control {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 122, 0.3);
  background: var(--white);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.contact-section .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 45, 71, 0.1);
  outline: none;
}

.contact-section textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  height: 100%;
  border: 1px solid rgba(212, 175, 122, 0.1);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--accent);
}

.contact-info-card .icon-wrap {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.3rem;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Map Section */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
}

.map-section {
  padding: 0 0 80px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
}

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

.footer .policy-links {
  margin-bottom: 15px;
}

.footer .policy-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer .policy-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Achievements / Stats */
.stats-section {
  background: var(--primary);
  padding: 60px 0;
  color: var(--white);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  font-style: italic;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  font-weight: 500;
}

/* Page Header (sub pages) */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 60px 0 60px;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* About Page */
.about-section {
  padding: 80px 0;
}

.about-section img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(58, 24, 41, 0.1);
}

/* Services Page */
.service-detail-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  box-shadow: 0 15px 40px rgba(58, 24, 41, 0.12);
}

.service-detail-card h3 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-detail-card p {
  color: var(--gray);
  line-height: 1.8;
}

/* Testimonials Page */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 5px 25px rgba(58, 24, 41, 0.06);
  margin-bottom: 30px;
  border: 1px solid rgba(212, 175, 122, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: 5px;
  left: 20px;
  font-family: 'Inter Tight', serif;
  font-style: italic;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-top: 20px;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--dark);
}

.testimonial-card .author-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-section .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header {
    padding: 50px 0 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .hero-section .hero-content h1 {
    font-size: 1.7rem;
  }

  .feature-card {
    margin-bottom: 20px;
  }

  .team-card img {
    height: 250px;
  }

  .stat-item .stat-number {
    font-size: 2.2rem;
  }
}

/* Bootstrap icon overrides */
.bi {
  vertical-align: middle;
}

/* Navbar toggle */
.navbar-toggler {
  border: none;
  padding: 8px;
  color: var(--dark);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
