/**
 * DT Adventure — Homepage Styles
 * "Desert Editorial" aesthetic
 */

/* ============================================================
   GP HEADER — Transparent over hero, solid on scroll
   Uses body.home class (added by WordPress automatically)
   ============================================================ */
body.home .site-header,
body.home #masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    transition: background 0.3s, box-shadow 0.3s;
}
/* Make GP header text white over hero */
.dta-header-transparent,
.dta-header-transparent .main-navigation a,
.dta-header-transparent .site-title a,
.dta-header-transparent .main-navigation .menu > li > a {
    color: rgba(255,255,255,0.9) !important;
}
.dta-header-transparent .main-navigation a:hover,
.dta-header-transparent .site-title a:hover {
    color: var(--dta-white) !important;
}
/* Solid state after scrolling */
.dta-header-scrolled {
    position: fixed !important;
    background: rgba(26, 24, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.dta-header-scrolled .main-navigation a,
.dta-header-scrolled .site-title a,
.dta-header-scrolled .main-navigation .menu > li > a {
    color: rgba(255,255,255,0.85) !important;
}
.dta-header-scrolled .main-navigation a:hover,
.dta-header-scrolled .site-title a:hover {
    color: var(--dta-white) !important;
}
/* Prevent content jump when header goes fixed */
body.home .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   NUCLEAR: Hide GP's featured image on the front page.
   
   GP renders the featured image OUTSIDE our .dta-homepage div,
   inside its own article wrapper. We must use body-level classes
   (which WordPress adds automatically) to target it.
   ============================================================ */
body.home .featured-image,
body.home .page-header-image-single,
body.home .post-image,
body.home .inside-article > .featured-image,
body.home .inside-article > .page-header-image-single,
body.home article.page > .inside-article > div:first-child:not(.entry-header):not(.entry-content) img,
body.home .wp-post-image,
body.home .entry-content > .wp-post-image,
body.home .inside-article > a:first-child > img {
    display: none !important;
}
/* Also hide GP's page title on homepage — our hero handles it */
body.home .entry-header {
    display: none !important;
}
/* Hide empty entry-content padding if GP wraps our template */
body.home .entry-content:empty,
body.home .entry-content > style:only-child {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Remove GP's article padding/margin so our sections go edge-to-edge */
body.home .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}
body.home article.page {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.home .site-content .content-area {
    padding: 0 !important;
}
body.home .inside-page-content {
    padding: 0 !important;
}

/* ============================================================
   HERO — Full viewport with dramatic photo overlay
   ============================================================ */
.dta-home-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.dta-home-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--dta-slate-700);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}
/* Gradient overlay on top of background-image */
.dta-home-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26,24,20,0.2) 0%,
        rgba(26,24,20,0.05) 40%,
        rgba(26,24,20,0.55) 70%,
        rgba(26,24,20,0.88) 100%
    );
}
.dta-home-hero__content {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
    max-width: 750px;
}
.dta-home-hero__label {
    font-family: var(--dta-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dta-copper-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dta-home-hero__label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--dta-copper-light);
}
.dta-home-hero__title {
    font-family: var(--dta-font-heading);
    font-weight: 800;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--dta-white);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.dta-home-hero__subtitle {
    font-family: var(--dta-font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 560px;
}
.dta-home-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.dta-home-hero__actions .dta-btn--outline {
    color: var(--dta-white);
    border-color: rgba(255,255,255,0.4);
}
.dta-home-hero__actions .dta-btn--outline:hover {
    border-color: var(--dta-white);
    background: rgba(255,255,255,0.08);
}

/* Scroll indicator */
.dta-home-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--dta-font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.dta-home-scroll__line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: dtaScrollPulse 2s ease-in-out infinite;
}
@keyframes dtaScrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.dta-stats-bar {
    background: var(--dta-slate-900);
    padding: 2rem 0;
    border-bottom: 3px solid var(--dta-copper);
}
.dta-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.dta-stat {
    position: relative;
}
.dta-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}
.dta-stat__number {
    font-family: var(--dta-font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--dta-copper-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.dta-stat__label {
    font-family: var(--dta-font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.dta-home-section {
    padding: 6rem 0;
}
.dta-section-label {
    font-family: var(--dta-font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dta-copper);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dta-section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--dta-copper);
}
.dta-home-section .dta-section-title {
    display: block;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}
.dta-section-subtitle {
    font-size: 1.05rem;
    color: var(--dta-slate-400);
    max-width: 580px;
    margin-bottom: 3rem;
}

/* ============================================================
   TOOLS SECTION — Compare + Wizard CTAs
   ============================================================ */
.dta-tools-section {
    background: var(--dta-slate-100);
}
.dta-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.dta-tool-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    transition: transform 0.3s var(--dta-ease);
    text-decoration: none;
    color: inherit;
}
.dta-tool-card:hover {
    transform: translateY(-4px);
}
.dta-tool-card--compare {
    background:
        linear-gradient(135deg, rgba(26,24,20,0.88), rgba(26,24,20,0.7)),
        var(--dta-slate-800);
}
.dta-tool-card--wizard {
    background:
        linear-gradient(135deg, rgba(86,79,68,0.92), rgba(44,40,34,0.88)),
        var(--dta-slate-700);
}
.dta-tool-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.dta-tool-card__title {
    font-family: var(--dta-font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--dta-white);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}
.dta-tool-card__desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 360px;
    line-height: 1.6;
}
.dta-tool-card .dta-btn { align-self: flex-start; }

/* ============================================================
   FEATURED VEHICLES GRID
   ============================================================ */
.dta-home-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.dta-home-vehicle {
    background: var(--dta-white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--dta-slate-200);
    transition: transform 0.3s var(--dta-ease), box-shadow 0.3s var(--dta-ease);
    text-decoration: none;
    color: inherit;
    display: block;
}
.dta-home-vehicle:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26,24,20,0.12);
}
.dta-home-vehicle__image {
    height: 220px;
    background: var(--dta-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dta-font-heading);
    color: var(--dta-slate-400);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.dta-home-vehicle__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--dta-ease);
}
.dta-home-vehicle:hover .dta-home-vehicle__image img {
    transform: scale(1.05);
}
.dta-home-vehicle__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--dta-slate-900);
    color: var(--dta-copper-light);
    font-family: var(--dta-font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
}
.dta-home-vehicle__body { padding: 1.5rem; }
.dta-home-vehicle__name {
    font-family: var(--dta-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--dta-slate-800);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}
.dta-home-vehicle__tagline {
    font-size: 0.9rem;
    color: var(--dta-slate-400);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.dta-home-vehicle__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.dta-home-vehicle__spec {
    background: var(--dta-slate-100);
    padding: 0.3rem 0.65rem;
    border-radius: 3px;
    font-family: var(--dta-font-heading);
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--dta-slate-700);
    letter-spacing: 0.04em;
}
.dta-home-vehicle__price {
    font-family: var(--dta-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dta-copper);
    padding-top: 1rem;
    border-top: 1px solid var(--dta-slate-200);
}

/* Section footer link */
.dta-home-section-footer {
    text-align: center;
    margin-top: 3rem;
}
.dta-link-arrow {
    font-family: var(--dta-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dta-copper);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
    text-decoration: none;
}
.dta-link-arrow:hover { gap: 0.85rem; }

/* ============================================================
   ABOUT / CREDIBILITY SECTION
   ============================================================ */
.dta-about-section {
    background: var(--dta-slate-900);
    color: var(--dta-white);
}
.dta-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.dta-about-image {
    aspect-ratio: 4/3;
    background: var(--dta-slate-700);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dta-font-heading);
    color: var(--dta-slate-400);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.dta-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dta-about-section .dta-section-label { color: var(--dta-copper-light); }
.dta-about-section .dta-section-label::before { background: var(--dta-copper-light); }
.dta-about-section .dta-section-title { color: var(--dta-white); }
.dta-about-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.dta-about-text strong {
    color: var(--dta-copper-light);
    font-weight: 600;
}
.dta-credential-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}
.dta-credential-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--dta-font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
}
.dta-credential-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dta-copper);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.dta-cta-band {
    background: var(--dta-copper);
    padding: 4rem 0;
    text-align: center;
}
.dta-cta-band__title {
    font-family: var(--dta-font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    color: var(--dta-white);
    margin-bottom: 0.5rem;
}
.dta-cta-band__subtitle {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}
.dta-cta-band .dta-btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--dta-white);
}
.dta-cta-band .dta-btn--outline:hover {
    background: var(--dta-white);
    color: var(--dta-copper);
    border-color: var(--dta-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .dta-home-hero { min-height: 600px; height: auto; padding-top: 120px; }
    .dta-home-hero__title { font-size: 2.5rem; }
    .dta-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .dta-stat:not(:last-child)::after { display: none; }
    .dta-tools-grid { grid-template-columns: 1fr; }
    .dta-home-vehicles-grid { grid-template-columns: 1fr; }
    .dta-about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .dta-home-scroll { display: none; }
}
