/* Morning Glori Farmette page styles.
   Load after style.css and farm-profile.css. */

.glori-profile {
  --glori-green: #496653;
  --glori-green-dark: #30483a;
  --glori-green-light: #e7eee8;
  --glori-clay: #a95f46;
  --glori-clay-dark: #814532;
  --glori-cream: #fbf8f0;
  --glori-gold: #d8b56c;
  --glori-ink: #292f2b;
  --glori-muted: #626b65;
  --glori-border: #d8d8cf;
  background: #f4f1ea;
}

.glori-profile *,
.glori-profile *::before,
.glori-profile *::after {
  box-sizing: border-box;
}

.glori-profile main {
  padding-top: 2rem;
}

.glori-breadcrumb {
  margin-bottom: 1.25rem;
}

.glori-label {
  margin: 0 0 0.55rem;
  color: var(--glori-clay);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glori-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 4rem;
  overflow: hidden;
  background: var(--glori-cream);
  border: 1px solid var(--glori-border);
  border-radius: 0.8rem;
  box-shadow: 0 0.75rem 2rem rgba(48, 72, 58, 0.08);
}

.glori-hero__copy {
  display: flex;
  flex: 0 0 55%;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4rem);
}

.glori-hero h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  color: var(--glori-ink);
  font-size: clamp(2.5rem, 5vw, 3.65rem);
  line-height: 1.02;
}

.glori-hero__lead {
  max-width: 35rem;
  margin: 0;
  color: var(--glori-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.glori-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.glori-button {
  display: inline-block;
  padding: 0.72rem 1rem;
  color: #fff;
  background: var(--glori-green);
  border: 1px solid var(--glori-green);
  border-radius: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.glori-button:hover {
  color: #fff;
  background: var(--glori-green-dark);
  border-color: var(--glori-green-dark);
}

.glori-text-link {
  color: var(--glori-clay-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.glori-hero__photo {
  flex: 0 0 45%;
  min-height: 25rem;
  margin: 0;
  background: var(--glori-green-light);
}

.glori-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glori-visit-summary {
  display: flex;
  flex: 1 0 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--glori-green-dark);
}

.glori-visit-summary li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  color: #fff;
}

.glori-visit-summary li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.glori-visit-summary strong {
  color: #d7e4da;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glori-visit-summary span {
  font-size: 0.84rem;
}

.glori-page-layout {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: flex-start;
}

.glori-main-content {
  flex: 1 1 auto;
  min-width: 0;
}

.glori-main-content > section {
  margin-bottom: 4rem;
}

.glori-main-content h2,
.glori-contact h2 {
  margin: 0 0 1rem;
  color: var(--glori-ink);
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  line-height: 1.12;
}

.glori-main-content h3 {
  margin: 0 0 0.65rem;
  color: var(--glori-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}

.glori-main-content p {
  color: var(--glori-muted);
  line-height: 1.72;
}

.glori-main-content a:not(.glori-button) {
  color: var(--glori-clay-dark);
  font-weight: 700;
  text-underline-offset: 0.18rem;
}

.glori-about {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--glori-border);
}

.glori-about h2 {
  max-width: 22ch;
}

.glori-about p {
  max-width: 47rem;
}

.glori-section-heading {
  max-width: 45rem;
  margin-bottom: 1.4rem;
}

.glori-section-heading > p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.glori-activity-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--glori-border);
  border-radius: 0.55rem;
}

.glori-activity-list details + details {
  border-top: 1px solid var(--glori-border);
}

.glori-activity-list summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.25rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  color: var(--glori-ink);
  cursor: pointer;
  list-style: none;
}

.glori-activity-list summary::-webkit-details-marker {
  display: none;
}

.glori-activity-list summary::after {
  content: "+";
  color: var(--glori-clay);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.glori-activity-list details[open] summary::after {
  content: "-";
}

.glori-activity-list summary span {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
}

.glori-activity-list summary small {
  color: var(--glori-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.glori-activity-list details[open] summary {
  background: var(--glori-green-light);
}

.glori-activity-list details > div {
  padding: 0.25rem 3.4rem 1.25rem 1.15rem;
}

.glori-activity-list details > div p {
  max-width: 45rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.glori-activity-list details > div a {
  font-size: 0.82rem;
}

.glori-herd {
  display: flex;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--glori-green-light);
  border-left: 0.35rem solid var(--glori-green);
  border-radius: 0 0.55rem 0.55rem 0;
}

.glori-herd__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.glori-herd__copy p:last-of-type {
  margin-bottom: 0.75rem;
}

.glori-herd__copy > a {
  font-size: 0.84rem;
}

.glori-herd__names {
  flex: 0 0 12rem;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #afc1b2;
}

.glori-herd__names li {
  padding: 0.6rem 0;
  color: var(--glori-green-dark);
  border-bottom: 1px solid #afc1b2;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.glori-connect__columns {
  display: flex;
  gap: 1.25rem;
}

.glori-connect__columns section {
  flex: 1 1 0;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--glori-border);
  border-top: 0.25rem solid var(--glori-gold);
  border-radius: 0.35rem;
}

.glori-connect__columns p {
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
}

.glori-connect__columns a {
  font-size: 0.82rem;
}

.glori-plan {
  overflow: hidden;
  background: var(--glori-cream);
  border: 1px solid var(--glori-border);
  border-radius: 0.55rem;
}

.glori-plan__copy {
  padding: 1.6rem 1.6rem 1.25rem;
}

.glori-plan__copy p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
}

.glori-plan__facts {
  margin: 0;
  border-top: 1px solid var(--glori-border);
}

.glori-plan__facts div {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.6rem;
  border-bottom: 1px solid var(--glori-border);
}

.glori-plan__facts dt {
  flex: 0 0 8rem;
  color: var(--glori-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glori-plan__facts dd {
  flex: 1 1 auto;
  margin: 0;
  color: var(--glori-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.glori-alternative {
  margin: 0;
  padding: 1rem 1.6rem;
  background: #f0eee7;
  font-size: 0.82rem;
}

/* Related reading stays visually secondary to the farm information. */
.glori-aside-column {
  position: sticky;
  top: 6rem;
  display: flex;
  flex: 0 0 18.5rem;
  flex-direction: column;
  align-self: flex-start;
  gap: 1.5rem;
}

.glori-related {
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--glori-border);
  border-radius: 0.55rem;
  box-shadow: 0 0.45rem 1.4rem rgba(48, 72, 58, 0.07);
}

.glori-related img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--glori-green-light);
}

.glori-related > div {
  padding: 1.05rem 1.1rem 1.15rem;
}

.glori-related span {
  color: var(--glori-clay);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glori-related h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.glori-related h2 a {
  color: var(--glori-ink);
  text-decoration: none;
}

.glori-related h2 a:hover {
  color: var(--glori-clay-dark);
  text-decoration: underline;
}

.glori-related p {
  margin: 0;
  color: var(--glori-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.glori-contact {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background: var(--glori-green-dark);
  border-radius: 0.65rem;
}

.glori-contact > div:first-child {
  flex: 1 1 auto;
}

.glori-contact .glori-label {
  color: #bcd0c0;
}

.glori-contact h2 {
  max-width: 25ch;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.glori-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.glori-contact__links .glori-button {
  color: var(--glori-green-dark);
  background: #fff;
  border-color: #fff;
}

.glori-contact__links > a:not(.glori-button) {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

@media (max-width: 60rem) {
  .glori-page-layout {
    gap: 2rem;
  }

  .glori-herd {
    flex-direction: column;
    gap: 1.25rem;
  }

  .glori-herd__names {
    flex-basis: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .glori-hero__copy,
  .glori-hero__photo {
    flex-basis: 100%;
  }

  .glori-hero__photo {
    min-height: 19rem;
  }

  .glori-visit-summary {
    flex-direction: column;
  }

  .glori-visit-summary li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .glori-page-layout {
    flex-direction: column;
  }

  .glori-aside-column {
    position: static;
    flex-basis: auto;
    flex-direction: row;
    width: 100%;
    margin: -1rem 0 4rem;
  }

  .glori-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .glori-contact__links {
    justify-content: flex-start;
  }
}

@media (max-width: 36rem) {
  .glori-profile main {
    padding-top: 1.25rem;
  }

  .glori-hero,
  .glori-related,
  .glori-contact {
    border-radius: 0.4rem;
  }

  .glori-hero__copy {
    padding: 1.6rem 1.25rem;
  }

  .glori-hero h1 {
    font-size: 2.35rem;
  }

  .glori-hero__photo {
    min-height: 15rem;
  }

  .glori-main-content > section {
    margin-bottom: 3.25rem;
  }

  .glori-connect__columns,
  .glori-aside-column {
    flex-direction: column;
  }

  .glori-activity-list summary {
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    gap: 0.7rem;
  }

  .glori-activity-list summary small {
    display: none;
  }

  .glori-activity-list details > div {
    padding-right: 1.15rem;
  }

  .glori-plan__facts div {
    flex-direction: column;
    gap: 0.2rem;
  }

  .glori-herd__names {
    grid-template-columns: 1fr;
  }
}