:root {
  --bg-primary: #F4F4F2;        /* Very Light Grey Canvas */
  --text-main: #0D0D0D;         /* Made Black */
  --text-muted: #3A3A38;        /* Softened charcoal for secondary copy */
  --border-subtle: #DCDAD5;
  --accent-green: #1B3B1A;      /* McWethy Forest Green */
  --accent-hover: #295728;      /* Lifted Hunter Green for hover state */
  --button-text: #FFFFFF;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Flexbox layout filling full viewport height */
.page-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

/* Top Centered Header/Logo */
.site-header {
  text-align: center;
  padding-top: 0.5rem;
}

.brand-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.92;
}

/* Vertically Centered Main Section */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 0;
}

.intro-section {
  width: 100%;
  text-align: center;
}

.intro-tagline {
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--text-main);
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.structural-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-subtle);
  width: 140px;
  margin: 0 auto 2rem auto;
}

/* Pillars Grid & Interactive Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  max-width: 740px;
  margin: 0 auto;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-green);
  border-radius: 6px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent-hover);
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.06);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.pillar-header h2 {
  font-size: 1.25rem;
  color: var(--accent-green);
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.pillar-arrow {
  font-size: 1.25rem;
  color: var(--accent-green);
  transition: transform 0.2s ease;
}

.pillar-card:hover .pillar-arrow {
  transform: translateX(4px);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.pillar-cta {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid transparent;
  width: fit-content;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pillar-card:hover .pillar-cta {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Bottom Footer Stack (Button directly above copyright) */
.site-footer-stack {
  text-align: center;
  padding-bottom: 0.5rem;
}

.cta-container {
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-green);
  color: var(--button-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 2.25rem;
  border-radius: 6px;
  border: 2px solid var(--accent-green);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 59, 26, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 3px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .page-container {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  .brand-logo {
    max-width: 260px;
  }
  .intro-tagline {
    font-size: 1.15rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .btn-primary {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Gallery Subpage Layouts & Media Grids
   ========================================================================== */

.gallery-container {
  max-width: 980px;
}

.subpage-nav {
  margin-top: 0.75rem;
}

.nav-back-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-back-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.gallery-main {
  flex-direction: column;
  padding: 1.5rem 0 3rem 0;
}

.gallery-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.gallery-title {
  font-size: 1.9rem;
  color: var(--accent-green);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.signature-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 0.5rem;
}

/* Media Card Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.single-focus-grid {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin: 0 auto;
}

.media-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.03);
}

.media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #EAEAE6;
}

.media-frame.portrait-frame {
  aspect-ratio: 3 / 4;
}

.media-frame.landscape-frame {
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.media-card:hover .media-frame img {
  transform: scale(1.02);
}

.media-caption {
  padding: 1.25rem;
  text-align: left;
}

.media-caption h3 {
  font-size: 1.1rem;
  color: var(--accent-green);
  margin-bottom: 0.3rem;
}

.media-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Care Instruction Card */
.care-instruction-card {
  background-color: #FAF9F6;
  border: 1px dashed var(--border-subtle);
  border-left: 4px solid var(--accent-green);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;
}

.care-badge {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.care-instruction-card h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.care-list {
  list-style-type: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.care-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
}

.care-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

/* Subpage Responsiveness */
@media (max-width: 680px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}