/*
Theme Name: Quantrify
Theme URI: https://example.com/quantrify
Author: LeadTitan (converted)
Author URI: https://example.com
Description: WordPress theme port of the Quantrify landing page (React → PHP). Mobile-first payroll platform.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quantrify
*/

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  background-color: #F7F5F0;
  color: #5C5C5C;
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: #0D5C4B;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 72px;
  }
}

h2 {
  font-size: 40px;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  h2 {
    font-size: 48px;
  }
}

p {
  margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.q-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted {
  color: #999;
}

.text-secondary {
  color: #5C5C5C;
}

.text-primary {
  color: #1A1A1A;
}

.teal {
  color: #0D5C4B;
}

.gold {
  color: #C6922A;
}

.section-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #E8F5F0;
  color: #0D5C4B;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  gap: 8px;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background-color: #0D5C4B;
  color: #fff;
  border-color: #0D5C4B;
  box-shadow: 0 0 40px rgba(13, 92, 75, 0.3);
}

.btn-primary:hover {
  background-color: #094539;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: #0D5C4B;
  border-color: #0D5C4B;
}

.btn-outline:hover {
  background-color: #E8F5F0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.q-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 0;
  transition: all 0.25s ease;
  background-color: transparent;
}

.q-header.scrolled {
  background-color: rgba(247, 245, 240, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.q-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wrap img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.q-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.q-nav a {
  font-weight: 600;
  font-size: 15px;
  transition: color 0.25s ease;
}

.q-header:not(.scrolled) .q-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.q-header.scrolled .q-nav a {
  color: #5C5C5C;
}

.q-nav a:hover {
  color: #0D5C4B;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  z-index: 100;
}

.q-header.scrolled .mobile-toggle {
  color: #1A1A1A;
}

@media (max-width: 767px) {
  .q-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 96px;
  background: linear-gradient(160deg, #0A0F0D 0%, #0D2A22 50%, #0A0F0D 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 180px;
    padding-bottom: 128px;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.hero .cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .hero .cta {
    flex-direction: row;
  }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 8px 0;
  color: #1A1A1A;
}

.card p {
  margin: 0;
  color: #5C5C5C;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: #0A0F0D;
  color: #fff;
  padding: 56px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: #0D5C4B;
}

footer h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px 0;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  font-size: 14px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  section {
    padding: 80px 0;
  }
}

section h2 {
  margin-bottom: 24px;
  color: #1A1A1A;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E4DFD5;
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #E4DFD5;
}

.compare-table th {
  background-color: #E8F5F0;
  font-weight: 700;
  color: #0D5C4B;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   POSTS & ARCHIVES
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.post-meta {
  font-size: 14px;
  margin-bottom: 12px;
}

.entry-content {
  margin: 18px 0;
}

.entry-content p {
  margin-bottom: 12px;
}

.entry-content h2,
.entry-content h3 {
  margin: 24px 0 12px 0;
}

/* ============================================
   WIDGETS
   ============================================ */
.widget-area {
  margin-top: 24px;
}

.widget {
  background-color: #fff;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.widget-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #1A1A1A;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #E4DFD5;
}

.comments-title {
  margin-bottom: 24px;
  font-size: 24px;
  color: #1A1A1A;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #F7F5F0;
  border-radius: 12px;
}

.comment-form {
  margin-top: 24px;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1A1A1A;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #E4DFD5;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
}

.comment-form textarea {
  min-height: 120px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  section {
    padding: 48px 0;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .q-header,
  footer,
  .no-print {
    display: none;
  }
}
