/*
Theme Name: GraftScanner - Marketing Landing Page
Theme URI: https://graftscanner.app
Description: Professional landing page to drive app downloads
Version: 4.0
Author: GraftScanner
License: GPL v2 or later
Text Domain: graftscanner
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0D1B3E;
  --amber: #C17D2E;
  --green: #2A7D4F;
  --bg: #F7F6F3;
  --white: #FFFFFF;
  --label: #1C1C1E;
  --secondary: rgba(60,60,67,0.6);
  --tertiary: rgba(60,60,67,0.3);
  --border: rgba(0,0,0,0.08);
  --light-gray: #F5F5F7;
}

html, body {
  scroll-behavior: smooth;
  height: auto;
  min-height: 0;
}

body {
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--label);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--amber);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  width: 40px;
  height: 40px;
  display: block;
}

.logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}

#nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#nav-menu > a {
  font-size: 14px;
  color: var(--secondary);
  transition: color 0.3s;
}

#nav-menu > a:hover {
  color: var(--navy);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
}

.nav-dropdown > a {
  display: inline-block;
  font-size: 14px;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.3s;
  padding: 0.5rem 0.5rem;
}

.nav-dropdown > a:hover {
  color: var(--navy);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: -40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 240px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.15);
  z-index: 2000;
  flex-direction: column;
  pointer-events: auto;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -40px;
  right: -10px;
  height: 0.5rem;
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: block;
  padding: 0.9rem 1.3rem;
  color: var(--secondary);
  font-size: 14px;
  transition: all 0.15s;
  text-align: left;
  white-space: nowrap;
}

.dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--navy);
  padding-left: 1.5rem;
}

.cta-header {
  background: var(--navy);
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
  text-decoration: none !important;
}

.cta-header:hover {
  background: #051729;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2850 100%);
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 550px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,125,46,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 5rem 2rem 8rem 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* SLIDER CONTROLS */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}

.dot:hover {
  background: rgba(255,255,255,0.7);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-primary {
  background: var(--amber);
  color: var(--navy);
  padding: 18px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.cta-primary:hover {
  background: #A36B23;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,125,46,0.3);
}

.hero-subtext {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  font-weight: 500;
}

/* ===== SECTION ===== */
section {
  padding: 5rem 2rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  color: var(--navy);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--secondary);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
  background: white;
  border-color: var(--amber);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy), #1a2850);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ===== HOW IT WORKS ===== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  position: relative;
  padding: 2rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.benefits-content h3 {
  color: var(--navy);
  margin-top: 1.5rem;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.benefits-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.benefits-image {
  width: 100%;
  background: linear-gradient(135deg, rgba(13,27,62,0.1), rgba(193,125,46,0.05));
  height: 400px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  opacity: 0.8;
}

/* ===== PRICING/COMPARISON ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comparison-table thead {
  background: var(--navy);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem;
  text-align: left;
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--light-gray);
}

.comparison-table tbody tr:hover {
  background: rgba(193,125,46,0.08);
}

.price-high {
  color: var(--amber);
  font-weight: 700;
}

.savings {
  background: linear-gradient(135deg, var(--green), #1f5a38);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.savings h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.savings p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
}

/* ===== EDUCATION SECTION ===== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.education-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--navy);
}

.education-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.education-card p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* ===== STATS SECTION ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(13,27,62,0.05), rgba(193,125,46,0.05));
  border-radius: 16px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy), #1a2850);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 800px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  padding-bottom: 0;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

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

/* Hide WordPress footer output to prevent extra space */
footer ~ * {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero {
    height: 480px;
  }

  .slide {
    height: 480px;
    padding: 4rem 2rem 7rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav {
    gap: 1.2rem;
  }

  .nav-dropdown > a {
    font-size: 13px;
  }

  .dropdown-menu {
    min-width: 220px;
    left: -30px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .hero {
    height: 420px;
  }

  .slide {
    height: 420px;
    padding: 3rem 1.5rem 6rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtext {
    font-size: 12px;
  }

  .cta-primary {
    padding: 14px 24px;
    font-size: 16px;
  }

  .features-grid,
  .how-it-works-grid,
  .education-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 2.5rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .feature-card,
  .step-card,
  .education-card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  nav {
    gap: 0.75rem;
  }

  .nav-dropdown > a {
    font-size: 12px;
  }

  .dropdown-menu {
    min-width: 200px;
    left: -25px;
  }

  .dropdown-menu a {
    padding: 0.8rem 1.1rem;
    font-size: 13px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 15px;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 24px;
  }
}

/* ===== MOBILE MENU ===== */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: var(--navy);
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  #nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: min(85vw, 250px);
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    z-index: 999;
    display: none !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
  }

  #nav-menu.show {
    display: flex !important;
  }

  #nav-menu > a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-dropdown {
    position: static;
    display: block;
  }

  .nav-dropdown > a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: #f8f8f8;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    flex-direction: column;
  }

  .dropdown-menu a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-radius: 0;
    font-size: 13px;
    border-bottom: 1px solid #efefef;
  }

  .nav-dropdown::after {
    display: none;
  }

  .cta-header {
    display: block;
    padding: 12px 24px;
    margin: 0;
    border: none;
    background: var(--navy);
    color: white !important;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .header-content {
    padding: 0.75rem 1rem;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 16px;
  }

  .cta-header {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero {
    height: 380px;
  }

  .slide {
    height: 380px;
    padding: 2.5rem 1rem 5.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .cta-primary {
    padding: 12px 20px;
    font-size: 14px;
  }

  nav {
    gap: 0.4rem;
  }

  .nav-dropdown > a {
    font-size: 11px;
  }

  .dropdown-menu {
    min-width: 180px;
    left: -15px;
    font-size: 12px;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .cta-section {
    padding: 2rem 1rem;
    margin: 2rem auto;
  }

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

  .footer-section h4 {
    font-size: 12px;
  }

  .footer-bottom {
    padding-top: 1rem;
  }
}
