/* === SEND Rights Helper — Site Styles === */
/* Designed for exhausted parents. Large text, high contrast, calm colours, no clutter. */

:root {
  --primary: #8B2252;
  --primary-light: #f5e8ef;
  --primary-dark: #5C1637;
  --accent: #d4a847;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;
  --bg-warm: #faf6f8;
  --border: #e3d8de;
  --link: #8B2252;
  --link-hover: #5C1637;
  --danger: #b44a3f;
  --max-width: 720px;
}

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

/* === Base === */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--accent);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.site-title:hover {
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: white;
  border-bottom-color: var(--accent);
}

/* === Hero === */
.hero {
  background: var(--primary-light);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* === Main content === */
main {
  padding: 2.5rem 0 4rem;
}

main h1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

main h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

main h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

main h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

main p {
  margin-bottom: 1rem;
}

main ul, main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.4rem;
}

main a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

main a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card a.card-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* === Highlight box === */
.highlight {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.highlight p {
  margin-bottom: 0.5rem;
}

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

/* === Warning box === */
.warning {
  background: #fef3e8;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

/* === Feature list (landing page) === */
.features {
  margin: 2rem 0;
}

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

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Table === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--primary-dark);
}

/* === Footer === */
footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--text-light);
  text-decoration: underline;
}

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

/* === Responsive === */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

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

  .btn {
    text-align: center;
    width: 100%;
  }

  footer .container {
    flex-direction: column;
  }
}

/* === Accessibility === */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* === Print === */
@media print {
  header, footer, .btn, nav {
    display: none;
  }

  main {
    padding: 0;
  }

  body {
    font-size: 12pt;
  }
}
