/* ============================================
   PT PNM Investment Management — Template 5: Dark & Crimson
   Primary: #1a1a2e | Accent: #E94560 | Dark: #0F0F1A | Light bg: #F5F5FA
   ============================================ */

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

:root {
  --primary: #1a1a2e;
  --accent: #E94560;
  --dark: #0F0F1A;
  --light-bg: #F5F5FA;
  --white: #ffffff;
  --gray: #6c757d;
  --font: 'Inter Tight', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.custom-navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
  z-index: 1030;
}

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

.custom-navbar .navbar-brand img {
  height: 3rem;
}

.custom-navbar .navbar-caption {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary) !important;
  text-decoration: none;
  white-space: nowrap;
}

.custom-navbar .nav-link {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  transition: color 0.3s ease;
}

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

.custom-navbar .navbar-buttons .btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.custom-navbar .navbar-buttons .btn-primary:hover {
  background: #d63850 !important;
  border-color: #d63850 !important;
}

/* ===== HERO PARALLAX ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 15, 26, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.hero-content h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content .border-wrapper {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0 0 2rem 0;
}

.hero-content .hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-content .btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 4px;
  background: var(--accent);
  border: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background: #d63850;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
  padding: 90px 0;
}

.section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-light {
  background: var(--light-bg);
}

/* ===== ADVANTAGES / FEATURES ===== */
.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-text h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== EMBLA CAROUSEL ===== */
.embla {
  overflow: hidden;
  position: relative;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: -16px;
}

.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 100%;
  min-width: 0;
  padding-left: 16px;
}

@media (min-width: 768px) {
  .embla__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .embla__slide {
    flex: 0 0 33.333%;
  }
}

.embla__slide .slide-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.embla__slide .slide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.embla__slide .slide-card .slide-body {
  padding: 24px;
}

.embla__slide .slide-card .slide-body h5 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.embla__slide .slide-card .slide-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.embla__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.embla__button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.embla__button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== SPLIT SECTIONS ===== */
.split-section {
  padding: 0;
}

.split-section .row {
  align-items: center;
}

.split-section img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0;
}

.split-section .content-pad {
  padding: 60px;
}

@media (max-width: 991px) {
  .split-section .content-pad {
    padding: 40px 20px;
  }
  .split-section img {
    height: 350px;
  }
}

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

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
  font-family: var(--font);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.15);
}

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

.contact-form .btn-submit {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 36px;
  background: var(--accent);
  border: none;
  color: var(--white);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
  background: #d63850;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  text-align: center;
  padding: 30px 20px;
}

.contact-card .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-card h5 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

/* ===== MAP ===== */
.map-container {
  width: 100%;
  height: 400px;
}

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

/* ===== FAQ ACCORDION ===== */
.faq-section .accordion-button {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 6px !important;
  padding: 18px 24px;
  box-shadow: none;
}

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

.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.15);
  border-color: var(--accent);
}

.faq-section .accordion-body {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  padding: 20px 24px;
}

.faq-section .accordion-item {
  border: none;
  margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.footer-section {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 30px;
}

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

.footer-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

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

.footer-section .copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== FOUNDER QUOTE ===== */
.founder-quote {
  position: relative;
  padding-left: 30px;
  border-left: 4px solid var(--accent);
}

.founder-quote p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--gray);
}

.founder-quote .founder-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-top: 1rem;
  font-style: normal;
}

.founder-quote .founder-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
}

/* ===== PAGE HERO (sub pages) ===== */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.page-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 15, 26, 0.75);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 60px;
}

.page-hero-content h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ===== CONTENT SECTIONS (legal pages) ===== */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.content-section h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-section p, .content-section li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}

.content-section ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.content-section a {
  color: var(--primary);
  text-decoration: none;
}

.content-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-section table th,
.content-section table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

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

.content-section table td {
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  section {
    padding: 60px 0;
  }
  .hero-content {
    padding: 100px 0 60px;
  }
  .page-hero-content h1 {
    font-size: 2rem;
  }
}

/* ===== TESTIMONIAL / CASE STUDY CARDS ===== */
.case-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
  border-top: 3px solid var(--accent);
}

.case-card .quote-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.case-card .case-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.case-card .case-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.case-card .case-role {
  font-size: 0.8rem;
  color: var(--accent);
}

/* WP block headings for legal pages */
.wp-block-heading {
  margin-bottom: 0.75rem;
}

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

/* Cookie tables wrapper */
.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;
}

/* Card style links */
.card-wrap {
  border-radius: 6px;
}

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