@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

/* ****************
 CONTENTS

 Setup

 Typography
    Tags
    Links
    Alignment

 Layout
    Sections
    Flex Box
    Margin

 Elements
    Icons
    Photos

 Animation

**************** */

/* ****************
 SETUP
**************** */

:root {
  --hdr-img: '';
  --hdr-height-mobile: 50vh;
}

body {
  margin: 0;
}

.App {
  margin: 0;
  text-align: center;
  font-family: Montserrat, Helvetica, sans-serif;
  background: #fefdfb url('images/balloonTree/balloonsCastle.jpg') center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #945348;
  min-height: 100vh;
}

#header {
  background-image: var(--hdr-img);
  height: 70vh;
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#header img {
  max-width: 100%;
}

@media screen and ( max-width: 900px ) {
  #header {
    height: var(--hdr-height-mobile);
  }
}

/* Hero / page title block: stay inside the header on narrow screens */
#header #hdr-title {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#header #hdr-title h1,
#header #hdr-title h2 {
  margin: 0;
}

@media screen and ( max-width: 900px ) {
  #header #hdr-title h1,
  #header #hdr-title h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.2;
  }

  #header #hdr-title p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 10px 0 0;
  }

  #header #hdr-title .underline {
    margin-top: 6px;
  }
}

.underline {
  width: 75px;
  margin-top: 10px;
}

/* ************************************
 TYPOGRAPHY
************************************ */

/* ****************
 Tags
**************** */

h1 {
  font-size: 60px;
}

h2 {
  font-size: 55px;
  margin: 0;
}

h3 {
  font-size: 40px;
}

h4 {
  font-size: 30px;
  margin: 0;
}

h4 small {
  font-size: 20px;
  opacity: 0.7;
}

h4 small a {
  padding: 0;
}

h5 {
  font-size: 25px;
  margin: 0;
}

h6 {
  font-size: 25px;
  margin: 0;
}

p {
  font-size: 18px;
  margin: 28px 0;
  text-align: center;
  line-height: 28px;
}

@media screen and ( max-width: 800px ) {
  h2 {
    font-size: 40px;
  }
}

/* ****************
 Links
**************** */

a:hover,
a:focus {
  color: #5b8788;
}

a {
  color: #945348;
  text-decoration: none;
  padding: 0;
  font-weight: bold;
}

a:hover,
a:focus img {
  /* Some animation */
}

/* ****************
 Alignment
**************** */

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.txt-justify {
  text-align: justify;
}

.txt-justify p {
  text-align: justify;
}

/* ************************************
 LAYOUT
************************************ */

.center-vert-hor {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.border {
  margin: 0;
  position: absolute;
  left: 50%;
  top: -6vw;
  transform: translateX(-50%);
  z-index: 0;
  max-width: 100%;
}

/* ****************
 Sections
**************** */

.section {
  padding: 100px 0;
  width: 100%;
  position: relative;
}

@media screen and ( max-width: 1100px ) {
  .section {
    padding: 5vw 0;
  }
}

/* ****************
 Flex box
**************** */

.flex-wrap-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: auto;
}

.flex-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flex-bw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 5vw;
}

.flex-around {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 20px;
}

@media screen and (max-width: 900px) {
  .flex-around {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
  }
}

.align-center {
  align-items: center;
}

/* ****************
 Grid
**************** */

.single-col-fp-grid {
  display: grid;
  grid-template-columns: 1fr 1000px 1fr;
  grid-template-areas: '. img .'
    '. txt .';
}

.two-col-img-left {
  display: grid;
  margin: 0 10%;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'img txt';
}

.two-col-img-right {
  display: grid;
  margin: 0 10%;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'txt img';
}

.img-content {
  grid-area: img;
  align-self: center;
  justify-self: center;
}

.full-screen {
  max-width: 80vw;
}

.img-half-screen {
  max-width: 40vw;
  max-height: 70vh;
}

.img-half-screen img {
  max-width: 40vw;
  max-height: 70vh;
}

.txt-content {
  grid-area: txt;
  align-self: center;
  justify-self: center;
  width: 100%;
}

.txt-half-screen {
  width: 90%;
  max-width: 570px;
}

.txt-half-screen p {
  text-align: justify;
}

@media screen and ( max-width: 1100px ) {
  .single-col-fp-grid {
    grid-template-columns: 10% 1fr 10%;
  }

  .two-col-img-left {
    grid-template-columns: 1fr;
    grid-template-areas: 'img'
      'txt';
  }

  .two-col-img-right {
    grid-template-columns: 1fr;
    grid-template-areas: 'img'
      'txt';
  }

  .img-half-screen {
    max-width: 70vw;
    max-height: 80vh;
  }

  .txt-half-screen {
    width: 100%;
    margin-top: 28px;
  }

  .txt-half-screen p {
    text-align: justify;
  }
}

/* ****************
 Margin
**************** */

/* Sides (left and right) */

.margin-sides-sm {
  margin-left: 20px;
  margin-right: 20px;
}

.margin-sides-med {
  margin-right: 30px;
  margin-left: 30px;
}

.margin-sides-lg {
  margin-right: 50px;
  margin-left: 50px;
}

/* Left */

.margin-left-sm {
  margin-left: 20px;
}

.margin-left-med {
  margin-left: 30px;
}

.margin-left-lg {
  margin-left: 50px;
}

/* Right */

.margin-right-xs {
  margin-right: 10px;
}

.margin-right-sm {
  margin-right: 20px;
}

.margin-right-med {
  margin-right: 30px;
}

.margin-right-lg {
  margin-right: 50px;
}

/* Vertical (top and bottom) */

.margin-vert-sm {
  margin-top: 20px;
  margin-bottom: 20px;
}

.margin-vert-med {
  margin-top: 30px;
  margin-bottom: 30px;
}

.margin-vert-lg {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Top */

.margin-top-sm {
  margin-top: 20px;
}

.margin-top-med {
  margin-top: 30px;
}

.margin-top-lg {
  margin-top: 50px;
}

/* Bottom */

.margin-bottom-sm {
  margin-bottom: 20px;
}

.margin-bottom-med {
  margin-bottom: 30px;
}

.margin-bottom-lg {
  margin-bottom: 50px;
}

/* ************************************
 ELEMENTS
************************************ */

/* ****************
 Icons
**************** */

.lg-icon {
  max-height: 175px;
}

/* ****************
 Photos
**************** */

.xl-img {
  max-width: 60vw;
}

.img-hover-zoom {
  overflow: visible;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ************************************
 ANIMATION
************************************ */

.fade-in-top{
  animation-name: fade-in-from-top;
  animation-duration: 3s;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-in-from-top{
  0% {
    transform: translate(0, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* ************************************
 MISC
************************************ */

/* ****************
 Backgrounds
**************** */

.bg-white {
  background: #fefdfb;
}

.bg-white-transparent {
  background-color: rgba(254, 253, 251, 0.8);
  padding: 10px;
}

.bg-yellow {
  background: #f9f1e3;
}

.bg-yellow h2 {
  color: #5b8788;
}

.bg-yellow a {
  color: #5b8788;
}

.bg-yellow a:hover,
.bg-yellow a:focus,
.bg-yellow a:hover h2,
.bg-yellow a:focus h2 {
  color: #945348;
}

.primary-btn {
  background: #5b8788;
  color: #fefdfb;
  font-size: 20px;
  border-radius: 20px;
  border: 0;
  padding: 10px 20px;
  cursor: pointer;
}

.primary-btn:hover,
.primary-btn:focus {
  color: #f9f1e3;
  box-shadow: 1px 1px 2px #945348;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

ul {
  width: 100%;
  list-style-type: none;
  padding: 0;
  text-align: center;
  line-height: 25px;
  font-size: 15px;
  color: #5b8788;
  font-weight: bold;
}

li {
  max-width: 50%;
  margin: 20px 25%;
}

.float-left img,
.float-right img {
  max-width: 100%;
  height: auto;
}

@media screen and ( max-width: 650px ) {
  .float-left,
  .float-right {
    float: none;
  }
}

.bg-dark-yellow {
  background: #e7cb9c;
}

.sm-txt {
  font-size: 12px;
  margin: 0;
  padding: 10px 0;
}

@media screen and ( max-width: 1000px ) {
  #footer {
    padding-bottom: 140px;
  }
}

.txt-blue {
  color: #5b8788;
}

.msg-box {
  background: rgba(91, 135, 136, 0.2);
  border-radius: 20px;
  width: 50%;
  padding: 10px;
  margin: 50px 25% 0 25%;
}

/* *************************
 GLOBAL NAV
************************* */

/* ****BACKGROUND**** */

.bg-hdr-light-before {
  background-image: var(--hdr-img);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-hdr-light-before::before {
  content: '';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #fefdfb;
  z-index: -1;
  opacity: 0.3;
}

.bg-hdr-w-before {
  background-image: var(--hdr-img);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-hdr-w-before::before {
  content: '';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #fefdfb;
  z-index: -1;
  opacity: 0.6;
  animation: fade-in-hdr-before 1s forwards;
}

@keyframes fade-in-hdr-before {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* ****GRID**** */

.nav-item-grid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  grid-template-areas: 'icon'
    'txt';
}

.icon-content {
  grid-area: icon;
  justify-self: center;
  align-self: center;
  margin-top: 10px;
}

.txt-content {
  grid-area: txt;
  justify-self: center;
  align-self: center;
}

/* *************************
 LANDING NAV
************************* */

#landing-nav .icon {
  max-height: 175px;
}

#landing-nav #logo {
  display: none;
}

/* *************************
 DESKTOP: MAIN NAV
************************* */

/* ****HIDE MOBILE NAV**** */

@media screen and ( min-width: 1000px ) {
  #mobile-nav {
    display: flex;
  }
}

/* ****LOGO**** */

#logo {
  width: 200px;
}

/* ****ICONS**** */

/* Basic / setup */

#desktop-nav .icon {
  height: 75px;
  transition: height 1s, filter 0.3s;
  filter: sepia(40%) grayscale(12%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
}

/* Hide icons. Don't use display: none,
so transitions can be used */

#desktop-nav .hide-icons .icon {
  height: 0;
  opacity: 0;
  transition: height 1s, opacity 0.3s;
}

/* On nav bar hover, icons should always be
seen (even if they were being hidden) */

#desktop-nav:hover .icon {
  height: 100px;
  opacity: 1;
  transition: height 1s, opacity 0.3s;
}

/* On menu item hover, display icon in full
colour (remove filter) */

#desktop-nav .nav-item-grid:hover .icon {
  filter: sepia(0%) grayscale(0%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
  transition: filter 0.3s, opacity 0.3s, height 1s;
}

/* ****LABELS**** */

/* Setup: position and shadows */

#desktop-nav .txt-content {
  margin-bottom: 10px;
  text-shadow: 2px 2px 3px #f9f1e3;
}

/* Setup: font and more positioning */

#desktop-nav h6 {
  margin: 0 15px;
}

/* ****BAR STYLES**** */

/* Scrolled: shadow on full .nav-container so it does not outline only #desktop-nav (narrow “second box”) */

.nav-container.nav-scrolled {
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.1);
}

#desktop-nav .desktop-nav-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}

@media screen and (min-width: 1001px) {
  .nav-container:has(#desktop-nav) #mobile-nav {
    display: none !important;
  }
}

/* "Stick" content to top of screen */

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* *************************
 MOBILE: MAIN NAV
************************* */

/* ****HIDE DESKTOP NAV**** */

/* (max-width rules live with hamburger block below; .unified-nav is the exception) */

/* ****ICONS**** */

/* Setup: size */

#mobile-nav .icon {
  height: 100px;
}

/* Setup: yellow cast with filters */

.grayed-out {
  filter: sepia(100%) grayscale(27%) drop-shadow(0 0 2px #945348);
}

/* ****LABELS**** */

/* Setup: font size */

#mobile-nav h6 {
  font-size: 15px;
}

#mobile-nav .txt-content {
  margin-bottom: 10px;
}

/* ****BAR STYLES**** */

/* Make top element */

#mobile-nav {
  z-index: 5;
}

/* Drop shadow above nav bar */

#mobile-nav.menu-shadow {
  box-shadow: 1px 5px 5px 5px #945348;
}

/* Bar always be at bottom of page */

#mobile-nav.fix-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* ****EXPAND BTN**** */

/* Setup: font size will change icon size */

#mobile-nav .icon-content {
  font-size: 40px;
}

/* Ensure smooth transition */

#expand-btn {
  transition: transform 1s;
}

/* Rotate to upside down, ensure smooth */

.upside-down {
  transform: rotate(180deg);
  transition: transform 1s;
}

/* ****EXPAND ITEMS**** */

/* Full bar */

#expand-items {
  height: 0;
  transition: height 1s;
}

#expand-items.visible {
  height: 100%;
  transition: height 1s;
}

/* Text */

#expand-items .txt-content {
  display: none;
}

#expand-items.visible .txt-content {
  display: block;
}

/* Icons */

#expand-items .icon {
  height: 0;
  opacity: 0;
  transition: height 1s, opacity 0.3s;
}

#expand-items.visible .icon {
  height: 100px;
  opacity: 1;
  transition: height 1s, opacity 0.3s;
}

/* Empty space to line up with main items */

#expand-filler {
  width: 0.87em;
}

/* Navigation styles for static site */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 10;
  /* background handled by optional bg-hdr-* classes */
}

.nav-container .flex-bw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 5vw;
  padding: 10px 0;
}

.nav-container a {
  color: #945348;
  text-decoration: none;
  font-weight: bold;
  margin: 0 15px;
}

.nav-container a:hover {
  color: #5b8788;
}

/* ****************
   MOBILE HAMBURGER NAV
**************** */

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #945348;
  transition: transform 0.3s, opacity 0.3s;
}

@media screen and ( max-width: 1000px ) {
  .nav-container .flex-bw {
    position: relative;
  }

  /* show hamburger */
  .hamburger {
    display: block;
  }

  /* collapse links by default */
  .nav-container .flex-right {
    display: none;
  }

  /* Standard pages: hide desktop icon strip on small screens */
  #desktop-nav:not(.unified-nav) {
    display: none;
  }

  /*
   * Single menu: add class unified-nav on #desktop-nav.
   * Same markup for desktop row + mobile hamburger panel (icon beside label).
   */
  #desktop-nav.unified-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    background: rgba(254, 253, 251, 0.98);
    border-bottom: 2px solid #f9f1e3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
  }

  #desktop-nav.unified-nav.active {
    display: flex !important;
  }

  #desktop-nav.unified-nav.active .desktop-nav-icons {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    padding: 12px max(18px, 5vw) 18px;
    box-sizing: border-box;
  }

  #desktop-nav.unified-nav.active .nav-item-grid {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 10px;
    margin: 0;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-template-areas: none;
  }

  #desktop-nav.unified-nav.active .icon-content {
    margin-top: 0;
    grid-area: unset;
  }

  #desktop-nav.unified-nav.active .txt-content {
    grid-area: unset;
    margin-bottom: 0;
    text-align: left;
    text-shadow: none;
  }

  #desktop-nav.unified-nav.active .icon {
    height: 48px !important;
    width: auto;
    max-height: none !important;
    opacity: 1 !important;
    filter: sepia(40%) grayscale(12%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
  }

  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:hover .icon,
  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:focus-visible .icon {
    filter: sepia(0%) grayscale(0%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
  }

  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:hover,
  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:focus-visible {
    background: rgba(148, 83, 72, 0.09);
  }

  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:hover .txt-content,
  #desktop-nav.unified-nav.active .nav-item-grid > a.nav-item-grid:focus-visible .txt-content {
    color: #5b8788;
  }

  /* Do not let desktop “expand all icons on bar hover” shrink mobile rows */
  #desktop-nav.unified-nav:hover .icon {
    height: 48px !important;
    opacity: 1 !important;
  }

  #desktop-nav.unified-nav.active h6 {
    margin: 0;
    font-size: 17px;
  }

  /* dropdown panel */
  #mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(254, 253, 251, 0.98);
    border-bottom: 2px solid #f9f1e3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #mobile-nav.active {
    display: flex;
  }

  #mobile-nav a {
    margin: 8px 0;
    font-size: 16px;
  }

  /* Optional: icon + label rows (add class mobile-nav-with-icons on #mobile-nav) */
  #mobile-nav.mobile-nav-with-icons {
    align-items: stretch;
    padding: 12px max(18px, 5vw) 18px;
    gap: 2px;
  }

  #mobile-nav.mobile-nav-with-icons a.mobile-nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 0 auto !important;
    padding: 11px 14px;
    border-radius: 10px;
    width: 100%;
    max-width: 22rem;
    font-size: 17px;
    text-decoration: none;
    color: #945348;
    box-sizing: border-box;
  }

  #mobile-nav.mobile-nav-with-icons a.mobile-nav-link:hover,
  #mobile-nav.mobile-nav-with-icons a.mobile-nav-link:focus-visible {
    background: rgba(148, 83, 72, 0.09);
    color: #5b8788;
  }

  #mobile-nav.mobile-nav-with-icons .mobile-nav-link__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    filter: sepia(40%) grayscale(12%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
  }

  #mobile-nav.mobile-nav-with-icons a.mobile-nav-link:hover .mobile-nav-link__icon,
  #mobile-nav.mobile-nav-with-icons a.mobile-nav-link:focus-visible .mobile-nav-link__icon {
    filter: sepia(0%) grayscale(0%) drop-shadow(0 1px 2px rgba(148, 83, 72, 0.2));
  }

  #mobile-nav.mobile-nav-with-icons .mobile-nav-link__label {
    flex: 1;
    text-align: left;
  }
}

/* Form styles */
.form-group {
  margin: 20px 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #945348;
  border-radius: 5px;
  font-size: 16px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  margin: 50px clamp(12px, 4vw, 100px);
  box-sizing: border-box;
}

.book-item {
  text-align: center;
  padding: 20px;
  border: 2px solid #f9f1e3;
  border-radius: 10px;
  background: #fefdfb;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.book-item img {
  max-width: min(250px, 100%);
  width: auto;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.book-item h3 {
  margin-bottom: 10px;
}

.book-item p {
  color: #5b8788;
  font-size: 14px;
}
