/*
Theme Name: Hojaiyga
Theme URI: https://example.com/hojaiyga
Author: Hojaiyga Home Services
Author URI: https://example.com
Description: A lightweight, security-hardened WordPress theme built for Elementor. Ships with the Hojaiyga Home Services brand palette and typography, full Elementor Theme Builder location support, and compatibility with the free Elementor Header & Footer Builder plugin. Contains no bundled third-party libraries.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hojaiyga
Tags: elementor, full-width-template, custom-logo, custom-menu, threaded-comments, translation-ready, blog, business
*/

/* ==========================================================================
   1. Brand tokens — derived from the Hojaiyga logo
   ========================================================================== */

:root {
	/* Core brand */
	--hj-navy: #022354;          /* logo mark + wordmark */
	--hj-navy-700: #0a3468;      /* hover / lighter navy */
	--hj-navy-900: #01152f;      /* deepest navy, footers */
	--hj-charcoal: #464646;      /* logo window panes + "HOME SERVICES" */

	/* Action colour — derived for contrast against navy */
	--hj-amber: #f5a524;
	--hj-amber-600: #dc9114;

	/* Neutrals */
	--hj-ink: #1f2933;
	--hj-muted: #6b7280;
	--hj-bg: #ffffff;
	--hj-bg-alt: #f4f6fa;
	--hj-border: #e3e8f0;

	/* Type */
	--hj-font-heading: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
	--hj-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Layout */
	--hj-container: 1200px;
	--hj-radius: 10px;
	--hj-radius-lg: 16px;
	--hj-shadow: 0 4px 24px rgba(2, 35, 84, .08);
	--hj-shadow-lg: 0 12px 40px rgba(2, 35, 84, .12);
}

/* ==========================================================================
   2. Minimal base — deliberately light so Elementor controls always win.
      No universal resets, no !important anywhere.
   ========================================================================== */

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

body {
	margin: 0;
	font-family: var(--hj-font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--hj-ink);
	background-color: var(--hj-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hj-font-heading);
	color: var(--hj-navy);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

a {
	color: var(--hj-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .18s ease;
}

a:hover,
a:focus { color: var(--hj-amber-600); }

/* Visible keyboard focus — accessibility, not decoration. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--hj-amber);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--hj-radius);
}

/* Logo and icons must never inherit the rounded-photo treatment. */
.custom-logo,
.hj-site-branding img,
.elementor-widget-theme-site-logo img,
.elementor-widget-image-box img.hj-icon,
figure.wp-block-image.is-style-plain img {
	border-radius: 0;
}

/* ==========================================================================
   3. Layout helpers used only by the theme's own fallback templates.
      Elementor pages never touch these.
   ========================================================================== */

.hj-container {
	width: 100%;
	max-width: var(--hj-container);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

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

.hj-section { padding: 72px 0; }
.hj-section--alt { background: var(--hj-bg-alt); }

/* Fallback header — replaced the moment you build one in Elementor. */
.hj-header {
	background: var(--hj-bg);
	border-bottom: 1px solid var(--hj-border);
	position: sticky;
	top: 0;
	z-index: 999;
}

.hj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.hj-site-title {
	font-family: var(--hj-font-heading);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hj-navy);
	text-decoration: none;
	margin: 0;
}

.hj-site-description {
	display: block;
	font-family: var(--hj-font-body);
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--hj-charcoal);
	font-weight: 500;
	margin-top: 2px;
}

.hj-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hj-nav a {
	font-family: var(--hj-font-heading);
	font-weight: 600;
	font-size: .95rem;
	color: var(--hj-navy);
	text-decoration: none;
}

.hj-nav a:hover { color: var(--hj-amber-600); }

.hj-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
	padding: 10px 14px;
	font: inherit;
	color: var(--hj-navy);
	cursor: pointer;
}

@media (max-width: 880px) {
	.hj-nav-toggle { display: block; }
	.hj-nav { display: none; width: 100%; }
	.hj-nav.is-open { display: block; }
	.hj-header__inner { flex-wrap: wrap; padding: 16px 0; }
	.hj-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 0; }
}

/* Fallback footer */
.hj-footer {
	background: var(--hj-navy-900);
	color: rgba(255, 255, 255, .82);
	padding: 56px 0 32px;
	margin-top: 64px;
}

.hj-footer a { color: #fff; }
.hj-footer a:hover { color: var(--hj-amber); }

.hj-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.hj-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .14);
	padding-top: 24px;
	font-size: .9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
}

/* ==========================================================================
   4. Buttons — used by the theme's own templates and by comment/search forms.
      Elementor buttons are styled inside Elementor.
   ========================================================================== */

.hj-btn {
	display: inline-block;
	font-family: var(--hj-font-heading);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: 18px 34px;
	border: 2px solid transparent;
	border-radius: var(--hj-radius);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.hj-btn--primary {
	background: var(--hj-amber);
	color: var(--hj-navy);
}

.hj-btn--primary:hover {
	background: var(--hj-amber-600);
	color: var(--hj-navy);
	transform: translateY(-1px);
}

.hj-btn--secondary {
	background: var(--hj-navy);
	color: #fff;
}

.hj-btn--secondary:hover { background: var(--hj-navy-700); color: #fff; }

.hj-btn--ghost {
	background: transparent;
	color: var(--hj-navy);
	border-color: var(--hj-navy);
}

.hj-btn--ghost:hover { background: var(--hj-navy); color: #fff; }

/* ==========================================================================
   5. Blog / archive fallback styling
   ========================================================================== */

.hj-entry { margin-bottom: 56px; }

.hj-entry__title { margin-bottom: .3em; }

.hj-entry__title a { text-decoration: none; }

.hj-entry__meta {
	font-size: .88rem;
	color: var(--hj-muted);
	margin-bottom: 1em;
}

.hj-entry__thumb { margin-bottom: 20px; }

.hj-entry__thumb img { border-radius: var(--hj-radius-lg); }

.hj-archive-header { margin-bottom: 48px; }

.hj-pagination {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.hj-pagination .page-numbers {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
	text-decoration: none;
}

.hj-pagination .current {
	background: var(--hj-navy);
	color: #fff;
	border-color: var(--hj-navy);
}

/* Content typography inside posts and non-Elementor pages */
.hj-content { max-width: 760px; }

.hj-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--hj-amber);
	font-size: 1.15rem;
	color: var(--hj-navy);
}

.hj-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.hj-content th,
.hj-content td {
	border: 1px solid var(--hj-border);
	padding: 12px 14px;
	text-align: left;
}

.hj-content th { background: var(--hj-bg-alt); font-family: var(--hj-font-heading); }

.hj-content code {
	background: var(--hj-bg-alt);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .92em;
}

/* Forms — covers search, comments and most form plugins */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	padding: 14px 16px;
	font: inherit;
	color: var(--hj-ink);
	background: #fff;
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
	box-sizing: border-box;
	transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--hj-navy);
	box-shadow: 0 0 0 3px rgba(2, 35, 84, .1);
}

input[type="submit"],
button[type="submit"] {
	width: auto;
	background: var(--hj-amber);
	color: var(--hj-navy);
	font-family: var(--hj-font-heading);
	font-weight: 700;
	border: none;
	padding: 16px 32px;
	border-radius: var(--hj-radius);
	cursor: pointer;
}

input[type="submit"]:hover,
button[type="submit"]:hover { background: var(--hj-amber-600); }

/* ==========================================================================
   6. Accessibility + WordPress core classes
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background: #fff;
	clip-path: none;
	color: var(--hj-navy);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 16px 24px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
	border-radius: var(--hj-radius);
	box-shadow: var(--hj-shadow);
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }

.wp-caption-text,
.wp-element-caption {
	font-size: .88rem;
	color: var(--hj-muted);
	text-align: center;
	margin-top: 8px;
}

.sticky .hj-entry__title::before { content: "★ "; color: var(--hj-amber); }

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms;
		animation-iteration-count: 1;
		transition-duration: .01ms;
	}
}
