/**
 * Hassan Telecom — main stylesheet (mobile first, lightweight).
 */

:root {
	--ht-primary: #1567d3;
	--ht-primary-dark: #0f4fa4;
	--ht-dark: #0b2a4a;
	--ht-text: #10192a;
	--ht-muted: #5b6779;
	--ht-bg: #ffffff;
	--ht-bg-soft: #f4f7fb;
	--ht-border: #e3e9f2;
	--ht-radius: 14px;
	--ht-radius-pill: 999px;
	--ht-shadow: 0 1px 2px rgba(16, 25, 42, .05), 0 8px 24px rgba(16, 25, 42, .06);
	--ht-max: 1140px;
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ht-text);
	background: var(--ht-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ht-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--ht-dark); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

:focus-visible { outline: 3px solid var(--ht-primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px;
	width: auto; height: auto; clip: auto;
	z-index: 999; padding: .6rem 1rem;
	background: #fff; border-radius: 8px; box-shadow: var(--ht-shadow);
}

.ht-container { width: 100%; max-width: var(--ht-max); margin: 0 auto; padding: 0 1.15rem; }
.ht-container.narrow { max-width: 780px; }
.center { text-align: center; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	padding: .7rem 1.35rem; border-radius: var(--ht-radius-pill);
	font-weight: 600; font-size: .95rem; border: 1px solid transparent;
	cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ht-primary); color: #fff; box-shadow: 0 6px 18px rgba(21, 103, 211, .25); }
.btn-primary:hover { background: var(--ht-primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ht-dark); border-color: var(--ht-border); }
.btn-outline:hover { border-color: var(--ht-primary); color: var(--ht-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: saturate(150%) blur(8px);
	border-bottom: 1px solid var(--ht-border);
}
.site-header.is-scrolled { box-shadow: var(--ht-shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; flex-wrap: wrap; }
.site-title { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-title:hover { text-decoration: none; }
.site-mark {
	width: 40px; height: 40px; border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--ht-primary), var(--ht-dark));
	color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.site-name strong { display: block; color: var(--ht-dark); font-size: 1.05rem; }
.site-name small { display: block; color: var(--ht-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.custom-logo { max-height: 54px; width: auto; }

.menu-toggle {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 44px; height: 40px; padding: 0 10px;
	background: #fff; border: 1px solid var(--ht-border); border-radius: 10px; cursor: pointer;
}
.menu-toggle .bar { display: block; height: 2px; background: var(--ht-dark); border-radius: 2px; }

.main-navigation { display: none; width: 100%; }
.main-navigation.is-open { display: block; padding-bottom: 1rem; }
.ht-menu { list-style: none; margin: 0; padding: 0; }
.ht-menu li { position: relative; }
.ht-menu a {
	display: block; padding: .6rem .25rem; color: var(--ht-dark);
	font-weight: 500; font-size: .95rem;
}
.ht-menu a:hover { color: var(--ht-primary); text-decoration: none; }
.ht-menu .sub-menu { list-style: none; margin: 0; padding-left: 1rem; }
.header-call { margin-top: .75rem; }

@media (min-width: 900px) {
	.menu-toggle { display: none; }
	.main-navigation { display: flex !important; align-items: center; gap: 1.25rem; width: auto; }
	.ht-menu { display: flex; align-items: center; gap: 1.1rem; }
	.header-call { margin-top: 0; }
	.ht-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 200px;
		background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius);
		box-shadow: var(--ht-shadow); padding: .4rem; display: none; z-index: 60;
	}
	.ht-menu li:hover > .sub-menu, .ht-menu li:focus-within > .sub-menu { display: block; }
}

/* Hero */
.hero {
	background: radial-gradient(1200px 400px at 15% -10%, rgba(21, 103, 211, .14), transparent 60%), var(--ht-bg-soft);
	border-bottom: 1px solid var(--ht-border);
}
.hero-inner { padding: 3.5rem 1.15rem 3.75rem; max-width: 760px; }
.eyebrow {
	margin: 0 0 .75rem; display: inline-block;
	padding: .3rem .8rem; border-radius: var(--ht-radius-pill);
	background: #fff; border: 1px solid var(--ht-border);
	color: var(--ht-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hero-text { color: var(--ht-muted); font-size: 1.075rem; max-width: 46ch; }

/* Sections */
.section { padding: 3rem 0; }
.section-muted { background: var(--ht-bg-soft); }
.section-title { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.section-sub, .lead { color: var(--ht-muted); }
.lead { font-size: 1.05rem; }

/* Cards */
.card {
	background: #fff; border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius); box-shadow: var(--ht-shadow);
	overflow: hidden;
}
.card-body { padding: 1.15rem; }
.card-grid, .post-grid, .info-grid {
	display: grid; gap: 1.15rem; margin-top: 1.75rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.card-grid, .post-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.card-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
	.info-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-media {
	aspect-ratio: 4 / 3;
	display: grid; place-items: center;
	background: linear-gradient(135deg, #eef4fd, #f7fafe);
	color: var(--ht-muted); font-size: .85rem;
	border-bottom: 1px solid var(--ht-border);
}
.info-card { padding: 1.15rem; }
.info-card dt { color: var(--ht-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.info-card dd { margin: .35rem 0 0; font-weight: 600; color: var(--ht-dark); font-size: 1.05rem; }
.info-grid { margin: 1.75rem 0 0; }

/* Posts / pages */
.page-layout { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
	body:not(.no-sidebar) .page-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.page-header { margin-bottom: 1.5rem; }
.page-subtitle { color: var(--ht-muted); }
.entry-card { padding: 1.5rem; }
.entry-meta { color: var(--ht-muted); font-size: .85rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content img, .entry-media { border-radius: var(--ht-radius); margin: 1.25rem 0; }
.post-card-body { padding: 1.15rem; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-weight: 600; }
.pagination { margin-top: 2rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: .45rem .8rem; border: 1px solid var(--ht-border);
	border-radius: 10px; background: #fff; color: var(--ht-dark);
}
.pagination .page-numbers.current { background: var(--ht-primary); color: #fff; border-color: var(--ht-primary); }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
	width: 100%; padding: .7rem .9rem;
	border: 1px solid var(--ht-border); border-radius: 12px;
	background: #fff; color: var(--ht-text); font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.search-form { display: flex; gap: .5rem; margin-top: .75rem; }
.contact-form .form-row { margin-bottom: 1rem; }
.notice { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.notice-success { background: #e8f7ee; color: #14653a; }
.notice-error { background: #fdeaea; color: #8c1c1c; }
.map-embed {
	margin-top: 1.5rem; border-radius: var(--ht-radius); overflow: hidden;
	border: 1px solid var(--ht-border); background: var(--ht-bg-soft);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; min-height: 240px; color: var(--ht-muted); text-align: center; padding: 1.5rem; }

/* Widgets */
.widget-area { display: grid; gap: 1.15rem; align-content: start; }
.widget { background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 1.15rem; box-shadow: var(--ht-shadow); }
.widget-title { font-size: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: .4rem; }

.error-code { font-size: clamp(3.5rem, 14vw, 7rem); font-weight: 800; color: var(--ht-primary); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: var(--ht-dark); color: rgba(255, 255, 255, .78); margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.75rem; padding: 2.75rem 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand, .footer-heading { color: #fff; }
.footer-brand { font-size: 1.2rem; margin-bottom: .25rem; }
.footer-tag { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 .75rem; }
.footer-address { font-style: normal; }
.footer-menu, .site-footer .widget ul, .social-links { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li + li { margin-top: .4rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.site-footer .widget { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; color: inherit; }
.site-footer .widget-title { color: #fff; }
.site-info {
	padding: 1.15rem; border-top: 1px solid rgba(255, 255, 255, .14);
	text-align: center; font-size: .875rem;
}

/* WooCommerce (only used if the plugin is active) */
.woocommerce ul.products li.product, .woocommerce div.product {
	border-radius: var(--ht-radius);
}
.woocommerce .button, .woocommerce a.button, .woocommerce button.button {
	border-radius: var(--ht-radius-pill) !important;
	background: var(--ht-primary) !important; color: #fff !important;
}
.woocommerce span.onsale { background: var(--ht-primary) !important; border-radius: var(--ht-radius-pill); }
