/* ============================================================
   Template 8: "Charcoal & Mint" — Bold Disruptor
   Company: 寶祥保險經紀人股份有限公司
   Primary: #1B1B2F | Accent: #2ECC71 | Dark: #0F0F1A | Light: #F4FAF6
   Fonts: Unbounded (headings) + Archivo (body)
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1B1B2F;
  --accent: #2ECC71;
  --dark: #0F0F1A;
  --light-bg: #F4FAF6;
  --white: #ffffff;
  --text-dark: #1B1B2F;
  --text-light: #6c757d;
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Archivo', sans-serif;
}

/* ---- Reset & Base ---- */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-7 {
  font-family: var(--font-heading);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #27ae60;
}

/* ---- Navbar (Template 8: NO fixed-top, menu_box, brand d-flex) ---- */
.custom-navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  position: relative;
}
.custom-navbar .menu_box {
  padding: 0;
}
.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.custom-navbar .navbar-brand img {
  height: 3.2rem;
  width: auto;
}
.custom-navbar .navbar-caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary) !important;
  text-decoration: none;
  line-height: 1.3;
}
.custom-navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
}
.custom-navbar .mbr-section-btn-main .btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
}
.custom-navbar .btn-black {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.custom-navbar .btn-black:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.custom-navbar .navbar-toggler {
  border: none;
  padding: 0.5rem;
}
.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
}
.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(27,27,47,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 0.5rem;
  }
  .custom-navbar .mbr-section-btn-main {
    margin-top: 0.75rem;
  }
}

/* ---- Hero (Full-screen parallax, centered) ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.7);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero-content h1 strong {
  color: var(--accent);
}
.hero-content .hero-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.8;
}
.hero-content .btn-hero {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.hero-content .btn-hero:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content .hero-desc {
    font-size: 1rem;
  }
}

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}
.section-title.display-5 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 1rem;
}
.section-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- Advantages (2-column: 4/8 split) ---- */
.advantages-section {
  background: var(--light-bg);
  padding: 5rem 0;
}
.advantage-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.advantage-item:last-child {
  margin-bottom: 0;
}
.advantage-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.advantage-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.advantage-content p {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

/* ---- Service Cards (3-column image cards) ---- */
.services-section {
  padding: 5rem 0;
  background: var(--white);
}
.service-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.service-card .card-img-top {
  height: 220px;
  object-fit: cover;
}
.service-card .card-body {
  padding: 2rem 1.5rem;
}
.service-card .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.service-card .card-text {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.service-card .btn-service {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 0;
  border: none;
  background: none;
}
.service-card .btn-service:hover {
  color: var(--primary);
}

/* ---- Mission / About split section ---- */
.split-section {
  padding: 5rem 0;
}
.split-section .split-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.split-section .split-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.split-section .split-text p {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.split-section .btn-outline-accent {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.7rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.split-section .btn-outline-accent:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ---- Parallax CTA Banner ---- */
.parallax-banner {
  position: relative;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-banner .parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.8);
}
.parallax-banner .parallax-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
}
.parallax-banner .parallax-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.parallax-banner .parallax-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}
.parallax-banner .btn-accent {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.parallax-banner .btn-accent:hover {
  background: var(--white);
  color: var(--primary);
}

/* ---- FAQ Accordion ---- */
.faq-section {
  padding: 5rem 0;
  background: var(--light-bg);
}
.faq-section .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.faq-section .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: var(--white);
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
  color: var(--accent);
  background: var(--white);
  box-shadow: none;
}
.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232ECC71'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z'/%3e%3c/svg%3e");
}
.faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232ECC71'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8z'/%3e%3c/svg%3e");
}
.faq-section .accordion-body {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
}

/* ---- Contact Form ---- */
.contact-section {
  padding: 5rem 0;
  background: var(--white);
}
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--light-bg);
  border-radius: 16px;
}
.contact-form-wrapper .form-control {
  font-family: var(--font-body);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}
.contact-form-wrapper .btn-submit {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 100%;
}
.contact-form-wrapper .btn-submit:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---- Contact Info Cards ---- */
.contact-info-section {
  padding: 5rem 0;
  background: var(--primary);
}
.contact-info-card {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--white);
}
.contact-info-card .info-icon {
  width: 64px;
  height: 64px;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.contact-info-card h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.contact-info-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

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

/* ---- Footer (simple centered, dark bg) ---- */
.footer {
  background: var(--dark);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer .footer-links {
  margin-bottom: 1.5rem;
}
.footer .footer-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  margin: 0 1rem;
  transition: color 0.3s ease;
}
.footer .footer-links a:hover {
  color: var(--accent);
}
.footer .copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer .copyright strong {
  color: rgba(255,255,255,0.6);
}

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.75);
}
.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.page-hero .page-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}
.page-hero .page-hero-content .breadcrumb-nav {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.8;
}
.page-hero .page-hero-content .breadcrumb-nav a {
  color: var(--accent);
}

/* ---- Content Sections (sub-pages) ---- */
.content-section {
  padding: 5rem 0;
}
.content-section.bg-light {
  background: var(--light-bg);
}
.content-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.content-section h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.content-section p {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.content-section ul {
  font-family: var(--font-body);
  color: var(--text-light);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.content-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ---- Team Cards ---- */
.team-card {
  text-align: center;
  margin-bottom: 2rem;
}
.team-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 4px solid var(--light-bg);
}
.team-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---- Stats / Counters ---- */
.stats-section {
  background: var(--primary);
  padding: 4rem 0;
}
.stat-item {
  text-align: center;
  color: var(--white);
  padding: 2rem 1rem;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.stat-item .stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Manifesto Section ---- */
.manifesto-section {
  background: var(--dark);
  padding: 5rem 0;
  color: var(--white);
}
.manifesto-item {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03);
  border-radius: 0 8px 8px 0;
}
.manifesto-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.manifesto-item p {
  font-family: var(--font-body);
  opacity: 0.8;
  margin: 0;
  line-height: 1.7;
}

/* ---- Legal Pages ---- */
.legal-content {
  padding: 3rem 0 5rem;
}
.legal-content .wp-block-heading {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content .wp-block-heading:first-child {
  margin-top: 0;
}
.legal-content .wp-block-heading strong {
  font-family: var(--font-heading);
  color: var(--primary);
}
.legal-content table {
  width: 100%;
  margin: 1.5rem 0;
}
.legal-content table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}
.legal-content table td {
  font-family: var(--font-body);
}

/* cookie-tables-white */
.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-card .testimonial-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-card .testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.testimonial-card .testimonial-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent);
}

/* ---- Utility ---- */
.btn-black {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-black:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-accent:hover {
  background: var(--primary);
  color: var(--white);
}

.bg-primary-dark {
  background: var(--primary);
}
.bg-accent {
  background: var(--accent);
}
.bg-light-mint {
  background: var(--light-bg);
}
.text-accent {
  color: var(--accent) !important;
}
