/* ============================================================
   Template 4: "Navy & Peach" — Adwise Capital Sdn. Bhd.
   Primary: #002549 | Accent: #E1965F | Dark: #001525 | Light bg: #FDF8F5
   Font: Darker Grotesque (300-900)
   ============================================================ */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #002549;
  --accent: #E1965F;
  --dark: #001525;
  --light-bg: #FDF8F5;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --font-family: 'Darker Grotesque', sans-serif;
}

* {
  font-family: var(--font-family);
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
  font-size: 1.1rem;
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-7 {
  font-family: var(--font-family);
  font-weight: 700;
}

.display-1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
}

.display-2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.display-4 {
  font-size: 1.15rem;
  font-weight: 500;
}

.display-5 {
  font-size: 1.5rem;
  font-weight: 700;
}

.display-7 {
  font-size: 1rem;
  font-weight: 400;
}

p {
  font-weight: 400;
  line-height: 1.75;
}

/* === Navbar — Template 4: Bootstrap-native, fixed-top, container-fluid === */
.custom-navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-height: 70px;
  z-index: 1030;
}

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

.custom-navbar .navbar-brand img {
  height: 2.5rem;
  border-radius: 8px;
  object-fit: contain;
}

.custom-navbar .navbar-caption {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.custom-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  color: var(--text-dark) !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
}

.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(0, 37, 73, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-buttons .btn-black {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.navbar-buttons .btn-black:hover {
  background: var(--accent);
  color: var(--white);
}

/* === Buttons === */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-black {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-black:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-black-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
}

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

/* === Hero Section — Full-Screen Parallax === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 21, 37, 0.7);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .label-text {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-section h1,
.hero-section .display-1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-section .hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* === Features Section === */
.features1 {
  padding: 100px 0;
}

.features1 .item-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features1 .item-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.features1 .item-content {
  padding: 20px 0;
}

.features1 .display-2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.features1 .item-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === Numbered Advantages === */
.numbered-advantages {
  padding: 100px 0;
  background: var(--white);
}

.numbered-advantages .section-title {
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
}

.numbered-advantages .step-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 8px;
  background: var(--light-bg);
  transition: all 0.3s ease;
  height: 100%;
}

.numbered-advantages .step-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.numbered-advantages .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.numbered-advantages .step-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--accent);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 48px;
  text-align: center;
}

.numbered-advantages .step-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.numbered-advantages .step-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.faq-section .section-title {
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
}

.faq-section .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section .accordion-button {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 20px 25px;
  background: var(--white);
}

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

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

.faq-section .accordion-button::after {
  content: '+';
  background: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  width: auto;
  height: auto;
  transform: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
  content: '−';
  background: none;
  transform: none;
  color: var(--white);
}

.faq-section .accordion-body {
  padding: 25px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === Contact Form === */
.contact-form-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-form-section .section-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-form-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  text-align: center;
}

.contact-form-section .form-control {
  border: 1px solid rgba(0, 37, 73, 0.15);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-family);
  background: var(--light-bg);
  transition: all 0.3s ease;
}

.contact-form-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 150, 95, 0.15);
  background: var(--white);
}

.contact-form-section .form-control::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-weight: 400;
}

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

/* === Contact Info Cards === */
.contacts01 {
  padding: 80px 0;
  background: var(--white);
}

.contacts01 .contact-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 8px;
  background: var(--light-bg);
  height: 100%;
  transition: all 0.3s ease;
}

.contacts01 .contact-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contacts01 .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.contacts01 .contact-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contacts01 .contact-value {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* === Google Map === */
.map-section {
  width: 100%;
  height: 400px;
}

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

/* === Footer — Dense Block === */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer .footer-content {
  font-size: 0.95rem;
  line-height: 2;
}

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

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

/* === Page Header (non-index) === */
.page-header {
  padding: 140px 0 60px;
  background: var(--primary);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-weight: 900;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb-text {
  color: var(--accent);
  font-weight: 500;
}

/* === Content Section for sub-pages === */
.content-section {
  padding: 80px 0;
}

.content-section h2 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.content-section h3 {
  color: var(--primary);
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* === About Page Specific === */
.about-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
}

.about-timeline .timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.about-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
}

.about-timeline .timeline-year {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
}

/* === Services Page Specific === */
.service-block {
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 37, 73, 0.08);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block .service-number {
  color: var(--accent);
  font-weight: 900;
  font-size: 3rem;
  opacity: 0.3;
  line-height: 1;
}

/* === Testimonials Page Specific === */
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  height: 100%;
  border-left: 4px solid var(--accent);
}

.testimonial-card .quote {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card .client-name {
  font-weight: 700;
  color: var(--primary);
}

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

/* === Legal Pages === */
.wp-block-heading {
  margin-top: 2.5rem;
}

.wp-block-heading strong {
  color: var(--primary);
}

.cookie-tables-white .wp-block-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-tables-white .wp-block-table table {
  width: 100%;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th {
  background: var(--primary);
  color: var(--white);
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  padding: 12px 10px !important;
  font-size: 0.95rem;
}

/* === Responsive === */
@media (max-width: 991px) {
  .display-1 {
    font-size: 2.5rem;
  }

  .display-2 {
    font-size: 2rem;
  }

  .hero-section {
    min-height: 80vh;
    background-attachment: scroll;
  }

  .features1 {
    padding: 60px 0;
  }

  .features1 .item-img img {
    height: 300px;
  }

  .numbered-advantages {
    padding: 60px 0;
  }

  .faq-section {
    padding: 60px 0;
  }

  .contact-form-section {
    padding: 60px 0;
  }

  .navbar-buttons {
    margin-left: 0 !important;
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .display-1 {
    font-size: 2rem;
  }

  .display-2 {
    font-size: 1.7rem;
  }

  .hero-section {
    min-height: 70vh;
    text-align: center;
  }

  .hero-section .hero-desc {
    margin: 0 auto 2rem;
  }

  .features1 .item-img {
    margin-bottom: 30px;
  }

  .features1 .item-img img {
    height: 250px;
  }

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

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

  .content-section {
    padding: 50px 0;
  }
}

/* === Utility === */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-dark-navy {
  background-color: var(--dark) !important;
}

.bg-light-beige {
  background-color: var(--light-bg) !important;
}

.section-padding {
  padding: 100px 0;
}

.card-wrap {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

.mbr-text {
  font-family: var(--font-family);
}

.mbr-fonts-style {
  font-family: var(--font-family);
}

/* Parallax background for sections */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

@media (max-width: 991px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Vision section */
.vision-section {
  padding: 100px 0;
  background: var(--light-bg);
}

/* Founder section */
.founder-section {
  padding: 100px 0;
  background: var(--white);
}
