/* ============================================================
   LAYOUT.CSS — Navigation, Hero, Footer, Section Layouts
   Digital Marketing Trainer | Hyderabad
============================================================ */

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Brand */
.nav-brand {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--blue);
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a,
.nav-menu > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all var(--tr);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > button:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-menu > li > a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Dropdown arrow */
.nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--tr);
  opacity: 0.6;
}

.nav-menu > li.open > button .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.nav-menu > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all var(--tr);
}

.dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.dropdown a .tool-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown a:hover .tool-icon {
  background: var(--blue-mid);
  border-color: transparent;
}

.dropdown-badge {
  margin-left: auto;
  padding: 2px 7px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  border-radius: 99px;
}

/* Nav CTA */
.nav-cta {
  padding: 9px 20px;
  background: var(--blue);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--tr), transform var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--tr);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: #fff;
  z-index: 998;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 16px 20px 40px;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a,
.nav-mobile-section > span {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all var(--tr);
}

.nav-mobile a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-mobile-section > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-bottom: 6px;
  margin-top: 12px;
}

.nav-mobile .mobile-tools a {
  padding-left: 28px;
  font-size: 14px;
}

.nav-mobile-cta {
  margin-top: 20px;
  display: block;
  text-align: center;
  padding: 13px;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand .nav-logo {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0;
  padding: 0;
}
/* ── HERO ────────────────────────────────────────────────── */
#hero {
  padding: 56px 0 0;
  background: linear-gradient(160deg, #f8faff 0%, #eef4ff 60%, #f4f7ff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Top row: text left, photo right */
.hero-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

#hero h1 {
  margin-bottom: 18px;
  max-width: 560px;
}

#hero h1 .accent {
  color: var(--blue);
}

.hero-lead {
  font-size: 16px !important;
  color: var(--text-2) !important;
  line-height: 1.78 !important;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-pill {
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
  transition: all var(--tr);
}

.hero-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 11px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  padding: 11px 24px;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Hero photo placeholder ──────────────────────────────── */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo-box {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 3.8;
  background: linear-gradient(160deg, #dbe8ff 0%, #c7d9f8 100%);
  border-radius: 20px ;
  border: 1px solid var(--blue-mid);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  
}

/* When a real photo is added, use this: */
.hero-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Placeholder label */
.hero-photo-box .photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--blue);
 
}

.hero-photo-box .photo-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 1;
}

.hero-photo-box .photo-placeholder span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Hero bottom cards row ───────────────────────────────── */
.hero-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.hcard {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.hcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-mid);
}

.hcard.featured {
  background: var(--blue);
  border-color: var(--blue);
}

.hcard.featured .hcard-icon,
.hcard.featured h3,
.hcard.featured p {
  color: #fff;
}

.hcard.featured p {
  color: rgba(255,255,255,0.82) !important;
}

.hcard-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.hcard h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.hcard p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}


/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--blue);
  padding: 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-block {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}

.stat-block:last-child {
  border-right: none;
}

.stat-number {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  line-height: 1.5;
}


/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--blue);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color var(--tr);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color var(--tr);
}

.footer-bottom a:hover {
  color: #fff;
}


/* ── RESPONSIVE LAYOUT ───────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-top {
    grid-template-columns: 1fr 300px;
    gap: 36px;
  }

  .hero-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-block:nth-child(2) {
    border-right: none;
  }

  .stat-block:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .stat-block:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav-menu, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }

  .hero-photo-box {
    max-width: 280px;
    aspect-ratio: 3 / 3.5;
  }

  .hero-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 40px 0 0;
  }

  .hero-lead {
    font-size: 15.5px !important;
  }

  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 580px) {
  .hero-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-bar-inner {
    grid-template-columns: 1fr;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 24px 20px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-outline {
    justify-content: center;
    text-align: center;
  }

  .hero-cards-row {
    grid-template-columns: 1fr 1fr;
  }
}
