:root {
  --brand: #F36B21;
  --brand-dark: #C95216;
  --brand-soft: #FFF1E8;

  --text: #0F172A;
  --text-muted: #64748B;

  --border: #E2E8F0;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;

  --footer: #0F172A;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base body styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--brand);
  color: white;
}

/* HubSpot Form Styling */
.hs-form-frame {
  width: 100%;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form input[type="number"],
.hs-form textarea,
.hs-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--surface);
}

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

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

.hs-form .hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--brand);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.hs-form .hs-button:hover {
  background-color: var(--brand-dark);
}

.hs-form .hs-button:active {
  transform: scale(0.98);
}

.hs-form .hs-form-field {
  margin-bottom: 1rem;
}

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

.hs-form .hs-richtext {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Smooth transitions for interactive elements */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Rich Text / Content Styling */
.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
  color: #111827;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.text-content h1 { font-size: 2rem; }
.text-content h2 { font-size: 1.5rem; }
.text-content h3 { font-size: 1.25rem; }
.text-content h4 { font-size: 1.125rem; }

.text-content h1:first-child,
.text-content h2:first-child,
.text-content h3:first-child {
  margin-top: 0;
}

.text-content p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1em;
}

.text-content ul,
.text-content ol {
  color: #374151;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.text-content ul {
  list-style-type: disc;
}

.text-content ol {
  list-style-type: decimal;
}

.text-content li {
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.text-content a {
  color: var(--brand);
  text-decoration: underline;
}

.text-content a:hover {
  color: var(--brand-dark);
}

.text-content strong,
.text-content b {
  font-weight: 600;
  color: #111827;
}

.text-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1em;
  margin: 1.5em 0;
  color: #4b5563;
  font-style: italic;
}

.text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.text-content th,
.text-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75em 1em;
  text-align: left;
}

.text-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.text-content img {
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

.text-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}