/***************************************************************************
 *       Global Styles                                                                  
 ***************************************************************************/

:root {
    --fixed-width: 1024px; /* Define a constant width */
    --content-width: 60vw; /* Define a constant width */
}


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

  /*outline: 1px solid red;*/

}

/***************************************************************************
 *       Page Body Styles                                                                  *                                                                  
 ***************************************************************************/

/*page body*/
body {
  font-family: "Inter-Regular", Helvetica;
  color: #000000;

}

/***************************************************************************
 *       Home Page Hero Styles                                                                  
 ***************************************************************************/

.home-hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.home-hero-inner {
  width: 60vw;
  max-width: 1024px;
  position: relative;
}

.home-image {
  width: 100%;
  height: auto; /* preserves intrinsic aspect ratio */
  display: block;
  border-radius: 8px;
}

/* Gallery-specific image style: copied from .home-image as a starter */
.gallery-image {
  width: 100%;
  height: auto; /* preserves intrinsic aspect ratio */
  display: block;
  border-radius: 8px;
  padding: 5px;
}

.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-align children */
  justify-content: flex-start; /* top align children */
  color: #000; /* make overlay text black */
  text-shadow: none; /* remove white text shadow */
  padding: 2rem;
  box-sizing: border-box;
  padding-right: 10%; /* 10% margin from right edge */
  padding-top: 10%; /* 10% margin from top edge */
  text-align: right; /* ensure multiline text is right-aligned */
}

.home-hero-text {
  margin: 0;
  font-family: 'Playfair Display', serif, bold;
  font-size: 6vw;
  font-weight: 600;
  color: #000; /* ensure heading text is black */
}

.home-hero-sub {
  /*max-width: 36rem;*/
  max-width: 40vw;
  text-align: right; /* right-align subtitle */
  margin-top: 1.5rem;
  font-family: 'helvetica', sans-serif;
  font-size: 2vw;
  color: #000; /* subtitle in black */
}

/* Generic overlay helper in case other pages use different overlay class names */
.hero-overlay,
.overlay,
.about-hero-overlay {
  color: #000;
  text-shadow: none;
  text-align: right;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .home-hero-inner { width: 70vw; }
  .home-hero-text { font-size: 6vw; }
}
@media (max-width: 600px) {
  .home-hero-inner { width: 90vw; }
  .home-hero-text { font-size: 6vw; }
  .home-hero-sub { font-size: 3vw; max-width: 60vw; }
  .home-hero-overlay {
    padding-right: 5%; /* smaller right margin on small screens */
    padding-left: 1rem;
    align-items: flex-end; /* center on mobile for better readability */
    justify-content: flex-start; /* center vertically on mobile */
    text-align: right;
  }
}

/***************************************************************************
 *       Background Styles                                                                  
 ***************************************************************************/

/* general background container sylyes that are used across all the pages*/
.background {
  min-height: 100vh;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

/* general background container sylyes that are used across all the pages*/
.background-base {
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
}

/* fixes the size of the background to 1024 pixels*/
.background-fixed {
   max-width: 1024px;
}

/* About Me Backgroud */
.about-me-background {
  background-image: url("img/about-me-background.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; 
}

/* Bread Backgroud */
.bread-background {
  /*background-image: url("img/bread-background.svg");*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}

.roots-background {
  background-image: url("img/roots-background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}

.mama-background {
  background-image: url("img/mama-background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}

/***************************************************************************
 *       Container Styles                                                                  
 ***************************************************************************/

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60vw;
  max-width: 1024px;
  margin: 0 auto; /* balances the left and right margins to center the elements in the container*/
}

.container-base{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  margin: 0 auto; /* balances the left and right margins to center the elements in the container*/
  
}

.container-fixed{
  max-width: 1024px;
  width: 60vw;

}

.container img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/***************************************************************************
 *       Header Styles                                                                  
 ***************************************************************************/

.header{

  position: relative; 
  height: 10vh;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.header-base{

  position: relative; 
  height: 5vh;
  width: 80%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  
}

/***************************************************************************
 *       Nav Styles                                                                  
 ***************************************************************************/

.nav-bar {

  width: 100%;
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between; /* spread items evenly */

  outline: 2px solid rgb(64, 229, 18);
  position: relative;
  z-index: 1000;

}

.nav-bar ul {
  list-style: none;
  padding: 0;

  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between; /* spread items evenly */

  width: 100%;

}

.nav-bar li a {
  display: inline-block;
  padding: 0.5rem 1rem;

  text-decoration: none;
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: clamp(12px, 3vw, 32px); /* responsive font */
  align-items: center; 
}

.nav-bar li a:hover{
  outline: 1px solid red;
}

.has-submenu {
  position: relative;
}

/* Show submenu on hover */
.has-submenu:hover .submenu {
  display: block;
}

/* Submenu hidden by default */
.nav-bar .submenu {
  display: none;
  position: absolute;
  top: 100%;             /* just below the parent item */
  left: 0;
  background: #fff;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1000;
}

/* Submenu items */
.nav-bar .submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 14px;
  color: #000;

}

.nav-bar .submenu li a:hover {
  background: #f2f2f2;
}

/***************************************************************************
 *       Nav Challenger Styles                                                                  
 ***************************************************************************/

.main-nav {
  /*background: #fafafa;*/
  /*padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;*/

  /* keeps nav above other stuff if needed */
  position: relative;
  z-index: 100;

}

.main-nav-fixed {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;

}

/* Main nav list */
.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 1rem;
}


.main-nav-list-fixed {
  justify-content: space-between;
}

/* Nav items */
.main-nav-item {
  position: relative; /* needed for submenu positioning */
}

/* Links */
.main-nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #000;
  transition: background 0.2s, color 0.2s;

  font-family: "Inter-Regular", Helvetica;
  
  /*font-weight: 300;*/
  /*font-size: clamp(14px, 3vw, 32px);  /* responsive font */
}

.main-nav-link-fixed{
    /*font-weight: 300;*/
    font-size: clamp(14px, 3vw, 32px);  /* responsive font */
}

.main-nav-link:hover,
.main-nav-link:focus {
  background: #eee;
  color: #333;
  outline: none;
}

/* ==========================
   SUBMENU
   ========================== */

.main-submenu {
  display: none; /* hidden by default */
  position: absolute;
  top: 100%; /* directly under parent item */
  left: 0;

  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;

  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 200;
}

.main-submenu-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #000;
  font-size: clamp(12px, 1vw, 16px);  /* responsive font */
  transition: background 0.2s;
}

.main-submenu-link:hover,
.main-submenu-link:focus {
  background: #f2f2f2;
  outline: none;
}

/* Show submenu on hover */
.has-submenu:hover .main-submenu {
  display: block;
}



/***************************************************************************
 *       Story Box Styles                                                                  
 ***************************************************************************/

.story-box {
  width: 100%;
  position: static;
  max-width: 600px;
}

.story-box-base {
  width: 100%;
  position: static;
  width: 80%;
}

.story-box-fixed {
  max-width: 600px;
}

.story-title {
  width: 100%;
  height: auto;
  font-size: clamp(32px, 7vw, 48px); /* 7vw is probably less than 32px so this doesnt seem to have any effect*/
  font-weight: 300;
  letter-spacing: 0;
  line-height: normal;
  text-align: left;
  position: static;

}

.story-text {
  font-family: "Inter-Regular", Helvetica;
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  color: #000000;
  text-align: left;
}

.story-text-columns h2{
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 32px);
  color: #000000;

}

.story-text-columns p{
  font-family: "Inter-Regular", Helvetica;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 24px);
  color: #000000;
  text-align: justify;
  line-height: 1.1;
}

.story-text-columns {
  /*font-family: "Inter-Regular", Helvetica;
  font-weight: 300;
  font-size: clamp(14px, 7vw, 18px);
  color: #000000;*/


  text-align: left;

  column-gap: 2rem;
  column-count: 2;

}

/* Inline images inside story */
.story-image img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
  break-inside: avoid;   /* ✅ prevent column breaks through image */
}

.story-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
}

/***************************************************************************
 *       Footer Styles                                                                  
 ***************************************************************************/

.footer{
  height: 10vh;
  width: 100%;

  display: flex;
  justify-content: center; /* horizontally */
  align-items: center;    /* vertically */
}

.quote {

  /*text-shadow: 0px 4px 4px #00000040;*/
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: clamp(12px, 3vw, 32px);
  letter-spacing: 0;
  line-height: normal;
  text-align: center;

}

/***************************************************************************
 *       Responsive Styles                                                                  
 ***************************************************************************/

@media (max-width: 900px) {
  .container {
    width: 80vw;
  }
}

@media (max-width: 600px) {
  .container {
    width: 90vw;
    justify-content: flex-start;
  }

  .page-title {
    font-size: 32px; /* adjust as needed */
    height: 0%; /* half the height on mobile */
    padding: 0.5em 0;
  }

  /* About Me Backgroud */
  .about-me-background {
    background-image: url("img/about-me-background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
  }

  .story-text-columns {
    column-count: 1;
  }

  .story-text-columns p{
    line-height: 1.25;
  }

    .main-nav-list {
    gap: 0.25rem;
  }
  .main-nav-link {
    padding: 0.5rem 0.3rem;
    font-size: 14px;
  }

}