/* Base layout */
html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ✅ Parallax Section Styling — DESKTOP FIXED */
.parallax-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ✅ Works on desktop */
}

/* Make the parallax text match the page width */
.parallax-section .parallax-content {
  width: min(100%, 1200px);   /* adjust 1100–1300px to taste */
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;       /* keep some breathing room */
}


/* ✅ Disable fixed background on mobile (iPhone/Android) */
@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ✅ Only fade in the content (NOT the section — prevents parallax break) */
.parallax-content {
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 10px;
  color: #fff;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.parallax-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Normal Content Sections Between Parallax */
.content-section {
  width: min(100%, 1200px);   /* was max-width: 900px */
  margin: 0 auto;
  padding: 80px 20px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #333;
  background: #f8f8f8;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* ✅ Card Grid Section (Image + Caption Cards) */
.card-grid-section {
  padding: 80px 20px;
  text-align: center;
  background: #f8f8f8;
}

.card-grid-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.image-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

.image-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-caption {
  padding: 20px;
}

.card-caption h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card-caption p {
  font-size: 1rem;
  color: #555;
}

/* ✅ Navbar Fixes */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
  .navbar-nav.ms-auto {
    margin-left: auto !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav.ms-auto {
    margin-left: 0 !important;
  }
}

/* ✅ Custom Hamburger Icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Contact form styling (affects Convert Forms output) */
.convertforms {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.convertforms input[type="text"],
.convertforms input[type="email"],
.convertforms textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.convertforms button,
.convertforms input[type="submit"] {
  background: #1e73be;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.convertforms button:hover,
.convertforms input[type="submit"]:hover {
  background: #155b90;
}

/* ====== Header Branding: logo left + title + tagline right ====== */
.navbar-brand.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;              /* spacing between logo and text */
  flex-wrap: nowrap;
}

/* keep logo constrained and aligned nicely */
.navbar-brand .brand-logo img {
  display: block;
  max-height: 80px;       /* adjust to suit header height */
  height: auto;
  width: auto;
}

/* stack title + tagline vertically */
.navbar-brand .site-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.navbar-brand .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.navbar-brand .site-description {
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
}

/* Align baseline of text with logo midline */
/*.navbar-brand .site-title-group {
  align-self: center;
}*/

#back-top.back-to-top-link {
    position: fixed;
    bottom: 30px; /* allow JS to modify this */

    /* CENTER IT */
    left: 50%;
    transform: translateX(-50%);

    /* SIZE */
    width: 56px;
    height: 56px;
    line-height: 56px;

    /* CIRCLE */
    border-radius: 50%;
    background: #DC8646;

    /* ICON ALIGNMENT */
    display: flex;
    align-items: center;
    justify-content: center;

    /* ICON SIZE */
    font-size: 26px;

    /* SMOOTH */
    transition:
        bottom 0.3s ease,
        transform 0.25s ease,
        opacity 0.25s ease;

    /* Elevation */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);

    /* Above everything */
    z-index: 999999;
}

/* White icon */
#back-top .icon-arrow-up {
    filter: brightness(0) invert(1);
}

/* Hover effect */
#back-top.back-to-top-link:hover {
    transform: translateX(-50%) scale(1.12);
    background: #5b7e83;
}

#login-modal .modal-dialog {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

#login-modal .modal-content {
  border-radius: 10px;
  padding: 6px 0;
}

#login-modal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

#login-modal .modal-body {
  padding-top: 0;
}

/* =========================================================
   Compact Cassiopeia header WITHOUT breaking the navbar
   (paste at bottom of user.css)
   ========================================================= */

/* 1) Remove Cassiopeia's big vertical padding on the header area */
header.header.container-header.full-width {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* Cassiopeia adds padding on these grid children */
header.header.container-header.full-width > .grid-child,
header.header.container-header.full-width > .grid-child.container-nav {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* 2) Tighten the branding block itself */
header .navbar-brand.site-branding {
  padding-top: 0 !important;
  padding-bottom: 10px !important; /* a little room under tagline */
  margin: 0 !important;
}

/* Tighten title/tagline spacing */
header .site-title-group,
header .site-title,
header .site-description {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.15;
}

/* Optional: control logo height (this WILL now affect header height) */
header .navbar-brand.site-branding img {
  display: block;
  max-height: 120px; /* adjust 60–80 */
  width: auto;
  height: auto;
  margin: 0 !important;
}

/* 3) Fix “menu disappeared” by forcing desktop collapse to be visible */
@media (min-width: 992px) {
  header .container-nav .navbar-collapse {
    display: flex !important;     /* show the menu */
    flex-basis: auto !important;
  }
  header .container-nav .navbar-nav {
    margin-left: auto !important; /* keep it right aligned */
  }
  header .container-nav .navbar-toggler {
    display: none !important;     /* no hamburger on desktop */
  }
}

/* 4) Pill background (your Option B), without a full-width bar */
header .container-nav .navbar.bg-light {
  background: transparent !important;
  padding: 0 !important;
}
header .container-nav .navbar .container-fluid {
  padding: 0 !important;
  background: transparent !important;
}
header .container-nav .navbar-nav {
  background: rgba(248, 249, 250, 0.95);
  border-radius: 10px;
  padding: 6px 10px;
}

/* 5) Keep header clickable above parallax (no layout side-effects) */
/*header.header.container-header.full-width {
  position: relative;
  z-index: 1000;
}
*/
.parallax-section { z-index: 0; }

@media (min-width: 768px) {
  header.header .navbar-brand {
    top: 4px !important;
  }
}

.navbar-brand .site-title { font-size: 2rem;}

//**********************************************************

/* =========================================================
   HEADER: Always 2 columns on desktop (logo left, nav/user right)
   ========================================================= */

@media (min-width: 768px) {
  /* Your confirmed Cassiopeia fix */
  header.header .navbar-brand { top: 0 !important; }
}

@media (min-width: 992px) {

  /* 1) Force header into 2-column grid */
  body.site header.header.container-header.full-width{
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    column-gap: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 2) Cancel Cassiopeia “span full width” behaviour on grid children */
  body.site header.header.container-header.full-width > .grid-child{
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 3) Put branding explicitly in column 1 */
  body.site header.header.container-header.full-width > .grid-child:first-of-type{
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
  }

  /* 4) Put nav/user explicitly in column 2 */
  body.site header.header.container-header.full-width > .grid-child.container-nav{
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;

    min-width: 0 !important;
    position: relative !important;
    z-index: 50 !important;
  }

  /* 5) Logged-in module (Hi name + Logout) stays compact */
  body.site header.header.container-header.full-width
  > .grid-child.container-nav form.mod-login-logout{
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  /* 6) Navbar takes remaining space and stays right-aligned */
  body.site header.header.container-header.full-width
  > .grid-child.container-nav nav.navbar{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.site header.header.container-header.full-width
  > .grid-child.container-nav .navbar .container-fluid{
    padding: 0 !important;
    width: 100% !important;
  }

  body.site header.header.container-header.full-width
  > .grid-child.container-nav .navbar-collapse{
    display: flex !important;
    width: 100% !important;
    justify-content: flex-end !important;
  }

  body.site header.header.container-header.full-width
  > .grid-child.container-nav .navbar-nav{
    margin-left: auto !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }
}

header .mod-login-logout__login-greeting {
  font-weight: 500;
  opacity: 0.85;
}

header .mod-login-logout__button button {
  margin-left: 6px;
}

header .mod-login-logout__login-greeting {
  color: rgba(255, 255, 255, 0.9) !important;
}

