/*
Theme Name: Assam Foundation
Theme URI: https://assamfoundation.assam.org
Description: GeneratePress child theme for Assam Foundation, Inc. Warm, mobile-first nonprofit styles. Gutenberg-only.
Author: Assam Foundation
Template: generatepress
Version: 1.0.0
Text Domain: assam-foundation
*/

/* -------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */
:root {
	--af-red: #A6192E;
	--af-red-hover: #8B1426;
	--af-teal: #0D5C63;
	--af-teal-dark: #0A454B;
	--af-teal-deeper: #08383D;
	--af-cream: #F8F5F0;
	--af-cream-2: #FAF7F2;
	--af-sand: #EDE6DA;
	--af-gold: #C4A35A;
	--af-text: #1A1A1A;
	--af-muted: #4A4A4A;
	--af-white: #FFFFFF;
	--af-placeholder: #FFF8E1;
	--af-placeholder-border: #C4A35A;
	--af-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--af-radius: 6px;
	--af-shadow: 0 8px 28px rgba(8, 56, 61, 0.12);
	--af-container: 1120px;
	--af-container-pad: 20px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--af-font);
	color: var(--af-text);
	background-color: var(--af-cream);
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--af-font);
	color: var(--af-teal-dark);
	letter-spacing: -0.02em;
	line-height: 1.22;
	font-weight: 700;
}

p {
	margin-top: 0;
	margin-bottom: 1.1em;
}

/* -------------------------------------------------------------------------
   Top bar — EIN + flood CTA (trust, always visible)
   ------------------------------------------------------------------------- */
.top-bar {
	font-size: 0.84rem;
	letter-spacing: 0.01em;
}

.af-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.25rem;
	width: 100%;
	text-align: center;
}

.af-topbar a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Header / branding
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	border-bottom: 3px solid var(--af-red);
	box-shadow: 0 1px 0 rgba(13, 92, 99, 0.06);
}

.main-title a,
.main-title a:hover,
.main-title a:visited {
	color: var(--af-teal-dark);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.site-logo {
	line-height: 0;
	flex: 0 0 auto;
}

.site-logo img,
.site-header .header-image {
	border-radius: 8px;
	width: auto !important;
	height: auto;
	max-height: 72px;
	max-width: 90px;
}

/* Gamosa-inspired hairline under header already provided by red border. */

/* -------------------------------------------------------------------------
   Header layout: logo + 2-line title | hamburger only (all breakpoints)
   Also stored in Customizer → Additional CSS for easy tweaks.
   ------------------------------------------------------------------------- */
.inside-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.site-branding-container {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: calc(100% - 76px);
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.main-title {
	margin: 0;
	font-size: clamp(0.95rem, 2.3vw, 1.2rem);
	line-height: 1.22;
	font-weight: 800;
}

.main-title a {
	display: inline-block;
}

/* Always show the header hamburger (GeneratePress hides it on desktop). */
.mobile-menu-control-wrapper {
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	flex: 0 0 auto;
	order: 2;
}

.mobile-menu-control-wrapper .menu-toggle {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	margin: 0;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	color: var(--af-teal-dark);
	cursor: pointer;
	line-height: 1;
}

.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus {
	background: rgba(13, 92, 99, 0.08) !important;
	color: var(--af-teal-dark);
}

.mobile-menu-control-wrapper .menu-toggle .gp-icon,
.mobile-menu-control-wrapper .menu-toggle .icon-menu-bars {
	width: 36px;
	height: 36px;
}

.mobile-menu-control-wrapper .menu-toggle svg {
	width: 36px;
	height: 36px;
}

/* Hide the duplicate toggle inside #site-navigation */
#site-navigation .menu-toggle {
	display: none !important;
}

/* Hide the horizontal menu until the hamburger opens it */
.has-inline-mobile-toggle #site-navigation {
	display: none;
	flex-basis: 100%;
	width: 100%;
	margin-left: 0 !important;
	margin-top: 0;
	order: 10;
}

.has-inline-mobile-toggle #site-navigation.toggled {
	display: block;
	margin-top: 0.35rem;
}

.has-inline-mobile-toggle #site-navigation.toggled .main-nav,
.has-inline-mobile-toggle #site-navigation.toggled .main-nav > ul {
	display: block !important;
	float: none;
	width: 100%;
}

.has-inline-mobile-toggle #site-navigation.toggled .main-nav li {
	float: none;
	display: block;
	width: 100%;
	text-align: left;
}

.has-inline-mobile-toggle #site-navigation.toggled .main-nav ul li a {
	display: block;
	line-height: 1.3;
	padding: 0.85rem 1rem;
}

/* -------------------------------------------------------------------------
   Primary nav — Flood item as a button (inside the opened hamburger menu)
   ------------------------------------------------------------------------- */
.main-navigation .main-nav ul li a {
	font-weight: 600;
	font-size: 0.95rem;
}

.main-navigation .af-nav-flood > a {
	background: var(--af-red) !important;
	color: var(--af-white) !important;
	border-radius: 4px;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
	margin: 0.55rem 0 0.55rem 0.4rem;
	line-height: 2.4 !important;
}

.main-navigation .af-nav-flood > a:hover,
.main-navigation .af-nav-flood > a:focus {
	background: var(--af-red-hover) !important;
	color: var(--af-white) !important;
}

.main-navigation .main-nav ul li[class*="current-menu"] > a {
	color: var(--af-red);
}

/* -------------------------------------------------------------------------
   Layout: full-bleed page sections
   ------------------------------------------------------------------------- */
.full-width-content.one-container .site-content,
.full-width-content.one-container .inside-article,
.full-width-content.one-container .site-main {
	padding: 0 !important;
	background: transparent;
}

.full-width-content .container.grid-container {
	max-width: 100%;
}

.full-width-content .entry-content {
	margin-top: 0;
}

body.no-sidebar .site-main {
	margin-left: 0;
	margin-right: 0;
}

.separate-containers .inside-article,
.one-container .site-content {
	background: transparent;
}

.af-hero.wp-block-cover {
	justify-content: center;
	align-items: center;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.af-hero .wp-block-cover__inner-container {
	box-sizing: border-box;
	flex: 0 1 var(--af-container);
	width: 100%;
	max-width: var(--af-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--af-container-pad);
	padding-right: var(--af-container-pad);
	text-align: left;
}

.entry-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Hero / cover
   ------------------------------------------------------------------------- */
.af-hero.wp-block-cover,
.af-hero {
	min-height: 28rem;
}

.af-hero h1,
.af-hero.wp-block-cover h1,
.af-hero .has-text-color h1 {
	color: var(--af-white);
	font-size: clamp(1.85rem, 4.4vw, 3.1rem);
	margin: 0 0 0.6rem;
	max-width: 18ch;
}

.af-hero .af-kicker {
	display: inline-block;
	background: var(--af-red);
	color: var(--af-white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.7rem;
	border-radius: 3px;
	margin-bottom: 1rem;
}

.af-hero .af-mission,
.af-hero p.af-mission {
	color: var(--af-cream);
	font-size: clamp(1.05rem, 2.2vw, 1.28rem);
	line-height: 1.45;
	margin-bottom: 0.85rem;
	max-width: 38ch;
}

.af-trust {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin: 0 0 1.4rem;
}

.af-hero .af-trust {
	color: #F3EDE3;
	opacity: 0.95;
}

.af-donate-note {
	font-size: 0.88rem;
	margin-top: 0.85rem;
	opacity: 0.9;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link,
a.button,
button,
input[type="submit"] {
	border-radius: 4px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
}

.af-btn-primary .wp-block-button__link,
.af-btn-primary.wp-block-button .wp-block-button__link {
	background: var(--af-red) !important;
	color: var(--af-white) !important;
	padding: 0.9rem 1.55rem !important;
	font-size: 1.05rem !important;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.af-btn-primary .wp-block-button__link:hover,
.af-btn-primary .wp-block-button__link:focus {
	background: var(--af-red-hover) !important;
}

.af-btn-secondary .wp-block-button__link {
	background: transparent !important;
	color: var(--af-white) !important;
	border: 2px solid rgba(255, 255, 255, 0.85) !important;
	padding: 0.82rem 1.4rem !important;
}

.af-btn-secondary .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}

.af-btn-teal .wp-block-button__link {
	background: var(--af-teal) !important;
	color: var(--af-white) !important;
	padding: 0.9rem 1.55rem !important;
}

.af-btn-teal .wp-block-button__link:hover {
	background: var(--af-teal-dark) !important;
}

.af-cta-row {
	gap: 0.75rem;
}

/* -------------------------------------------------------------------------
   Current Priority / flood highlight
   ------------------------------------------------------------------------- */
.af-priority {
	background: var(--af-white);
	border-top: 6px solid var(--af-red);
	box-shadow: var(--af-shadow);
}

.af-priority-banner {
	background: var(--af-red);
	color: var(--af-white);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border-radius: 3px;
	margin-bottom: 0.85rem;
}

.af-priority h2 {
	color: var(--af-red);
	font-size: clamp(1.55rem, 3.4vw, 2.2rem);
	margin-top: 0;
}

.af-needs {
	background: var(--af-cream);
	border-left: 4px solid var(--af-red);
	padding: 1rem 1.25rem;
	margin: 1.25rem 0 1.5rem;
}

.af-needs ul {
	margin: 0.4rem 0 0;
	padding-left: 1.15rem;
}

.af-needs li {
	margin: 0.25rem 0;
}

/* -------------------------------------------------------------------------
   Donate / bank transfer box
   ------------------------------------------------------------------------- */
.af-donate-box {
	background: var(--af-teal-dark);
	color: var(--af-cream-2);
	border-radius: 8px;
	box-shadow: var(--af-shadow);
}

.af-donate-box h2,
.af-donate-box h3 {
	color: var(--af-white);
}

.af-donate-box p,
.af-donate-box li {
	color: var(--af-cream);
}

.af-donate-box .af-disclaimer {
	font-size: 0.88rem;
	color: #E4D8C8;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 1rem;
	margin-top: 1.25rem;
}

/* -------------------------------------------------------------------------
   Placeholders — obvious for editors, not invented data
   ------------------------------------------------------------------------- */
.af-placeholder {
	background: var(--af-placeholder);
	border: 1px dashed var(--af-placeholder-border);
	border-radius: var(--af-radius);
	padding: 1rem 1.15rem;
	color: var(--af-text);
}

.af-placeholder p:last-child,
.af-placeholder-card p:last-child {
	margin-bottom: 0;
}

.af-placeholder strong,
.af-placeholder .af-ph {
	font-weight: 700;
	background: #F3E2A0;
	padding: 0.05em 0.25em;
}

.af-donate-box .af-placeholder {
	background: rgba(255, 248, 225, 0.97);
	color: var(--af-text);
}

.af-placeholder-card {
	background: var(--af-placeholder);
	border: 1px dashed var(--af-placeholder-border);
	border-radius: var(--af-radius);
	padding: 1.25rem 1.1rem 1.35rem;
	height: 100%;
}

/* -------------------------------------------------------------------------
   Team / management cards
   ------------------------------------------------------------------------- */
.af-person img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 0.85rem;
	display: block;
	background: var(--af-sand);
}

.af-person h3 {
	font-size: 1.05rem;
	margin: 0 0 0.2rem;
	text-align: center;
}

.af-person p {
	text-align: center;
	margin: 0;
	color: var(--af-muted);
	font-size: 0.95rem;
}

.af-person .wp-block-group {
	background: var(--af-white);
	border: 1px solid var(--af-sand);
	border-radius: 8px;
	padding: 1.4rem 1rem 1.5rem;
	height: 100%;
}

/* -------------------------------------------------------------------------
   Generic content sections
   ------------------------------------------------------------------------- */
.af-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.af-cream-bg {
	background: var(--af-cream);
}

.af-white-bg {
	background: var(--af-white);
}

.af-teal-bg {
	background: var(--af-teal-dark);
	color: var(--af-cream);
}

.af-teal-bg h2,
.af-teal-bg h3 {
	color: var(--af-white);
}

.af-lede {
	font-size: 1.12rem;
	color: var(--af-muted);
}

.entry-content a:not(.wp-block-button__link):not(.button) {
	color: var(--af-red);
	text-underline-offset: 2px;
}

.entry-content a:not(.wp-block-button__link):hover {
	color: var(--af-teal);
}

.af-rule {
	border: 0;
	border-top: 3px solid var(--af-red);
	width: 3.2rem;
	margin: 0 0 1.25rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
	background: var(--af-teal-deeper);
	color: var(--af-cream);
}

.site-footer a {
	color: var(--af-white);
}

.site-footer a:hover {
	color: #F3E2A0;
}

.footer-widgets .widget-title {
	color: var(--af-white);
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.footer-widgets .widget {
	font-size: 0.95rem;
	line-height: 1.6;
}

.footer-widgets .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widgets .menu li {
	margin: 0.3rem 0;
}

.site-info {
	background: #062A2E;
	color: #D9D0C4;
	font-size: 0.88rem;
}

.site-info a {
	color: var(--af-white);
}

/* -------------------------------------------------------------------------
   Contact form (CF7)
   ------------------------------------------------------------------------- */
.wpcf7 form p {
	margin-bottom: 0.9rem;
}

.wpcf7 label {
	font-weight: 600;
	font-size: 0.95rem;
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #D4CBBE;
	background: var(--af-white);
	border-radius: 4px;
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	color: var(--af-text);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--af-teal);
	border-color: var(--af-teal);
}

.wpcf7 input[type="submit"] {
	background: var(--af-red);
	color: var(--af-white);
	border: 0;
	padding: 0.85rem 1.6rem;
	cursor: pointer;
	font-size: 1rem;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--af-red-hover);
}

.af-contact-details {
	background: var(--af-white);
	border: 1px solid var(--af-sand);
	border-radius: 8px;
	padding: 1.4rem 1.35rem;
}

/* -------------------------------------------------------------------------
   Mobile-first refinements (375px and up)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.af-hero.wp-block-cover,
	.af-hero {
		min-height: 0;
	}

	.af-hero .wp-block-cover__inner-container {
		padding-left: 30px;
		padding-right: 30px;
	}

	.main-navigation .af-nav-flood > a {
		margin: 0.35rem 0.75rem 0.75rem;
		display: inline-block;
		text-align: center;
	}

	.wp-block-buttons.af-cta-row {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.af-cta-row .wp-block-button,
	.af-cta-row .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.af-section {
		padding-top: 2.1rem;
		padding-bottom: 2.1rem;
	}

	.inside-header {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.top-bar {
		font-size: 0.75rem;
		line-height: 1.45;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.af-person img {
		width: 96px;
		height: 96px;
	}

	.site-logo img,
	.site-header .header-image {
		max-height: 56px;
		max-width: 70px;
		width: auto !important;
	}

	.mobile-menu-control-wrapper .menu-toggle {
		width: 56px;
		height: 56px;
	}

	.mobile-menu-control-wrapper .menu-toggle svg {
		width: 32px;
		height: 32px;
	}

	.wp-block-column:empty {
		display: none;
	}
}

@media (max-width: 414px) {
	.af-hero .wp-block-cover__inner-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 400px) {
	.af-hero h1 {
		font-size: 1.7rem;
		max-width: none;
	}

	.af-trust {
		font-size: 0.82rem;
	}
}

/* Sticky header offset for skip target */
.site-main {
	scroll-margin-top: 5rem;
}

/* Palette utilities (Gutenberg class names) */
.has-assam-red-background-color { background-color: var(--af-red); }
.has-assam-red-color { color: var(--af-red); }
.has-deep-teal-background-color { background-color: var(--af-teal); }
.has-deep-teal-color { color: var(--af-teal); }
.has-teal-dark-background-color { background-color: var(--af-teal-dark); }
.has-teal-dark-color { color: var(--af-teal-dark); }
.has-cream-background-color { background-color: var(--af-cream); }
.has-cream-color { color: var(--af-cream); }
.has-charcoal-color { color: var(--af-text); }
.has-white-color { color: var(--af-white); }
.has-white-background-color { background-color: var(--af-white); }
