/* ==========================================================================
   Ireland Curry Awards - main.css
   Basic base styles. Page layouts will be added section by section.
   ========================================================================== */

:root {
	--ica-green: #0b3b2c;
	--ica-green-dark: #07281e;
	--ica-gold: #b8862f;
	--ica-gold-light: #d9b15a;
	--ica-cream: #fbf6ec;
	--ica-cream-dark: #f1e8d6;
	--ica-text: #1d2a24;
	--ica-muted: #5f6b64;
	--ica-white: #ffffff;
	--ica-radius: 10px;
	--ica-shadow: 0 6px 24px rgba(11, 59, 44, 0.1);
	--ica-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ica-font-heading: Georgia, "Times New Roman", serif;
	--ica-container: 1240px;
	--ica-header-h: 76px;
}

/* Reset-ish ---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ica-cream);
	color: var(--ica-text);
	font-family: var(--ica-font-body);
	font-size: 16px;
	line-height: 1.65;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ica-gold);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--ica-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--ica-green);
	font-family: var(--ica-font-heading);
	line-height: 1.2;
}

p {
	margin: 0 0 1.2em;
}

ul,
ol {
	padding-left: 1.3em;
}

.container {
	width: 100%;
	max-width: var(--ica-container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: var(--ica-white);
	color: var(--ica-green);
	box-shadow: var(--ica-shadow);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-dark {
	background: var(--ica-green);
	color: var(--ica-white);
}

.btn-dark:hover,
.btn-dark:focus {
	background: var(--ica-green-dark);
	color: var(--ica-gold-light);
}

.btn-outline {
	background: transparent;
	border-color: var(--ica-gold);
	color: var(--ica-green);
}

.btn-outline:hover,
.btn-outline:focus {
	background: var(--ica-gold);
	color: var(--ica-white);
}

.btn-icon {
	font-size: 11px;
}

/* Header ------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #ffffff;
	border-bottom: 1px solid #e6e6e6;
	transition: box-shadow 0.2s;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header.is-scrolled {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--ica-header-h);
}

.site-branding .custom-logo {
	display: block;
	max-height: 60px;
	width: auto;
}

.site-title {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-title-main {
	color: #111111;
	font-family: var(--ica-font-heading);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.site-title-sub {
	color: #8a5a00;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	position: relative;
	display: block;
	padding: 6px 0;
	color: #111111;
	font-size: 15px;
	font-weight: 500;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--ica-gold);
	transform: scaleX(0);
	transition: transform 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: #111111;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
	transform: scaleX(1);
}

/* Sub menus */
.primary-nav .menu li {
	position: relative;
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--ica-white);
	border-radius: var(--ica-radius);
	box-shadow: var(--ica-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu a {
	padding: 8px 18px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.social-menu {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-menu a {
	font-size: 13px;
	font-weight: 600;
	color: #111111;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background: #111111;
	transition: transform 0.2s, background 0.2s;
}

.nav-toggle-bar {
	position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bar::before {
	top: -7px;
}

.nav-toggle-bar::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
		order: 3;
	}

	.header-inner {
		flex-wrap: wrap;
	}

	.site-branding {
		order: 1;
		margin-right: auto;
	}

	.header-actions {
		order: 2;
	}

	.header-actions .social-nav {
		display: none;
	}

	.primary-nav {
		order: 4;
		display: none;
		width: 100%;
		padding-bottom: 16px;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.primary-nav a {
		padding: 10px 0;
	}

	.primary-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding-left: 16px;
		background: transparent;
	}
}

@media (max-width: 520px) {
	.btn-listen {
		padding: 10px 16px;
		font-size: 12px;
	}
}

/* Hero (basic) ------------------------------------------------------------- */
.hero {
	padding: 90px 0 80px;
	background: linear-gradient(180deg, var(--ica-cream) 0%, var(--ica-cream-dark) 100%);
}

.hero-eyebrow {
	margin-bottom: 14px;
	color: var(--ica-muted);
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.hero-title {
	max-width: 640px;
	margin-bottom: 20px;
	font-size: clamp(34px, 6vw, 64px);
	font-weight: 800;
	text-transform: uppercase;
}

.hero-script {
	display: block;
	color: var(--ica-gold);
	font-size: 0.8em;
	font-style: italic;
	font-weight: 500;
	text-transform: none;
}

.hero-text {
	max-width: 520px;
	font-size: 18px;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

/* Content ------------------------------------------------------------------ */
.content-area {
	padding-top: 56px;
	padding-bottom: 72px;
}

.page-header {
	margin-bottom: 32px;
}

.page-title {
	font-size: clamp(28px, 4vw, 44px);
}

.entry-meta,
.entry-footer {
	color: var(--ica-muted);
	font-size: 14px;
}

.entry-meta .byline {
	margin-left: 10px;
}

.entry-thumb {
	margin-bottom: 28px;
	overflow: hidden;
	border-radius: var(--ica-radius);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content .alignwide {
	max-width: 100%;
}

.entry-content img {
	border-radius: 6px;
}

.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 20px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption,
.wp-caption-text,
.gallery-caption {
	max-width: 100%;
	color: var(--ica-muted);
	font-size: 14px;
}

.entry-content::after,
.page-links::after {
	content: "";
	display: table;
	clear: both;
}

/* Post grid / cards -------------------------------------------------------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.card {
	overflow: hidden;
	background: var(--ica-white);
	border-radius: var(--ica-radius);
	box-shadow: var(--ica-shadow);
}

.card-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.card-body {
	padding: 20px 22px 24px;
}

.card-title {
	font-size: 22px;
}

.card-title a {
	color: var(--ica-green);
}

.read-more {
	font-size: 14px;
	font-weight: 600;
}

/* Pagination / post navigation -------------------------------------------- */
.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	padding: 8px 16px;
	background: var(--ica-white);
	border-radius: 999px;
	color: var(--ica-green);
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--ica-green);
	color: var(--ica-white);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 40px 0;
}

.nav-label {
	display: block;
	color: var(--ica-muted);
	font-size: 12px;
	text-transform: uppercase;
}

/* Forms (default WP + comments + search) ----------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--ica-white);
	border: 1px solid #d9d2c1;
	border-radius: 6px;
	color: var(--ica-text);
	font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--ica-gold-light);
	outline-offset: 1px;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin: 20px 0;
}

.search-form .search-field {
	flex: 1;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 20px;
	padding: 18px;
	background: var(--ica-white);
	border-radius: var(--ica-radius);
}

.comment-respond {
	margin-top: 30px;
}

.comment-form input[type="submit"] {
	padding: 12px 26px;
	background: var(--ica-green);
	border: 0;
	border-radius: 999px;
	color: var(--ica-white);
	font-weight: 600;
	cursor: pointer;
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
	background: var(--ica-green);
	color: #e9efe9;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.site-footer .site-title-main {
	color: var(--ica-white);
}

.site-footer a {
	color: #e9efe9;
}

.site-footer a:hover {
	color: var(--ica-gold-light);
}

.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-widgets {
	min-width: 240px;
}

.footer-bottom {
	padding: 16px 0;
	background: var(--ica-green-dark);
	font-size: 13px;
}

.footer-bottom p {
	margin: 0;
}

@media (max-width: 700px) {
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Sidebar widgets ---------------------------------------------------------- */
.widget {
	margin-bottom: 30px;
}

.widget-title {
	font-size: 18px;
}

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
