/* ============================================
   Wayfinder's Companion - Static Pages
   txt.css - Shared styles for /txt/* pages
   ============================================ */

/* Base Reset & Typography */
.txt-page {
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background: #fafafa;
  color: #1f2937;
  line-height: 1.6;
}

/* Page Header */
.txt-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.txt-header--amber {
  background: #d97706;
  border-bottom: none;
}

.txt-header--amber .txt-header__title {
  color: white;
}

.txt-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.txt-header__back:active {
  background: #e5e7eb;
}

.txt-header--amber .txt-header__back {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.txt-header--amber .txt-header__back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.txt-header__title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Container */
.txt-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.txt-container--wide {
  max-width: 900px;
}

@media (min-width: 768px) {
  .txt-container {
    padding: 40px 24px;
  }
}

/* ============================================
   Markdown Content Styles
   ============================================ */

.markdown-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.markdown-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1f2937;
}

.markdown-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #374151;
}

.markdown-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #4b5563;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.markdown-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #4b5563;
}

.markdown-content a {
  color: #d97706;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

/* Blockquote - amber top accent instead of left border */
.markdown-content blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: #fffbeb;
  border-radius: 8px;
  border-top: 3px solid #d97706;
  color: #92400e;
}

.markdown-content blockquote p {
  color: #92400e;
  margin-bottom: 0;
}

.markdown-content blockquote p + p {
  margin-top: 12px;
}

.markdown-content code {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 4px;
}

.markdown-content pre {
  margin: 16px 0;
  padding: 16px;
  background: #1f2937;
  color: #f9fafb;
  border-radius: 8px;
  overflow-x: auto;
}

.markdown-content pre code {
  padding: 0;
  background: none;
}

.markdown-content hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.markdown-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

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

.markdown-content th {
  background: #f9fafb;
  font-weight: 600;
}

/* ============================================
   Support Page Components
   ============================================ */

/* Hero intro card - amber top accent instead of left border */
.txt-hero {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #d97706;
}

.txt-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.txt-hero p {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 12px;
}

.txt-hero p:last-child {
  margin-bottom: 0;
}

/* Section cards */
.txt-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.txt-section:last-child {
  margin-bottom: 0;
}

.txt-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.txt-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fef3c7;
  border-radius: 10px;
  color: #d97706;
  flex-shrink: 0;
}

.txt-section__icon--teal {
  background: #e0f2f1;
  color: #0d9488;
}

.txt-section__icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.txt-section__icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.txt-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.txt-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 20px 0 8px 0;
}

.txt-section h3:first-of-type {
  margin-top: 0;
}

.txt-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 12px;
}

.txt-section p:last-child {
  margin-bottom: 0;
}

.txt-section a {
  color: #d97706;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.txt-section a:hover {
  color: #b45309;
  text-decoration: underline;
}

/* Muted/placeholder section */
.txt-section--muted {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

.txt-section--muted h2 {
  color: #6b7280;
}

.txt-section--muted p {
  color: #9ca3af;
  font-size: 14px;
}

/* Values grid */
.txt-values {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.txt-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.txt-value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 6px;
  color: #d97706;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.txt-value__text {
  flex: 1;
  min-width: 0;
}

.txt-value__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.txt-value__desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* CTA Button */
a.txt-cta,
.txt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #d97706;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}

a.txt-cta:hover,
.txt-cta:hover {
  background: #b45309;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.txt-cta:active {
  transform: translateY(0);
}

/* ============================================
   Contact/Impressum Components
   ============================================ */

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.15);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #fff;
}

/* Solid colors for contact icons - no gradients */
.contact-card__icon--instagram {
  background: #e1306c;
}

.contact-card__icon--email {
  background: #3b82f6;
}

.contact-card__icon--whatsapp {
  background: #25d366;
}

.contact-card__icon--signal {
  background: #3a76f0;
}

.contact-card__icon--imessage {
  background: #10b981;
}

.contact-card__icon--phone {
  background: #374151;
}

.contact-card__label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

/* Impressum section */
.impressum-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
}

.impressum-section h2 {
  margin: 0 0 4px 0;
  font-size: 24px;
}

.impressum-section > p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

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

@media (min-width: 640px) {
  .impressum-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.impressum-item h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.impressum-item p,
.impressum-item address {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}

/* Thanks grid */
.thanks-section {
  margin: 40px 0;
}

.thanks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .thanks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .thanks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thanks-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid;
}

.thanks-card--amber {
  background: #fffbeb;
  border-color: #fcd34d;
}

.thanks-card--blue {
  background: #eff6ff;
  border-color: #93c5fd;
}

.thanks-card--emerald {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.thanks-card--rose {
  background: #fff1f2;
  border-color: #fda4af;
}

.thanks-card--indigo {
  background: #eef2ff;
  border-color: #a5b4fc;
}

.thanks-card--slate {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.thanks-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.thanks-card__icon--amber {
  color: #f59e0b;
}
.thanks-card__icon--blue {
  color: #3b82f6;
}
.thanks-card__icon--emerald {
  color: #10b981;
}
.thanks-card__icon--rose {
  color: #f43f5e;
}
.thanks-card__icon--indigo {
  color: #6366f1;
}
.thanks-card__icon--slate {
  color: #64748b;
}

.thanks-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.thanks-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.thanks-card ul {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.thanks-card li {
  padding: 4px 0;
}

.thanks-card a {
  color: #3b82f6;
  text-decoration: none;
}

.thanks-card a:hover {
  text-decoration: underline;
}

/* ============================================
   About Page - Bento Layout
   ============================================ */

/* Hero Section */
.about-hero {
  text-align: center;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .about-hero {
    text-align: left;
    margin-bottom: 48px;
  }
}

.about-hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 16px 0;
}

@media (min-width: 768px) {
  .about-hero__title {
    font-size: 52px;
  }
}

.about-hero__br {
  display: none;
}

@media (min-width: 768px) {
  .about-hero__br {
    display: block;
  }
}

.about-hero__accent {
  color: #d97706;
}

.about-hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 540px;
  margin: 0;
}

@media (min-width: 768px) {
  .about-hero__subtitle {
    font-size: 18px;
  }
}

/* Bento Grid - Two Columns */
.about-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .about-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
}

@media (min-width: 768px) {
  .about-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
  }
}

/* Bento Cards */
.about-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
}

.about-card--large {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .about-card--large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.about-card--wide {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .about-card--wide {
    grid-column: span 2;
  }
}

.about-card.about-card--leafshell {
  background: linear-gradient(135deg, #ecfccb 0%, #f0fdf4 100%);
  border-color: #86efac;
  text-decoration: none;
}

.about-card.about-card--leafshell:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #d9f99d 0%, #dcfce7 100%);
}

.about-card--leafshell .about-card__title {
  color: #1f2937;
}

.about-card--leafshell .about-card__text {
  color: #374151;
}

.about-card__img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.about-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.about-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.about-card__icon--small {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.about-card__icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.about-card__icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.about-card__icon--emerald {
  background: #d1fae5;
  color: #059669;
}

.about-card__icon--rose {
  background: #ffe4e6;
  color: #e11d48;
}

.about-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px 0;
}

.about-card__title--large {
  font-size: 24px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .about-card__title--large {
    font-size: 28px;
  }
}

.about-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.about-card__text--large {
  font-size: 16px;
  line-height: 1.7;
  flex: 1;
}

.about-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #d97706;
}

/* Article Content */
.about-article {
  max-width: 720px;
  margin: 0 auto;
}

.about-article p {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 16px;
}

.about-article a {
  color: #d97706;
  text-decoration: none;
}

.about-article a:hover {
  text-decoration: underline;
}

.about-article h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 40px 0 16px 0;
}

/* Lead Quote */
.about-lead {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #6b7280;
  margin: 0 0 32px 0;
}

/* What Ultreia Offers Box */
.about-offers {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}

.about-offers__title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.about-offers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .about-offers__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-offers__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #374151;
}

.about-offers__list svg {
  color: #d97706;
  flex-shrink: 0;
}

/* No frills tagline */
.about-nofrills {
  font-style: italic;
  color: #6b7280;
  margin-top: 24px;
}

/* Values list */
.about-values {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.about-values li {
  font-size: 15px;
  color: #374151;
  padding-left: 20px;
  position: relative;
}

.about-values li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* Closing Section */
.about-closing {
  text-align: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.about-closing h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.about-closing p {
  color: #6b7280;
  margin-bottom: 16px;
}

.about-closing__tagline {
  font-size: 20px;
  font-weight: 700;
  color: #d97706;
  margin: 0;
}
