/* Miles 2 Wisdom Counseling - Unified Stylesheet */

:root {
  --blue: #A9C9FF;
  --beige: hsl(33, 38%, 94%);
  --sage: #A7C4A0;
  --charcoal: #333;
  --ink: #1f1f1f;
  --muted: #6b7280;
  --white: #fff;
  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: linear-gradient(180deg, var(--beige), #fff 45%);
  font-family: Lato, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

a:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - Unified across all pages */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 40px;
  transition: all var(--transition-smooth);
  will-change: padding, box-shadow;
}

header.shrink {
  padding: 12px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all var(--transition-smooth);
  flex: 0 0 auto;
}

.brand:hover {
  transform: translateY(-1px);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--transition-smooth);
  will-change: transform;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header.shrink .logo {
  transform: scale(0.85);
  width: 50px;
  height: 50px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand h1 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all var(--transition-smooth);
  line-height: 1.2;
}

header.shrink .brand h1 {
  font-size: 1.1rem;
}

.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  transition: all var(--transition-smooth);
  line-height: 1.1;
}

/* Navigation Styles */
nav[aria-label="Main Navigation"] {
  position: relative;
  flex: 1 1 auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  transition: all var(--transition-smooth);
}

nav li {
  position: relative;
  transition: all var(--transition-smooth);
}

nav a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(169, 201, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover,
nav a:focus {
  background: rgba(169, 201, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(169, 201, 255, 0.2);
}

nav ul li .btn {
  padding: 14px 18px;
  font-size: 0.92rem;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

.menu-btn {
  display: none;
  border: none;
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  font-size: 1.6rem;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  letter-spacing: 1px;
}

.menu-btn:hover {
  background: linear-gradient(135deg, var(--blue), #7db3f2);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(169, 201, 255, 0.3);
}

.menu-btn:active {
  transform: scale(0.95);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--charcoal);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.btn.alt {
  background: var(--sage);
  color: #0b1a10;
}

.btn.alt:hover {
  background: #8fb087;
}

/* Hero Section Styles */
.hero {
  position: relative;
  overflow: hidden;
  height: 120vh;
  margin-top: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .wrap {
  text-align: center;
  color: white;
  z-index: 3;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero h2 {
  font-family: Lora, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

/* Slideshow Styles */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.slideshow-inner img.active {
  opacity: 1;
  z-index: 2;
}

.slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.slideshow-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slideshow-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.slideshow-dots .dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.slideshow-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Hero GIF/Video Container Styles */
.hero-gif-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-gif,
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* Page Layout Styles */
main {
  padding: 60px 0;
}

.page-title {
  font-family: Lora, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}

.lead {
  color: #374151;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-family: Lora, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Grid & Card Styles */
.grid {
  display: grid;
  gap: 24px;
}

.two-col {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
  will-change: transform;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: #374151;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Services Page Specific Styles */
.services-intro {
  text-align: center;
  margin-bottom: 60px;
}

.services-category-header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

.services-category-header h2 {
  font-family: Lora, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 700;
}

.services-category-header p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: none;
  justify-items: center;
}

.service-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  padding: 30px 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon-svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon-svg svg {
  width: 40px;
  height: 40px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Exception for inline fill attributes - preserve them */
.service-icon-svg svg[fill="white"] {
  fill: white !important;
  stroke: none !important;
}

.service-icon-svg svg[fill="white"] path {
  fill: white !important;
  stroke: none !important;
}

/* SVG Icon Fill Overrides - Only for Family/Child/PreMarital filled icons */
.service-card:has(.service-type.family) .service-icon-svg svg,
.service-card:has(.service-type.child) .service-icon-svg svg,
.service-card:has(.service-type.premarital) .service-icon-svg svg {
  fill: white !important;
  stroke: none !important;
  width: 50px;
  height: 50px;
}

.service-card:hover .service-icon-svg {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

.service-card p {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-type {
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

.service-type.anxiety-depression {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-type.trauma {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-type.transitions {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-type.growth {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.service-type.couples {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.service-type.family {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.service-type.group {
  background: linear-gradient(135deg, #d4a5ff, #b19cd9);
}

.service-type.premarital {
  background: linear-gradient(135deg, #d299c2, #fef9d7);
}

.service-type.child {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.service-type.addiction {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-type.mindfulness {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-type.crisis {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-type.workplace {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

/* How We Help Section */
.help-section {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.05), rgba(167, 196, 160, 0.05));
  padding: 60px 0;
  margin: 80px 0;
  border-radius: var(--radius);
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.help-info-card,
.expect-card {
  padding: 40px;
}

.approach-list,
.expect-list {
  margin-top: 30px;
}

.approach-item,
.expect-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.approach-item:last-child,
.expect-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.approach-item h4,
.expect-item h4 {
  font-family: Lora, serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.approach-item p,
.expect-item p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.expect-step {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.insurance-banner {
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
}

.insurance-banner h3 {
  font-family: Lora, serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.insurance-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.insurance-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.feature-icon {
  background: var(--sage);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.insurance-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.insurance-cta .btn {
  min-width: 160px;
}

/* Form Styles */
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.apply-form-grid {
  grid-template-columns: 2fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 16px;
  font-family: inherit;
  transition: all var(--transition-smooth);
  width: 100%;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(169, 201, 255, 0.15);
  transform: translateY(-2px);
}

.field input.valid {
  border-color: var(--sage);
  background: rgba(167, 196, 160, 0.05);
}

.field input.error,
.field textarea.error,
.field select.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input[type="file"] {
  padding: 12px;
  border-radius: 12px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  background: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-smooth);
  width: 100%;
  cursor: pointer;
}

.field input[type="file"]:hover {
  border-color: var(--blue);
  background: rgba(169, 201, 255, 0.05);
}

.field-help {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.file-info {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: normal;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.checkbox-option:hover {
  background: rgba(169, 201, 255, 0.05);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

.checkbox-option span {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkbox-field {
  margin-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.field-error {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
}

.error-text {
  color: #ef4444;
  font-weight: 700;
  margin-top: 8px;
}

.small-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.submit-btn,
.button-row button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: white;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 48px;
}

.submit-btn:hover:not(:disabled),
.button-row button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled,
.button-row button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.button-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.form-message {
  font-weight: 600;
  padding: 8px 0;
  border-radius: 6px;
  margin-top: 12px;
}

.form-message.success {
  color: var(--sage);
}

.form-message.error {
  color: #ef4444;
}

.success-card,
.error-card {
  display: none;
  background: linear-gradient(135deg, #e8fbe9, #f0fdf4);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.error-card {
  background: linear-gradient(135deg, #fee, #fff5f5);
  border-color: #ef4444;
}

.success-card.visible,
.error-card.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.success-card h3,
.error-card h3 {
  font-family: Lora, serif;
  color: var(--charcoal);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.success-card p,
.error-card p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
}

.success-card p:last-child,
.error-card p:last-child {
  margin-bottom: 0;
}

/* Sidebar Styles */
.sidebar-card {
  position: sticky;
  top: 100px;
}

.info-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-section h4 {
  font-family: Lora, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.info-section p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.info-section ul {
  margin-left: 16px;
  color: #374151;
  font-size: 0.9rem;
}

.info-section ul li {
  margin-bottom: 4px;
}

/* Team Page Styles */
.team-intro {
  text-align: center;
  margin-bottom: 60px;
}

.team-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: Lora, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--charcoal);
}

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: none;
  justify-items: center;
}

.team-grid > *:only-child {
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto;
}

.team-card {
  cursor: pointer;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(169, 201, 255, 0.2);
  position: relative;
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #A9C9FF, #A7C4A0);
}

.team-card.non-clickable {
  cursor: default;
}

.team-card img {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #A9C9FF;
  margin: 0 auto 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(169, 201, 255, 0.25);
}

.team-card h3 {
  font-family: Lora, serif;
  font-size: 1.2rem;
  margin: 16px 0 8px 0;
  font-weight: 600;
  color: #333;
}

.team-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.team-role {
  background: linear-gradient(135deg, #A9C9FF, #A7C4A0);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(169, 201, 255, 0.2);
  border-color: #A9C9FF;
}

.team-card:hover img {
  transform: scale(1.08);
  border-color: #A7C4A0;
}

.team-card.non-clickable:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(169, 201, 255, 0.2);
  border-color: #A9C9FF;
}

.team-card.non-clickable:hover img {
  transform: scale(1.08);
  border-color: #A7C4A0;
}

/* Join Our Team Section */
.join-team-section {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.05), rgba(167, 196, 160, 0.05));
  padding: 60px 0;
  margin: 80px 0;
  border-radius: var(--radius);
}

.join-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.join-info-card,
.openings-card {
  padding: 40px;
}

.benefits-list,
.openings-list {
  margin-top: 30px;
}

.benefit-item,
.opening-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item:last-child,
.opening-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.benefit-item h4,
.opening-item h4 {
  font-family: Lora, serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.benefit-item p,
.opening-item p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.opening-type {
  background: var(--sage);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.join-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.join-cta-banner {
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
}

.join-cta-banner h3 {
  font-family: Lora, serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.join-cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 160px;
}

/* Shop Styles */
.shop-hero {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.1), rgba(167, 196, 160, 0.1));
  padding: 80px 20px;
  text-align: center;
}

.shop-hero h1 {
  font-family: Lora, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 700;
}

.shop-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.shop-section {
  padding: 60px 20px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.product {
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.product-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product h3 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.product-author {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-style: italic;
}

.product p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.actions .btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.9rem;
  text-align: center;
}

.coming-soon {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.05), rgba(167, 196, 160, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.coming-soon h3 {
  font-family: Lora, serif;
  font-size: 1.5rem;
  color: #9ca3af;
  font-weight: 600;
}

/* Modal Styles */
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-view-modal.open {
  display: flex;
  opacity: 1;
}

.quick-view-content {
  background: white;
  border-radius: 14px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.quick-view-modal.open .quick-view-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
}

.modal-image-wrapper {
  position: sticky;
  top: 0;
}

.quick-view-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-info h2 {
  font-family: Lora, serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--charcoal);
  font-weight: 700;
}

.modal-author {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 20px;
  font-style: italic;
}

.modal-desc {
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 30px;
}

.why-section {
  margin-bottom: 30px;
}

.why-section h4 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--charcoal);
  font-weight: 600;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.why-item {
  background: rgba(169, 201, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--blue);
}

.why-item h5 {
  font-family: Lora, serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.why-item p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.modal-actions .btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 1rem;
}

.close-modal-btn {
  background: var(--sage);
  color: #0b1a10;
}

.modal-buy {
  background: var(--charcoal);
}

/* CTA Bar */
.cta-bar {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.9), rgba(167, 196, 160, 0.9));
  color: #0f172a;
  padding: 50px 20px;
  margin-top: 60px;
}

.cta-container {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}

.cta-section {
  flex: 1;
  text-align: center;
  padding: 30px;
  min-width: 250px;
}

.cta-section h3 {
  font-family: Lora, serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.cta-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 20px;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #0f1419, #1a202c);
  color: #e2e8f0;
  padding: 50px 0 30px;
}

footer a {
  color: #cbd5e1;
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

footer a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

footer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footgrid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.footgrid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footgrid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.footer-logo {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 40px;
}

.footer-logo img {
  width: 80px;
  opacity: 0.85;
  transition: all var(--transition-smooth);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(169, 201, 255, 0.3);
}

.footer-logo img:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(169, 201, 255, 0.5);
}

.footer-copyright {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-attribution {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 10px;
}

.disclaimer {
  font-size: 0.85rem;
  color: #94a3b8;
}

.subtle {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Index Page Specific Styles */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.section-who-we-are {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(169, 201, 255, 0.02));
  padding: 100px 20px;
}

.section-what-we-offer {
  background: linear-gradient(180deg, rgba(169, 201, 255, 0.02), rgba(255, 255, 255, 0.5));
  padding: 100px 20px;
}

.section-how-we-help {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(167, 196, 160, 0.02));
  padding: 100px 20px;
}

.section-work-at-m2w {
  background: linear-gradient(180deg, rgba(167, 196, 160, 0.02), rgba(255, 255, 255, 0.5));
  padding: 100px 20px;
}

.section-quick-links {
  padding: 100px 20px;
}

/* Fix section headings - centered and proper font */
.section-wrapper h2,
.section-who-we-are h2,
.section-what-we-offer h2,
.section-how-we-help h2,
.section-work-at-m2w h2,
.section-quick-links h2 {
  font-family: Lora, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Fix Quick Links section - constrain image sizes */
.section-quick-links .service-card img {
  width: 100%;
  max-width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.section-quick-links .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
  margin-top: 50px;
}

.section-quick-links .service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.section-quick-links .service-card .btn {
  width: 100%;
}

.card-with-icon {
  text-align: center;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.card-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-value {
  position: relative;
  overflow: hidden;
  background: white;
}

.value-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #A9C9FF;
  transition: height 0.3s ease;
}

.card-value:hover .value-accent {
  height: 8px;
}

.card-value h3 {
  padding-top: 8px;
}

.card-benefit {
  text-align: center;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.benefit-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(135deg, #333, #2d3748);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.grid.two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-section {
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  padding: 100px 20px;
  margin-top: 60px;
}

.contact-section h2 {
  color: white;
  margin-bottom: 20px;
}

.contact-section .lead {
  color: rgba(255, 255, 255, 0.85);
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 60px auto 40px;
  max-width: 1100px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.95), rgba(167, 196, 160, 0.95));
  padding: 45px 40px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-card h4 {
  font-family: Lora, serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #0b1a10;
  font-weight: 700;
}

.contact-card h4 svg {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
}

.contact-card p {
  color: #1f1f1f;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-card a {
  color: #0b1a10;
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #1f1f1f;
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: #1f1f1f;
  margin-top: 16px;
  font-weight: 500;
}

/* Sticky Mobile CTA Button */
.sticky-mobile-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--charcoal);
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: none;
  white-space: nowrap;
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-mobile-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: var(--blue);
}

.behavioral-section {
  padding-top: 120px !important;
  padding-bottom: 80px !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out both;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .four-col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  nav ul li .btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }
  
  nav ul {
    justify-content: center;
    gap: 8px;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .three-col,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .four-col,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid,
  .apply-form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sidebar-card {
    position: static;
    order: -1;
  }
  
  .cta-container {
    flex-direction: column;
  }
  
  .cta-divider {
    height: 1px;
    width: 100%;
    margin: 20px 0;
  }
  
  .footgrid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .section-who-we-are,
  .section-what-we-offer,
  .section-how-we-help,
  .section-work-at-m2w,
  .section-quick-links {
    padding: 80px 20px;
  }
  
  .grid.two-col img {
    height: auto;
    min-height: 280px;
  }
  
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .help-grid,
  .join-team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .help-info-card,
  .expect-card,
  .join-info-card,
  .openings-card {
    padding: 30px 20px;
  }
  
  .insurance-banner,
  .join-cta-banner {
    padding: 40px 20px;
  }
  
  .insurance-banner h3,
  .join-cta-banner h3 {
    font-size: 1.5rem;
  }
  
  .insurance-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .insurance-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .modal-image-wrapper {
    position: static;
  }
}

@media (max-width: 840px) {
  .menu-btn {
    display: inline-flex !important;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    min-width: 52px;
    min-height: 52px;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  nav[aria-label="Main Navigation"] ul {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    transition: left 0.4s ease;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }

  nav[aria-label="Main Navigation"] ul.open {
    left: 0;
  }

  nav[aria-label="Main Navigation"] ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 80%;
    text-align: center;
    list-style: none;
  }

  nav[aria-label="Main Navigation"] ul.open li {
    opacity: 1;
    transform: translateX(0);
  }

  nav[aria-label="Main Navigation"] ul li a {
    padding: 16px 24px;
    font-size: 1.2rem;
    width: 100%;
    display: block;
    min-height: 56px;
  }
  
  nav[aria-label="Main Navigation"] ul li .btn {
    padding: 18px 32px;
    font-size: 1.1rem;
    margin-top: 10px;
  }
  
  header {
    padding: 12px 16px;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.7rem;
    opacity: 1;
    max-height: 30px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  header.shrink .tagline {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  .logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .service-card img {
    max-width: 120px;
    height: 100px;
  }

  .three-col,
  .shop-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .section-quick-links .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid > *:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 320px;
  }
  
  .hero {
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
  }

  .hero .wrap {
    padding: 0 24px;
    max-width: 95%;
  }

  .hero h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: 28px;
    line-height: 1.6;
  }
  
  .sticky-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  .behavioral-section {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }
  
  .section-who-we-are,
  .section-what-we-offer,
  .section-how-we-help,
  .section-work-at-m2w,
  .section-quick-links {
    padding: 60px 20px;
  }
  
  .section h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 16px;
  }

  .section .lead {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }
  
  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.1rem;
  }
  
  .grid.two-col img {
    height: 280px;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-card {
    padding: 35px 25px;
  }

  .contact-card h4 {
    font-size: 1.3rem;
  }

  .contact-section {
    padding: 60px 20px;
    margin-top: 40px;
  }
  
  .service-card {
    min-height: 250px;
  }
  
  .product img {
    height: 240px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    padding: 16px;
  }
  
  .quick-view-modal {
    padding: 16px;
  }

  .quick-view-content {
    padding: 24px 16px;
    max-height: 85vh;
  }

  .quick-view-img {
    max-height: 50vh;
  }

  .quick-view-title {
    font-size: 1.3rem;
  }

  .quick-view-desc {
    font-size: 0.95rem;
  }

  .quick-view-buy {
    padding: 18px;
    font-size: 1.05rem;
  }
  
  main {
    padding: 40px 0;
  }

  .section {
    padding: 30px 0;
  }
  
  .form-container {
    padding: 0 16px;
  }
  
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field textarea,
  .field select {
    font-size: 16px;
    padding: 16px;
    min-height: 52px;
  }

  .field textarea {
    min-height: 140px;
  }

  .submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
    min-height: 56px;
  }

  .checkbox-option {
    padding: 12px;
  }

  .checkbox-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .checkbox-option span {
    font-size: 1rem;
  }
  
  .cta-bar {
    padding: 40px 16px;
  }

  .cta-section {
    padding: 24px 16px;
  }

  .cta-section h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .cta-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .cta-section .btn {
    width: 100%;
    max-width: 320px;
    padding: 18px 24px;
    font-size: 1.05rem;
  }
  
  footer {
    padding: 40px 0 24px;
  }

  .footgrid {
    gap: 30px;
    padding: 0 16px;
  }

  .footgrid a {
    display: inline-block;
    padding: 8px 0;
    font-size: 1rem;
  }

  .footer-logo {
    margin-top: 30px;
  }
  
  .page-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 12px;
    padding: 0 10px;
  }

  .lead {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    padding: 0 10px;
    margin-bottom: 30px;
  }
  
  .btn {
    padding: 16px 24px;
    font-size: 1rem;
    min-height: 52px;
  }

  .btn.alt {
    padding: 16px 24px;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .section-quick-links .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid > *:last-child:nth-child(odd),
  .section-quick-links .services-grid > *:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 320px;
  }
  
  .hero {
    height: 100vh;
    margin-top: -60px;
  }
  
  .service-card {
    min-height: 250px;
  }
  
  .service-card img {
    max-width: 120px;
    height: 100px;
  }
  
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px 20px;
  }
  
  header.shrink {
    padding: 10px 20px;
  }
  
  .brand {
    gap: 10px;
  }
  
  .brand h1 {
    font-size: 1.1rem;
  }
  
  header.shrink .brand h1 {
    font-size: 1rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .brand h1 {
    font-size: 0.9rem;
  }

  .tagline {
    font-size: 0.65rem;
  }

  .logo {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    height: 140vh;
  }

  .hero .wrap {
    padding: 60px 24px;
  }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero,
  .section,
  main {
    overflow-x: hidden;
  }
  
  * {
    -webkit-tap-highlight-color: rgba(169, 201, 255, 0.3);
  }

  a,
  button,
  .btn {
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
  }
  
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
  }
}

/* Print styles */
@media print {
  .menu-btn,
  .sticky-mobile-cta,
  .cta-bar,
  header,
  footer,
  .footer-attribution {
    display: none;
  }

  .hero {
    height: auto;
    page-break-after: always;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Utility Classes for Inline Styles */
.no-margin-top { margin-top: 0; }
.text-center { text-align: center; }
.margin-top-60 { margin-top: 60px; }
.flex-center { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.font-size-1-05 { font-size: 1.05rem; }
.padding-16-40 { padding: 16px 40px; }
.max-width-800 { max-width: 800px; margin: 0 auto; }
.max-width-700 { max-width: 700px; margin: 0 auto; }
.margin-top-32 { margin-top: 32px; }
.border-left-blue { border-left: 4px solid var(--blue); }
.border-left-sage { border-left: 4px solid var(--sage); }
.background-gradient-blue-sage { background: linear-gradient(135deg, rgba(169, 201, 255, 0.08), rgba(167, 196, 160, 0.05)); border: 1px solid rgba(169, 201, 255, 0.2); }
.padding-16 { padding: 16px; }
.border-radius-10 { border-radius: 10px; }
.margin-bottom-20 { margin-bottom: 20px; }
.list-style-none { list-style: none; padding: 0; margin: 0; }
.display-flex { display: flex; }
.align-items-center { align-items: center; }
.gap-8 { gap: 8px; }
.margin-bottom-8 { margin-bottom: 8px; }
.color-sage { color: var(--sage); }
.font-weight-bold { font-weight: bold; }
.margin-left-20 { margin-left: 20px; }
.text-align-left { text-align: left; }
.margin-16-0-0-20 { margin: 16px 0 0 20px; }
.color-374151 { color: #374151; }
.margin-top-24 { margin-top: 24px; }
.margin-bottom-12 { margin-bottom: 12px; }
.font-family-lora { font-family: Lora, serif; }
.color-blue { color: var(--blue); }
.margin-0-auto { margin: 0 auto; }
.font-size-1-1 { font-size: 1.1rem; }
.line-height-1-7 { line-height: 1.7; }
.text-align-center { text-align: center; }
.margin-bottom-16 { margin-bottom: 16px; }
.font-size-1rem { font-size: 1rem; }
.line-height-1-6 { line-height: 1.6; }
.margin-top-20 { margin-top: 20px; }
.font-style-italic { font-style: italic; }
.color-muted { color: var(--muted); }
.margin-top-16 { margin-top: 16px; }
.font-size-0-95rem { font-size: 0.95rem; }
.line-height-1-4 { line-height: 1.4; }
.margin-bottom-6 { margin-bottom: 6px; }
.margin-top-30 { margin-top: 30px; }
.display-flex-gap-12 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.margin-top-20 { margin-top: 20px; }
.margin-top-40 { margin-top: 40px; }
.margin-bottom-40 { margin-bottom: 40px; }
.padding-bottom-30 { padding-bottom: 30px; }
.border-bottom-2 { border-bottom: 2px solid rgba(92, 118, 80, 0.15); }
.width-200 { width: 200px; height: 200px; }
.object-fit-cover { object-fit: cover; }
.border-radius-50 { border-radius: 50%; }
.margin-bottom-24 { margin-bottom: 24px; }
.border-5-blue { border: 5px solid var(--blue); }
.box-shadow-0-8-20 { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.transition-all { transition: all var(--transition-smooth); }
.margin-20-auto-0 { margin: 20px auto 0; }
.padding-16-16 { padding: 16px; }
.background-rgba-blue { background: rgba(92, 118, 80, 0.05); }
.border-left-4-blue { border-left: 4px solid var(--blue); }
.border-radius-8 { border-radius: 8px; }
.margin-24-0 { margin: 24px 0; }
.margin-bottom-0 { margin-bottom: 0; }
.margin-top-50 { margin-top: 50px; }
.border-top-2 { border-top: 2px solid rgba(92, 118, 80, 0.2); }
.padding-top-40 { padding-top: 40px; }
.color-inherit { color: inherit; }
.color-cbd5e1 { color: #cbd5e1; }
.display-inline-flex { display: inline-flex; }
.width-16 { width: 16px; }
.height-16 { height: 16px; }
.margin-top-6 { margin-top: 6px; }
.grid-template-columns-1fr-1fr { grid-template-columns: 1fr 1fr; }
.gap-40 { gap: 40px; }
.align-items-stretch { align-items: stretch; }
.flex-wrap-wrap { flex-wrap: wrap; }
.text-align-center { text-align: center; }
.padding-28-24 { padding: 28px 24px; }
.border-radius-12 { border-radius: 12px; }
.transition-all-smooth { transition: all var(--transition-smooth); }
.border-2-rgba { border: 2px solid rgba(92, 118, 80, 0.1); }
.transform-translateY-4 { transform: translateY(-4px); }
.box-shadow-0-8-20-rgba { box-shadow: 0 8px 20px rgba(92, 118, 80, 0.15); }
.border-color-blue { border-color: var(--blue); }
.font-size-1-3rem { font-size: 1.3rem; }
.font-weight-600 { font-weight: 600; }
.font-size-0-95rem { font-size: 0.95rem; }
.line-height-1-6 { line-height: 1.6; }
.margin-bottom-12 { margin-bottom: 12px; }
.grid-template-columns-1fr { grid-template-columns: 1fr; }
.gap-24 { gap: 24px; }
.padding-32-20 { padding: 32px 20px; }
.font-size-1-6rem { font-size: 1.6rem; }
.font-size-1-2rem { font-size: 1.2rem; }
.padding-20-16 { padding: 20px 16px; }
.margin-top-12 { margin-top: 12px; }
.background-sage { background: #A7C4A0; }
.color-rgba-white { color: rgba(255,255,255,0.9); }
.margin-bottom-24 { margin-bottom: 24px; }
.padding-16-32 { padding: 16px 32px; }
.border-top-rgba { border-top: 1px solid rgba(255,255,255,0.2); }
.padding-top-40 { padding-top: 40px; }
@media (max-width: 840px) {
  .menu-btn {
    display: inline-flex !important;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    min-width: 52px;
    min-height: 52px;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  nav[aria-label="Main Navigation"] ul {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    transition: left 0.4s ease;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }

  nav[aria-label="Main Navigation"] ul.open {
    left: 0;
  }

  nav[aria-label="Main Navigation"] ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 80%;
    text-align: center;
    list-style: none;
  }

  nav[aria-label="Main Navigation"] ul.open li {
    opacity: 1;
    transform: translateX(0);
  }

  nav[aria-label="Main Navigation"] ul li a {
    padding: 16px 24px;
    font-size: 1.2rem;
    width: 100%;
    display: block;
    min-height: 56px;
  }
  
  nav[aria-label="Main Navigation"] ul li .btn {
    padding: 18px 32px;
    font-size: 1.1rem;
    margin-top: 10px;
  }
  
  header {
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100% - 70px);
    transition: all var(--transition-smooth);
  }

  .brand h1 {
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
  }

  .tagline {
    font-size: 0.65rem;
    opacity: 1;
    max-height: 30px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    line-height: 1.2;
  }

  header.shrink .brand h1 {
    font-size: 1.1rem;
  }

  header.shrink .tagline {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  .logo {
    width: 50px;
    height: 50px;
  }
}