/*
Theme Name: CAFAF FDS Custom Theme
Author: heronco
Author URI: https://www.heronco.com
Tags: full-site-editing, editor-style, block-styles, block-patterns
Requires at least: 6.3
Requires PHP: 8.0
Version: 2.0.0
License: Proprietary - For authorized client sites only


Description: Dynamic block theme for CAFAF with configurable style personalities
*/
/*
 * Copyright (c) 2025 Heron Design
 * All Rights Reserved.
 * 
 * This software is proprietary and confidential. Unauthorized copying,
 * distribution, or use of this software is strictly prohibited.
 * 
 * Licensed for use only on authorized Heron Design client websites.
 */


/*
 * This file contains ONLY static styles that don't change per client.
 * Dynamic styles (colors, spacing, border-radius) are generated via Theme_Config
 */

/* ==========================================================================
   BASE STYLES (Static)
   ========================================================================== */

   html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}



/* ==========================================================================
   CONTENT STRUCTURE (Static)
   ========================================================================== */

/* Ensure the footer sticks to the bottom */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-site-blocks > main {
    margin-block-start: 0 !important;
}

.site-footer {
margin-top: auto;
}

.wp-site-blocks .wp-block-post-content {
	margin-block-start: 0;
}

.wp-block-post-content p,
.wp-block-post-content ul li {
	margin-block-start: 0;
	font-size: 1rem;
	padding: 0.5em;
}

h2.has-reg-font-weight, h3.has-reg-font-weight {
	font-weight: 400;
}

body:not(home) h1.wp-block-post-title {margin-top:1em}

@media screen and (max-width: 520px) {
    body:not(home) h1.wp-block-post-title {margin-top:0;font-size:2rem;}
}
/* ==========================================================================
   MEDIA & IMAGES (Static structure)
   Note: Border radius styles moved to registered-block-styles.css
   ========================================================================== */

.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
	margin: 0 1em;
}

.wp-block-media-text__content p {
	padding: 0;
	margin-top: 1em;
}

.wp-block-media-text.text-has-0-padding-mobile .wp-block-media-text__content {
	padding: 0;
}

/* ==========================================================================
   UTILITY CLASSES (Static)
   ========================================================================== */

h2.price {
	font-size: 4rem;
}

.940-width {
	width: 940px;
	margin-left: auto;
	margin-right: auto;
}

.wide-button {
	padding-left: 3.5em;
	padding-right: 3.5em;
}

.text-has-shadow {
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.67);
}

.has-padding-0 {
	padding: 0 !important;
}

.align-items-end {
	align-items: end !important;
}

a.button-primary.green {background: var(--wp--preset--color--green);
  padding-top: calc(0.667em + 2px);
  padding-right: calc(1.333em + 2px);
  padding-bottom: calc(0.667em + 2px);
  padding-left: calc(1.333em + 2px);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
    margin-left:.5em;margin-top:.5em;
}
  
.wp-block-buttons .wp-block-button__link {margin:.5em}

/* ==========================================================================
   COVER BLOCKS (Static)
   ========================================================================== */



/* ==========================================================================
   RESPONSIVE - DESKTOP
   ========================================================================== */

.show-on-mobile,
.show-on-desktop,
.show-on-tablet {
	display: none !important;
}

@media screen and (min-width: 900px) {
	.show-on-desktop {
		display: flex !important;
	}
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media screen and (min-width: 521px) and (max-width: 899px) {
	.show-on-tablet {
		display: flex !important;
	}

}

@media screen and (max-width: 899px) {

    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr;
    }
    
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media screen and (max-width: 520px) {
	.show-on-mobile {
		display: flex !important;
	}
	.hide-on-mobile {display:none}

    /* .wp-block-site-logo img {max-width:200px} */
	ol,
	ul {
		font-size: 1.25em;
	}

	.wp-block-post-title {
		padding: 0.5em;
	}

	h3.wp-block-heading {
		font-size: 1.65em;
		line-height: 1.1;
		margin: 0;
	}
	
	footer h3.wp-block-heading {
	    font-size:1.3rem;
	    margin-top:.5em;
	}

	.wp-block-post-content p,
	.wp-block-post-content ul li, .wp-block-post-content ol li {
		line-height: 1.15;
		margin: 0.5em;
		padding:0;
	}

	.wp-block-post-content p.has-padding-1em {
		padding-left: 1em;
		padding-right: 1em;
	}

	.wp-block-button a.wp-block-button__link {
		font-size: 1.2em !important;
	}
	
	footer .wp-block-button a.wp-block-button__link {
		font-size: 1rem !important;
	}

	/* Cover overlay adjustments for mobile */
	.wp-block-cover .wp-block-cover__inner-container {
		position: absolute;
		bottom: 0;
		background: rgba(255, 255, 255, 0.63);
		padding-bottom: 20px;
		padding-top: 15px;
	}

	.wp-block-cover.inner-background-none .wp-block-cover__inner-container {
		background: none;
		padding: unset;
	}

	.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more {
		flex-basis: 84px;
		max-width: 84px;
	}

	.wp-block-cover .wp-block-cover__inner-container .more-container {
		margin-left: -36px !important;
	}

	.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
		margin: 0 1em;
	}

	.wp-block-group.is-vertical h2.wp-block-heading {
		padding: 0.5em 2.25em;
	}

	.wp-block-media-text__content p {
		padding: 0;
		margin-top: 1em;
	}

	.wide-button {
		padding-left: 2.5em;
		padding-right: 2.5em;
	}
	
	footer figure {max-width:80px}
	
	footer .wp-block-column.is-vertically-aligned-top:not(:last-child) {border-bottom:solid .5px;padding-bottom:.5em}
}

/* ==========================================================================
   ADDITIONAL UTILITY CLASSES (Static)
   ========================================================================== */

.wp-block-group.has-240px-top-padding {
	padding-top: 240px;
}

.wp-block-details summary {
	font-size: 1rem;
	margin-bottom:6px;
	padding:.5em;
	background-color:var(--wp--preset--color--primary);
	border-radius:0 8px 8px 0;
	color:var(--wp--preset--color--base)
}

.wp-block-details[open] {
    border-left: solid 1px var(--wp--preset--color--primary);
    border-bottom: solid 1px var(--wp--preset--color--primary);
    border-radius:0 0 0 8px;
}

.wp-block-details {
    margin-bottom:1em
}
.wp-block-details > :not(summary) {
    padding:1em
}

.wp-block-details.is-style-details-plus summary {
    background-color:var(--wp--preset--color--base);
    color:var(--wp--preset--color--primary);
}
.wp-block-details.is-style-details-plus[open]{
    border-left:none;border-bottom:none;border-radius:0
}
.wp-block-details.is-style-details-plus{
    width:900px;margin-bottom:.5em;max-width:90vw;
}
.wp-block-details.is-style-details-plus p, .wp-block-details.is-style-details-plus li {
    padding: .5em 1em 0 2em
}

/* ==========================================================================
   STAFF-ONLY CONTENT
   ========================================================================== */

.cafaf-conf-staff-login-box,
.cafaf-conf-staff-account-box,
.cafaf-conf-access-denied {
	margin: 0 0 2rem;
	padding: 1.25rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #f9f9f9;
}

.cafaf-conf-staff-account-box p:last-child,
.cafaf-conf-staff-login-box p:last-child {
	margin-bottom: 0;
}

.cafaf-conf-logout-button {
	display: inline-block;
}


@media screen and (max-width: 78px) {
.wp-block-details.is-style-details-plus {width:90vw}
}

ol,
ul {
	font-size: 1rem
}

.wp-block-group.is-vertical h2.wp-block-heading {
	padding: 0;
}

body.logged-in .cafaf-staff-links {
    position: absolute;
    top: -2px;
    right: 5px;
    padding:4px 8px;margin:0;
    background: var(--wp--preset--color--cyan);
    background: var(--wp--preset--color--primary);
    color: white;
    border-radius: 0 0 12px 12px;
}
body.logged-in .cafaf-staff-links p {padding:0;margin:0}

body.logged-in .cafaf-staff-links a {
    color: white;
    text-decoration: none;
    padding:0 8px;
    font-weight: 600;
    text-transform: uppercase;
}

body.logged-in .cafaf-staff-links a:hover, body.logged-in .cafaf-staff-links a:focus {
    text-decoration: underline;
    color: var(--wp--preset--color--pale-cyan-blue);
}
    
body.logged-in .cafaf-cont-staff-account-box {
    padding: .5em;
    background: var(--wp--preset--color--cyan);
    background: var(--wp--preset--color--primary);
    color: white;
    border-radius: 12px;
}
    
@media (max-width: 600px) {
    body.logged-in .cafaf-staff-links .hello {font-size:.5em}
    body.logged-in .cafaf-staff-links a {font-size:.5em; padding:0 4px;}
}

/* ==========================================================================
   BLOCK-SPECIFIC OVERRIDES (Static)
   ========================================================================== */

/* TABLES */
.wp-block-table .has-fixed-layout {
    width:96%;
    margin:1em;
    font-size:1rem
}
.wp-block-table th {color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--dark-purple);
}

table.attendees, table.cafaf-conf-staff-session-roster, table.widefat.striped {
  font-family: system-ui, -apple-system, sans-serif;
  font-size:1rem;
  border-collapse: collapse;
  width: 100%;
  border:2px solid #61ad57;
}
table.cafaf-conf-staff-session-roster {border:2px solid var(--wp--preset--color--cyan)}

table.attendees td, table.attendees th,table.cafaf-conf-staff-session-roster td, table.cafaf-conf-staff-session-roster th, table.widefat.striped td, table.widefat.striped th {
  border: 1px solid #ddd;
  padding: 8px;
}

table.attendees tr, table.cafaf-conf-staff-session-roster tr, table.widefat.striped tr {vertical-align:baseline}

table.attendees tr:nth-child(even), table.cafaf-conf-staff-session-roster tr:nth-child(even), table.widefat.striped tr:nth-child(even){background-color: #f2f2f2;}

table.attendees tr:hover, table.cafaf-conf-staff-session-roster tr:hover, table.widefat.striped tr:hover {background-color: #ddd;}

table.attendees th, table.cafaf-conf-staff-session-roster th, table.widefat.striped th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #61ad57;
  color: white;
}
table.cafaf-conf-staff-session-roster th {background-color:var(--wp--preset--color--cyan)}

/* FORMS */
form.add-attendee-form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

form.add-attendee-form label {display: block; font-size:1rem;text-align:left;}

form.add-attendee-form input[type=text], form.add-attendee-form input[type=email],form.add-attendee-form select, form.attendee-search input[type=search] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
form.attendee-search input[type=search] {width:260px}
form.attendee-search button {    padding: .65em 3em;
    text-transform: uppercase;
    background: var(--wp--preset--color--dark-green);
    color: var(--wp--preset--color--base);
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    font-size: 1rem;}

form.add-attendee-form textarea {width:98.5%}

form.add-attendee-form button {
  cursor: pointer;
  font-size: 1.25rem;
  font-weight:600;
    padding: 1em 2.5em;
    text-transform: uppercase;
    border-radius: 12px;
    background: var(--wp--preset--color--secondary);
    outline: none;
    border: solid 2px var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    margin:1.5em 0;
}

form.add-attendee-form button:hover, form.add-attendee-form button:focus {
    background:var(--wp--preset--color--base);color:var(--wp--preset--color--secondary);}

form.add-attendee-form input[type=submit]:hover {
  background-color: #45a049;
}

form.add-attendee-form p.description {padding:0;font-style:italic}

.cafaf-conf-staff-session-tools__buttons button {
    padding: 1.5em 2em;
    border-radius: 12px;
    border: none;
    background: var(--wp--preset--color--cyan);
    color: white;
    text-transform: uppercase;
    font-size:1.25rem;
    font-weight: 600;}
    
.cafaf-conf-staff-mode-toggle input[type="radio"] {
    accent-color: var(--wp--preset--color--cyan);
}
.cafaf-conf-staff-session-tools__top p {display:none}

.cafaf-conf-staff-session-tools__manual-row input[type=text] {
  padding: 12px;
  width:280px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.cafaf-conf-staff-session-tools__manual-row button {    
    padding: .65em 3em;
    text-transform: uppercase;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--cyan);
    border: solid 1.5px var(--wp--preset--color--cyan);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;}
    

/* Latest Comments */
.wp-block-latest-comments {
	padding-left: 0;
}

/* Page break before utility */
.page-break-before {
	page-break-before: always;
}