/*
Theme Name: Gonzalez Family Foundation
Theme URI: https://thegonzalezfamilyfoundation.org/
Author: Montana Banana
Author URI: https://montanab.com/
Description: Responsive bilingual theme for The Gonzalez Family Foundation.
Version: 1.0.0
Text Domain: gonzalez-foundation
*/

:root {
	--gff-red: #c11300;
	--gff-red-dark: #951200;
	--gff-orange: #e85a0c;
	--gff-green: #789b2f;
	--gff-ink: #262626;
	--gff-muted: #666;
	--gff-border: #dedbd5;
	--gff-surface: #f6f4ef;
	--gff-white: #fff;
	--gff-shadow: 0 16px 40px rgba(38, 38, 38, 0.12);
	--gff-radius: 0.5rem;
	--gff-content: 73.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--gff-white);
	color: var(--gff-ink);
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--gff-red); text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; }
a:hover { color: var(--gff-red-dark); }
a:focus-visible,
button:focus-visible { outline: 0.2rem solid #1268b3; outline-offset: 0.2rem; }
h1,
h2,
h3 { font-family: "Open Sans Condensed", sans-serif; font-weight: 400; line-height: 1.15; margin: 0 0 0.75em; }
h1 { font-size: clamp(2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	left: 0.75rem;
	padding: 0.75rem 1rem;
	top: 0.75rem;
	width: auto;
	z-index: 100000;
}
.site-shell { margin-inline: auto; max-width: var(--gff-content); padding-inline: clamp(1rem, 4vw, 2rem); }
.site-header {
	background: var(--gff-white);
	box-shadow: 0 1px 0 rgba(38, 38, 38, 0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-main { align-items: center; display: flex; gap: 0.75rem; justify-content: space-between; min-height: 6rem; padding-block: 0.65rem; }
.site-branding { flex: 0 1 13rem; min-width: 0; margin-bottom: -40px; }
.custom-logo-link,
.site-logo { display: block; max-width: 13rem; }
.custom-logo { max-height: 4.8rem; object-fit: contain; width: auto; }
.site-logo {
	background-image: url("assets/images/sprite.svg");
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 23.4657rem 23.4657rem;
	height: 6.25rem;
	width: 13rem;
}
.menu-toggle {
	align-items: center;
	background: var(--gff-red);
	border: 0;
	border-radius: 0.25rem;
	color: var(--gff-white);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 0.55rem;
	padding: 0.75rem 0.9rem;
}
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after { background: currentColor; display: block; height: 0.125rem; position: relative; width: 1.25rem; }
.menu-toggle__icon::before,
.menu-toggle__icon::after { content: ""; position: absolute; }
.menu-toggle__icon::before { top: -0.375rem; }
.menu-toggle__icon::after { top: 0.375rem; }
.primary-navigation { background: var(--gff-red); display: none; }
.primary-navigation.is-open { display: block; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.primary-navigation a {
	color: var(--gff-white);
	display: block;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.5px;
	padding: 0.7rem 1rem;
	text-decoration: none;
	text-transform: uppercase;
}
.primary-navigation a, .language-switcher a { text-shadow: -1px -1px 1px rgba(0,0,0,0.4); }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { background: var(--gff-red-dark); color: var(--gff-white); }
.primary-navigation .menu-item--apply > a { background: linear-gradient(to bottom,  #ff8000 0%,#e34e00 100%); }
.language-switcher { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.language-switcher a { text-transform: none; }
.hero { background: var(--gff-ink); color: var(--gff-white); margin: 0; overflow: hidden; position: relative; }
.hero-gallery { aspect-ratio: 98 / 37; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-gallery__item { display: none; min-width: 0; overflow: hidden; }
.hero-gallery__item:first-child { display: block; }
.hero-gallery__image { height: 100%; max-width: none; object-fit: cover; width: 100%; }
.hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 55%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.hero__overlay { align-items: center; display: flex; inset: 0; position: absolute; z-index: 2; }
.hero__overlay-inner { width: 100%; }
.hero__copy { background: rgba(15, 15, 15, 0.68); max-width: 55rem; padding: clamp(1.25rem, 4vw, 3rem); width: fit-content; }
.hero__heading { font-family: "Open Sans Condensed", sans-serif; font-size: clamp(2rem, 6vw, 4.75rem); font-weight: 300; text-transform: uppercase; line-height: 1.08; margin: 0; }
.hero__text { font-family: "Open Sans", sans-serif; font-size: clamp(1.25rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.2; margin: 0; }
.home-intro { padding-block: clamp(2.25rem, 6vw, 4.5rem) 1.25rem; text-align: center; }
.home-intro > * { margin-inline: auto; max-width: 48rem; overflow-wrap: break-word; }
.home-cards { display: grid; gap: 1.25rem; padding-block: 1.5rem clamp(3rem, 7vw, 5.5rem); }
.home-card {
	background: #262626;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--gff-white);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease;
}
.home-card__anchor { color: var(--gff-white); display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.home-card__anchor:hover { color: var(--gff-white); }
.home-card__anchor:focus-visible { outline-offset: -0.25rem; }
.home-card__image { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.home-card__body { display: flex; flex: 1; flex-direction: column; padding: 2rem; }
.home-card__title { color: var(--gff-white); font-size: 1.55rem; text-transform: uppercase; }
.home-card__body p { margin-top: 0; }
.home-card__link { align-self: flex-start; color: var(--gff-white); font-weight: 700; margin-top: auto; text-decoration: underline; }
.home-card:hover .home-card__link,
.home-card__anchor:focus-visible .home-card__link { color: var(--gff-orange); }
@media (hover: hover) and (pointer: fine) {
	.home-card:hover { box-shadow: 0 18px 42px rgba(38, 38, 38, 0.28); transform: scale(1.04); z-index: 1; }
}
.page-hero { background: var(--gff-ink); min-height: clamp(12rem, 32vw, 19rem); overflow: hidden; position: relative; }
.page-hero img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.page-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08)); content: ""; inset: 0; position: absolute; }
.page-hero__inner { align-items: flex-end; display: flex; min-height: clamp(12rem, 32vw, 19rem); padding-block: 2.25rem; position: relative; z-index: 1; }
.page-hero h1 { color: var(--gff-white); margin: 0; max-width: 48rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.page-content { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-content__inner { max-width: 50rem; }
.page-content__inner h2:first-child { margin-top: 0; }
.page-content p:first-child { margin-top: 0; }
.page-content h2,
.page-content h3 { color: var(--gff-red); margin-top: 1.8em; }
.button,
.wp-block-button__link {
	background: linear-gradient(to bottom,  #ff8000 0%,#e34e00 100%);
	border-radius: 0;
	color: var(--gff-white);
	display: inline-block;
	font-weight: 700;
	margin: 0.35rem 0.35rem 0.35rem 0;
	padding: 0.75rem 1.1rem;
	text-decoration: none;
}
.button { 
	box-shadow: 0px 2px 3px rgba(0,0,0,0.3);
	font-family: "Open Sans Condensed", sans-serif !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	text-transform: uppercase !important;
}
.button:hover,
.wp-block-button__link:hover { background: var(--gff-red-dark); color: var(--gff-white); }
.notice { background: #fff7d6; border-left: 0.3rem solid #bd8b00; padding: 1rem 1.1rem; }
.site-footer { background: var(--gff-ink); color: #ddd; padding-block: 2.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 { color: var(--gff-white); font-size: 1.25rem; margin-bottom: 0.6rem; }
.site-footer a { color: var(--gff-white); }
.footer-menu,
.social-links { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.45rem; }
.social-links { align-items: center; display: flex; gap: 0.75rem; }
.social-links li { margin: 0; }
.social-links a { display: block; line-height: 0; }
.social-links__icon { filter: invert(1); height: 2rem; width: 2rem; }
.footer-vallarta { display: inline-block; margin-top: 1.25rem; max-width: 15rem; }
.footer-vallarta img { height: auto; width: 100%; }
.footer-meta { border-top: 1px solid #4a4a4a; font-size: 0.9rem; margin-top: 2rem; padding-top: 1.25rem; }
.error-404 { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }

.frm_form_fields  .frm_description {
	margin-top: 10px !important;
}
.frm_form_fields .frm_primary_label {
	font-weight: 600 !important;
}
.frm_form_fields .frm_html_container p {
	color: var(--gff-ink) !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
}
.frm_button_submit {
	background: linear-gradient(to bottom,  #ff8000 0%,#e34e00 100%) !important;
	border-radius: 0 !important;
	color: var(--gff-white) !important;
	font-family: "Open Sans Condensed", sans-serif !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	text-transform: uppercase !important;
	margin: 0.35rem 0.35rem 0.35rem 0 !important;
	padding: 0.75rem 2.1rem !important;
	text-decoration: none !important;
	border: none !important;
	box-shadow: 0px 2px 3px rgba(0,0,0,0.3) !important;
}
small.callout {
	display: block;
	background: #eee;
	font-size: 12px;
	line-height: 18px;
	padding: 18px 24px;
}

@media (min-width: 35rem) {
	.header-main { min-height: 7rem; padding-block: 0.85rem; }
	.site-branding { flex-basis: 17.3125rem; }
	.custom-logo-link,
	.site-logo { max-width: 17.3125rem; }
	.custom-logo { max-height: 8.25rem; }
	.site-logo { background-size: 31.25rem 31.25rem; height: 8.25rem; width: 17.3125rem; }
}
@media (min-width: 43.75rem) {
	.home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 56.25rem) {
	.hero-gallery__item { display: block; }
	.hero-gallery--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-gallery--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.header-main { min-height: 7rem; }
	.menu-toggle { display: none; }
	.primary-navigation { display: block; }
	.primary-navigation .site-shell { display: flex; justify-content: space-between; }
	.primary-navigation ul { display: flex; padding: 0; }
	.primary-navigation .menu { margin-left: clamp(5rem, 20vw, 10rem); }
	.primary-navigation a { padding: 0.85rem 1rem; }
	.language-switcher { border-top: 0; margin-left: auto; }
}
@media (max-width: 48.875rem) { body.admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
