/* Haven Support Site - Shared Styles */

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

:root {
  --primary: #E86A33;
  --primary-dark: #D45A23;
  --secondary: #1E3A5F;
  --secondary-light: #2D5A8A;
  --text: #1C1C1E;
  --text-secondary: #3C3C43;
  --text-tertiary: #8E8E93;
  --background: #FFFFFF;
  --surface: #FAFAFA;
  --border: #E5E5EA;
  --success: #34C759;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background-color: var(--secondary);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

/* Main Content */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.last-updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.subsection-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section ul li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.contact-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.contact-email {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Intro card */
.intro-card {
  background-color: #FFF5F0;
  border: 1px solid #FFE0D0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

/* Legal text emphasis */
.legal-caps {
  text-transform: uppercase;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
  .page-title {
    font-size: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .header-inner {
    height: 56px;
  }

  .page-container {
    padding: 24px 16px 48px;
  }
}
