﻿/*
 * ============================================================================
 * Copyright (c) 2025 ATH SOLUTIONS (PTY) LTD. All rights reserved.
 * KwaZulu-Natal, Republic of South Africa.
 * ============================================================================
 *
 * @BEGIN Developer Log Header Block
 * @FILENAME: public.css
 * @TITLE: Wexford Lodge - Member Portal
 * @DESCRIPTION: Public-facing website stylesheet. Styles the unauthenticated home page, CMS content blocks, public navigation (transparent-to-solid scroll), hero section, event teasers, officers grid, and site footer. All values from tokens.css.
 * @AUTHOR: Ary van der Pijl
 * @COMPANY: ATH SOLUTIONS (PTY) LTD
 * @WEBSITE: https://www.ath.solutions/
 * @EMAIL: info@ath.solutions
 * @COPYRIGHT: All Rights Reserved
 * @LICENSE: ATH SOLUTIONS - PROPRIETARY SOFTWARE LICENCE AGREEMENT (https://www.ath.solutions/documents/ath_solutions_software_licence_agreement.pdf)
 *
 * BEGIN CHANGELOG
 * @IMPORTANT NOTICE: Developers working on these files MUST update and maintain the Developers Change Log, failure to do is not an option:
 * !==================================================================================================================================================================
 * VERSION 1.0.0.6
 * - File Modified | Ary van der Pijl | 2026/07/20 | QA-124 | Mobile pass: .public-nav__brand/.public-nav__lodge-name can now shrink and truncate instead of overflowing the header at 320-375px; .public-nav__toggler and .public-nav__link bumped to a 44px touch target; .banner-carousel__pause bumped to 44px and moved to top-center so it no longer overlaps the Bootstrap next-slide control's tap zone; .banner-carousel__indicators buttons keep their small visual dot but gained a 44px invisible-padding tap area. |
 * VERSION 1.0.0.5
 * - File Modified | Ary van der Pijl | 2026/07/11 | A11Y-009 | Added .banner-carousel__pause styles for the new carousel pause/play control. |
 * VERSION 1.0.0.4
 * - File Modified | Ary van der Pijl | 2026/07/11 | CSS-003 | Replaced repeated untokenized rgba(255,255,255,0.08)/(0.80) values with --overlay-white-08/--overlay-white-80. |
 * VERSION 1.0.0.3
 * - File Modified | Ary van der Pijl | 2026/07/11 | CSS-006 | Public nav collapse breakpoint changed from the untokenized Bootstrap 991px to the app shell's tokenized --bp-lg (1024px), so the public nav and authenticated sidebar collapse at the same viewport width. |
 * VERSION 1.0.0.2
 * - File Modified | Ary van der Pijl | 2026/06/19 | STANDARDS-COMPLIANCE | Applied ATH Solutions 2026 coding standards. |
 * VERSION 1.0.0.1
 * + File Created, Ary van der Pijl, 2026/06/09
 * + Rebuilt 2026/06/13 - full design system migration, token-only values, inline styles eliminated
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC BODY
═══════════════════════════════════════════════════════════════════════════ */

.public-body {
  background: var(--color-surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC NAVIGATION
═══════════════════════════════════════════════════════════════════════════ */

.public-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-primary);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.public-nav--scrolled {
  box-shadow: var(--shadow-lg);
}

.public-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.public-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.public-nav__brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.public-nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.public-nav__lodge-name {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--text-xl);
  letter-spacing: var(--letter-spacing-wide);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-nav__toggler {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--overlay-white-80);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.public-nav__toggler:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.public-nav__collapse {
  flex: 1;
}

.public-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.public-nav__link {
  display: block;
  color: var(--overlay-white-80);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.public-nav__link:hover {
  color: rgba(255, 255, 255, 1);
  background: var(--overlay-white-08);
  text-decoration: none;
}

.public-nav__cta {
  margin-left: var(--space-2);
}

/* Matches the app shell's --bp-lg (1024px) - see tokens.css; CSS custom properties cannot be used in @media feature values. */
@media (max-width: 1023px) {
  .public-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) 0;
    gap: var(--space-1);
  }

  .public-nav__cta {
    margin-left: 0;
    margin-top: var(--space-2);
  }

  .public-nav__link {
    width: 100%;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .public-nav__lodge-name {
    max-width: 44vw;
  }
}

/* Legacy selectors kept for compatibility */
.public-nav .navbar-brand {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--text-xl);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
}

.public-nav .nav-link {
  color: var(--overlay-white-80);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.public-nav .nav-link:hover {
  color: rgba(255, 255, 255, 1);
  background: var(--overlay-white-08);
}

.public-nav .nav-link--cta {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: var(--space-1-5) var(--space-4);
}

.public-nav .nav-link--cta:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════════════════ */

.public-hero {
  min-height: 100svh;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.public-hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.public-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(27, 42, 74, 0.85) 0%,
      rgba(27, 42, 74, 0.60) 100%);
}

.public-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-20) var(--space-6);
}

.public-hero__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto var(--space-8);
}

.public-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-primary);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-4);
}

.public-hero__tagline {
  font-size: var(--text-xl);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.public-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.70);
  max-width: 540px;
  margin: 0 auto var(--space-10);
  line-height: var(--line-height-relaxed);
}

.public-hero__cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BANNER CAROUSEL
═══════════════════════════════════════════════════════════════════════════ */

.banner-carousel {
  background: var(--color-primary);
}

.banner-carousel__track {
  position: relative;
}

.banner-carousel__indicators button {
  width: 8px;
  height: 8px;
  padding: 18px;
  background-clip: content-box;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  background-image: none;
  border: none;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.banner-carousel__indicators .active {
  background: var(--color-accent);
  width: 24px;
}

.banner-carousel__pause {
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--overlay-white-60);
  background: var(--overlay-black-55);
  color: #fff;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.banner-carousel__pause:hover,
.banner-carousel__pause:focus-visible {
  opacity: 1;
}

.banner-slide {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.65);
}

.banner-slide__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  width: 100%;
  max-width: 720px;
}

.banner-slide__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.banner-slide__subtitle {
  color: var(--overlay-white-80);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT SECTIONS
═══════════════════════════════════════════════════════════════════════════ */

.public-section {
  padding: var(--space-20) 0;
}

.public-section--tinted {
  background: var(--color-surface-2);
}

.public-section--navy {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

.public-section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: var(--space-4);
}

.public-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.public-section__title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.public-section--navy .public-section__title {
  color: var(--color-text-on-primary);
}

.public-section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VALUE CARDS (Brotherhood · Integrity · Service)
═══════════════════════════════════════════════════════════════════════════ */

.value-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-gold-50);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-5);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   OFFICERS GRID
═══════════════════════════════════════════════════════════════════════════ */

.officer-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.officer-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-accent);
  object-fit: cover;
  margin: 0 auto var(--space-4);
}

.officer-card__avatar--initials {
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
}

.officer-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.officer-card__role {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC EVENTS
═══════════════════════════════════════════════════════════════════════════ */

.public-event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.public-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.public-event-card__date {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: var(--space-4);
  text-align: center;
}

.public-event-card__day {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: var(--line-height-none);
  display: block;
}

.public-event-card__month {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  opacity: 0.8;
}

.public-event-card__body {
  padding: var(--space-5);
}

.public-event-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.public-event-card__location {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC FOOTER
═══════════════════════════════════════════════════════════════════════════ */

.public-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-16) 0 var(--space-8);
}

.public-footer__inner {
  text-align: center;
}

.public-footer__lodge-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-2);
}

.public-footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-2);
}

.public-footer__tagline {
  font-size: var(--text-sm);
  opacity: 0.6;
  margin-bottom: 0;
}

.public-footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.public-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.public-footer a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.public-footer__divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: var(--space-8) 0 var(--space-6);
}

.public-footer__copy {
  font-size: var(--text-xs);
  opacity: 0.5;
  margin: 0;
  text-align: center;
}