/* assets/css/custom.css */

/* Load fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* Define palette & fonts */
:root {
  /* Fonts */
  --font-body:    'Figtree', sans-serif;
  --font-heading: 'Raleway', sans-serif;

  /* Core colors */
  --color-primary:    #E9ecf2; /* for nav, buttons, etc. */
  --color-info:       #84ae92; /* for hero background */
  --color-success:    #b9d4aa;
  --color-warning:    #c9775c;
  --color-danger:     #6d3d2b;
  --color-tile-bg:    #f9fafb;
  
  /* Text & links */
  --color-text:       #3b3b3b;
  --color-background: #f7f4eb;
  --color-link:       #c9775c;
  --color-link-hover: #6d3d2b;
  --color-menu-link:  #6d3d2b;  /* default link color in navbar */
  --color-menu-link-hover: #c9775c;  /* hover state */
  --color-heading-text: #496439;

  /* Light bg helpers */
  --color-bg-light:   #F2F2F2;
  --color-bg-lighter: #FAFAFA;
}

/* Apply fonts */
body {
  font-family: var(--font-body);
  color:       var(--color-text);
  background:  var(--color-background);
}

h1 {
  font-family: var(--font-heading);
  font-size: x-large !important;   
  font-weight: 800 !important;    
}
h2 {
  font-family: var(--font-heading);
  font-size: larger;    
  font-weight: 650;   
}
h3 {
  font-family: var(--font-heading);
  font-size: large;  
  font-weight: 500;    
}
h4 {
  font-family: var(--font-heading);
  font-size: medium;  
  font-weight: 400;
}
h5 {
  font-family: var(--font-heading);
  font-size: medium; 
  font-weight: 350;    
}
h6 {
  font-family: var(--font-heading);
  font-size: 1rem;     /* ~16px */
  font-weight: 300;
}

.content h1 {
  font-family: var(--font-heading);
  font-weight: 800 !important;    
}
.content h2 {
  font-family: var(--font-heading);
  font-weight: 650;   
}
.content h3 {
  font-family: var(--font-heading);
  font-weight: 500;    
}
.content h4 {
  font-family: var(--font-heading);
  font-weight: 400;
}
.content h5 {
  font-family: var(--font-heading);
  font-weight: 350;    
}
.content h6 {
  font-family: var(--font-heading);
  font-weight: 300;
}


/* Override Carpet’s main areas */
/* Navbar (site header) */
.navbar {
  background-color: var(--color-primary) !important;
}

.hero.is-primary .nav {
    box-shadow: 0 1px 0 #44582630 !important;
}

.hero.is-primary .nav-menu {
    background-color: var(--color-primary) !important;
    font-family: var(--font-heading);
}

.hero-body.subtitle {
    font-family: var(--font-body) !important;
}

.navbar-menu .navbar-item {
  color: var(--color-heading-text) !important;
  background-color: transparent !important;
  font-family: var(--font-heading);
  font-weight: 500;             /* medium weight for all menu links */
  font-size: 1rem;              /* you can tweak this too */
}
 a.nav-item:hover {
  color: var(--color-menu-link-hover) !important;
}

a.nav-item {
    color: var(--color-heading-text) !important;
    font-family: var(--font-heading);
}

.nav-toggle span {
    background-color: var(--color-heading-text) !important;
}

/* “Hero” banner */
.hero.is-primary {
  background-color: var(--color-primary) !important;
  font-family: var(--font-heading);
  font-weight: bold;
}
.hero.is-primary .title,
.hero.is-primary .subtitle {
  color: var(--color-heading-text) !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
}
/* Heading link */
.u-url {
  font-family: var(--font-heading);
  font-weight: 700 !important;
  text-transform: math-auto !important;
}

/* Page Heading */
.title.is-1 {
  text-transform: math-auto !important;
}

/* Footer (Bulma “hero” footer) */
.footer,
.site-footer {
  background-color: var(--color-primary) !important;
  color: var(--color-text)          !important;
  font-family: var(--font-heading);
}

/* Body Links */
body a {
  color: var(--color-link);    
  }
body a:hover {
  color: var(--color-link-hover);
}

/* Buttons & notifications */
.button.is-primary,
.notification.is-primary {
  background-color: var(--color-primary) !important;
  border-color:     var(--color-primary) !important;
  color:            var(--color-heading-text)       !important;
}
.button.is-info,
.notification.is-info {
  background-color: var(--color-info) !important;
  border-color:     var(--color-info) !important;
  color:            var(--color-heading-text)     !important;
}

/* Background helpers */
.has-background-light {
  background-color: var(--color-bg-light) !important;
}
.has-background-dark {
  background-color: var(--color-bg-lighter) !important;
}

/* Code blocks */
code, pre {
  background-color: var(--color-bg-light) !important;
  color:            var(--color-text)    !important;
}

/* Body & Comment Padding */
.section.content.e-content.entry-content {
  padding: 2.5rem 0rem !important;
  border-top: 0.1rem solid var(--color-primary) !important;
}

.section.comments {
  padding: 2.5rem 0rem !important;
}

/* Main header formatting */
.media.metadata {
  font-family: var(--font-heading);
  font-size: x-large !important;   
  font-weight: 800 !important;    
}

/* Post tag formatting */
.tag.is-primary.is-medium.p-category {
  background-color: var(--color-success)!important;
  text-decoration: darkslategrey !important;
  font-weight: bolder;
}

a.logo-link {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

a.logo-link:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Home page tile */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.button-tile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 125px;
   overflow: hidden; 
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--color-primary);
}

.button-tile-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire space without distortion */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* Place the image behind the overlay */
  transition: transform 0.3s ease-in-out;
}

/* A slight zoom effect on the image when hovering */
.button-tile-container:hover img {
  transform: scale(1.05);
}

.button-tile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using a semi-transparent background color from your palette */
  background-color:  rgba(141, 114, 85, 0.6);
  z-index: 1; /* Place the overlay on top of the image */
  transition: background-color 0.3s ease-in-out;
}

/* Hover effect to make the boxes more interactive */
.button-tile-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Change the overlay color on hover for a subtle animation */
.button-tile-container:hover::before {
  background-color:  rgba(193, 155, 114, 0.8);
}

.button-tile-title {
  position: relative;
  z-index: 2;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--color-background) !important;
  text-decoration: none !important;
  padding: 0.5em 1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-tile-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
}

.tile-image {
  width: 100%;
  height: auto;
  display: block;
}

.tile-meta {
  padding: 1rem;
}

.tile-category {
  font-size: 0.75rem;
  color: #b27b44;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.tile h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.tile-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.tile-excerpt {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    color: #555;
}

.tile-date {
    font-size: 0.8rem;
    color: #888;
}

.button-row {
    display: flex;
    width: 100%;
    margin-top: 0em;
    gap: 2em;
    text-align: center;
}

.half-button {
    flex: 1;
    text-align: center;
    padding: 1em 1em;
    background-color: var(--color-bg-light);
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.half-button:hover {
    background-color: var(--color-link);
    color: var(--color-primary);
}

.header-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("/images/hero_img.jpg");
    width: 100%;
    min-height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    border-radius: 10px;
}

.hero-text {
  text-align: left;
  position: absolute;
  top: 40%;
  left: 20%;
  transform: translate(-50%);
  color: var(--color-bg-lighter);
}

@media (max-width: 768px) {
    .hero-text {
        left: 38%;
        transform: translate(-50%, -50%);
    }
}

.hero-text p {
  margin-bottom: 1em;
  margin-top: .5em;
}

.hero-text button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px 25px;
  color: var(--color-bg-lighter);
  background-color: var(--color-menu-link-hover);
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  font-weight: bold;
  font-family: var(--font-body);
  text-decoration: none;
}

.hero-text button:hover {
  background-color: var(--color-bg-lighter);
  color: var(--color-menu-link-hover);
  text-decoration: none;
}

.split-container {
    display: flex;
    width: 100%;
    gap: 2em; /* optional space between the two */
    align-content: center;
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .split-image img {
    object-fit: cover;
    border-radius: 10%;
    max-width: 80%; 
    max-height: 250px;
    margin: 0 auto 1em;
    display: block;
  }
}

.split-image {
    flex: 1; /* 1 part of the space */
    text-align: center;
    align-content: center;
}

.split-image img {
    object-fit: cover;
    border-radius: 10%; /* optional rounded corners */
    text-align: center;
    max-width: 85%;
    height: auto;
}

.split-text {
    flex: 4; /* 3 parts of the space */
}


.homepage-stat-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  flex-wrap: wrap;
  border: none;
  padding: 0rem;
  gap: 1.5rem;
}

.homepage-stat-boxes > div {
  background-color: var(--color-bg-light); 
  padding: 2rem;
  border-radius: 1rem; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 1px solid var(--color-primary);
}

.homepage-stat-boxes > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px
}

.homepage-stat-boxes .stat-icon {
  font-size: 2.5rem;
  color: var(--color-info);
  margin-bottom: 1rem;
  transition: transform 0.3s ease-in-out;
}

.homepage-stat-boxes > div:hover .stat-icon {
  transform: scale(1.1);
}

.stat-title {
  font-weight: 600; /* Bolder title */
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1rem;
  color: var(--color-link);
}

/* Media query to explicitly ensure stacking for smaller mobile screens */
@media (max-width: 600px) {
  .homepage-stat-boxes {
    padding: 1rem;
    gap: 1rem;
  }
}


img.responsive-hero {
  width: auto;
  height: 150px;
  max-height: 150px; /* Optional: prevent it from becoming too tall */
  object-fit: cover; /* Optional: crops the image nicely */
}

.hero-body {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 0rem 0rem !important;
}

.hero.is-primary {
  color: var(--color-heading-text) !important;
}

.fa-stack {
  text-align: right;
  padding-inline: 1rem;
  width: 1em;
  height: .5em;
}

.footer-layout-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.footer-socials {
  /* Aligns the icons and adds some spacing between them */
  display: flex;
  align-items: center;
  gap: 1rem; /* Adjust this value for more or less spacing */
}

.map-and-notes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--color-bg-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.map-section {
  flex: 2; 
  min-width: 300px;
}

.notes-section {
  flex: 1;
  background-color: var(--color-bg-lighter);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .map-section,
  .notes-section {
    flex: 1 1 100%;
  }
}

.about-heading::after {
  content: ''; 
  display: block; 
  width: 150px; 
  height: 4px; 
  background-color: var(--color-menu-link-hover);
  margin-top: 10px; 
}

.about-heading {
  color: var(--color-heading-text)!important;
}