/* 
  FIXBUCKET — SMART INSURANCE PLANNING PLATFORM — BASE STYLES & RESET
*/

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-thai);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 80px; /* Space for mobile sticky bottom CTA */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-thai);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--color-text-muted);
  font-size: var(--font-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utility */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-form {
  max-width: var(--max-width-form);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

.section-alt {
  background-color: var(--color-surface);
}

.section-navy {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.section-navy h2, 
.section-navy h3, 
.section-navy p {
  color: var(--color-text-inverse);
}

.section-navy p {
  opacity: 0.9;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-subtitle {
  color: var(--color-brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--font-sm);
  margin-bottom: var(--space-2);
  display: block;
  font-family: 'Inter', sans-serif;
}

.section-description {
  font-size: var(--font-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Flex & Grid Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Badge & Highlights */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.badge-gold {
  background-color: var(--color-accent-light);
  color: #92400E;
}

.badge-navy {
  background-color: rgba(15, 23, 42, 0.08);
  color: var(--color-primary);
}

.badge-burgundy {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

/* Glassmorphism Effect */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Accent Highlight */
.text-gold    { color: var(--color-accent); }
.text-burgundy { color: var(--color-secondary); }
.text-navy    { color: var(--color-primary); }
.text-blue    { color: var(--color-brand-blue); }
.text-emerald { color: var(--color-brand-emerald); }

/* Sticky Mobile Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .sticky-mobile-bar { display: none; }
}

/* Problem Cards */
.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-lg);
}
.problem-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.problem-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.problem-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
