/* All-State-Insurance.com Premium Theme Stylesheet */

:root {
  --color-bg: #090d1a;
  --color-surface: rgba(25, 34, 57, 0.5);
  --color-border: rgba(255, 255, 255, 0.07);
  --color-primary: #3b82f6;      /* Cobalt Blue */
  --color-primary-hover: #2563eb;
  --color-accent: #f59e0b;       /* Solvency Gold */
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --font-sans: 'Outfit', sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.insurance-theme {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header styling */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(9, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shield-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.shield-svg {
  width: 24px;
  height: 24px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  font-weight: 700;
}

.cta-phone-icon {
  font-size: 1rem;
}

.cta-phone-number {
  color: var(--color-text-main);
  font-size: 0.9rem;
}

/* Layout Wrapper */
.layout-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 10;
}

/* Navigation */
.global-nav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(10px);
}

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

.nav-item a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-item a:hover, .nav-item.active a {
  color: var(--color-primary);
}

/* Hero Section */
.quote-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .quote-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Quote Form Card */
.quote-form-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-main);
}

.tab-btn.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tab-icon {
  font-size: 1.25rem;
}

.zip-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

@media (max-width: 500px) {
  .zip-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.zip-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zip-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.875rem 1rem;
  width: 100%;
  transition: var(--transition-smooth);
}

.zip-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.quote-submit-btn {
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.875rem 1.5rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

.arrow-icon {
  font-weight: 900;
}

.form-disclosure {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Grid layout columns */
.grid-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.main-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.post-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.post-title a {
  text-decoration: none;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.post-title a:hover {
  color: var(--color-primary);
}

.read-time-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Page content */
.post-content {
  line-height: 1.75;
  font-size: 1.05rem;
  color: #e2e8f0;
}

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

.post-content img.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.post-content br {
  margin-bottom: 1rem;
}

/* Sidebar styling */
.insurance-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.highlight-card {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(25, 34, 57, 0.5) 0%, rgba(13, 20, 38, 0.5) 100%);
}

.card-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

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

.guide-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.guide-link:hover {
  color: var(--color-primary);
}

/* Footer styling */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: rgba(9, 13, 26, 0.95);
  margin-top: auto;
  z-index: 10;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-primary);
}

.bullet {
  color: rgba(255, 255, 255, 0.1);
}

.disclosure-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

.copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
