/*
Theme Name:  LendingTree Theme
Theme URI:   https://yoursite.com
Author:      Deepak
Author URI:  https://yoursite.com
Description: A professional financial lending WordPress theme with hero section, loan cards, six-step process, and CTA — fully Customizer-ready.
Version:     1.1.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: lendingtree-theme
Tags:        finance, lending, business, one-page, custom-colors, custom-logo, full-width-template, theme-options
*/

/* === CSS CUSTOM PROPERTIES === */
:root {
  --lt-green-dark:   #1e3d2b;
  --lt-green-deeper: #111f17;
  --lt-green-card:   #2b4a36;
  --lt-green-card2:  #131f18;
  --lt-gold:         #c8973a;
  --lt-gold-btn:     #c49a3c;
  --lt-cream:        #edeae2;
  --lt-cream-light:  #f0ede6;
  --lt-white:        #ffffff;
  --lt-text-dark:    #1a2820;
  --lt-text-gray:    #6b7b6e;
  --lt-step-num:     #d0cfc8;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--lt-cream);
  color: var(--lt-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }

ul { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* === TYPOGRAPHY === */
.lt-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lt-gold);
  margin-bottom: 14px;
  display: block;
}

.lt-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--lt-text-dark);
  line-height: 1.12;
  margin-bottom: 18px;
}

.lt-sub {
  color: var(--lt-text-gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 52px;
}

/* === BUTTONS === */
.lt-btn-primary {
  background: var(--lt-green-dark);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.lt-btn-primary:hover { opacity: 0.85; color: #fff; }

.lt-btn-gold {
  background: var(--lt-gold-btn);
  color: var(--lt-text-dark);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.lt-btn-gold:hover { opacity: 0.9; transform: translateY(-1px); color: var(--lt-text-dark); }

.lt-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.42);
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.lt-btn-ghost:hover { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); color: #fff; }

/* === NAVBAR === */
.lt-navbar {
  background: var(--lt-cream);
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 300;
}

.lt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lt-logo img { height: 38px; width: auto; }

.lt-site-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lt-text-dark);
}

.lt-nav-menu {
  display: flex;
  gap: 36px;
}

.lt-nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--lt-text-dark);
}
.lt-nav-menu a:hover { color: var(--lt-green-dark); }

/* Mobile hamburger */
.lt-hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.lt-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lt-text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.lt-hero {
  background: var(--lt-green-dark);
  min-height: 620px;
  display: grid;
  grid-template-columns: 52% 48%;
  overflow: hidden;
}

.lt-hero-content {
  padding: 72px 5% 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lt-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #cec9b5;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 34px;
}

.lt-trust-dot {
  width: 7px;
  height: 7px;
  background: var(--lt-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.lt-hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 26px;
}

.lt-hero-heading .lt-italic-gold {
  color: var(--lt-gold);
  font-style: italic;
}

.lt-hero-sub {
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 430px;
  margin-bottom: 38px;
}

.lt-hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.lt-hero-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 32px;
  max-width: 560px;
}

.lt-hero-stats {
  display: flex;
  gap: 50px;
}

.lt-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.lt-stat-lbl {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

.lt-hero-photo {
  position: relative;
  overflow: hidden;
}

.lt-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--lt-green-dark) 0%, rgba(30,61,43,0.45) 38%, transparent 65%);
  z-index: 1;
}

.lt-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.72);
}

/* === TICKER === */
.lt-ticker {
  background: var(--lt-gold-btn);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

.lt-ticker-track {
  display: inline-flex;
  animation: lt-ticker 32s linear infinite;
}

.lt-ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 32px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lt-text-dark);
  gap: 32px;
}

.lt-ticker-item::after { content: '•'; font-size: 1rem; }

@keyframes lt-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === OFFERS SECTION === */
.lt-offers {
  padding: 88px 5%;
  background: var(--lt-cream);
}

.lt-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lt-loan-card {
  border-radius: 20px;
  padding: 48px 44px 44px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.lt-loan-card.lt-personal { background: var(--lt-green-card); }
.lt-loan-card.lt-business { background: var(--lt-green-card2); }

.lt-loan-card::before,
.lt-loan-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.lt-loan-card::before { width: 280px; height: 280px; top: -80px; right: -80px; }
.lt-loan-card::after  { width: 180px; height: 180px; top: -30px; right: -30px; }

.lt-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.13);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: auto;
}

.lt-card-icon svg { width: 28px; height: 28px; fill: #c8c2aa; }

.lt-card-body {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.lt-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.lt-card-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 28px;
}

.lt-card-pill {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,151,58,0.45);
  color: var(--lt-gold);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
}

/* === WHY SECTION === */
.lt-why {
  background: var(--lt-cream-light);
  padding: 88px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lt-why-image-wrap { position: relative; }

.lt-why-image-wrap img {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  width: 100%;
}

.lt-rated-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.lt-rated-icon {
  width: 44px;
  height: 44px;
  background: var(--lt-green-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lt-rated-text strong { display: block; font-weight: 700; font-size: 0.95rem; color: var(--lt-text-dark); }
.lt-rated-text span   { font-size: 0.78rem; color: var(--lt-text-gray); }

.lt-why-desc {
  color: var(--lt-text-gray);
  font-size: 0.97rem;
  line-height: 1.72;
  margin-bottom: 36px;
}

.lt-features { display: flex; flex-direction: column; gap: 24px; }

.lt-feature { display: flex; gap: 16px; align-items: flex-start; }

.lt-feature-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.lt-feature-title { font-weight: 700; font-size: 0.97rem; color: var(--lt-text-dark); margin-bottom: 4px; }
.lt-feature-desc  { font-size: 0.88rem; color: var(--lt-text-gray); line-height: 1.6; }

/* === STEPS === */
.lt-steps {
  background: var(--lt-cream);
  padding: 88px 5%;
}

.lt-steps-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}

.lt-steps-header .lt-heading { margin-bottom: 0; }

.lt-steps-sub { color: var(--lt-text-gray); font-size: 1rem; line-height: 1.68; }

.lt-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.lt-step-item { padding: 0 36px 48px 0; }

.lt-steps-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 0 0 48px;
}

.lt-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--lt-step-num);
  line-height: 1;
  margin-bottom: 20px;
}

.lt-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lt-text-dark);
  margin-bottom: 12px;
}

.lt-step-desc { color: var(--lt-text-gray); font-size: 0.9rem; line-height: 1.68; }

/* === CTA === */
.lt-cta {
  background: var(--lt-green-deeper);
  padding: 100px 5%;
  text-align: center;
}

.lt-cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 22px;
}

.lt-cta-gold {
  color: var(--lt-gold);
  font-style: italic;
  display: block;
}

.lt-cta-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 40px;
}

.lt-cta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.lt-cta-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 500;
}

/* === FOOTER === */
.lt-footer {
  background: var(--lt-cream);
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.lt-footer-copy { color: var(--lt-text-gray); font-size: 0.82rem; }

/* === WORDPRESS CORE === */
.wp-block-image { margin-bottom: 1.5rem; }
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Screen-reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .lt-hero           { grid-template-columns: 1fr; }
  .lt-hero-photo     { height: 300px; }
  .lt-cards-grid     { grid-template-columns: 1fr; }
  .lt-why            { grid-template-columns: 1fr; gap: 60px; }
  .lt-steps-header   { grid-template-columns: 1fr; }
  .lt-steps-row      { grid-template-columns: 1fr; }
  .lt-step-item      { padding: 0 0 32px; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .lt-steps-divider  { display: none; }
}

@media (max-width: 768px) {
  .lt-nav-menu    { display: none; }
  .lt-hamburger   { display: flex; }
  .lt-nav-menu.lt-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--lt-cream);
    padding: 20px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    gap: 18px;
    z-index: 299;
  }
  .lt-hero-stats   { gap: 24px; flex-wrap: wrap; }
  .lt-hero-buttons { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════
   REVIEWS SECTION
════════════════════════════ */
.lt-reviews {
  background: var(--lt-green-dark);
  padding: 88px 5%;
}

.lt-reviews .lt-label { color: var(--lt-gold); }

.lt-reviews-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 52px;
  max-width: 700px;
}

.lt-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lt-review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lt-review-stars {
  color: var(--lt-gold);
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

.lt-review-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 28px;
}

.lt-review-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.lt-reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.lt-reviewer-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.lt-reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.lt-reviewer-role {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .lt-reviews-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 600px) {
  .lt-reviews-grid { max-width: 100%; }
}


/* ════════════════════════════
   ELEMENTOR COMPATIBILITY
════════════════════════════ */
.elementor-page .lt-hero,
.elementor-page .lt-offers,
.elementor-page .lt-why,
.elementor-page .lt-steps,
.elementor-page .lt-reviews,
.elementor-page .lt-cta,
.elementor-page .lt-ticker { margin: 0; }

/* Elementor widget preview fix */
.elementor-widget-lt_hero .lt-hero,
.elementor-widget-lt_loans .lt-offers,
.elementor-widget-lt_why .lt-why,
.elementor-widget-lt_steps .lt-steps,
.elementor-widget-lt_reviews .lt-reviews,
.elementor-widget-lt_cta .lt-cta { width: 100%; }

/* Full width sections inside Elementor */
.e-con-full .lt-hero,
.e-con-full .lt-reviews,
.e-con-full .lt-cta { width: 100vw; margin-left: calc(50% - 50vw); }

/* ════════════════════════════
   MOBILE NAVBAR FIX
════════════════════════════ */
@media (max-width: 768px) {
  .lt-navbar {
    padding: 0 4%;
    height: 60px;
  }

  .lt-site-title {
    font-size: 0.95rem;
  }

  /* Get Started button – compact on mobile */
  .lt-navbar .lt-btn-primary {
    padding: 8px 14px;
    font-size: 0.78rem;
    border-radius: 30px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .lt-navbar .lt-btn-primary {
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .lt-site-title {
    font-size: 0.85rem;
  }

  .lt-logo svg {
    width: 26px;
    height: 26px;
  }
}
