

/*********************************************************
	Colors
*********************************************************/


:root {				
  --bg-main: #F5F2EE;
  --text-primary: #1F3A3A; 

  --brand-primary: #0E6F6B;
  --brand-deep: #0A4F52;

  --accent-mint: #51CAB9;		/* Original: 4EC1B1; changed for accessibility */
  --accent-gold: #AF8535;		/* Original: F2B84B; changed for accessibility */
  --accent-moss: #8FAF7B;

  --shadow-soft: 0 3px 12px rgba(0,0,0,0.08);
  --shadow-medium: 0 6px 18px rgba(0,0,0,0.12);

  --danger: #B94A48;
}


/*********************************************************
	Responsiveness (for different platforms)
*********************************************************/

/* Universal box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent images from breaking layouts */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better default page width */
main {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* Global Layout Container (for Main section) */
.page{
  max-width:1100px;
  margin:auto;
  padding:20px;
}


/*********************************************************
	General Headers/Paragraphs
		Font Hierarchy
*********************************************************/

body {
  background-color: var(--bg-main);
  font-family: "Fraunces", serif;
  font-style: normal;
  min-height: 100vh;
  margin:0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--brand-deep); 
}

/* Headlines */
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);   /* All headers are gold */
}


h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}


/* Main page title */
h1 {
  font-size: 2.2rem;
}

/* Section titles */
h2 {
  font-size: 1.6rem;
}

/* Sub-sections */
h3 {
  font-size: 1.2rem;
}

/* Paragraph spacing */
p {
  margin-bottom: 1rem;
  color: var(--brand-deep);   /* p text is deep/dark */
}


/** Body **/
main{
  max-width:1100px;
  margin:auto;
  padding:20px;
}


/** Images on Travel Page **/
img{
  max-width:100%;
  height:auto;
  display:block;
}

/** Videos on Travel Page **/
video{
  max-width:100%;
  height:auto;
}

/** Prevent Smooshed Sidebars (Travel/Journal Pages) **/
@media (max-width:768px){

.journal-layout,
.travel-layout{
  flex-direction:column;
}

}

/*********************************************************
	Header: Logo and Navigation
*********************************************************/

#mainheader {
  display: flex;
  flex-direction: column;   /* ADD THIS */
  align-items: center;

  gap: 0.5rem;
  padding: 10px 2rem;

  position: sticky;
  top: 0;

  background: var(--brand-deep);
  z-index: 1000;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  transition: padding 0.3s ease;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: space-between; /* optional but usually desired */
}



/** Shrink Upon Scroll **/
#mainheader.shrink {
  padding: 8px 2rem;
}

#mainheader.shrink .logo img {
  height: 90px;
}



/**** Logo Style ****/ 			/* img-tags that are descendants of the class "logo" */
.logo img {			
  height: 200px; 				/*Adjust the size of logo*/
  width: auto;

  opacity: 1; 					/* Initial opacity (fully opaque) */
  transition: opacity 0.3s ease;

  filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));    /* Add "glow" to fix wonky text*/
}


/**** Logo Hover/Fade ****/ 		
.logo img:hover {			
  opacity: 0.40; 
  cursor: pointer;					
}


/**** Navigation Links ****/ 	


/*** Adds Mobile (verticle) Responsiveness ***/
@media (max-width: 768px) {

  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .logo img {
    height: 120px;
  }

}


.navbar {
  flex: 1;		/* Allows nav to fill remaining space */
}

/*  <ul> items */	
.navbar ul {
  display: flex;
  gap: 1.5rem;
			
  list-style: none;
  padding: 0;
  margin: 0;			
}


/*  <li> items */
.navbar li {
  margin-right: 1.5rem;
}


/* Show on Mobile*/
@media (max-width: 768px) {

  .hamburger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
  }

  .navbar ul.active {
    display: flex;
  }
}



/*  Add styling/color preferences */
.navbar a {
  text-decoration: none;
  color: var(--accent-mint);

  font-size: 1.15rem;
  font-weight: 600; 

  border-bottom: 3px solid transparent;
  padding-bottom: 4px;
}


/*  Add underline upon hover (only to text links!) */
.navbar a:hover {
border-bottom: 3px solid var(--accent-gold);
}


/*  Tagline Styling [CAN REMOVE?] */
.site-tagline {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
  color: #333;
}



/*********************************************************
	Divider Line & Footer
*********************************************************/


hr.ftr {			/** [CAN REMOVE?]  **/
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: auto;
  padding: 0;
  border-color: var(--accent-teal);
}

/***  Footer ***/

footer {
  font-size: 12px;
  color: rgba(86, 78, 99, 0.82);
  text-align: center;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
  line-height: 20px;
}


/***  Spacing throughout ***/
section {
  margin-top: 1.5rem;
}



/*********************************************************
	LINKS
*********************************************************/

/* General Links: Unvisited (before click) */
a:link {
  text-decoration: none; 		/* Removes the default underline */
}


/* General Links: Visited (after click) */       
a:visited {
  color: var(--accent-mint);  	
  background-color: transparent;
  text-decoration: none;
}



/** Contact Email Link **/
a.email-link {
  color: var(--brand-deep);
  background-color: transparent;
  text-decoration: none;
  padding: 0.7rem ;
  margin:-left: 1.25;
}

/** Email Link, Hover **/
a.email-link:hover {
  color: var(--accent-mint);
}



/*********************************************************
	Standard Asides
*********************************************************/

/* Aside throughout Website */

/**
 aside {
  width: 30%;
  padding-left: 15px;
  margin-left: 15px;
  margin-right: 20px;
  margin-bottom: 20px;
  float: right;
  font-style: italic;
  color: var(--accent-mint);
  background-color: var(--bg-main);
}
**/

/***  Flexbox replaces Asides  ***/
.content-layout {
  display: flex;
  gap: 2rem;
}

.content-layout article {
  flex: 2;
}

.content-layout aside {
  flex: 1;
}


.about-text {
  flex: 2;
}

aside {
  flex: 1;
}



.about-text p {
  margin-bottom: 1.5rem;
}


/***  Stack items on mobile ***/
@media (max-width: 768px) {

  .content-layout {
    flex-direction: column;
  }

  aside {
    width: 100%;
    margin: 0;
  }

}



/* Anchor/Jump Links in Asides */    /** [CAN REMOVE?]  **/
a.aside {
  color: white;
  font-style: normal;
}


/* Bulleted-Lists */                 /** [CAN REMOVE?]  **/
ul {
  color: var(--text-primary);
  margin: 0;
}


/*********************************************************
	Portfolio  
*********************************************************/


/* Global spacing system */
section, article {
  margin-bottom: 2.5rem;
}

/* Card style (reusable everywhere) */
.card {
  background: var(bg--main);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Subtle hover effect */
.card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

/*********************************************************
	Info Page: Paragraph Spans, Asides, etc..
*********************************************************/

p.half {
  color: var(--text-primary);
  justify-content: space-between;
  padding: 0.75rem ;
  width: 50%; 				/* Sets Info PAge to Take up 50% of window*/
  text-align: justify;
  text-justify: inter-word;
}

aside.info {
  width: 40%;
  height: 450px;
  padding-left: 15px;
  margin-left: 15px;
  margin-right: 30px;
  margin-bottom: 15px;

  position: sticky;
  top: 1rem; /* or 0 */

  color: var(--accent-mint);
  background-color: var(--bg-main);
}


/*** Image styling for Aside ***/

img.info {
  border-radius: 15px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/*********************************************************
	Travel Page: Articles, Video, Carosels
*********************************************************/

.travel-layout{
display:flex;
gap:2rem;
color: inherit;
}

.travel-sidebar{
flex:1;
}

.travel-content{
flex:3;
}

@media (max-width:768px){

.travel-layout{
flex-direction:column;
}
}


article.travel {
  background: var(--bg-main);

  text-align: left;
  padding: 0.25rem ;
  margin-top: 0;
  margin-left: 0;
  margin-right:0;
  margin-bottom: 0;
}


/* Change size of first letter of Destination/location */
article.travel::first-letter {
  font-size: 32px;
}


Div.video {
  position: relative;
  max-width: 500px;
  max-height 500px;
  margin: 2.5rem auto;
  overflow: hidden;

  background-color: var(--bg-main);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 79, 82, 0.12);
}

/* Center place-holder for text */
#spholder {
  text-align: center;
  font-size: 16px;
}


/***** Carosel for Travel Pics *****/

.carousel {
  position: relative;
  max-width: 500px;
  max-height: 500px;
  margin: 2.5rem auto;
  overflow: hidden;

  background-color: var(--bg-main);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 79, 82, 0.12);
}

/* Track */
.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

	/* Specifies that links (<a>) are recognized as slide items */
	.carousel-track a {
	  min-width: 100%;   /* makes each slide full width */
	  display: block;    /* ensures proper sizing */
	}

/* Images */
.carousel img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
}


.carousel a img {
  width: 100%;
  display: block;
}


/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background-color: rgba(10, 79, 82, 0.55);
  color: var(--accent-mint);

  border: none;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;

  padding: 0.35rem 0.9rem;
  cursor: pointer;
  border-radius: 999px;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* Hover & intent */
.carousel-btn:hover {
  background-color: var(--brand-deep);
  color: var(--accent-gold);
  transform: translateY(-50%) scale(1.06);
}

/* Keyboard accessibility */
.carousel-btn:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

/* Soft-Motion Tweak */
.carousel-track {
  transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
}


/* Add Cursor + Hover (so users know images are clickable) */
.carousel a {
  display: block;
}

.carousel img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.carousel img:hover {
  transform: scale(1.02);
}


/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;

  background: rgba(0,0,0,0.85);

  justify-content: center;
  align-items: center;
}

/* Active state */
.lightbox.active {
  display: flex;
}

/* Image */
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;

  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}


/* Reduced-Motion Support */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}


/*********************************************************
	Journal Page: Paragraphs, Asides, and Sections
*********************************************************/

.journal-layout {
  display: flex;
  gap: 2rem;
}

.journal-entries {
  flex: 3;
}

aside.journal {
  flex: 1;
}


@media (max-width: 768px) {
  .journal-layout {
    flex-direction: column;
  }

  aside.journal {
    height: auto;
  }

}



p.journal {					/** [CAN REMOVE?]  **/
  background: var(--bg-main);
  color: var(--text-primary );
  text-align: left;
  line-height: 1.25;
  padding: 0.25rem ;
  justify-content: space-between;
  width: 60%; 					/* Span 60% of window */
  margin-top: 0;
  margin-left: 0;
  margin-right:0;
  margin-bottom: 0;
}

section.journal {				/** [CAN REMOVE?]  **/
  background: var(--bg-main);
  color: var(--accent-gold);
  text-align: left;
  padding: 0.25rem ;
  margin-top: 0;
  margin-left: 0;
  margin-right:0;
  margin-bottom: 0;
}

/* Aside for Journal */

aside.journal {				/** [CAN REMOVE?]  **/
  width: 20%;
  height: 75vh;
  padding-left: 15px;
  margin-left: 15px;
  margin-right: 15px;

  position: sticky;				/** [CAN REMOVE?]  **/
  top: 1rem; /* or 0 */
  background-color: rgba(143, 175, 123, 0.6);
  border-radius: 12px;
}



/* Text for Asides in Journal */

p.aside {     					/** [CAN REMOVE?]  **/
  font-style: italic;
  font-size: 18px;
  color: var(--text-primary);
  justify-content: space-between;

  height:75px;
  margin: 0px;
  padding: 10px;

  display: table-cell;
  vertical-align: middle;
  text-align: center;
}


/* Dotted Horizonal Rule for Journal */

hr.journal {
  width: 30%;      /* Sets the width to 30% of its containing block (usually the window/body) */
  margin: 0 auto;  /* Sets top/bottom margins to 0 and left/right margins to 'auto', which centers the block horizontally */
  height: 3px;
  border: 0;
  border-top: 3px dotted var(--brand-primary);
}


/***************************************************************
	Unauthorized Popup for Budget Form -- CAN REMOVE?
***************************************************************/


.modal {
  display: block; 			/* Display by default when this page is served */
  position: fixed; 			/* Stay in place */
  z-index: 1; 				/* Sit on top */
  left: 0;
  top: 0;
  width: 100%; 				/* Full width */
  height: 100%; 			/* Full height */
  background-color: rgb(0,0,0); 	/* Fallback color */
  background-color: rgba(0,0,0,0.4); 	/* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 			/* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; 				/* Could be more or less, depending on screen size */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: underline;
  cursor: pointer;
}


.birdie {
  color: red;
}


/* "Return Home" -- adds line under link when hovered over */
.popup {
  color: var(--accent-mint);
  margin-left: 1rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

/* When hovered over */
.popup:hover {
border-bottom: 3px solid var(--accent-gold);
}


/*********************************************************
	Hero Section Styling (Welcome Page)
*********************************************************/
section.hero {
  flex: 1;
  min-height: 25vh;       /* 25% viewport height */

  display: flex;          /* ADD */
  flex-direction: column; /* ADD */
  justify-content: center;/* vertical center */
  align-items: center;    /* horizontal center */

  text-align: center;
  padding: 1rem;
  background: #4EC1B150;	/* Mint, 50% opacity */
}


section.porthero {
  flex: 1;
  min-height: 25vh;       /* 25% viewport height */
  width: 100%;
  max-width: 100%;

  display: flex;          /* ADD */
  flex-direction: row; 		/* ADD */
  justify-content: center;	/* vertical center */
  align-items: center;    	/* horizontal center */

  text-align: center;
  padding: 1rem;
  background: #4EC1B150;	/* Mint, 50% opacity */

}


section.porthero > section {
  flex: 1;
  min-width: 0; 	/* VERY important for text wrapping */
}


/* text safety */
.porthero li,
.porthero p,
.porthero h1 {
  overflow-wrap: break-word;
}


.porthero > section {
  margin: 0;
  padding: 0;
}


ul.porthero {
  padding-left: 0;
  list-style-position: inside;
  text-align: left;
}



/* Control Spacing in Hero */
.hero a {
  margin-top: 1rem;
}


/* Hero Header Styling */
h1.hero {
  margin-bottom: 0rem;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  padding: 1rem;

  background: #4EC1B100;	/* Mint, 0% opacity */
  color: white;
  max-width: 600px; 

  color: var(--brand-deep);
}


/* Hero Paragraph Styling */
p.hero {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
  margin-bottom: .5rem;
  max-width: 600px;
  color: var(--text-primary);
}

/* Call-to-Action Button */

.cta-btn {
  background: var(--color-primary);
  color: var(--brand-deep);
  padding: 0.7rem ;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  font-size: 1.1rem;
}

.cta-btn:hover {
  filter: brightness(1.2);
  border-bottom: 3px solid var(--bg-main);
}


/**************** Featured Sites  *********************/

/* Featured Posts */
section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
}

h2.feat {
  background: var(--bg-main);
  color: var(--accent-gold);

  font-size: 1.7rem;
  text-align: left;

  padding: 0.25rem ;
  margin-top: 1rem;
  margin-left: 0rem;
  margin-right:0rem;
  margin-bottom: 0rem;
}


p.feat {
  background: var(--bg-main);
  color: var(--text-primary);

  font-size: 1.15rem;
  text-align: left;

  padding: 0.25rem ;
  margin-top: 1rem;
  margin-left: 0rem;
  margin-right:0rem;
  margin-bottom: 0rem;
}


.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
}

.card {
  background: var(--bg-main);
  padding: 1.7rem;
  border-radius: 10px;
  box-shadow: 0 3px 12px var(--shadow-soft);
  transition: 0.2s;
}


.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card:hover {
  box-shadow: 0 6px 18px var(--shadow-medium);
  transform: translateY(-3px);
}

h3.card{
  font-family: "Fraunces", serif;
  color: var(--accent-gold);
  font-size: 1.6rem;
}

h3.portlab{
  font-family: "Fraunces", serif;
  color: var(--brand-deep);
  font-size: 1.4rem;
  text-decoration: underline;
}

.card a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}


/***  Images Transition ***/
.img-hover {
  position: relative;
  width: 100%;
}

.img-hover img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* second image sits on top */
.img-hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* fade in on hover */
.img-hover:hover .img-hover-img {
  opacity: 1;
}


/*********************************************************
	Dashboard Styling
*********************************************************/

/** Financial Overview **/
.dashheader {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: var(--accent-mint);
}


/** Savings Rate "Header" **/
.savings-rate {
  font-weight: 500;
  margin: 10px 0;
  font-size: 30px;
  color: var(--accent-mint);
}

/** Toggle Button for Private Mode **/
#dashbtn {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}


.toggle { 
  margin-left:15px; 
}


button {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}



.filters select { 
  padding:8px; 
  margin-right:10px; 
}



/** Containers and Card formatting for Charts **/

.kpi-container { 
display:flex; 
gap:20px; 
margin:30px 0; 
}

.kpi-card { 
  background:white; 
  padding:20px; 
  flex:1; 
  border-radius:10px; 
  box-shadow:0 2px 6px rgba(0,0,0,0.08); 
}

canvas { 
  background:white; 
  padding:20px; 
  border-radius:10px; 
  margin-top:40px; 
  box-shadow:0 2px 6px rgba(0,0,0,0.08); 
}


/* ===== Chart Layout ===== */

.chart-container{
  display:flex;
  gap:20px;
}

.chart-box{
  flex:1;
}

@media (max-width:768px){

.chart-container{
  flex-direction:column;
}

}

.chart-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* ADD THIS */
}

.chart-box {
  flex: 1 1 300px; /* ADD THIS */
}


/*********************************************************
    MOBILE RESPONSIVE RULES
*********************************************************/

/* ======================================
   Responsive Design
   Mobile-first adjustments
   Breakpoint: 768px
====================================== */


@media (max-width: 768px) {

  section {
    padding: 0 1rem;
  }

  section.porthero {
    flex-direction: column;
    align-items: center;
  }


  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }

  aside {
    float: none;
    width: 100%;
  }

}
