/*!
Theme Name: Hexa Theme
Theme URI: https://hexateknologikreasindo.com/
Author: Hexa Teknologi Kreasindo
Author URI: https://hexateknologikreasindo.com
Description: A lightweight and reusable base theme designed for Gutenberg and GenerateBlocks.
Version: 2.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hexa-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, block-styles

This theme, like WordPress, is licensed under the GPL.
Hexa Theme is based on Underscores https://underscores.me/, (C) 2012-2022 Automattic, Inc.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Global Properties (CSS Variables)
2.0 Generic (Normalize & Box Sizing)
3.0 Base Styles (Typography, Links, Elements)
4.0 Navigation (Basic Fallback)
5.0 WordPress Core & Plugins (Galleries, Accessibility, etc.)
--------------------------------------------------------------*/


/*--------------------------------------------------------------
1.0 Global Properties (CSS Variables)
--------------------------------------------------------------*/
:root {
	/* Colors - Synced with theme.json */
	--ht-color-primary: #0ea5e9;
	--ht-color-secondary: #64748b;
	--ht-color-accent: #f59e0b;
	--ht-color-base: #1e293b;
	--ht-color-base-light: #f1f5f9;
	--ht-color-white: #ffffff;

	/* Typography */
	--ht-font-family-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--ht-font-family-headings: var(--ht-font-family-body); /* Can be changed later */
	--ht-global-line-height: 1.6;
}


/*--------------------------------------------------------------
2.0 Generic (Normalize & Box Sizing)
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	line-height: 1.15;
}

body {
	margin: 0;
}

main {
	display: block;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

img {
	border-style: none;
	height: auto;
	max-width: 100%;
}

embed,
iframe,
object {
	max-width: 100%;
}


/*--------------------------------------------------------------
3.0 Base Styles (Typography, Links, Elements)
--------------------------------------------------------------*/
body {
	background: var(--ht-color-white);
	color: var(--ht-color-base);
	font-family: var(--ht-font-family-body);
	font-size: 1rem;
	line-height: var(--ht-global-line-height);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-family: var(--ht-font-family-headings);
	line-height: 1.3;
	margin: 1.5em 0 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraphs and Lists */
p {
	margin: 0 0 1.5em;
}

ul, ol {
	margin: 0 0 1.5em 1.5em; /* Use margin-left, not padding for lists */
	padding: 0;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

/* Links */
a {
	color: var(--ht-color-primary);
	text-decoration: underline;
}

a:hover,
a:focus {
	color: var(--ht-color-accent);
	text-decoration: none;
}

/* Basic Form Reset (Minimal) */
button,
input,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
	vertical-align: baseline;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
4.0 Navigation (Basic Fallback)
  - This styling is minimal for the default WordPress menu.
  - If you use GenerateBlocks to build your header, you may not need this.
--------------------------------------------------------------*/
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation li {
	position: relative;
	display: inline-block; /* Simple horizontal menu */
}

.main-navigation a {
	display: block;
	padding: 0.5em 1em;
	text-decoration: none;
}

/* Sub-menu basic visibility */
.main-navigation ul ul {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background: var(--ht-color-white);
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
	z-index: 999;
}

.main-navigation ul li:hover > ul {
	display: block;
}

.menu-toggle {
	display: none; /* Simplification: handle mobile nav separately if needed */
}

/*--------------------------------------------------------------
5.0 WordPress Core & Plugins (Galleries, Accessibility, etc.)
--------------------------------------------------------------*/
/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Captions */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}
.wp-caption .wp-caption-text {
	margin-top: 0.5em;
	font-size: 0.875rem;
	text-align: center;
}

/* Galleries */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}
.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

/* Legacy Alignments */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}
.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}