/*
Theme Name: Thiru Murugan Cultural Society
Theme URI: https://tmcs.org.au
Author: Thiru Murugan Cultural Society of South Australia
Description: Custom theme for the Thiru Murugan Cultural Society of South Australia - preserving Tamil spirituality, traditions and culture.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tmcs
*/

/* =========================================================
   1. CSS VARIABLES
   ========================================================= */
:root {
	--maroon-darkest: #3a0a0f;
	--maroon-dark: #4a0e14;
	--maroon: #5c1017;
	--maroon-mid: #6e131b;
	--maroon-soft: #7a1820;

	--gold: #d4a537;
	--gold-light: #f0cf7d;
	--gold-lighter: #f7e3ab;
	--gold-dark: #a8801f;

	--cream: #fbf1dc;
	--cream-light: #fdf8ec;
	--cream-dark: #f4e6c4;

	--text-dark: #3a0a0f;
	--text-muted: #6b4a3a;
	--text-light: #fbeecb;

	--font-heading: "Playfair Display", Georgia, serif;
	--font-body: "Mulish", "Segoe UI", sans-serif;
	--font-tamil: "Noto Sans Tamil", "Mulish", sans-serif;

	--shadow-soft: 0 10px 30px rgba(58, 10, 15, 0.15);
	--radius: 10px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text-dark);
	background: var(--cream-light);
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s ease, background .2s ease, opacity .2s ease; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); margin: 0 0 .5em; color: var(--maroon); }
p { margin: 0 0 1em; }
.container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }

/* Decorative divider */
.divider-flourish {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 10px 0;
	color: var(--gold);
}
.divider-flourish::before,
.divider-flourish::after {
	content: "";
	height: 1px;
	width: 60px;
	background: var(--gold);
	opacity: .7;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .3px;
	padding: 12px 26px;
	border-radius: 30px;
	border: none;
	cursor: pointer;
}
.btn-gold {
	background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
	color: var(--maroon-darkest);
	box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn-gold:hover { filter: brightness(1.06); color: var(--maroon-darkest); }
.btn-maroon {
	background: linear-gradient(180deg, var(--maroon-soft), var(--maroon-darkest));
	color: var(--text-light);
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn-maroon:hover { filter: brightness(1.1); color: var(--text-light); }

/* =========================================================
   3. TOP HEADER
   ========================================================= */
.site-topbar {
	background: linear-gradient(180deg, var(--maroon-dark), var(--maroon));
	background-image: linear-gradient(180deg, var(--maroon-dark), var(--maroon));
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(212,165,55,.35);
}
.site-topbar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 0% 0%, rgba(212,165,55,.15), transparent 60%),
				radial-gradient(circle at 100% 100%, rgba(212,165,55,.12), transparent 55%);
	pointer-events: none;
}
.site-topbar .container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	padding-bottom: 18px;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 18px;
}
.site-logo img,
.site-logo-placeholder {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	border: 3px solid var(--gold);
	object-fit: cover;
	background: var(--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--maroon);
	font-family: var(--font-heading);
	font-size: 11px;
	text-align: center;
	flex-shrink: 0;
}
.site-title-group .site-title {
	font-size: 30px;
	color: var(--gold-light);
	margin: 0;
	line-height: 1.15;
	font-weight: 700;
}
.site-title-group .site-title a { color: inherit; }
.site-title-group .site-subtitle {
	font-size: 22px;
	color: var(--gold-light);
	font-family: var(--font-heading);
	margin: 0 0 8px;
}
.site-title-group .site-tagline {
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--text-light);
	font-size: 14.5px;
	opacity: .9;
	max-width: 480px;
}
.site-om {
	text-align: right;
	color: var(--gold-light);
	flex-shrink: 0;
}
.site-om .om-tamil {
	font-family: var(--font-tamil);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 2px;
}
.site-om .om-translit {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 14px;
	color: var(--text-light);
}

/* =========================================================
   4. PRIMARY NAV
   ========================================================= */
.site-nav {
	background: var(--maroon-darkest);
	border-bottom: 3px solid var(--gold);
}
.site-nav .container { display: flex; align-items: stretch; justify-content: space-between; }
.primary-menu {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
}
.primary-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}
.primary-menu > li > a {
	display: block;
	padding: 16px 22px;
	color: var(--text-light);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .2px;
}
.primary-menu > li:first-child > a,
.primary-menu > li.current-menu-item > a {
	background: var(--gold);
	color: var(--maroon-darkest);
}
.primary-menu > li:hover > a { background: var(--maroon); color: var(--gold-light); }
.primary-menu > li.current-menu-item:hover > a { background: var(--gold); color: var(--maroon-darkest); }
.primary-menu .menu-item-has-children > a::after {
	content: "\25BE";
	font-size: 11px;
	margin-left: 6px;
	opacity: .8;
}
.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--maroon-dark);
	border: 1px solid rgba(212,165,55,.4);
	box-shadow: var(--shadow-soft);
	z-index: 50;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a {
	display: block;
	padding: 12px 18px;
	color: var(--text-light);
	font-size: 14px;
	border-bottom: 1px solid rgba(212,165,55,.15);
}
.primary-menu .sub-menu a:hover { background: var(--maroon); color: var(--gold-light); }

.nav-search {
	display: flex;
	align-items: center;
	padding: 0 22px;
	color: var(--text-light);
	cursor: pointer;
}
.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--gold-light);
	font-size: 26px;
	padding: 14px 22px;
	cursor: pointer;
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
	background: linear-gradient(180deg, #2a2540 0%, #7a4a2a 45%, #c98a3d 75%, #e8b45a 100%);
	background-size: cover;
	background-position: center;
}
.hero.has-custom-image { background-image: var(--hero-image); }
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,5,8,.55) 0%, rgba(20,5,8,.15) 45%, rgba(20,5,8,.45) 100%);
}
.hero .container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.hero-copy { max-width: 640px; padding: 60px 0; }
.hero-copy .eyebrow {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 26px;
	color: var(--gold-lighter);
	margin-bottom: 4px;
}
.hero-copy h1 {
	font-size: 44px;
	color: var(--gold-light);
	line-height: 1.2;
	margin-bottom: 6px;
	text-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.hero-copy h2 {
	font-size: 32px;
	color: #fff;
	margin-bottom: 18px;
}
.hero-copy .hero-desc {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 26px;
	max-width: 520px;
}
.hero-figure {
	flex-shrink: 0;
	width: 320px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.hero-figure img { max-height: 560px; width: auto; margin: 0 auto; }
.hero-figure-placeholder {
	width: 100%;
	aspect-ratio: 3/5;
	border: 2px dashed rgba(255,255,255,.5);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: rgba(255,255,255,.8);
	font-size: 13px;
	padding: 20px;
	background: rgba(0,0,0,.15);
}

/* Hero with the right-side figure column turned off via the Customizer. */
.hero .container.hero-solo {
	justify-content: center;
}
.hero .container.hero-solo .hero-copy {
	max-width: 760px;
}

/* =========================================================
   6. VISION / VALUES
   ========================================================= */
.vision-section { background: var(--cream); padding: 70px 0; }
.vision-grid {
	display: grid;
	grid-template-columns: 1.1fr 1px 1fr;
	gap: 50px;
	align-items: start;
}
.vision-grid .col-divider { background: var(--gold); opacity: .4; align-self: stretch; }
.vision-col h2 { font-size: 26px; display:flex; align-items:center; gap:10px; }
.vision-col p { color: var(--text-muted); }

.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 24px;
	text-align: center;
}
.value-item .value-icon {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: var(--maroon);
	color: var(--gold-light);
	border: 3px solid var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	font-size: 26px;
}
.value-item strong { display: block; color: var(--maroon); font-size: 15px; margin-bottom: 4px; }
.value-item span { font-size: 12.5px; color: var(--text-muted); }

/* =========================================================
   7. EVENTS + NEWS
   ========================================================= */
.events-news-section {
	background: var(--maroon);
	background-image: linear-gradient(160deg, var(--maroon-dark), var(--maroon) 60%);
	padding: 60px 0;
	color: var(--text-light);
}
.section-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}
.section-heading-row h2 {
	color: var(--gold-light);
	font-size: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.section-heading-row .view-all {
	color: var(--gold-light);
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
}
.events-news-grid {
	display: grid;
	grid-template-columns: 2.1fr 1.1fr;
	gap: 40px;
}
.events-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card {
	background: var(--cream-light);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--text-dark);
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
}
.event-card .event-thumb {
	position: relative;
	height: 130px;
	background-size: cover;
	background-position: center;
	background-color: var(--maroon-soft);
}
.event-date-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--maroon-darkest);
	color: var(--gold-light);
	border: 1px solid var(--gold);
	border-radius: 6px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
}
.event-date-badge .day { display: block; font-size: 18px; font-weight: 800; }
.event-date-badge .mon-year { display: block; font-size: 10px; letter-spacing: .5px; }
.event-card .event-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.event-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.event-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px; display:flex; gap:6px; align-items:flex-start; }
.event-card .btn { margin-top: auto; padding: 8px 18px; font-size: 12.5px; align-self: flex-start; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; gap: 14px; align-items: flex-start; }
.news-item .news-thumb {
	width: 66px;
	height: 66px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: var(--maroon-soft);
	flex-shrink: 0;
	border: 1px solid rgba(212,165,55,.4);
}
.news-item .news-date { font-size: 11.5px; color: var(--gold-light); opacity: .85; margin-bottom: 3px; }
.news-item h4 { color: var(--text-light); font-size: 14.5px; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.news-item .read-more { font-size: 12px; color: var(--gold-light); font-weight: 700; }

/* =========================================================
   8. CTA BANNER
   ========================================================= */
.cta-banner {
	position: relative;
	background: linear-gradient(180deg, #7a4a2a, #e8b45a);
	background-size: cover;
	background-position: center;
	padding: 50px 0;
	overflow: hidden;
}
.cta-banner.has-custom-image { background-image: var(--cta-image); }
.cta-banner::after { content:""; position:absolute; inset:0; background: rgba(30,10,10,.35); }
.cta-banner .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text .eyebrow { font-family: var(--font-heading); font-style: italic; color: var(--gold-light); font-size: 18px; }
.cta-text h2 { color: #fff; font-size: 26px; margin: 4px 0 0; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer {
	background: var(--maroon-darkest);
	color: var(--text-light);
	padding-top: 50px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(212,165,55,.25);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .site-logo img, .footer-brand .site-logo-placeholder { width: 60px; height: 60px; font-size: 8px; }
.footer-brand strong { color: var(--gold-light); font-family: var(--font-heading); font-size: 18px; display: block; }
.footer-brand span { font-size: 12.5px; color: var(--text-light); opacity: .85; }
.site-footer h4 { color: var(--gold-light); font-size: 16px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 12px; opacity: .95; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid var(--gold);
	display: flex; align-items: center; justify-content: center;
	color: var(--gold-light); font-size: 14px;
}
.footer-social a:hover { background: var(--gold); color: var(--maroon-darkest); }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 12px;
	color: rgba(251,238,203,.65);
	flex-wrap: wrap;
	gap: 8px;
}
.footer-bottom a { margin-left: 14px; }

/* =========================================================
   10. GENERIC PAGE / ARCHIVE / SINGLE
   ========================================================= */
.page-hero {
	background: linear-gradient(160deg, var(--maroon-dark), var(--maroon));
	color: var(--text-light);
	padding: 50px 0;
	text-align: center;
}
.page-hero h1 { color: var(--gold-light); margin: 0; }
.content-section { padding: 60px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	background: var(--cream);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}
.card .card-thumb { height: 160px; background-size: cover; background-position: center; background-color: var(--maroon-soft); }
.card .card-body { padding: 16px 18px; }

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
	.vision-grid { grid-template-columns: 1fr; }
	.vision-grid .col-divider { display: none; }
	.events-news-grid { grid-template-columns: 1fr; }
	.events-row { grid-template-columns: 1fr 1fr; }
	.values-grid { grid-template-columns: repeat(2,1fr); }
	.archive-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 782px) {
	.site-topbar .container { flex-direction: column; text-align: center; }
	.site-om { text-align: center; }
	.nav-toggle { display: block; margin-left: auto; }
	.site-nav .container { flex-wrap: wrap; }
	.primary-menu { display: none; width: 100%; flex-direction: column; }
	.primary-menu.is-open { display: flex; }
	.primary-menu > li { width: 100%; }
	.primary-menu .sub-menu { position: static; display: none; box-shadow: none; }
	.primary-menu li.is-open > .sub-menu { display: block; }
	.hero-copy h1 { font-size: 32px; }
	.hero-copy h2 { font-size: 24px; }
	.hero .container { flex-direction: column; }
	.hero-figure { width: 220px; margin: 0 auto; }
	.events-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.archive-grid { grid-template-columns: 1fr; }
}
