/* 
 * Conecta Shared Theme CSS
 * 
 * This file provides consistent typography, colors, and base styles
 * across all Conecta marketing pages.
 * 
 * Usage:
 * 1. Add Google Fonts link to <head>:
 *    <link rel="preconnect" href="https://fonts.googleapis.com">
 *    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *    <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap" rel="stylesheet">
 * 
 * 2. Add theme CSS link to <head> (before other component CSS):
 *    <link rel="stylesheet" href="components/css/theme.css">
 */

/* ============================================
   CSS VARIABLES (Color Palette & Design Tokens)
   ============================================ */
:root {
  /* Primary Colors (Green) */
  --green-900: #004D35;
  --green-800: #006847;
  --green-700: #1A7D5A;
  --green-600: #2A9D6E;
  --green-500: #3DBD84;
  --green-100: #E6F7F0;
  --green-50:  #F0FDF7;

  /* Accent Colors */
  --red-600: #DC2626;
  --red-500: #EF4444;
  --red-100: #FEE2E2;

  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-100: #FEF3C7;

  /* Text Colors */
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --ink-muted: #737373;

  /* Surface Colors */
  --surface: #FFFFFF;
  --surface-warm: #FDFCFA;
  --surface-cream: #FAF8F3;

  /* Border Radius */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(42, 103, 55, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================
   HEADINGS (DM Serif Display)
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h5 {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================
   BODY TEXT (DM Sans)
   ============================================ */
p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-light);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0 0 1em;
}

p.lead {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

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

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

/* Container utility (common max-width) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Highlight Box Component */
.highlight-box {
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
}

.highlight-box p {
  margin-top: 16px;
  margin-bottom: 0;
}

.highlight-box p:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Utility: Margin Top */
.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

/* Margin Utilities */
.m-0 {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.mt-8 {
  margin-top: 8px;
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   ============================================ */

/* Max Width Utilities */
.max-w-400 {
  max-width: 580px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-800 {
  max-width: 800px;
}

/* Margin Utilities */
.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mt-0 {
  margin-top: 0;
}

/* Display Utilities */
.block {
  display: block;
}

.flex {
  display: flex;
}

.flex-start {
  align-items: flex-start;
}

.gap-12 {
  gap: 12px;
}

/* Text Color Utilities */
.text-green-500 {
  color: var(--green-500);
}

.text-green-600 {
  color: var(--green-600);
}

.font-bold {
  font-weight: 800;
}

.border-none {
  border-bottom: none;
}

.pb-0 {
  padding-bottom: 0;
}

.italic {
  font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 104, 71, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 104, 71, 0.5);
    transform: scale(1.02);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 20px currentColor; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Animation Classes */
.swing-on-hover:hover {
  animation: swing 1.2s ease-in-out;
  transform-origin: top center;
}

.pulse-cta {
  animation: pulse 2s ease-in-out infinite;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SVG ICON CLASSES
   ============================================ */

.icon-checkmark {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 12px;
  margin-top: 4px;
  flex-shrink: 0;
  align-self: flex-start;
}

.icon-checkmark svg {
  width: 100%;
  height: 100%;
}

.icon-feature-emoji {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 8px;
}

.icon-feature-emoji svg {
  width: 100%;
  height: 100%;
}

.icon-speech {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-right: 6px;
}

.icon-speech svg {
  width: 100%;
  height: 100%;
  fill: var(--green-600);
}

.icon-feature {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.icon-feature svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* ============================================
   NAVIGATION (Optional - Legacy Styles)
   ============================================ */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-800);
  font-weight: 800;
  font-size: 1.5rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta {
  display: flex;
  gap: 12px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
}

/* ============================================
   BOOKKEEPING PAGE UTILITIES
   ============================================ */

.hero-bookkeeping,
.pricing-section,
.how-it-works-section,
.faq-section,
.page-shell > .cta-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero-bookkeeping {
  background: var(--surface-cream);
}

.pill-green {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: var(--radius-full);
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-luxury {
  background: var(--surface);
  border: 1px solid rgba(0, 104, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.form-luxury input[type='text'],
.form-luxury input[type='email'],
.form-luxury input[type='tel'] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-luxury input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(61, 189, 132, 0.2);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-message {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-message.success {
  background: var(--green-100);
  color: var(--green-800);
}

.form-message.error {
  background: var(--red-100);
  color: var(--red-600);
}

.feature-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.hero-features-grid h5 {
  margin-bottom: 8px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-lead {
  margin-bottom: 32px;
}

.hero-highlight-box {
  background: white;
  border: 1px solid var(--green-100);
}

.hero-highlight-title {
  margin-bottom: 12px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-text {
  font-size: 0.95rem;
}

/* Form Styles */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.honeypot-field {
  display: none !important;
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
}

.form-title {
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Pricing Section */
.pricing-section {
  background: white;
}

.pricing-header {
  margin-bottom: 64px;
}

.pricing-title {
  margin-bottom: 16px;
}

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

.pricing-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 32px 24px;
  text-align: center;
}

.pricing-tier .range {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.pricing-tier .price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--green-800);
}

.pricing-price-text {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-tier-featured {
  border: 2px solid var(--green-500);
}

.pricing-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* How it Works Section */
.how-it-works-section {
  background: var(--surface-cream);
}

.how-it-works-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.how-it-works-title {
  margin-bottom: 16px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.step-title {
  margin-bottom: 12px;
}

.step-description {
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  background: white;
}

.faq-header {
  max-width: 800px;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.faq-item {
  padding: 24px 28px;
  border: 1px solid rgba(0, 104, 71, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--green-600);
  transition: transform 0.2s ease;
}

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

.faq-item .faq-answer {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--green-100);
  color: var(--ink-light);
}

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

/* Final CTA Section */
.cta-section {
  background: var(--green-900);
  color: white;
  text-align: center;
}

.cta-title {
  color: white;
  margin-bottom: 24px;
}

.cta-text {
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
}

.cta-btn {
  background: var(--green-500);
  color: white;
  padding: 20px 40px;
  font-size: 1.1rem;
}

.cta-footer-text {
  font-size: 0.85rem;
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
}

/* Addon Price Style */
.price-addon {
  font-size: 2.5rem;
  font-family: 'DM Serif Display', serif;
  color: var(--green-800);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-features-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .card-luxury,
  .form-luxury {
    padding: 28px 20px;
  }

  .pricing-header,
  .how-it-works-header,
  .faq-header {
    margin-bottom: 40px;
  }

  .pricing-addons-grid {
    margin-top: 32px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-item {
    padding: 20px;
  }
}
