/* CardHolder.au Authority Site Styles - 2026 Edition */

:root {
  --bg: #0e0f13;
  --panel: #151822;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --accent: #6ee7b7;
  --accent-2: #7c3aed;
  --border: #1f2430;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --info-bg: rgba(110,231,183,0.08);
  --info-border: rgba(110,231,183,0.25);
  --warning-bg: rgba(251,191,36,0.08);
  --warning-border: rgba(251,191,36,0.25);
  --tip-bg: rgba(124,58,237,0.08);
  --tip-border: rgba(124,58,237,0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(110,231,183,0.12), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(124,58,237,0.2), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Typography - High-end publication feel */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 20px; }
h3 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 16px; }
h4 { font-size: clamp(18px, 2.5vw, 22px); margin-bottom: 14px; }

p {
  margin: 0 0 20px;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a7f3d0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  position: sticky;
  top: 0;
  background: rgba(14,15,19,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: #0b0c10;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  background: rgba(110,231,183,0.08);
}

nav a.active {
  color: var(--accent);
  background: rgba(110,231,183,0.12);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero Section */
.hero {
  background: linear-gradient(140deg, rgba(124,58,237,0.15), rgba(110,231,183,0.06)), var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px 48px;
  box-shadow: var(--shadow);
  margin-bottom: 80px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.8;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(110,231,183,0.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 160ms ease, border 160ms ease;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card h3 {
  margin: 0;
  color: var(--text);
}

.card p {
  margin: 0;
  line-height: 1.7;
}

.chip {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(124,58,237,0.12);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-row span {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* Blog Card */
.blog-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(110,231,183,0.2), rgba(124,58,237,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-content {
  padding: 28px;
}

.blog-card-content .chip {
  margin-bottom: 12px;
}

.blog-card-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
}

.blog-card-content p {
  margin: 0 0 16px;
  font-size: 15px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th, td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
}

th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.table-actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.table-actions button:hover,
.table-actions button.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Quiz */
.quiz {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.quiz label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.quiz select,
.quiz input[type=range] {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}

.quiz select:focus {
  outline: none;
  border-color: var(--accent);
}

.result {
  padding: 20px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: 14px;
  line-height: 1.7;
}

/* Article/Blog Post Styles */
.article-header {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.article-header .chip {
  margin-bottom: 20px;
}

.article-header h1 {
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 36px;
  margin-bottom: 18px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px;
  padding-left: 24px;
  color: var(--muted);
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 17px;
}

/* Info Boxes */
.info-box {
  padding: 24px 28px;
  border-radius: 16px;
  margin: 32px 0;
}

.info-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-box p {
  margin: 0;
  font-size: 16px;
}

.info-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 8px;
  font-size: 15px;
}

.info-box.tip {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
}

.info-box.tip h4 {
  color: #a78bfa;
}

.info-box.info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
}

.info-box.info h4 {
  color: var(--accent);
}

.info-box.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.info-box.warning h4 {
  color: #fbbf24;
}

/* Key Takeaway Card */
.key-takeaway {
  background: linear-gradient(135deg, rgba(110,231,183,0.1), rgba(124,58,237,0.1));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 40px 0;
}

.key-takeaway h4 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.key-takeaway ul {
  margin: 0;
  padding-left: 20px;
}

.key-takeaway li {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 16px;
}

/* Author Bio */
.author-bio {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 60px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 6px;
  color: var(--text);
}

.author-info p {
  margin: 0;
  font-size: 15px;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 40px 0 60px;
  margin-bottom: 40px;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* Contact Form */
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 48px 32px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #0b0c10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  margin-bottom: 12px;
}

.amazon-disclosure {
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.2);
  border-radius: 10px;
  padding: 14px 20px;
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  margin-top: 16px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 24px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 0 0 24px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--muted);
}

/* About Page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-image {
  background: linear-gradient(135deg, rgba(110,231,183,0.2), rgba(124,58,237,0.2));
  border-radius: 24px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--bg);
}

.team-card h3 {
  margin: 0 0 8px;
}

.team-card .role {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 280px;
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,15,19,0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 14px 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  main {
    padding: 40px 20px 80px;
  }

  .hero {
    padding: 40px 24px;
    border-radius: 20px;
    margin-bottom: 60px;
  }

  section {
    margin-bottom: 60px;
  }

  .grid, .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-content {
    padding: 0;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .table-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-group {
    flex-direction: column;
  }

  .card {
    padding: 20px;
  }

  .contact-form {
    padding: 24px;
  }
}
