/*
Theme Name: GetTrueDNA
Theme URI: https://gettruedna.com
Author: GetTrueDNA
Author URI: https://gettruedna.com
Description: Official theme for GetTrueDNA - Connected Vehicle Platform
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gettruedna
Tags: business, technology, fleet, vehicle, custom-header, full-width-template
*/

:root {
  --color-primary:     #1A2E4A;
  --color-accent:      #E8362A;
  --color-accent-blue: #1E90FF;
  --color-dark:        #0D1B2A;
  --color-light-bg:    #F7F9FB;
  --color-cream-bg:    #FDF8F0;
  --color-white:       #FFFFFF;
  --color-text:        #2C3E50;
  --color-text-muted:  #6B7C93;
  --color-border:      #E2E8F0;
  --color-gold:        #F5A623;
  --font-display:  'Inter', 'Helvetica Neue', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container-max: 1200px;
  --container-wide: 1400px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }
.text-red { color: var(--color-accent); }
.text-blue { color: var(--color-accent-blue); }
.text-muted { color: var(--color-text-muted); font-size: 0.95rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: var(--space-sm);
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--wide { max-width: var(--container-wide); }

.section { padding: var(--space-3xl) 0; }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--light { background: var(--color-light-bg); }
.section--cream { background: var(--color-cream-bg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--color-accent-blue); color: var(--color-white); box-shadow: 0 18px 40px rgba(30,144,255,0.22); }
.btn--primary:hover { background: #1567d8; transform: translateY(-1px); color: var(--color-white); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.18); color: var(--color-white); }
.btn--outline:hover { background: rgba(255,255,255,0.15); color: var(--color-white); }
.btn--red { background: var(--color-accent); color: var(--color-white); box-shadow: 0 18px 40px rgba(232,54,42,0.18); }
.btn--red:hover { background: #a61f15; transform: translateY(-1px); color: var(--color-white); }
.btn--gold { background: var(--color-gold); color: var(--color-primary); }
.btn--ghost { background: transparent; border-color: var(--color-accent-blue); color: var(--color-accent-blue); }
.btn--ghost:hover { background: #1567d8; color: var(--color-white); }
.btn--sm { padding: 10px 24px; font-size: 0.88rem; border-radius: 999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18,37,60,0.06);
  border-bottom: none;
}
.site-header .container { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-lg); }
.site-logo img { height: 66px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 1.8rem; }
.main-nav ul li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  padding: 8px 0;
  position: relative;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-blue);
  transition: var(--transition);
}
.main-nav ul li a:hover { color: var(--color-accent-blue); }
.main-nav ul li a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; border: none; background: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  background: #ffffff;
}

/* Full-bleed image anchored to the right, truly full-height */
.hero__image {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 65% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: right center !important;
  display: block !important;
  z-index: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* White fade so text stays readable */
.hero__background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff 36%, rgba(255,255,255,0.88) 52%, rgba(255,255,255,0.3) 68%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Container must stretch full width and vertically center content */
.hero > .container {
  position: relative;
  z-index: 2;
  min-height: 740px;
  display: flex;
  align-items: center;
}

/* Content sits in normal flow above the image */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
}

.hero__content {
  max-width: 520px;
  padding: var(--space-3xl) 0;
}

/* Hide the old media wrapper — image is now absolutely positioned */
.hero__media { display: none !important; }

.hero__eyebrow { margin-bottom: var(--space-sm); color: #1f76f5; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase; }
.hero h1 { margin-bottom: var(--space-md); font-size: clamp(3.4rem, 4.75vw, 5rem); letter-spacing: -0.05em; line-height: 1.02; color: #111827; }
.hero h1 em { display: block; font-size: 1.05em; font-style: italic; color: #e53120; margin-top: 0.5rem; }
.hero p { color: #5c6a85; font-size: 1rem; max-width: 460px; margin-bottom: calc(var(--space-xl) + 4px); }
.hero__cta { display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap; }
.hero__cta .btn { min-width: 200px; padding: 14px 26px; }

.trust-bar {
  background: #111827;
  padding: calc(var(--space-xl) + 10px) 0;
  text-align: center;
}
.trust-bar p { color: rgba(255,255,255,0.88); margin-bottom: calc(var(--space-md) + 4px); font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: calc(var(--space-xl) + 0.5rem); flex-wrap: wrap; }
.trust-logos img { max-height: 32px; opacity: 0.85; filter: saturate(1.1); }
.trust-logos span { color: rgba(255,255,255,0.72); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.section-header h2 { margin-top: var(--space-sm); font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
.section-header p { color: var(--color-text-muted); font-size: 1rem; margin-top: var(--space-sm); }

.grid-3 .card {
  background: var(--color-white);
  border: 1px solid rgba(18,37,60,0.07);
  border-radius: 28px;
  padding: calc(var(--space-2xl) + 8px);
  box-shadow: 0 20px 60px rgba(18,37,60,0.06);
  min-height: 380px;
  transition: all 0.3s ease;
}
.grid-3 .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 100px rgba(18,37,60,0.12);
}
.grid-3 .card:nth-child(1) {
  background: var(--color-white);
}
.grid-3 .card:nth-child(1):hover {
  background: #EEF4FF;
}
.grid-3 .card:nth-child(2) {
  background: var(--color-white);
}
.grid-3 .card:nth-child(2):hover {
  background: #FFF0F0;
}
.grid-3 .card:nth-child(3) {
  background: var(--color-white);
}
.grid-3 .card:nth-child(3):hover {
  background: #FFF8EE;
}
.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: var(--space-md);
  font-size: 1.45rem;
  background: rgba(30,144,255,0.08);
}
.card__label {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.1);
  color: var(--color-accent-blue);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: var(--space-sm);
}
.card h3 { margin-bottom: var(--space-lg); font-size: 1.35rem; }
.card ul { list-style: none; padding-left: 0; margin-bottom: var(--space-lg); }
.card ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color-accent);
}
.learn-more {
  font-weight: 700;
  color: var(--color-accent-blue);
}

.stats-strip {
  background: var(--color-dark);
  color: var(--color-white);
  padding: calc(var(--space-3xl) + 4px) 0;
}
.stats-strip .grid-4 { gap: var(--space-xl); }
.stat-item {
  border-radius: var(--border-radius-lg);
  padding: calc(var(--space-2xl) - 2px);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.04);
}
.stat-item__number {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.stat-item__label { color: rgba(255,255,255,0.72); line-height: 1.5; font-size: 0.95rem; }

.features-section .grid-5 {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: var(--space-lg);
}
.feature-item {
  background: var(--color-white);
  border: 1px solid rgba(18,37,60,0.06);
  border-radius: 28px;
  padding: calc(var(--space-lg) + 4px);
  text-align: left;
  min-height: 240px;
  box-shadow: 0 18px 40px rgba(18,37,60,0.04);
  transition: all 0.3s ease;
}
.feature-item:hover {
  border: 2px solid var(--color-accent-blue);
  box-shadow: 0 32px 80px rgba(30,144,255,0.18);
  transform: translateY(-6px);
}
.feature-item__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.4rem;
  border-radius: 18px;
  background: rgba(30,144,255,0.08);
}
.feature-item h4 { margin-bottom: var(--space-sm); font-size: 1rem; }
.feature-item p { color: var(--color-text-muted); font-size: 0.94rem; line-height: 1.7; }

.rewards-section {
  background: var(--color-cream-bg);
  padding: var(--space-3xl) 0;
}
.rewards-section .grid-2 { align-items: start; }
.rewards-section h2 { margin-top: var(--space-sm); }
.rewards-section p { max-width: 560px; }
.rewards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}
.rewards-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(18,37,60,0.08);
}
.reward-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(232,54,42,0.08);
  font-size: 1.4rem;
}
.rewards-list h5 {font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: #f5bb56;}
.rewards-list h4 { margin-bottom: 0.35rem; font-size: 1rem; }

.testimonials-section {
  background: transparent;
  padding: var(--space-3xl) 0;/* padding: var(--space-3xl) 0; */
}
.testimonials-section .container {
  /* background: #7B1538; */
  background: #FFFFFF;
  /* padding: var(--space-3xl) 0; */
}
.testimonials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl); /* margin-bottom: var(--space-3xl); */
}
.testimonials-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; color: #000; /*color: var(--color-white);*/ }
.testimonials-header em { display: block; font-style: normal; color: #a50025; /*color: #ffffff;*/ margin-top: 0.5rem; }
.testimonials-header p { max-width: 420px; color: #000; /*color: rgba(255,255,255,0.82);*/ }

.testimonial-card {
  background: #ffffff;
  border-radius: 26px;
  padding: var(--space-xl);
  box-shadow: 0 30px 80px rgba(18,37,60,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 220px;
}
.testimonial-card p { color: var(--color-text); font-size: 0.92rem; line-height: 1.7; }
.testimonial-name { font-weight: 700; margin-top: auto; }
.stars { color: var(--color-gold); font-size: 0.95rem; }

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 24px solid #a50025;
  border-radius: 20px;
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  background-color: #a50025;
}

.carousel-track {
  display: flex;
  gap: var(--space-2xl);
  width: 100%;
  padding: var(--space-2xl);
  padding-left: calc(var(--space-2xl) + 0.1rem);
  padding-right: calc(var(--space-2xl) + 6rem);
  padding-bottom: calc(var(--space-2xl) + 2rem);
  transition: transform 0.5s ease;
  flex-wrap: nowrap;
}

.carousel-slide {
  display: flex;
  flex: 0 0 32%;
  min-width: 0;
  justify-content: center;
}

.carousel-nav {
  position: relative;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
}

.carousel-controls {
  position: absolute;
  bottom: calc(var(--space-lg) + 0.75rem);
  right: var(--space-lg);
  left: auto;
  display: flex;
  gap: var(--space-md);
  z-index: 12;
}

@media (max-width: 1080px) {
  .carousel-slide {
    flex: 0 0 calc(50% - calc(var(--space-2xl) / 2));
  }
  
  .testimonials-carousel {
    border: 32px solid #7B1538;
  }
  .carousel-track { padding-left: calc(var(--space-2xl) + 3rem); }
}

@media (max-width: 760px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
  
  .carousel-track {
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .testimonials-carousel {
    border: 24px solid #7B1538;
    padding: 0;
  }
  .carousel-track { padding-left: var(--space-lg); padding-right: var(--space-lg); }
}

.cta-section {
  background-color: #071119;
  background-image: url('images/cta-car.png');
  background-position: center center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,17,25,0.82) 0%, rgba(7,17,25,0.7) 40%, rgba(7,17,25,0.5) 70%, rgba(7,17,25,0.25) 100%);
  opacity: 1;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: var(--space-md); color: #FFFFFF; font-weight: 700; }
.cta-section p { max-width: 680px; color: rgba(255,255,255,0.76); margin-bottom: var(--space-xl); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.site-footer {
  background: #eff5ff;
  color: #15253d;
  padding: var(--space-3xl) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-3xl);
}
.footer-brand p { max-width: 320px; color: #5d6b8b; margin-top: var(--space-md); }
.footer-brand .custom-logo,
.footer-brand img.custom-logo {
  width: 142px !important;
  height: auto !important;
}
.footer-social { display: flex; gap: 1rem; margin-top: var(--space-lg); }
.footer-social a { background: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 0; transition: var(--transition); }
.footer-social a:hover { opacity: 0.75; }
.footer-social a svg { width: 20px; height: 20px; display: block; }
.footer-col h4 { margin-bottom: var(--space-md); font-size: 0.95rem; color: var(--color-accent-blue); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.footer-col ul li a { color: #1c2c4d; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--color-accent-blue); }
.footer-bottom { border-top: 1px solid rgba(15,57,118,0.12); margin-top: var(--space-3xl); padding-top: var(--space-xl); text-align: center; font-size: 0.95rem; color: #5d6b8b; }

@media (max-width: 1080px) {
  .hero__image { width: 80% !important; }
  .hero__background { background: linear-gradient(to right, #ffffff 30%, rgba(255,255,255,0.75) 52%, transparent 72%); }
  .trust-logos { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-section { background-size: 90% auto; }
}

@media (max-width: 760px) {
  .container { padding: 0 var(--space-md); }
  .site-header .container { height: auto; padding: var(--space-md) 0; flex-wrap: wrap; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: center; }
  .main-nav ul { flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
  .hero { min-height: 520px; }
  .hero > .container { min-height: 520px; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .hero__image { width: 100% !important; opacity: 0.3; }
  .hero__background { background: rgba(255,255,255,0.7); }
  .hero__content { max-width: 100%; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .testimonials-header { flex-direction: column; }
  .cta-section { background-size: 98% auto; padding: calc(var(--space-3xl) + var(--space-lg)) 0; }
  .cta-section .container { padding: 0 var(--space-md); }
}

@media (max-width: 600px) {
  .main-nav ul li a { font-size: 0.95rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; min-width: auto; }
  .cta-section h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cta-section .btn-group { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .main-nav ul li a { font-size: 0.9rem; }
  .cta-section { padding: calc(var(--space-3xl) + var(--space-2xl)) 0; }
  .cta-section h2 { margin-bottom: calc(var(--space-md) + 0.5rem); }
  .trust-logos { gap: var(--space-md); }
}