/* ===== Template 9: Burgundy & Gold - Advance Fin Advisory Sdn. Bhd. ===== */
:root {
  --primary: #6B2D47;
  --accent: #D4AF7A;
  --dark: #3A1829;
  --light-bg: #FDF9F5;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --border: #e8e0d5;
}

/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: 'Inter Tight', sans-serif;
  color: var(--text);
  background-color: var(--light-bg);
  line-height: 1.7;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

.display-1 { font-weight: 700; font-style: italic; }
.display-4 { font-weight: 400; }
.display-5 { font-weight: 500; }
.display-7 { font-weight: 300; }

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

.btn {
  border-radius: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  padding: 12px 32px;
  transition: all 0.3s ease;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ===== Navbar - Template 9: NO fixed-top ===== */
.custom-navbar {
  background-color: rgba(253, 249, 245, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 1000;
}

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

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

.little-radius {
  border-radius: 6px;
}

.custom-navbar .navbar-caption {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
  text-decoration: none;
}

.navbar-buttons {
  display: flex;
  align-items: center;
}

.custom-navbar .nav-link {
  color: var(--text) !important;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin: 0 2px;
}

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

.custom-navbar .navbar-toggler {
  border: none;
  padding: 8px;
}
.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* ===== Hero - Image-Forward Split ===== */
.hero-split {
  padding-top: 90px;
  background-color: var(--light-bg);
}

.hero-split .hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.hero-split .hero-image-wrapper img {
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.hero-split .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px 40px 40px;
  height: 100%;
}

.hero-split .hero-content .overline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-split .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-split .hero-content .hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-split .hero-content .hero-details {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.hero-split .hero-content .hero-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Section Styles ===== */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .overline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header .section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== Service Cards ===== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(58, 24, 41, 0.1);
  border-color: var(--accent);
}

.service-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.service-card h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Feature Split (image + text) ===== */
.feature-split {
  padding: 80px 0;
}

.feature-split.bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.feature-split.bg-dark h2,
.feature-split.bg-dark h3 {
  color: var(--white);
}

.feature-split.bg-dark p {
  color: rgba(255,255,255,0.8);
}

.feature-split img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.feature-split .feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px;
}

.feature-split .feature-content h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-split .feature-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== Achievements ===== */
.achievement-item {
  text-align: center;
  padding: 30px 20px;
}

.achievement-item .number {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.achievement-item .label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Team Cards ===== */
.team-card {
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--border);
}

.team-card h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.team-card .role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== FAQ Accordion ===== */
.faq-section {
  padding: 80px 0;
  background-color: var(--white);
}

.accordion-button {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  color: var(--dark);
  background-color: var(--white);
  border: none;
  padding: 20px 0;
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: transparent;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B2D47' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}

.accordion-body {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  padding: 0 0 20px 0;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 50px 40px;
}

.contact-form-wrapper .form-control {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  background-color: var(--light-bg);
  transition: border-color 0.3s ease;
  margin-bottom: 16px;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
  background-color: var(--white);
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
  text-align: center;
  padding: 30px 20px;
}

.contact-info-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info-card h5 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Map ===== */
.map-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 20px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.site-footer .footer-info {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}

.site-footer .footer-info p {
  margin-bottom: 6px;
}

.site-footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ===== Page Hero (Subpages) ===== */
.page-hero {
  background-color: var(--dark);
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero .breadcrumb-text {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== About Page ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item .year {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-item h5 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 30px;
  height: 100%;
}

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

.testimonial-card .author {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}

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

/* ===== Cookie Consent ===== */
.cookies-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: none;
}

.cookies-alert p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text);
}

.cookies-alert p a {
  color: var(--primary);
  text-decoration: underline;
}

.cookies-alert .cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookies-alert .btn-accept {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
}

.cookies-alert .btn-reject {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
}

/* ===== Legal Pages ===== */
.legal-content {
  padding: 40px 0;
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.legal-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-content table th,
.legal-content table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.legal-content table th {
  background-color: var(--dark);
  color: var(--white);
  font-weight: 600;
}

.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;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-split .hero-content {
    padding: 30px 16px;
  }
  .hero-split .hero-content h1 {
    font-size: 2rem;
  }
  .hero-split .hero-image-wrapper img {
    min-height: 300px;
  }
  .feature-split .feature-content {
    padding: 30px 16px;
  }
  .navbar-buttons {
    margin-top: 12px;
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  .hero-split .hero-content h1 {
    font-size: 1.7rem;
  }
  .team-card img {
    width: 140px;
    height: 140px;
  }
  .contact-form-wrapper {
    padding: 30px 20px;
  }
}
