:root {
  --primary: #dc2626;
  --primary-light: #ef4444;
  --primary-dark: #b91c1c;
  --secondary: #0f172a;
  --muted: #64748b;
  --background: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
}

[data-theme="dark"] {
  --primary: #ef4444;
  --primary-light: #f87171;
  --primary-dark: #dc2626;
  --secondary: #f1f5f9;
  --muted: #94a3b8;
  --background: #0f172a;
  --card: #1e293b;
  --border: #334155;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #ef4444;
    --primary-light: #f87171;
    --primary-dark: #dc2626;
    --secondary: #f1f5f9;
    --muted: #94a3b8;
    --background: #0f172a;
    --card: #1e293b;
    --border: #334155;
  }
}

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--secondary);
  background: var(--background);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--secondary);
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.8;
}

.brand strong {
  font-size: 1.1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  
  .brand {
    font-size: 0.85rem;
  }
  
  .brand strong {
    font-size: 0.95rem;
  }
  
  .brand-logo {
    height: 36px;
  }
}

.brand-mark {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  margin-left: auto;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.quote-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  white-space: nowrap;
}

.quote-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.phone-link,
.email-link {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white !important;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.email-link {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.phone-link:hover,
.email-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.email-link:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .nav {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .phone-link,
  .email-link {
    font-size: 1.2rem;
    padding: 0.4rem 0.5rem;
  }
  
  .phone-link span:last-child,
  .email-link span:last-child {
    display: none;
  }
  
  .quote-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }
  
  .theme-toggle {
    padding: 0.4rem;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 0.4rem;
  }
  
  .phone-link,
  .email-link {
    font-size: 1rem;
    padding: 0.35rem 0.45rem;
  }
  
  .quote-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    text-align: center;
  }
  
  .theme-toggle {
    padding: 0.35rem;
    font-size: 0.9rem;
  }
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  font-size: 1.25rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: var(--background);
}

/* Bin size selection cards */
.bin-size-section {
  margin: 1.5rem 0;
}

.bin-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .bin-size-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .bin-size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bin-card {
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.bin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bin-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.bin-card:hover::before {
  opacity: 1;
}

.bin-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3), inset 0 0 0 2px var(--primary);
  transform: translateY(-2px);
}

.bin-card.selected::before {
  opacity: 0;
}

.bin-card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.bin-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: grayscale(0.3);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.bin-card:hover .bin-icon,
.bin-card.selected .bin-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.bin-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.bin-dimensions {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1.2rem;
}

.bin-price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 0.25rem;
}

.bin-weight {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--background);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.25rem;
}

/* Date selection side-by-side layout */
.date-selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .date-selection-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pricing information section */
.pricing-info-section {
  background: var(--background);
  border: 3px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.extra-time-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rate-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--card);
  border-radius: 0.5rem;
  border: 2px solid var(--border);
}

.rate-info.active {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.05);
}

.rate-label {
  font-size: 0.9rem;
  color: var(--secondary);
}

.rate-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.current-charge {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.charge-indicator {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--secondary);
  font-size: 0.9rem;
}

.service-list li strong {
  display: inline;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Inline calendar styles */
.inline-calendar {
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  background: var(--primary);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.calendar-nav button:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.calendar-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

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

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--background);
  color: var(--secondary);
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background: var(--primary-light);
  color: white;
  transform: scale(1.05);
}

.calendar-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: var(--muted);
}

.calendar-day.other-month {
  opacity: 0.4;
  color: var(--muted);
}

.calendar-day.today {
  border-color: var(--primary);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.calendar-day.weekend:not(.disabled):not(.other-month) {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

.calendar-day.holiday:not(.disabled):not(.other-month) {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  font-weight: 600;
}

.calendar-day.weekend.selected,
.calendar-day.holiday.selected {
  background: var(--primary);
  color: white;
}

.calendar-day.in-range {
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
}

@media (max-width: 600px) {
  .inline-calendar {
    max-width: 100%;
  }
}

/* Hide admin buttons by default (not on admin page) */
.admin-btn {
  display: none !important;
}

@media (max-width: 375px) {
  .email-link {
    display: none;
  }
}

@media (max-width: 345px) {
  .phone-link {
    display: none;
  }
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn:hover {
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.contact-banner {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 3rem 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  border-bottom: 4px solid #991b1b;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
  .hero-logo {
    width: 240px;
    height: 240px;
  }
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.btn-hero {
  background: white;
  color: #dc2626;
  padding: 1.5rem 4rem;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.btn-hero:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.contact-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: transform 0.2s;
  padding: 1rem 2rem;
  border-radius: 999px;
}

.contact-link-phone {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.contact-link-phone:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.contact-link-email {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.contact-link-email:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.contact-icon {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .btn-hero {
    padding: 1.25rem 3rem;
    font-size: 1.5rem;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .contact-link {
    font-size: 1.2rem;
  }
  
  .contact-icon {
    font-size: 1.75rem;
  }
}

.hero-text-section {
  padding: 4rem 0;
  text-align: center;
  background: var(--background);
}

.hero-text-section h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  margin-bottom: 1rem;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.1);
}

.hero-text-section p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
}

.featured-image-section {
  padding: 3rem 0;
  background: var(--background);
}

.featured-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
  border: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(220, 38, 38, 0.4);
}

.perfect-for {
  padding: 3rem 0;
  background: var(--background);
}

.perfect-card {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.perfect-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.perfect-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.info {
  padding: 2rem 0 4rem;
}

.info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.info h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.info-with-image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.3s;
  border: 3px solid var(--primary);
}

.info-image:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .info-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
}

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.page > .container > p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.1);
}

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

.card label {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  background: var(--card);
  color: var(--secondary);
}

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

.pricing-result {
  display: grid;
  gap: 1rem;
  border-color: var(--primary);
}

.pricing-result h3 {
  color: var(--primary);
}

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

.pricing-grid div {
  background: var(--background);
  border: 2px solid var(--primary);
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.pricing-grid strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.note {
  color: var(--muted);
  margin-top: 0.75rem;
}

.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  opacity: 0.8;
}

.footer-phone {
  color: #ef4444;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: #f87171;
  text-decoration: underline;
}
