/* Delta Analyst Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* CSS Variables for Brand Colors */
:root {
  --blue-primary: #1E5AA8;
  --blue-hover: #1A4F96;
  --charcoal: #2E2E2E;
  --beige: #F5F2EA;
  --green: #3BA55D;
  --orange: #E67E22;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.mono {
  font-family: 'Roboto Mono', monospace;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.py-1 { padding: 0.25rem 0; }
.py-2 { padding: 0.5rem 0; }
.py-3 { padding: 1rem 0; }
.py-4 { padding: 1.5rem 0; }
.py-5 { padding: 2rem 0; }
.py-6 { padding: 3rem 0; }

.px-1 { padding: 0 0.25rem; }
.px-2 { padding: 0 0.5rem; }
.px-3 { padding: 0 1rem; }
.px-4 { padding: 0 1.5rem; }

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--blue-primary);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 60px;
  width: auto;
}

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

.nav-link {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue-primary);
}

.nav-link.active {
  color: var(--blue-primary);
  border-bottom: 2px solid var(--blue-primary);
  padding-bottom: 2px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* Cart Icon */
.cart-icon {
  text-decoration: none;
  margin-left: 1.5rem;
  transition: transform 0.3s ease;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

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

/* Add to Cart Notification */
.add-to-cart-notification {
  background: white;
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.add-to-cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
}

/* Checkout Review Order - Traditional */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order-table thead th {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--gray-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table tbody td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-total {
  text-align: right;
  font-weight: 600;
  color: var(--blue-primary);
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  padding: 0.75rem 0;
  border-top: 1px solid var(--gray-light);
}

.woocommerce-checkout-review-order-table tfoot th {
  text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

.woocommerce-checkout-review-order-table .order-total {
  border-top: 2px solid var(--charcoal);
  font-size: 1.2rem;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  padding: 1rem 0;
}

/* WooCommerce Blocks Cart - Line Items */
.wp-block-woocommerce-cart-line-items-block .wc-block-cart-items__row {
  display: grid !important;
  grid-template-columns: 80px 1fr !important;
  gap: 1rem !important;
  padding: 1.5rem 0 !important;
  border-bottom: 1px solid var(--gray-light) !important;
  align-items: start !important;
}

/* Hide duplicate price in cart line items */
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
  display: none !important;
}

/* Keep only the main price visible in cart */
.wc-block-cart-item__prices {
  display: block !important;
}

/* Cart item image */
.wc-block-cart-item__image {
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0 !important;
}

.wc-block-cart-item__image img {
  border-radius: 8px !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Cart item details */
.wc-block-cart-item__product {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.wc-block-cart-item__product-name {
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  color: var(--charcoal) !important;
  margin-bottom: 0.25rem !important;
}

.wc-block-cart-item__product-metadata {
  font-size: 0.9rem !important;
  color: var(--gray-medium) !important;
}

/* WooCommerce Blocks Checkout - Order Summary */
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--beige);
  border-radius: 10px;
  padding: 1.5rem;
}

/* Hide duplicate price in blocks checkout line items */
.wc-block-components-order-summary-item__total-price {
  display: none !important;
}

/* Style the product name area to take full width */
.wc-block-components-order-summary-item__description {
  width: 100% !important;
  flex: 1 !important;
}

/* Ensure proper layout for order summary items */
.wc-block-components-order-summary-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Product image in blocks */
.wc-block-components-order-summary-item__image {
  width: 60px !important;
  height: 60px !important;
  margin-right: 1rem !important;
  flex-shrink: 0 !important;
}

.wc-block-components-order-summary-item__image img {
  border-radius: 8px !important;
  object-fit: cover !important;
}

/* Product name and description */
.wc-block-components-product-name {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--charcoal) !important;
  margin-bottom: 0.5rem !important;
}

.wc-block-components-order-summary-item__description {
  font-size: 0.9rem !important;
  color: var(--gray-medium) !important;
  line-height: 1.5 !important;
}

/* Totals section */
.wc-block-components-totals-footer-item {
  border-top: 2px solid var(--charcoal) !important;
  padding-top: 1rem !important;
  margin-top: 1rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--blue-primary) !important;
}

/* Subtotal and other totals */
.wc-block-components-totals-item {
  padding: 0.75rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.wc-block-components-totals-item__label {
  font-weight: 500 !important;
  color: var(--charcoal) !important;
}

.wc-block-components-totals-item__value {
  font-weight: 600 !important;
  color: var(--blue-primary) !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--blue-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-secondary:hover {
  background-color: var(--blue-primary);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card {
  text-align: center;
  position: relative;
}

.service-card h3 {
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin: 1rem 0;
}

.price-small {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-left: 0.5rem;
}

.deliverables {
  list-style: none;
  margin: 1rem 0;
}

.deliverables li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.deliverables li::before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Sections */
.section {
  padding: 3rem 0;
}

.section-bg {
  background-color: var(--beige);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Pricing Table */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-tier {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.pricing-tier h3 {
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--green);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--blue-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--blue-primary);
  border-radius: 50%;
  top: 1.5rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 1rem;
  background-color: var(--white);
  position: relative;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section {
  line-height: 1.8;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p {
  color: #ccc;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section strong {
  color: var(--white);
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #ccc;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #e1e5e9;
  margin-bottom: 1rem;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 0 1rem 0;
  display: none;
}

.faq-answer.active {
  display: block;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

/* Testimonial */
.testimonial {
  background: var(--beige);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--blue-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .grid {
    gap: 1rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .pricing-tier.featured {
    transform: none;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    background: none !important;
    color: var(--charcoal) !important;
  }
}