/*
Theme Name: Willow Insights
Theme URI: https://willowletting.co.uk/insights
Author: Willow Letting
Description: Insights theme matching Willow site header/footer with blog-focused layouts.
Version: 1.0.0
Text Domain: willow-insights
*/

:root {
  --willow-950: #1a3a3a;
  --willow-900: #1f4747;
  --willow-800: #2a5a5a;
  --willow-700: #357676;
  --willow-600: #3d8a8a;
  --willow-400: #6bb5b5;
  --willow-200: #c5e4e4;
  --willow-100: #e8f4f4;
  --willow-50: #f3f9f9;
  --slate-900: #2d3436;
  --slate-700: #4a5256;
  --slate-600: #636e72;
  --slate-500: #8395a7;
  --slate-400: #b2bec3;
  --slate-300: #dfe6e9;
  --slate-100: #f8f9fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--slate-100);
  color: var(--slate-700);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.willow-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 249, 249, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-300);
}

.willow-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.willow-brand {
  display: inline-flex;
  align-items: center;
}

.willow-brand img {
  display: block;
  width: auto;
  height: 44px;
}

.willow-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.92rem;
  color: var(--slate-700);
}

.willow-nav a {
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.willow-nav a:hover,
.willow-nav .current {
  border-color: var(--willow-700);
}

.willow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  min-height: 46px;
  padding: 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.willow-btn-primary {
  background: var(--willow-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(53, 118, 118, 0.28);
}

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

.willow-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.willow-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--willow-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.willow-mobile-panel {
  border-top: 1px solid var(--slate-300);
  background: var(--white);
  padding: 0.8rem 1.25rem 1rem;
}

.willow-mobile-nav {
  display: grid;
  gap: 0.35rem;
}

.willow-mobile-nav a {
  display: block;
  padding: 0.65rem 0.25rem;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-300);
}

.willow-mobile-nav a:last-child {
  border-bottom: 0;
}

.willow-mobile-contact-btn {
  margin-top: 0.45rem;
  text-align: center;
  border-radius: 10px;
  background: var(--willow-600);
  color: var(--white) !important;
  border: 0 !important;
}

.insights-hero {
  border-bottom: 1px solid var(--slate-300);
  background: linear-gradient(160deg, var(--willow-50), var(--slate-100));
}

.insights-hero-inner {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.insights-eyebrow {
  color: var(--willow-700);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.insights-title {
  margin: 0.75rem auto 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  color: var(--slate-900);
  line-height: 1.12;
}

.insights-intro {
  margin: 0.85rem auto 0;
  max-width: 64ch;
  color: var(--slate-600);
}

.insights-main {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  background: var(--white);
  padding: 1.2rem;
}

.post-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.28;
  color: var(--slate-900);
}

.post-thumb-link {
  display: block;
  margin: -1.2rem -1.2rem 0.9rem;
}

.post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--slate-300);
}

.post-meta {
  margin-top: 0.45rem;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.post-excerpt {
  margin-top: 0.65rem;
  color: var(--slate-700);
}

.post-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--willow-700);
  font-weight: 600;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.4rem;
}

.post-content,
.post-sidebar {
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  background: var(--white);
}

.post-content {
  padding: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--slate-900);
  line-height: 1.3;
}

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

.post-sidebar {
  padding: 1.2rem;
}

.post-sidebar h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.2rem;
}

.recent-posts {
  margin-top: 0.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.recent-posts a {
  color: var(--willow-700);
}

.recent-posts time {
  display: block;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.willow-pagination {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
}

.willow-footer {
  margin-top: 2rem;
  background: var(--willow-950);
  color: var(--slate-400);
}

.willow-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  padding: 4rem 0;
}

.willow-footer-brand,
.willow-footer-links,
.willow-footer-contact {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.willow-footer-logo {
  width: auto;
  height: 40px;
  filter: brightness(0) invert(1);
}

.willow-footer-heading {
  color: var(--willow-400);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.willow-footer-text,
.willow-footer-links a,
.willow-footer-contact p,
.willow-footer-contact a {
  color: var(--slate-500);
  font-size: 0.95rem;
  line-height: 1.55;
}

.willow-footer-links nav,
.willow-footer-contact address {
  display: grid;
  gap: 0.4rem;
  font-style: normal;
}

.willow-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.willow-footer-bottom-inner {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.willow-footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.willow-footer-links a:hover,
.willow-footer-contact a:hover,
.willow-footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .willow-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .willow-nav {
    display: none;
  }

  .willow-header-inner > .willow-btn {
    display: none;
  }

  .willow-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .post-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1180px, 100% - 1.25rem);
  }

  .willow-header-inner {
    min-height: 72px;
  }

  .willow-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .willow-footer-bottom-inner {
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
  }

  .willow-footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
