:root {
  --orange: #C1662A;
  --purple: #5D1F6E;
  --cream: #F9F7F2;
  --cream-transparent: rgba(249, 247, 242, 0.8);
  --dark: #2D2926;
  --white: #FFFFFF;
  --serif: 'Playfair Display', serif;
  --sans: 'Lato', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

body.home-page {
  background-image: url('/images/Lisa_OrangeSweater_Trees_Akimbo.jpg');
  background-size: cover;
  background-position: center;
  /* This is the magic property for the parallax effect */
  background-attachment: fixed;
}

/* Keep home page nav white for contrast against the dark hero overlay */
body.home-page .nav-links a {
  color: var(--white);
}

/* These sections sit on top of the image */
.content-section {
  background-color: var(--cream); /* A solid tan/cream background */
  position: relative;
  z-index: 2;
  padding: 80px 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Adds depth to the edge of the gap */
}

/* The transparent window */
.parallax-gap {
  height: 100px;
  background: var(--cream-transparent);
}
/* --------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.narrow-content {
  max-width: 800px;
}

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 1rem 0;
}

body.home-page .site-header {
  border-bottom: 2px solid rgba(193, 102, 42, 0.6);
  /* Optional: adds a soft highlight to make it pop against the dark image */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 2rem;
}

.nav-links a,
.current-page {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-decoration: none;
}

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

.current-page {
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 70%);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.hero-text-content {
  grid-column: span 7; /* Forces text to stay on the left half */
  color: var(--white);
}

.hero-text-content h1 { font-family: var(--serif); font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text-content .subtitle { font-family: var(--serif); font-style: italic; font-size: 1.5rem; opacity: 0.9; margin-bottom: 2.5rem; }

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 1.2rem 2.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--purple);
  transform: translateY(-2px);
}

/* Intro Section */
.intro-section {
  padding: 100px 0;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 2rem;
}

.narrative-text p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Offerings Grid */
.offerings-section {
  padding-bottom: 100px;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  display: block;          /* Makes the link fill the grid cell */
  text-decoration: none;   /* Removes the default blue underline from text */
  color: inherit;          /* Keeps your text color from turning blue */
  padding: 2rem;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px); /* Subtle lift effect */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: #c1662a;       /* Highlights the border with your orange */
}

.card-icon-img {
  transform: scale(0.7); /* Scales down to 70% of original size */
  transform-origin: center; /* Ensures it stays centered while shrinking */
}

.card h3 {
  font-family: var(--serif);
  color: var(--orange);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

body:not(.home-page) {
  /* This creates a 70% opaque cream layer over the image */
  background-image:
    linear-gradient(
      rgba(249, 247, 242, 0.7),
      rgba(249, 247, 242, 0.7)
    ),
    url('/images/fall_tree_bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: 0;
}

/* Generic Sub-page Styles */
body:not(.home-page) .nav-links a {
  color: var(--dark);
}

body:not(.home-page) .nav-links a:hover {
  color: var(--orange);
}

body:not(.home-page) .site-header {
  border-bottom: 1px solid var(--orange);
  background-color: var(--cream); /* Ensures the header is opaque on subpages */
}

.subpage-section {
  background-color: var(--cream);
  min-height: 80vh;
  padding: 140px 0 100px 0; /* Clears the absolute header */
}

.subpage-section {
  /* This controls the opacity of the margins by revealing the body background */
  background: transparent;
  padding: 100px 0 80px 0;
}

.subpage-container {
  max-width: 900px;
}

.subpage-container {
  max-width: 900px;
  margin: 0 auto;
  /* The solid center section */
  background-color: var(--cream);
  /* The Drop Shadow onto the forest margins */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 4px;
}

/* Adjusting Opacity */
.subpage-container {
  /* Adjust this decimal (0.0 to 1.0) to make the CENTER more or less transparent */
  background-color: rgba(249, 247, 242, 0.6);
}

.subpage-content {
  line-height: 1.8;
  font-size: 1.15rem;
  color: var(--dark);
}

.subpage-content p {
  margin-bottom: 1.5rem;
}

.subpage-img-left {
  float: left;
  margin: 0 2.5rem 1.5rem 0;
  border-radius: 2px;
  box-shadow: 10px 10px 0px var(--orange);
}

.subpage-img-right {
  float: right;
  margin: 1.5rem 0 1.5rem 2.5rem;
  border-radius: 2px;
  box-shadow: -10px 10px 0px var(--purple);
}

.subpage-content::after {
  content: "";
  clear: both;
  display: table;
}

@media (max-width: 768px) {
  .subpage-img-left,
  .subpage-img-right {
    float: none;
    width: 100%;
    margin: 0 0 2rem 0;
    box-shadow: none;
  }
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  opacity: 0.8;
}

.site-footer a {
  color: orange;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-text-content { grid-column: span 9; }
  .hero-text-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .hero { background-attachment: scroll; background-position: center; }
  .hero-overlay { background: rgba(0,0,0,0.5); }
  .hero-inner { display: block; text-align: center; }
  .hero-text-content { width: 100%; }
  .offerings-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* Simplified for now, would add hamburger later */
}
