/* =============================================
   Our Wavelength — styles.css
   Warm, human, accessible
   ============================================= */

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

:root {
  /* Colour palette */
  --teal-dark:    #1a7b6b;
  --teal:         #2a9d8f;
  --teal-light:   #4db6a8;
  --teal-pale:    #e8f6f4;

  --orange:       #e76f51;
  --orange-light: #f4a261;
  --orange-pale:  #fdf0ea;

  --green-soft:   #52b788;
  --green-pale:   #edf7f1;

  --warm-white:   #faf9f7;
  --off-white:    #f5f2ef;
  --text-dark:    #2d2926;
  --text-mid:     #5a524a;
  --text-light:   #8a7f76;
  --border:       #e0d8d0;

  /* Typography */
  --font-body:    'Georgia', 'Times New Roman', serif;
  --font-ui:      'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-gap: 4rem;
  --container:   72rem;
  --radius:      0.75rem;
  --radius-sm:   0.4rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

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

li { margin-bottom: 0.4rem; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-gap);
}

.section--alt {
  background: var(--off-white);
}

.section--teal {
  background: var(--teal-pale);
}

.section--orange {
  background: var(--orange-pale);
}

.section--green {
  background: var(--green-pale);
}

/* --- Site Header / Nav --- */
.site-header {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

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

.site-logo__name {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-logo__tagline {
  font-size: 0.75rem;
  color: var(--teal-light);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--green-soft) 100%);
  color: #fff;
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  max-width: 52rem;
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 42rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-light);
  color: #fff;
}

.btn--outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

.btn--teal:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card__title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

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

.card a.card__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card a.card__link::after { content: ' →'; }
.card a.card__link:hover { color: var(--orange); }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  padding-block: 3.5rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 44rem;
}

/* --- Prose content --- */
.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  color: var(--teal-dark);
}

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

.prose h3 {
  color: var(--text-dark);
  margin-top: 1.75rem;
}

.prose blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-pale);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
}

.prose .highlight-box {
  background: var(--orange-pale);
  border: 1px solid #f4c4ae;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.prose .highlight-box h4 {
  color: var(--orange);
  margin-bottom: 0.4rem;
}

/* --- Tips / list sections --- */
.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tip-list li {
  padding: 1rem 1rem 1rem 3.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  position: relative;
  font-size: 0.98rem;
}

.tip-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.3rem;
}

/* --- Resource links --- */
.resource-group {
  margin-bottom: 3rem;
}

.resource-group h2 {
  color: var(--teal-dark);
  border-bottom: 2px solid var(--teal-pale);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.resource-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

.resource-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.resource-item__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.resource-item__body h4 {
  color: var(--teal-dark);
  margin-bottom: 0.2rem;
}

.resource-item__body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.resource-item__body a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Blog list --- */
.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog-card__meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-card__meta span {
  color: var(--teal);
}

.blog-card h3 {
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-card__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.blog-card__link:hover { color: var(--orange); }
.blog-card__link::after { content: ' →'; }

/* --- "Coming soon" banner --- */
.coming-soon {
  background: var(--teal-pale);
  border: 2px dashed var(--teal-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.coming-soon h3 {
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding-block: 3rem;
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 26rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Utility --- */
.text-teal   { color: var(--teal-dark); }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.mt-2  { margin-top: 2rem; }
.mb-2  { margin-bottom: 2rem; }
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin-block: 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --section-gap: 2.5rem; }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .site-nav {
    gap: 0.15rem;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
  }

  .hero {
    padding-block: 3rem 2.5rem;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

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