/* TRADIE BUDDY - ORANGE THEME */
/* Colors from thetradiebuddy.com */

:root {
  --primary-orange: #FF6B35;
  --primary-dark: #E65A2B;
  --bg-cream: #FFF9F5;
  --bg-white: #FFFFFF;
  --bg-accent: #FFF5F0;
  --text-dark: #2D3436;
  --text-gray: #636E72;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #D63031;
  --info: #0984E3;
  --shadow-sm: 0 1px 3px rgba(255,107,53,0.1);
  --shadow-md: 0 4px 6px rgba(255,107,53,0.15);
  --shadow-lg: 0 10px 25px rgba(255,107,53,0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

/* NAVIGATION */
nav {
  background: white;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo span {
  color: var(--primary-orange);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-orange);
}

.nav-cta {
  background: var(--primary-orange);
  color: white;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all .3s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-accent) 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero .highlight {
  color: var(--primary-orange);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary-orange);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all .3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-orange);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all .3s;
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background: var(--bg-accent);
  transform: translateY(-2px);
}

/* FEATURES */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all .3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-orange);
}

.feature-card p {
  color: var(--text-gray);
}

/* DASHBOARD */
.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.dashboard-header p {
  color: var(--text-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  color: var(--text-gray);
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: .2;
  float: right;
}

/* VOICE RECORDING */
.voice-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.voice-header {
  text-align: center;
  margin-bottom: 3rem;
}

.voice-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.voice-header p {
  font-size: 1.25rem;
  color: var(--text-gray);
}

.voice-recorder {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin-bottom: 2rem;
}

.mic-button {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  font-size: 5rem;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255,107,53,.3);
}

.mic-button.recording {
  animation: pulse 1.5s infinite;
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.recording-status {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.recording-timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
  font-family: 'Courier New', monospace;
}

.voice-notes {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.voice-notes h2 {
  font-size: 1.75rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
}

.note-card {
  background: var(--bg-accent);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-orange);
  margin-bottom: 1rem;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.note-date {
  color: var(--text-gray);
  font-size: .875rem;
}

.note-duration {
  background: var(--primary-orange);
  color: white;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
}

.note-content {
  color: var(--text-dark);
  line-height: 1.6;
}

/* JOBS & CARDS */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.job-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border-left: 4px solid var(--primary-orange);
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.job-status {
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-quoted {
  background: var(--info);
  color: white;
}

.status-scheduled {
  background: var(--warning);
  color: var(--text-dark);
}

.status-done {
  background: var(--success);
  color: white;
}

.status-paid {
  background: var(--primary-orange);
  color: white;
}

.job-customer {
  color: var(--text-gray);
  margin-bottom: .5rem;
}

.job-date {
  color: var(--text-gray);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.job-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
}

/* QUOTES & INVOICES */
.quote-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.quote-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.quote-header {
  border-bottom: 3px solid var(--primary-orange);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.quote-title {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: .5rem;
}

.quote-number {
  color: var(--text-gray);
  font-size: 1rem;
}

.quote-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.detail-section h3 {
  color: var(--primary-orange);
  font-size: 1rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.detail-section p {
  color: var(--text-dark);
  margin-bottom: .25rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.items-table th {
  background: var(--bg-accent);
  color: var(--primary-orange);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .875rem;
}

.items-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg-accent);
  color: var(--text-dark);
}

.items-table tr:hover {
  background: var(--bg-cream);
}

.quote-total {
  text-align: right;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--primary-orange);
}

.total-row {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin-bottom: .5rem;
}

.total-label {
  color: var(--text-gray);
  font-weight: 600;
}

.total-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
}

/* CALENDAR */
.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.calendar-nav button {
  background: white;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: .5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s;
}

.calendar-nav button:hover {
  background: var(--primary-orange);
  color: white;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.day-header {
  text-align: center;
  font-weight: 600;
  color: var(--primary-orange);
  padding: 1rem;
  background: var(--bg-accent);
  border-radius: 8px;
}

.day-cell {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}

.day-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.day-number {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.day-cell.today .day-number {
  background: var(--primary-orange);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-event {
  background: var(--bg-accent);
  border-left: 3px solid var(--primary-orange);
  padding: .5rem;
  margin-bottom: .5rem;
  border-radius: 4px;
  font-size: .875rem;
}

.calendar-event .time {
  color: var(--primary-orange);
  font-weight: 600;
}

/* PRICING */
.pricing {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all .3s;
  text-align: center;
}

.pricing-card.featured {
  border: 3px solid var(--primary-orange);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.plan-period {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.plan-features li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--bg-accent);
  color: var(--text-dark);
}

.plan-features li:before {
  content: "✓ ";
  color: var(--primary-orange);
  font-weight: 700;
  margin-right: .5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .stats-grid,
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .mic-button {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .quote-details {
    grid-template-columns: 1fr;
  }
}
