/* ============================================
   Red Lane Consulting — Stylesheet
   Colors: Navy (#1a365d), Slate Blue (#2b6cb0)
   Style: Minimal, content-first
   ============================================ */

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

:root {
  --navy: #1a365d;
  --blue: #2b6cb0;
  --blue-light: #3b82f6;
  --blue-subtle: #ebf4ff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --white: #ffffff;
  --max-width: 1100px;
  --content-width: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--blue);
}

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

.site-nav a {
  color: var(--gray-600);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray-700);
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .cta-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero .cta-link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* --- Section --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.section-title-center {
  text-align: center;
}

/* --- Article Cards --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-card {
  display: block;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
}

.article-card:first-child {
  padding-top: 0;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card:hover .article-card-title {
  color: var(--blue);
}

.article-card-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--gray-400);
  border-radius: 50%;
}

.article-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.article-card-excerpt {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.view-all-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.view-all-link:hover {
  color: var(--navy);
}

/* --- Article Archive / Search --- */
.search-bar {
  margin-bottom: 2.5rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
  display: none;
}

/* --- Article Featured Image --- */
.article-featured-image {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.article-featured-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --- Single Article --- */
.article-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--gray-400);
  border-radius: 50%;
}

.article-content {
  padding: 0 0 4rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.35rem;
  color: var(--gray-700);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray-700);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  color: var(--gray-600);
  font-style: italic;
}

.article-content code {
  font-family: var(--font-mono);
  background: var(--gray-50);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

.article-content pre {
  background: var(--gray-800);
  color: var(--gray-100);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content a {
  color: var(--blue);
  border-bottom: 1px solid transparent;
}

.article-content a:hover {
  border-bottom-color: var(--blue);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-back:hover {
  color: var(--blue);
}

/* Article share links */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.article-share span {
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 500;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--gray-600);
  transition: background 0.2s, color 0.2s;
}

.share-link:hover {
  background: var(--blue-subtle);
  color: var(--blue);
}

.share-link svg {
  width: 18px;
  height: 18px;
}

/* --- About Page --- */
.about-content {
  padding: 3rem 0 4rem;
}

.about-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 2.5rem 0 1rem;
}

.about-content p {
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

.about-content .focus-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.focus-card {
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
}

.focus-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.focus-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--blue-subtle);
  border-radius: 8px;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

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

/* --- Carousel --- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
}

.carousel-inner {
  display: flex;
  align-items: stretch;
  color: inherit;
  min-height: 320px;
}

.carousel-inner:hover .carousel-title {
  color: var(--blue);
}

.carousel-image {
  flex: 0 0 42%;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: 12px 0 0 12px;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.carousel-inner:hover .carousel-image img {
  transform: scale(1.03);
}

.carousel-content {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.carousel-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.carousel-hook {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
}

.carousel-cta {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.carousel-inner:hover .carousel-cta {
  color: var(--navy);
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--blue-subtle);
  border-color: var(--blue);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-600);
}

.carousel-btn:hover svg {
  stroke: var(--blue);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300, #cbd5e0);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* --- About Page — Profile Photo --- */
.about-profile {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.about-photo-wrap {
  flex: 0 0 160px;
}

.about-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.about-photo-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.about-intro {
  flex: 1;
  padding-top: 0.25rem;
}

.about-intro h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-intro p {
  color: var(--gray-700);
  margin-bottom: 0;
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

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

  .hero .tagline {
    font-size: 1.1rem;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .article-card-title {
    font-size: 1.15rem;
  }

  .about-content .focus-areas {
    grid-template-columns: 1fr;
  }

  /* Carousel — stack on mobile */
  .carousel-inner {
    flex-direction: column;
    min-height: unset;
  }

  .carousel-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 12px 12px 0 0;
  }

  .carousel-content {
    padding: 1.5rem;
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  /* About profile — stack on mobile */
  .about-profile {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .about-intro h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }
}
