/*
 Theme Name:   warringah_archers
 Author:       Justin van Emmerik
 Author URI:   https://jve.com.au/
 Template:     astra
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Roboto+Condensed:wght@400;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* =========================
   Global baseline / mobile text behaviour
   ========================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safer wrapping for big display text across devices */
.heading_shadow,
.main_page_h1,
.main_page_h2,
.site-title,
.site-description {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}


/* =========================
   Header / site identity
   ========================= */

.home .site-title {
  font-size: 200px;
}

.ast-site-identity {
  align-items: start !important;
}

.ast-site-title-wrap {
  position: relative;
}

.ast-mobile-svg {
  fill: #EAE7C8 !important;
}

.home .hide-word {
  display: none;
}

.page .entry-title,
.single .entry-title {
  white-space: pre-line;
}


/* =========================
   Headings / typography
   ========================= */

/* Main big shadow heading */
.heading_shadow {
  font-family: Anton, Impact, 'Arial Black', sans-serif;
  text-shadow:
    2px 3px 0 rgba(0, 0, 0, 1),
    0 6px 8px rgba(0, 0, 0, 0.35),
    0 14px 18px rgba(0, 0, 0, 0.15);
}

.heading_shadow_outline {
  font-family: Anton, Impact, 'Arial Black', sans-serif;
text-shadow:
  -1px -1px 0 #000,
   0   -1px 0 #000,
   1px -1px 0 #000,
  -1px  0   0 #000,
   1px  0   0 #000,
  -1px  1px 0 #000,
   0    1px 0 #000,
   1px  1px 0 #000;
}


/* Your custom page headings */
.main_page_h1,
.main_page_h2 {
  font-family: "Anton", sans-serif !important;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-wrap: balance;
}


/* =========================
   Layout helpers
   ========================= */

.half_in_half_out_cover {
  position: relative;
  bottom: 200px;
}

.impact-typeface-z_index {
  position: relative;
  z-index: 2;
}

.wa-description-p,
.wa-description-p-location {
  font-family: "Roboto Condensed", sans-serif;
}

.wa-description-col-location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


/* =========================
   Footer / lists
   ========================= */

#external-links-footer-ul {
  list-style: none;
  text-align: left;
  border-left: 2px solid rgb(255, 196, 0);
  flex: 1;
}

#external-links-footer-ul li {
  margin-left: 10px;
}

.wa_footer_nav_0,
.wa_footer_nav_1,
.wa_footer_nav_2,
.wa_footer_nav_3 {
  padding-left: 20px;
  white-space: nowrap;
}

.wa_footer_nav_0 li a,
.wa_footer_nav_1 li a,
.wa_footer_nav_2 li a,
.wa_footer_nav_3 li a {
  color: #CCC;
}

.wa_footer_nav_0 li a:hover,
.wa_footer_nav_1 li a:hover,
.wa_footer_nav_2 li a:hover,
.wa_footer_nav_3 li a:hover {
  color: #e5001e;
}

.wa_footer_nav_0 { border-left: 2px solid #ffc400; }
.wa_footer_nav_1 { border-left: 2px solid #249ad6; }
.wa_footer_nav_2 { border-left: 2px solid #e5001e; }
.wa_footer_nav_3 { border-left: 2px solid #FFF; }

.vertical_spacer {
  width: 4px;
  background-color: #9C003C;
  height: 60%;
  position: relative;
  top: 25%;
  border-radius: 4px;
}


/* =========================
   Menu underline + separators
   ========================= */

.main-header-menu a {
  position: relative;
  text-decoration: none;
}

.main-header-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 50%;
  height: 3px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.main-header-menu .current-menu-item > a:hover::after,
.main-header-menu .menu-item > a:hover::after {
  opacity: 1;
}

.main-header-menu .current-menu-item > a::after {
  opacity: 0;
}

.main-header-menu > li + li {
  position: relative;
}

.main-header-menu > li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.ast-desktop .main-header-menu .sub-menu {
  min-width: 240px;
  width: max-content;
  position: absolute;
  margin-top: 0;
  z-index: 9999;
}

/* (kept, but removed invalid negative height) */
.ast-desktop .main-header-menu .sub-menu::before {
  content: "•";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px !important;
  background: transparent;
}

.ast-desktop .main-header-menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.main-header-menu .sub-menu a::after {
  bottom: 10px;
}

/* Remove dots on mobile for space */
@media (max-width: 921px) {
  .main-header-menu > li + li::before {
    display: none;
  }
}


/* =========================
   Buttons / stripes / misc
   ========================= */

.cky-notice-btn-wrapper button {
  border-radius: 10px;
}

.archery-stripes {
  --stripe: 300px;
  background-color: #ffc400;
  background-image: repeating-linear-gradient(90deg,
    #ffc400 0 calc(var(--stripe) * 1),
    #e5001e calc(var(--stripe) * 1) calc(var(--stripe) * 2),
    #249ad6 calc(var(--stripe) * 2) calc(var(--stripe) * 3),
    #000000 calc(var(--stripe) * 3) calc(var(--stripe) * 4),
    #ffffff calc(var(--stripe) * 4) calc(var(--stripe) * 5));
  background-size: auto;
}

.tribe-events-widget-events-list__view-more a {
  font-size: 16px;
}

.wa_button:link,
.wa_button:visited {
  background-color: #c40041;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  text-transform: uppercase;
  font-family: roboto, arial, sans-serif;
  font-size: 1.3rem;
  margin: 2px 10px;
}

.wa_button:hover,
.wa_button:active {
  background-color: #6A003A;
}

.wa_clip_bottom_main_page {
  margin-bottom: 20px !important;
}

.arrow_divider {
  opacity: 0.1;
}


/* =========================
   Tables
   ========================= */

.table_30_70 td:nth-child(1) { width: 30%; vertical-align: text-top; }
.table_30_70 td:nth-child(2) { width: 70%; }

.table_25_75 td:nth-child(1) { width: 25%; vertical-align: text-top; }
.table_25_75 td:nth-child(2) { width: 75%; }

.table_20_80 td:nth-child(1) { width: 20%; vertical-align: text-top; }
.table_20_80 td:nth-child(2) { width: 80%; }

.warringah_table_text_top table td,
.warringah_table_text_top table th {
  vertical-align: top;
}

.warringah_table_text_top ol,
.warringah_table_text_top ul {
  margin: 0;
}


/* =========================
   TEC / Events fixes
   ========================= */

/* Fix Astra 3-column blog grid being applied to Events Calendar rows */
body.post-type-archive-tribe_events .ast-blog-layout-4-grid .ast-article-post,
body.single-tribe_events .ast-blog-layout-4-grid .ast-article-post {
  width: auto !important;
}

.tribe-events-widget-countdown h3 a {
  font-family: "Roboto Condensed", sans-serif !important;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #48563A !important;
}

.countdown_timer_column_block {
  padding-left: 40px;
}

/* Tickets Form Rounded Border */
#tribe-tickets__tickets-form {
  border-radius: 10px;
  border: 3px solid #fdcb56;
}

/* Featured image rounded corners */
.tribe-events-calendar-list__event-featured-image,
.tribe-events-event-image,
.tribe-events-event-image img,
.tribe-related-events-thumbnail a {
  border-radius: 10px;
  border: 1px solid white;
  box-shadow:
    0 12px 24px -18px rgba(0, 0, 0, 0.3),
    0 2px 6px -4px rgba(0, 0, 0, 0.2);
}

/* TEC home page tweaks */
.home .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
  padding-bottom: var(--tec-spacer-4) !important;
  padding-top: var(--tec-spacer-3) !important;
}

.home .tribe-common--breakpoint-medium.tribe-common .tribe-common-h6--min-medium {
  font-size: unset !important;
}


/* =========================
   Shortcode colours
   ========================= */

.bold-latest-event-date { color: #9C003B; }
.latest-event-date { color: #000; }
.latest-event-title { color: #34A5DA; }


/* =========================
   Lists
   ========================= */

.warringah_cheeky_list {
  list-style: none;
  padding: 0;
  text-align: right;
}

.warringah_cheeky_list li {
  position: relative;
  padding-right: 1em;
}

.warringah_cheeky_list li::before {
  content: "•";
  position: absolute;
  right: 0;
  font-size: 1.5em;
  top: -7px;
}


/* =========================
   FAQ details
   ========================= */

.faq_detail > summary {
  cursor: pointer;
}

.faq_detail > p {
  margin-block-start: 5px !important;
  margin-block-end: 15px !important;
  padding: 20px;
  color: #000;
  background-color: cornsilk;
  border-radius: 10px;
}


/* =========================
   Maps
   ========================= */

.wa-location-map-display iframe {
  height: 600px;
}


/* =========================
   Search in menu
   ========================= */

.menu-item-search {
  position: relative;
}

.menu-search-toggle {
  position: relative;
  width: 52px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.menu-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 280px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 0 0 10px 10px;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.menu-search-panel[hidden] {
  display: block !important;
}

.menu-search-toggle[aria-expanded="true"] + .menu-search-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-search-panel input.search-submit {
  display: none !important;
}


/* =========================
   Responsive typography + mobile layout
   ========================= */

/* Phones */
@media (max-width: 768px) {

  .site-title {
    font-size: clamp(2.3rem, 7.5vw, 2.4rem) !important;
    line-height: 0 !important;
  }

  .site-description {
    font-size: clamp(1.5rem, 7vw, 0.75rem) !important;
    line-height: 1.15 !important;
  }

  .heading_shadow {
    font-size: clamp(2.25rem, 8vw, 3.25rem) !important;
    line-height: 1.1 !important;
  }

  .main_page_h1,
  .main_page_h2 {
    font-size: clamp(3.5rem, 5.5vw, 4.5rem) !important;
    line-height: 0 !important;
  }

  .find_us_mobile,
  .how_to_mobile {
    line-height: 1.1 !important;
  }

  .wp-block-columns .wp-block-column:not(:last-child) {
    margin-bottom: 0 !important;
  }

  .mobile_feature_box {
    border-bottom-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .mobile_feature_box_gap_bottom { margin-bottom: 20px !important; }
  .mobile_feature_box_gap_top { margin-top: 20px !important; }

  .mobile_hidden { display: none; }

  .wa-description-p { font-size: 1.3rem !important; }

  .home_moble_right_header { text-align: center; }

  .arrow_divider_mobile { width: 100px !important; }

  .group_indent_mobile { padding: 0 20px !important; }

  .wa-description-p-location {
    font-size: 1rem !important;
    padding-left: 0 !important;
    padding-right: 10px !important;
  }

  .wa-location-map-display iframe {
    height: 200px !important;
    padding-right: 18px;
  }

  .cover_title_top_left {
    font-size: clamp(2.5rem, 16vw, 5rem) !important;
  }

  .countdown_timer_column_block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Tablets / large phones in landscape (769–1024) */
@media (min-width: 769px) and (max-width: 1024px) {

  .tablet_hidden { display: none; }

  .main_page_h1,
  .main_page_h2 {
    font-size: clamp(3.5rem, 5.5vw, 4.5rem) !important;
    line-height: 1.08 !important;
  }
}
