/*
Theme Name: SmartHireAI
Theme URI: https://www.smarthireai.in/
Author: SmartHireAI
Author URI: https://www.smarthireai.in/
Description: Custom WordPress theme migrated from the original SmartHireAI Blogger website.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: smarthireai
*/

:root {
  --primary: #0F172A;
  --primary-soft: #1E293B;
  --accent: #F97316;
  --accent-soft: #FFF7ED;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --success: #25D366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.10), transparent 32%),
    radial-gradient(circle at top right, rgba(15,23,42,0.05), transparent 26%),
    linear-gradient(180deg, #FCFDFE 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(226,232,240,0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 110px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.05);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 24px rgba(18,140,126,0.18);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(18,140,126,0.22);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 5% 26px;
  text-align: center;
}

.hero:before {
  content: '';
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  position: absolute;
  inset: 22px 5% auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,247,237,0.85));
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(15,23,42,0.08);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2.4px;
  color: var(--text);
  margin: 0;
  line-height: 1.04;
}

.hero h1 span {
  color: var(--accent);
  text-shadow: 0 10px 25px rgba(249,115,22,0.18);
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 16px auto 30px;
  max-width: 690px;
  line-height: 1.7;
}

/* Search Box */
.search-box {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 30px auto 10px;
  box-shadow: 0 22px 50px rgba(15,23,42,0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.search-box:hover,
.search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 28px 58px rgba(15,23,42,0.12);
}

.search-box input {
  border: none;
  outline: none;
  padding: 14px 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #64748B;
}

.btn-ai {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 24px rgba(15,23,42,0.18);
}

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15,23,42,0.22);
}

/* Generic Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding: 26px 5% 44px;
  max-width: 1200px;
  margin: 0 auto;
}

.card,
.tool-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 100%);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,0.9);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(15,23,42,0.05);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.card:before,
.tool-card:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.95;
}

.card:hover,
.tool-card:hover {
  border-color: rgba(249,115,22,0.35);
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15,23,42,0.10);
}

.icon,
.tool-icon {
  font-size: 28px;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.icon {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #FFE8D4 100%);
}

.card h3,
.tool-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.card p,
.tool-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}

/* Bot */
.bot-container {
  margin: 18px auto 38px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 34px;
  border: 1px solid rgba(226,232,240,0.95);
  overflow: hidden;
  height: 760px;
  max-width: 1060px;
  position: relative;
  box-shadow: 0 38px 85px rgba(15,23,42,0.12);
  display: none;
  padding: 22px 18px 18px;
}

.bot-container.active {
  display: block;
  animation: revealBot 0.45s ease;
}

.bot-container:before {
  content: 'AI Assistant';
  position: absolute;
  top: 10px;
  left: 18px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--primary);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 10px 20px rgba(15,23,42,0.06);
}

.bot-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226,232,240,0.7);
  margin-top: 18px;
}

@keyframes revealBot {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply Button */
.apply-now-wrapper {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 1000px;
}

.btn-apply-now {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #EA580C 100%);
  color: white;
  padding: 18px 60px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 22px 40px rgba(249,115,22,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-apply-now:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(249,115,22,0.34);
}

/* AI Tools Section */
.tools-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 5%;
}

.tools-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.tools-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #FFE8D4 100%);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,0.18);
  margin-bottom: 14px;
}

.tools-section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.tools-section-header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
}

.tool-card.featured {
  border-color: rgba(249,115,22,0.28);
  background: linear-gradient(180deg, #FFFAF6 0%, #FFF7ED 100%);
}

.tool-card.featured:before {
  background: linear-gradient(90deg, var(--accent) 0%, #EA580C 100%);
}

.tool-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #EA580C 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(249,115,22,0.28);
}

.tool-icon-hiring {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.tool-icon-payroll {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
}

.tool-icon-leave {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #FFE8D4 100%);
}

.tool-card p {
  margin: 0 0 24px;
  flex: 1;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  letter-spacing: 0.1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-btn:hover {
  transform: translateY(-2px);
}

.btn-hiring {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 10px 22px rgba(29,78,216,0.22);
}

.btn-payroll {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  box-shadow: 0 10px 22px rgba(22,163,74,0.22);
}

.btn-leave {
  background: linear-gradient(135deg, var(--accent) 0%, #EA580C 100%);
  box-shadow: 0 10px 22px rgba(249,115,22,0.26);
}

.tool-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tool-coming-soon {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

/* Static Pages */
.page-content-wrapper {
  max-width: 1060px;
  margin: 44px auto;
  padding: 0 20px;
}

.page-body-container {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 52px;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.07);
  border: 1px solid rgba(226,232,240,0.9);
}

.page-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -1px;
}

.post-body {
  font-size: 17px;
  color: #475569;
  line-height: 1.85;
  text-align: justify;
}

.post-body h2 {
  color: var(--primary);
  font-size: 25px;
  margin-top: 42px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
}

/* Footer */
.footer {
  padding: 70px 5% 42px;
  border-top: 1px solid rgba(226,232,240,0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid #EAEFF5;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: #64748B;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 44px;
  }

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

  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .tools-section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 92px;
    padding: 8px 16px;
  }

  .logo img {
    height: 74px;
  }

  .btn-wa {
    padding: 12px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 44px 16px 16px;
  }

  .hero:before {
    inset: 14px 16px auto;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }

  .hero p {
    font-size: 16px;
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
    padding: 10px;
  }

  .search-box input {
    padding: 12px 10px;
  }

  .btn-ai {
    width: 100%;
  }

  .grid {
    padding: 18px 16px 34px;
    gap: 16px;
  }

  .card {
    padding: 26px;
    border-radius: 24px;
  }

  .bot-container {
    height: 600px;
    margin: 12px 12px 24px;
    border-radius: 24px;
    padding: 18px 12px 12px;
  }

  .bot-container:before {
    top: 8px;
    left: 12px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .apply-now-wrapper {
    margin-bottom: 50px;
    padding: 0 16px;
  }

  .btn-apply-now {
    width: 100%;
    padding: 16px;
    font-size: 18px;
  }

  .tools-section {
    padding: 0 16px;
    margin-bottom: 60px;
  }

  .tools-section-header h2 {
    font-size: 26px;
  }

  .tool-card {
    padding: 28px 22px 24px;
  }

  .page-content-wrapper {
    margin: 28px auto;
    padding: 0 14px;
  }

  .page-body-container {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .page-title {
    font-size: 30px;
  }

  .footer {
    padding: 54px 16px 34px;
  }

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

.tool-card {
    display: flex;
    flex-direction: column;
}

.tool-card > .tool-btn {
    margin-top: auto;
}

.tool-learn-more {
    margin: 8px 0 0;
}
}

/* WordPress migration additions */
.site-main { min-height: 55vh; }
.page-content-wrapper { width: 100%; }
.page-body-container .entry-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--primary);
}
.page-body-container .entry-content { color: #334155; line-height: 1.75; }
.page-body-container .entry-content h2,
.page-body-container .entry-content h3 { color: var(--primary); line-height: 1.25; }
.page-body-container .entry-content a { color: #2563eb; }
.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 !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; display: block; height: auto;
  left: 12px; top: 12px; width: auto; z-index: 100000;
  background: #fff; color: #0f172a; padding: 12px 16px; border-radius: 8px;
}
