/*
Theme Name: Cornet Theme
Theme URI: https://example.com
Author: Your Name
Description: Custom WP theme with hero, nav, and content overlay
Version: 1.0
*/

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000;
}
html, body {
  height: 100%;
  margin: 0;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

.elementor-section,
.elementor-container,
.elementor-column {
  max-width: 100%;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Prevent nav wrapping; manage via font/gap + breakpoint */
.nav-menu, .nav-menu ul { flex-wrap: nowrap; min-width: 0; }
.navbar { overflow-x: clip; } /* guardrail for any stragglers */

main {
  flex: 1; /* pushes footer down when content is short */
}

header {
  background-color: white;
  border-bottom: 1px solid #ffd100;
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
body.tribe-events header {
  background-color: white;
}
/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #0072ce;
  border-bottom: 5px solid #ffd100;
  color: white;
  flex-wrap: nowrap; /* keep everything on one line */
  position: relative; /* anchor absolute hamburger inside navbar */
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  padding-right: 20px;
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 22px);
  margin-left: auto; /* push nav to the right */
  justify-content: flex-end; /* keep contents right-aligned */
  flex: 0 1 auto;
  min-width: 0;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: clamp(8px, 1vw, 18px);
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end; /* align links to the right */
  flex-wrap: nowrap; /* no wrapping */
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-style: normal;
  font-size: clamp(13px, 1vw, 20px); /* start bigger, same shrink rate */
  line-height: 1.2;
  white-space: nowrap; /* prevent wrapping */
}
.navbar a {
  font-size: clamp(13px, 1.2vw, 17px);
}

/* Join button */
.join-button {
  display: inline-block;
  background-color: white;
  color: #0070ce;
  font-weight: bold;
  padding: clamp(8px, 1.2vw, 12px) clamp(12px, 1.8vw, 20px);
  border-radius: 8px;
  font-size: clamp(12px, 1.5vw, 16px);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  max-width: 90vw;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.join-button:hover,
.join-button:focus-visible {
  background-color: #ffd100; /* CSUEU yellow */
  color: white;
}

@media (max-width: 800px) {
  .join-button {
    font-size: 0.8rem; /* retained for mobile overlay context */
  }
}

/* Make CTA wrap to its own line on tighter desktops/tablets */
/* CTA spacing next to menu */
.cta-wrapper { margin-left: clamp(8px, 1.2vw, 16px); }

/* Tighter typography/gaps before switching to mobile */
@media (max-width: 1200px) {
  .nav-menu { gap: clamp(6px, 1.2vw, 16px); }
  .nav-menu ul { gap: clamp(6px, 1vw, 14px); }
  .nav-menu ul li a { font-size: clamp(12px, 1.05vw, 16px); }
}


/* Hide desktop nav on mobile (earlier, no-wrap safety) */
@media (max-width: 1200px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: inline-block; /* ensure toggle shows when desktop nav hides */
  }
}

/* Hide hamburger on desktop */
@media (min-width: 1201px) {
  .hamburger {
    display: none;
  }
}

/* Desktop nav hover accent (yellow line above link) */
.navbar .nav-menu ul li a {
  position: relative;
  transition: color 250ms ease;
}

.navbar .nav-menu ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px; /* place line just above the text */
  height: 3px;
  background: #ffd100; /* accent yellow */
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.navbar .nav-menu ul li a:hover,
.navbar .nav-menu ul li a:focus-visible {
  color: #ffd100; /* accent text on hover */
}

.navbar .nav-menu ul li a:hover::before,
.navbar .nav-menu ul li a:focus-visible::before {
  transform: scaleX(1);
  opacity: 1; /* fade in line */
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}
/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: none; /* hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 80px;
  box-sizing: border-box;
}

/* Menu List */
.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.mobile-nav-menu li {
  margin: 20px 0;
}

.mobile-nav-menu a {
  font-size: 2rem;
  font-weight: 600;
  color: black;
  text-decoration: none;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #0070ce;
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: #ffd100; /* CSUEU yellow */
  color: white;
}


/* Close Button */
.close-nav {
  position: absolute;
  top: 60px;
  left: 20px; /* changed from right to left */
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}


/* Hamburger Icon */
.hamburger {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
}

.hamburger.active {
  color: black; /* turns black when menu is open */
}


/* (removed old 768px rule to avoid conflict with 1200px breakpoint) */

/* Desktop styles */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-text {
    flex: 1;
    padding-right: 40px;
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .hero-text p {
    font-size: 3rem;
  }
}

.swoosh{
  position:relative;
  display:inline-block;   /* so the underline fits the phrase only */
  z-index:0;
}
/* the underline */
.swoosh::after{
  content:"";
  position:absolute;
  left:-.15em;            /* overhang on left */
  right:-.15em;           /* overhang on right */
  bottom:.12em;           /* gap under text */
  height:.22em;           /* thickness of the stroke */
  z-index:-1;
  background-repeat:no-repeat;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 22 2 42 7 T 82 7 T 98 7' fill='none' stroke='%23FFD100' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.footer-contact {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-contact {
    text-align: center;
  }
}

/* Header area of TEC views */
.tribe-events .tribe-events-header,
.tribe-events .tribe-common-h2.tribe-events-calendar-list__month-separator {
  background: #ffffff;      /* change page header bg */
  color: #111;              /* header text */
  border-bottom: 1px solid #e6e6e6;
  padding-block: 12px;
}

/* Navigation (Prev/Next & datepicker) */
.tribe-events .tribe-events-c-events-bar,
.tribe-events .tribe-common-c-btn,
.tribe-events .tribe-common-c-btn-border,
.tribe-events .tribe-common-c-btn-icon {
  border-radius: 6px;
}
.tribe-events .tribe-common-c-btn {
  background: #0072ce;      /* button background */
  color: #fff;              /* button text */
}
.tribe-events .tribe-common-c-btn:hover {
  filter: brightness(0.92);
}

/* Month view cells */
.tribe-events .tribe-events-calendar-month__day {
  background: #fff;
  border: 1px solid #ececec;
}
.tribe-events .tribe-events-calendar-month__day--current {
  box-shadow: inset 0 0 0 2px #0072ce;
}
.tribe-events .tribe-events-calendar-month__calendar-event {
  background: #f5f9ff;
  border-left: 4px solid #0072ce;
  padding: 6px 8px;
  border-radius: 4px;
}

/* List view cards */
.tribe-events .tribe-events-calendar-list__event {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px;
}
.tribe-events .tribe-events-calendar-list__event-title a {
  color: #111;
  text-decoration: none;
}
.tribe-events .tribe-events-calendar-list__event-title a:hover {
  text-decoration: underline;
}

/* Single Event page */
.single-tribe_events .tribe-events-single-event-title {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.single-tribe_events .tribe-events-schedule__datetime {
  color: #0072ce;
  font-weight: 600;
}
.single-tribe_events .tribe-events-event-categories a,
.single-tribe_events .tribe-events-tag a {
  background: #eef5ff;
  border-radius: 999px;
  padding: 2px 8px;
  text-decoration: none;
}

/* Links & accents inside TEC only */
.tribe-events a {
  color: #0054a3;
}
.tribe-events a:hover {
  text-decoration: underline;
}

/* Optional: neutralize your theme’s site header *only* on TEC pages
   (keeps header markup but removes the blue) */
body.tribe-events header,
body.post-type-archive-tribe_events header,
body.single-tribe_events header,
body.tax-tribe_events_cat header {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
body.tribe-events header::before,
body.tribe-events header::after {
  content: none !important;
}

/* Hide the TEC datepicker toggle button */
body.tribe-events .tribe-events-c-top-bar__datepicker-button,
body.tribe-events .tribe-events-c-top-bar__datepicker-button--open {
  display: none !important;
}

/* (optional) also hide the popover if it exists */
body.tribe-events .tribe-events-c-events-bar__datepicker,
body.tribe-events .tribe-events-c-top-bar__datepicker {
  display: none !important;
}

/* Stacked paper container */
.stacked-card {
  position: relative;
  z-index: 0; /* anchor stacking; pseudo layers stay behind */
  padding: 3rem 3rem 3.25rem;
  background-color: #0d62b3; /* main sheet */
  background-image:
    linear-gradient(rgba(13, 98, 179, 0.9), rgba(13, 98, 179, 0.9)), /* keeps text readable */
    url("/wp-content/uploads/2025/09/crosshatch.png");
  background-size: auto, auto; /* keep hatch at native size */
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, multiply;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.stacked-card::before,
.stacked-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #014c8f; /* mid-dark layer */
  transform: rotate(-3deg); /* back card only */
  z-index: -1;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
  opacity: 1;
}
.stacked-card::after {
  inset: 36px;
  background: #00234f; /* darkest sheet */
  transform: rotate(3deg); /* back card only */
  z-index: -2;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.26);
  opacity: 1;
}

.stacked-card__body {
  display: contents; /* keep legacy markup without altering layout */
}

/* Ensure inner elements never paint over the hatch */
.stacked-card > * {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

@media (max-width: 768px) {
  .stacked-card {
    padding: 2rem;
  }
}
