html {
	height: 100vh;
	scroll-behavior: smooth;
	container-type: scroll-state;
	container-name: scroller;
}
.to-top {
	position: fixed;
	bottom: 20px;
	right: 8px;
	translate: 80px 0;
	transition: all 0.4s ease, border-color 0.4s ease;
}

@container scroller scroll-state(scrollable: top) {
  .to-top {
    translate: 0 0;
  }
}

body {
	width: auto; /* height = auto by default */
	margin: 0 8px 8px 8px; /* no margin at top for back-to-top to slide away */
	background-color: transparent;
	text-align: left;
	font-style: normal;
	font-family: "Varela Round", sans-serif, Tahoma, Verdana;
}

/* Base header layout */
header {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
  align-items: center;
  background-color: rgba(237, 242, 248, .45); /* Joe's pale blue */
  padding: 0.75rem 1rem;
  gap: 1rem;
}

/* Allow grid items to shrink properly.
Target the immediate children of the HTML <header> element only */
header > * {
  min-width: 0;
}

/* Logo sizing */
header img.img-1 {
  height: 48px;        /* clean, consistent size */
  width: auto;         /* preserve aspect ratio */
  object-fit: contain; /* prevents distortion */
}

/* Login link styled as a button */
header a {
	margin-top: 0.5rem;
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
  justify-self: end;
  padding: 0.5rem;
  background-color: #fdb713; /* Joe's orange */
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

header a:hover {
  background-color: #87CEFA; /* Light sky blue */
}

/* MOBILE header layout Start */
@media (max-width: 600px) {
  header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  header img.img-1 {
    margin: 0 auto;
    height: 40px; /* slightly smaller on mobile */
  }

  header a {
    justify-self: center;
    margin-top: 0.5rem;
	margin-bottom: 0.5rem;
    width: 100%;
    max-width: 260px; /* keeps button tidy */
    text-align: center;
  }
}
/* MOBILE header layout End */

main {
	margin: 0;
}
.sect-1 {
  background-color: #fdb713; /* Joe's orange */
  overflow-x: hidden; /* Prevents child elements from overflowing it's borders */
  margin: 0;
} 

.div-2a {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.div-2a .text {
  flex: 1;
  min-width: 0; /* prevents overflow from long words */
  text-align: left;
  font-style: normal;
}
.div-2a .hero-img {
  max-width: 40%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* MOBILE div-2a layout Start */
@media (max-width: 600px) {
  .div-2a {
    flex-direction: column;
    text-align: center;
  }

  .div-2a .hero-img {
    max-width: 100%;
  }
}
/* MOBILE div-2a layout End */

.big-1 {
	font-family: Varela Round;
	font-size: 2rem;
	text-align: center;
	margin: 2px; /* To prevent a default <p margin being set */
}
.big-2 {
	font-family: Varela Round;
	font-size: 1.5rem;
	text-align: center;
	margin: 2px;
	padding: 1rem;
}
.word-64 {
	font-size: 1.25rem;
	font-weight:bold;
}
.highlight-64 {
  color: #fdb713;
}

.div-5 {
  display: block;
  text-align: center;
  margin: 0;
  padding: 2rem;
  background-color: #f3efe3; /*Joe's light gray */
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem; /* row gap, column gap */
  margin-top: 1.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  background-color: none;
  border-radius: 999px; /* makes the pill shape */
  font-size: 1rem;
  white-space: nowrap; /* keeps each badge on one line */
}

.star {
  color: #fdb713;
  font-weight: bold;
  font-size: 1.2rem;
}

.feature:hover {  /* Optional: Add hover animation (desktop only)*/
  background-color: #fdb713;
  color: white;
  transition: .2s ease;
}

.feature:hover .star {
  color: white;
}

.sect-2 {
  background-color: rgba(250, 240, 230, .5);
  padding: 2rem 1rem;
  margin: 0;
  box-sizing: border-box;
}

/* Layout container */
.div-2c {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

/* Image styling */
.tree-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Text block */
.div-2d p {
  line-height: 1.5;
  text-align: center;
}

/* MOBILE div-2c layout Start */
@media (max-width: 700px) {
  .div-2c {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tree-img {
    margin: 0 auto;
  }
}
/* MOBILE div-2c layout End */

/* Section 3 styling */
.sect-3 {
	max-width: 100%;
	background-color: #f3efe3; /*#e6e6fa; /* Lavendar */
  margin: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

/* FAQ container */
#div-howto {
	display: grid;
	grid-template-columns: 1fr;
	max-width: 100%;
	padding: 0 3rem 0 3rem; /* 3rem on right to prevent back-to-top chevron from being hidden behind buttons */
	min-width: 0;
}

/* Collapsible buttons */
.collapsible {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background-color: #fdb713; /* Joe's orange */
  cursor: pointer;
  padding: 0.5rem 2rem 0.5rem 2rem;
  border: none;
  border-radius: 6px;
  text-align: left;
  outline: none;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease;
}

/* The + icon */
.collapsible::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.4rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* When active, show – and rotate */
.collapsible.active::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

.collapsible:hover {
  background-color: #87CEFA;
}

/* Hidden content */
.how-to-content {
  display: none;
  padding: 0.5rem 4rem 0.5rem 4rem;
  background-color: #f3efe3; /* #e6e6fa; */
  border-radius: 6px;
}

.how-to-content p {
	margin:0 0 8px 0;
}

/* When expanded (JS will toggle this class) */
.how-to-content.active {
  display: block;
  margin: 0;
}

/* MOBILE div-howto layout Start */
@media (max-width: 600px) {
  #div-howto {
    padding: 0 0.5rem;
  }

  .collapsible {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .collapsible::after {
    right: 0.75rem;
  }
}
/* MOBILE div-howto layout End */

footer {
	margin: 0;
	background-color: rgba(96, 59, 160, 0.17); /* Sean's pale blue */
	padding: 0.5rem;
}
.div-3 {
  display: grid;
  grid-template-columns: auto auto;
  text-align: center;
  font-size: 1rem;
}
