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

:root {
  --primary: #2E8B57;
  --primary-hover: #256d46;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

.text-muted {
  color: var(--muted-foreground);
}

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

.text-balance {
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(46, 139, 87, 0.1);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.header-inner a {
  display: flex;
  align-items: center;
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Sections */
.section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 4rem 0;
  }
}

.section-lg {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section-lg {
    padding: 5rem 0;
  }
}

.section-muted {
  background: linear-gradient(to bottom, var(--muted), var(--background));
}

.section-muted-solid {
  background-color: var(--muted);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: rgba(46, 139, 87, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem;
}

.card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), var(--muted));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.card-image strong {
  color: var(--foreground);
}

/* Highlight Cards */
.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.highlight-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.highlight-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

/* About Page */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

.headshot-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), var(--muted));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.headshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.headshot-icon {
  width: 6rem;
  height: 6rem;
  background: rgba(46, 139, 87, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.headshot-icon svg {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.headshot-container {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.headshot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Dog headshots - position to show full dogs */
.headshot-image-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
}

/* Frannie headshot - slightly lower to match Mabel's head clearance */
.headshot-image-frannie {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-img-elearning {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: left center;
  border-bottom: 1px solid var(--border);
}

.bio h2 {
  margin-bottom: 1.5rem;
}

.bio p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Team Grid */
.team-member {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .team-member {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
  
  .team-member.reverse {
    grid-template-columns: 1fr 280px;
  }
  
  .team-member.reverse .headshot-placeholder {
    order: 2;
  }
}

/* Values Grid */
.value-card {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Form */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

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

.contact-sidebar {
  position: relative;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  height: fit-content;
}

.contact-sidebar h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-item a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Leaf Decorations */
.leaf-icon {
  display: inline-block;
}

.leaf-pair {
  display: inline-flex;
  gap: 0.25rem;
}

.leaf-pair svg {
  width: 1.25rem;
  height: 1.25rem;
}

.leaf-pair-img {
  display: inline-block;
  vertical-align: middle;
}

.leaf-decoration {
  position: absolute;
  pointer-events: none;
}

.leaf-decoration.top-right {
  top: -1rem;
  right: -1rem;
}

.leaf-decoration.bottom-left {
  bottom: -1rem;
  left: -1rem;
}

.leaf-decoration.bottom-right {
  bottom: -1rem;
  right: -1rem;
}

.leaf-decoration svg {
  width: 6rem;
  height: 6rem;
  fill: var(--primary);
  opacity: 0.1;
}

/* Services page card leaf decorations - more visible over images */
.leaf-decoration-card svg {
  width: 6rem;
  height: 6rem;
  fill: rgba(46, 139, 87, 0.25);
  stroke: var(--primary);
  stroke-width: 0.5;
  opacity: 1;
}

/* Utilities */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.hidden {
  display: none;
}
