/* Vooyfarma CSS Stylesheet - Premium Design System */

:root {
  /* Colors */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-secondary: #F1F5F9;
  
  --brand-navy: #0B1528;
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-blue-light: #EFF6FF;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-light: #64748B;
  
  --accent-teal: #0D9488;
  --accent-teal-light: #F0FDFA;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  
  --border-color: rgba(226, 232, 240, 0.8);
  --border-focus: #3B82F6;
  
  --danger: #E11D48;
  --danger-light: #FFF1F2;
  
  /* Layout & Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0, transparent 40%),
    radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.02) 0, transparent 40%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s, text-decoration-color 0.2s;
  font-weight: 500;
}

a:hover {
  color: var(--brand-blue-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
}

.logo-dot {
  color: var(--brand-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.btn-cta {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Layout Grid */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .layout-grid {
    grid-template-columns: 8fr 4fr;
    align-items: start;
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.byline-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  max-width: 800px;
  margin: 0 auto;
}

/* Comparison Widget */
.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem auto 1.5rem;
  max-width: 800px;
  box-shadow: var(--shadow-md);
}

.comparison-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.comparison-country {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.country-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.country-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.country-price.us {
  color: var(--brand-navy);
}

.country-price.mexico {
  color: var(--accent-teal);
}

.country-price-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.bar-container {
  height: 12px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.us {
  background-color: var(--brand-navy);
  width: 100%;
}

.bar-fill.mexico {
  background-color: var(--accent-teal);
  width: 30%;
}

.comparison-savings-banner {
  background-color: var(--accent-teal-light);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.savings-badge {
  background-color: var(--accent-teal);
  color: #ffffff;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Sidebar Widgets */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 6.5rem;
}

/* Sticky Waitlist Form */
.waitlist-widget {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #172554 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.waitlist-widget h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.waitlist-widget p {
  color: #93C5FD;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.waitlist-input::placeholder {
  color: #94A3B8;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-waitlist {
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-waitlist:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.waitlist-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #60A5FA;
  text-align: center;
  margin-bottom: 0;
}

/* Key Takeaways Grid */
.takeaways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .takeaways-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.takeaway-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.takeaway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.takeaway-icon {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.takeaway-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--brand-navy);
}

.takeaway-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Article Layout & Typography overrides for reading */
.article-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .article-container {
    padding: 3.5rem;
  }
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Callout Box */
.callout-box {
  background-color: var(--brand-blue-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.callout-box strong {
  color: var(--brand-navy);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--danger-light);
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Table of Contents Widget */
.toc-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.toc-widget h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-item a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s, padding-left 0.15s;
}

.toc-item a::before {
  content: "→";
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.15s;
}

.toc-item a:hover {
  color: var(--brand-blue);
  padding-left: 4px;
}

.toc-item a:hover::before {
  opacity: 1;
}

/* Beautiful Data Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.data-table th {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.data-table td {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

.data-table tbody tr:hover {
  background-color: var(--brand-blue-light);
}

.data-table .city-cell {
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
}

/* Bullet list overrides */
ul.checked-list {
  list-style: none;
  margin: 1.5rem 0;
}

ul.checked-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

ul.checked-list li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  top: 0.15rem;
  color: var(--accent-teal);
  font-weight: 800;
  font-size: 1.1rem;
}

ul.checked-list.red-flags li::before {
  content: "✕";
  color: var(--danger);
}

/* FAQ Accordion Details */
.faq-container {
  margin: 2.5rem 0;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-blue);
  transition: transform 0.2s;
}

.faq-item[open] {
  border-color: var(--brand-blue);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-color);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.faq-answer p {
  margin: 0;
}

/* Sources Box */
.sources-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.sources-box strong {
  color: var(--brand-navy);
  display: block;
  margin-bottom: 0.5rem;
}

.sources-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sources-box a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-color);
}

.sources-box a:hover {
  color: var(--brand-blue);
  text-decoration-color: var(--brand-blue);
}

/* Form Styling (Contact Page) */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* Static pages layout styles (About/Contact/Privacy) */
.static-page-header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.static-page-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .static-page-container {
    padding: 3.5rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--brand-navy);
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #64748B;
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
}

.footer-links h5 {
  color: #F8FAFC;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-list a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-link-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748B;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748B;
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: #94A3B8;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 640px) {
  .hero-section {
    padding: 1.5rem 0;
  }
  .article-container {
    padding: 1.5rem 1rem;
  }
  .toc-widget {
    padding: 1.25rem 1rem;
  }
  .comparison-card {
    padding: 1.25rem 1rem;
  }
  .country-price {
    font-size: 2rem;
  }
}
