/*
Theme Name:  Minima Custom
Theme URI:   https://yoursite.com
Author:      Your Name
Description: A minimal, fully custom classic PHP theme. No block editor templates. Custom header, footer, and page templates — all controlled via the Customizer. Build each page by creating a page-template file and assigning it.
Version:     2.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       minima
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   Colors, fonts, and spacing come from the Customizer via
   wp_head. These are fallback defaults only.
   ========================================================= */

:root {
	--color-bg:          #ffffff;
	--color-surface:     #f5f5f5;
	--color-border:      #e0e0e0;
	--color-text:        #1a1a1a;
	--color-text-muted:  #666666;
	--color-heading:     #0d0d0d;
	--color-accent:      #0066cc;
	--color-accent-hover:#004fa3;
	--color-btn-text:    #ffffff;

	--header-bg:         #ffffff;
	--header-text:       #1a1a1a;
	--header-border:     #e0e0e0;

	--footer-bg:         #1a1a1a;
	--footer-text:       #cccccc;
	--footer-border:     #333333;

	--font-body:         Georgia, 'Times New Roman', serif;
	--font-heading:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-size-base:    16px;
	--line-height:       1.65;

	--radius:            4px;
	--radius-lg:         8px;
	--container:         1440px;
	--content:           720px;
	--transition:        0.2s ease;
}

/* =========================================================
   RESET
   ========================================================= */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: var(--font-size-base);
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: var(--line-height);
	color: var(--color-text);
	background: var(--color-bg);
}

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

a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	line-height: var(--line-height-tight, 1.2);
	font-weight: 700;
}

ul, ol { list-style: none; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */

.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.content-wrap {
	max-width: var(--content);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
	background: var(--header-bg);
	color: var(--header-text);
	border-bottom: 1px solid var(--header-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	
}

/* Logo / Identity */
.site-identity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	flex-shrink: 0;
}

.site-identity__logo img {
	
	width: 111px;
}

.site-identity__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-name {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--header-text);
	text-decoration: none;
}

.site-tagline {
	font-size: 0.75rem;
	color: var(--header-text);
	opacity: 0.7;
}

/* Primary Navigation */
.primary-nav {
	display: flex;
	align-items: center;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 0.4rem 0.75rem;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--header-text);
	text-decoration: none;
	border-radius: var(--radius);
	transition: background var(--transition), color var(--transition);
}



/* Dropdown */
.primary-nav li {
	position: relative;
}

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--header-bg);
	border: 1px solid var(--header-border);
	border-radius: var(--radius-lg);
	min-width: 180px;
	padding: 0.5rem 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	z-index: 200;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	border-radius: 0;
	padding: 0.5rem 1rem;
}

/* Hamburger */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--header-text);
	line-height: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	border-top: 1px solid var(--footer-border);
	padding: 3rem 0 1.5rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	justify-content: center;
}



.footer-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	list-style: none;
}



.footer-nav a {
	font-family: var(--font-heading);
	color: var(--footer-text);
	text-decoration: none;
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 400;
	line-height: 1rem;
	transition: opacity var(--transition);
	padding: 0 20px;
	
}

.footer-nav ul li:not(:last-child) a {
    border-right: 1px solid var(--color-border);
}

.footer-nav a:hover {
	opacity: 1;
	color: var(--footer-text);
}

.site-footer__bottom {
	
	padding-top: 1.5rem;
	border-top: 1px solid var(--footer-border);
	text-align: center;
	font-size: 0.8125rem;
	font-family: var(--font-heading);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
.wp-block-button__link {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	background: var(--color-accent);
	color: var(--color-btn-text) !important;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius);
	border: 2px solid var(--color-accent);
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
	line-height: 1.4;
}

.btn:hover,
.wp-block-button__link:hover {
	background: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	color: var(--color-btn-text) !important;
}

.btn--outline {
	background: transparent;
	color: var(--color-accent) !important;
}

.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-btn-text) !important;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */

.site-main {
	min-height: 60vh;
}

/* =========================================================
   SCREEN READER TEXT
   ========================================================= */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	word-wrap: normal;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
	.site-header__inner {
		height:auto;
	}

	.nav-toggle {
		display: flex;
	}

	.primary-nav {
		display: none;
		position: fixed;
		inset: 56px 0 0 0;
		background: var(--header-bg);
		flex-direction: column;
		align-items: flex-start;
		padding: 1.5rem;
		overflow-y: auto;
		z-index: 99;
		border-top: 1px solid var(--header-border);
	}

	.primary-nav.is-open {
		display: flex;
		top: 190px !important;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.primary-nav a {
		width: 100%;
		padding: 0.75rem 1rem;
		font-size: 1rem;
	}

	.primary-nav .sub-menu {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}

	.site-footer__inner {
		flex-direction: column;
		gap: 1.5rem;
	}

	.footer-nav ul {
		flex-direction: column;
		align-items: center;
	}

	.footer-nav ul  a{
		border: 0px !important;
	}
}
