/* Meadow Lake Consulting — Shared Styles */

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

:root {
  --blue: #006aff;
  --blue-dark: #0055cc;
  --dark: #1a1a2e;
  --dark-light: #2a2a3e;
  --light: #f8f9fb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green: #22c55e;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a:hover {
  color: var(--blue-dark);
}

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

/* ---- Header ---- */

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.header-logo:hover {
  color: var(--dark);
}

.header-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--blue);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s;
}

.header-cta:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-700);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: background 0.15s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--gray-50);
  color: var(--dark);
}

.mobile-nav .header-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 16px;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 320px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 15px;
  color: var(--gray-300);
  transition: color 0.15s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--dark-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--gray-400);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ---- Section helpers ---- */

.section {
  padding: 80px 24px;
}

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

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 640px;
}

.section-dark .section-subtitle {
  color: var(--gray-400);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  line-height: 1.4;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Cards ---- */

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ---- Grid layouts ---- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Placeholder image slots ---- */

.placeholder-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.015) 10px,
    rgba(0,0,0,0.015) 20px
  );
}

.placeholder-img span {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ---- Form elements ---- */

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.1);
}

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

/* ---- Responsive ---- */

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

  .nav-toggle {
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section {
    padding: 56px 20px;
  }

  .section-title {
    font-size: 28px;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 40px 16px;
  }

  .card {
    padding: 24px;
  }
}
