*{
  box-sizing: border-box;
}

@font-face {
  font-family: 'Crosstown';
  src: url('Crosstown.eot'); /* IE9 Compat Modes */
  src: url('Crosstown.eot?#iefix') format('embedded-opentype'), /* IE6–IE8 */
       url('Crosstown.woff2') format('woff2'), /* Super modern browsers */
       url('Crosstown.woff') format('woff'),   /* Modern browsers */
       url('Crosstown.ttf') format('truetype'), /* Legacy Safari, Android */
       url('Crosstown.svg#Crosstown') format('svg'); /* Legacy iOS */
  font-weight: normal;
  font-style: normal;
}

.story-text, .longform, p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;         /* Adjust size as needed */
  line-height: 1.1;          /* Improves readability */
  color: white;              /* Or another appropriate color */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Optional for contrast on backgrounds */
  text-align: left;

}

/* ==== Global Reset and Body Styles ==== */
body {
  margin: 0;
  padding: 0;
  background: url('calcamino.png') center center / cover no-repeat;
  font-family: 'Crosstown', sans-serif;
  color: white;
  position: relative;
  height: 100vh;
  overflow-x: hidden;
}

/* ==== Header Container ==== */
.container-header {
  position: absolute;
  top: 0;
  left: 0;
  height: 20vh;
  width: 40vw;


  display: flex;
  align-items: center;
  justify-content: flex-start;

  font-family: 'Pacifico', cursive; /* Optional if you use a vintage web font */
  font-size: 6rem;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* ==== Subtitle Container ==== */
.container-subtitle {
  position: absolute;
  top: 0;
  right: 0;
  height: 20vh;
  width: 60vw;

  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;

  font-size: 2.1rem;
  font-family: 'Crosstown', sans-serif;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* ==== Hero Text Container ==== */
.container-hero-text {
  position: absolute;
  top: 20vh;
  left: 0;
  width: 40vw;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Crosstown', sans-serif;
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* ==== Right Feature Box Container ==== */
.container-right-box {
  position: absolute;
  top: 20vh;
  right: 2rem;
  width: 58vw;
  height: 60vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 2rem;
  line-height: 1;

  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
}

.right-page-border {
  position: absolute;
  width: 4vw;
  height: 100vh;
  border: none;
  background: transparent;
  right: 2rem; /* This offsets it inward from the edge */
}

/* ==== CTA Button ==== */
.cta {
  background-color: #ff6600;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  padding: 0.6rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #c2410c;
}

.date-label:hover {
    background-color: #e0f7fa;
    transform: scale(1.02);         /* NEW: subtle zoom on hover */
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;                     /* Optional: brings hovered element forward slightly */
}

    
.flash-divider {
  width: 80%;
  border: none;
  height: 1px;
  background-color: #ffffff;              /* fallback for older browsers */
  background-color: rgba(255, 255, 255, 0.4); /* preferred modern value */
  margin-bottom: 1rem;
}

.divider-wrapper-low {
  position: absolute;
  top: 75vh;  /* Or wherever it needs to appear */
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* ==== Footer Navigation Container ==== */
.footer-nav-container {
  position: absolute;
  top: 84vh;
  left: 0;
  width: 100vw;
  height: 16vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.7);
  font-family: 'Crosstown', sans-serif;
  font-size: 2.3rem;
  color: white;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px; /* Prevent content from hiding behind footer */
  box-sizing: border-box;
}

.footer-nav-container a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.footer-nav-container a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  body, html {
    background-image: url('assets/calcamino.png');
    background-repeat: repeat-y; /* or repeat-x, or simply repeat */
    background-size: cover; /* or contain, depending on desired effect */
    background-position: center top;
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  .container-hero-text,
  .container-right-box {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    position: static;
    padding: 1rem;
  }

  .container-right-box {
    align-items: center;
    text-align: center;
  }

  .divider-wrapper-high,
  .divider-wrapper-low {
    position: static;
  }

  .main-text-container {
    width: 90%;
    margin: auto;
    font-size: 1rem;
    padding: 1.5rem;
  }

  .feature-list {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .background-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ✅ Stack subtitle below header */
  
   .container-header {
    position: static;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.55);
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 1rem 0;
  }
  
  .container-subtitle {
    position: static;
    width: 80%;
    height: auto;
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 1rem 0;
  }
  
   .container-header {
    font-size: 4.5rem;
    line-height: 1.2;
  }

  .container-subtitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  /* ✅ Footer stays at the bottom */
  .footer-nav-container {
    position: fixed;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .footer-nav-container a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}

  /* Ensure parent container allows footer to anchor */
  .pages-wrapper, .background-section {
    min-height: 100vh;
    position: relative;
    padding-bottom: 4rem; /* give room for footer */
    box-sizing: border-box;
  }
  /* === Fixed top-left logo (global) === */
:root{
  --logo-left: clamp(12px, 2vw, 24px);
  --logo-top: clamp(12px, 2vh, 24px);
  --logo-width: clamp(125px, 65vw, 550px); /* adjust to taste */
}

/* Accessible “visually hidden” helper for SEO-friendly H1 fallback text */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.site-logo{
  position:fixed;
  inset: var(--logo-top) auto auto var(--logo-left);
  display:block;
  width:var(--logo-width);
  aspect-ratio: 1200 / 330;            /* tweak if your logo’s proportions differ */
  background: no-repeat left top / contain url('/assets/img/calcamino-logo-white.png');
  z-index: 9999;
  text-decoration:none;
}

/* Optional: provide a 2x asset for sharper retina rendering */
@supports (background-image: image-set(url('/assets/calcamino-logo-white.png') 1x)) {
  .site-logo{
    background-image: image-set(
      url('/assets/calcamino-logo-white.png') 1x,
      url('/assets/calcamino-logo-white.png') 2x
    );
  }
}

/* If the fixed logo overlaps content on small screens, add a little top padding */
@media (max-width: 600px){
  body{ padding-top: max(64px, calc(var(--logo-top) + 48px)); }


/* If you had decorative page titles, hide them but keep semantic H1 text for SEO */
.masthead h1, .masthead h2{
  position:absolute; width:1px;height:1px; margin:-1px; clip:rect(0 0 0 0);
  overflow:hidden; white-space:nowrap; border:0;
}
