/*
Theme Name: Hisn Al-Taqniya
Theme URI: https://hisn-altaqniya.ly
Author: Hisn Al-Taqniya
Author URI: https://hisn-altaqniya.ly
Description: Premium enterprise theme for Hisn Al-Taqniya Company for Telecommunications and Information Technology Ltd.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hisn-altaqniya
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   HISN AL-TAQNIYA — ENTERPRISE THEME
   Premium Telecom & IT Infrastructure
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-bg-primary: #060a14;
    --color-bg-secondary: #0b1120;
    --color-bg-tertiary: #111827;
    --color-bg-card: #0f1729;
    --color-bg-card-hover: #141e33;
    --color-accent: #00b4d8;
    --color-accent-deep: #0077b6;
    --color-accent-glow: rgba(0, 180, 216, 0.15);
    --color-accent-glow-strong: rgba(0, 180, 216, 0.3);
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #7c8db0;
    --color-white: #ffffff;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-accent: rgba(0, 180, 216, 0.2);
    --gradient-accent: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    --gradient-accent-hover: linear-gradient(135deg, #005f8f 0%, #009bb8 100%);
    --gradient-dark: linear-gradient(180deg, #060a14 0%, #0b1120 100%);
    --gradient-card: linear-gradient(180deg, rgba(15, 23, 41, 0.8) 0%, rgba(11, 17, 32, 0.9) 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.1);
    --shadow-glow-strong: 0 0 50px rgba(0, 180, 216, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1280px;
    --container-wide: 1400px;
    --section-padding: 120px;
    --section-padding-mobile: 72px;
}

/* --- Light Theme --- */
[data-theme="light"] {
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #f0f4f8;
    --color-bg-tertiary: #e2e8f0;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f8fafc;
    --color-accent: #0069a8;
    --color-accent-deep: #004d7a;
    --color-accent-glow: rgba(0, 105, 168, 0.1);
    --color-accent-glow-strong: rgba(0, 105, 168, 0.18);
    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #475569;
    --color-white: #0f172a;
    --color-border: rgba(0, 0, 0, 0.12);
    --color-border-accent: rgba(0, 105, 168, 0.3);
    --gradient-accent: linear-gradient(135deg, #0069a8 0%, #0097c7 100%);
    --gradient-accent-hover: linear-gradient(135deg, #004d7a 0%, #0082b0 100%);
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 4px 20px rgba(0, 105, 168, 0.1);
    --shadow-glow-strong: 0 4px 30px rgba(0, 105, 168, 0.16);
}

/* Light theme specific overrides */
[data-theme="light"] .hat-header {
    background: rgba(248, 250, 252, 0.85);
}

[data-theme="light"] .hat-header--scrolled {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .hat-menu-toggle span {
    background: var(--color-text-primary);
}

[data-theme="light"] .hat-hero__visual-grid {
    opacity: 0.03;
}

[data-theme="light"] .hat-btn--primary {
    color: #ffffff;
}

[data-theme="light"] .hat-btn--outline {
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

[data-theme="light"] .hat-btn--outline:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
    color: var(--color-accent);
}

[data-theme="light"] .hat-contact-form input,
[data-theme="light"] .hat-contact-form textarea {
    background: var(--color-bg-secondary);
}

[data-theme="light"] .hat-logo__name {
    color: var(--color-text-primary);
}

[data-theme="light"] .hat-footer__social-link:hover {
    color: #ffffff;
    background: var(--color-accent);
}

[data-theme="light"] .hat-nav__link:hover,
[data-theme="light"] .hat-nav__link--active {
    color: var(--color-accent);
}

[data-theme="light"] .hat-stat__value,
[data-theme="light"] .hat-testimonial__name,
[data-theme="light"] .hat-contact-section__detail strong,
[data-theme="light"] .hat-card__title a {
    color: var(--color-text-primary);
}

[data-theme="light"] .hat-card__title a:hover {
    color: var(--color-accent);
}

[data-theme="light"] .hat-service-card,
[data-theme="light"] .hat-why-card,
[data-theme="light"] .hat-industry-card,
[data-theme="light"] .hat-tech-item {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .hat-service-card:hover,
[data-theme="light"] .hat-why-card:hover,
[data-theme="light"] .hat-industry-card:hover,
[data-theme="light"] .hat-tech-item:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .hat-tech__visual-graphic {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .hat-tech__stack-item {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

[data-theme="light"] .hat-tech__stack-item:hover {
    background: var(--color-accent-glow);
    border-color: var(--color-border-accent);
}

[data-theme="light"] .hat-why-card__number {
    color: rgba(0, 105, 168, 0.12);
}

[data-theme="light"] .hat-section-label {
    color: var(--color-accent);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hat-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* --- Layout --- */
.hat-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.hat-container--wide {
    max-width: var(--container-wide);
}

.hat-section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* --- Section Headers --- */
.hat-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.hat-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.hat-section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}

.hat-section-header h2 {
    margin-bottom: 20px;
}

.hat-section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* --- Buttons --- */
.hat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.hat-btn--primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}

.hat-btn--primary:hover {
    background: var(--gradient-accent-hover);
    box-shadow: 0 6px 30px rgba(0, 180, 216, 0.35);
    transform: translateY(-1px);
    color: var(--color-white);
}

.hat-btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(4px);
}

.hat-btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.hat-btn-arrow {
    font-size: 1.125rem;
    transition: transform var(--transition-base);
}

.hat-btn:hover .hat-btn-arrow {
    transform: translateX(3px);
}

/* --- Section Dividers --- */
.hat-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border-accent) 50%, transparent 100%);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.hat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.hat-header--scrolled {
    background: rgba(6, 10, 20, 0.95);
    box-shadow: var(--shadow-md);
}

.hat-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.hat-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.hat-logo__mark {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.hat-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hat-logo__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.hat-logo__tagline {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hat-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.hat-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.hat-nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    position: relative;
}

.hat-nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.hat-nav__link:hover,
.hat-nav__link--active {
    color: var(--color-white);
}

.hat-nav__link:hover::after,
.hat-nav__link--active::after {
    width: 100%;
}

.hat-nav__cta {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.hat-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hat-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hat-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hat-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Grid pattern overlay */
.hat-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Radial glow */
.hat-hero__glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 119, 182, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hat-hero__glow-secondary {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hat-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hat-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hat-hero__text {
    max-width: 600px;
}

.hat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border-accent);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 32px;
}

.hat-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: hat-pulse 2s ease-in-out infinite;
}

@keyframes hat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hat-hero__title {
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hat-hero__title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hat-hero__subtitle {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

.hat-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hat-hero__stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.hat-hero__stat {
    display: flex;
    flex-direction: column;
}

.hat-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.hat-hero__stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero Visual */
.hat-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hat-hero__visual-abstract {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
}

/* Network node visualization */
.hat-hero__node-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--color-border-accent);
}

.hat-hero__node-ring--outer {
    inset: 0;
    animation: hat-rotate-slow 60s linear infinite;
}

.hat-hero__node-ring--middle {
    inset: 15%;
    border-color: rgba(0, 180, 216, 0.12);
    animation: hat-rotate-slow 45s linear infinite reverse;
}

.hat-hero__node-ring--inner {
    inset: 30%;
    border-color: rgba(0, 180, 216, 0.08);
    animation: hat-rotate-slow 30s linear infinite;
}

.hat-hero__node-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-strong), 0 0 80px rgba(0, 180, 216, 0.2);
}

.hat-hero__node-center-icon {
    width: 48px;
    height: 48px;
    color: var(--color-white);
}

.hat-hero__node-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

.hat-hero__node-dot--1 { top: 0%; left: 50%; transform: translate(-50%, -50%); }
.hat-hero__node-dot--2 { top: 50%; right: 0%; transform: translate(50%, -50%); }
.hat-hero__node-dot--3 { bottom: 0%; left: 50%; transform: translate(-50%, 50%); }
.hat-hero__node-dot--4 { top: 50%; left: 0%; transform: translate(-50%, -50%); }
.hat-hero__node-dot--5 { top: 14.6%; right: 14.6%; }
.hat-hero__node-dot--6 { bottom: 14.6%; right: 14.6%; }

@keyframes hat-rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ============================================
   COMPANY INTRODUCTION
   ============================================ */
.hat-intro {
    background: var(--color-bg-secondary);
}

.hat-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hat-intro__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hat-intro__text:last-of-type {
    margin-bottom: 36px;
}

.hat-intro__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hat-intro__metric {
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.hat-intro__metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.hat-intro__metric-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ============================================
   CORE SERVICES
   ============================================ */
.hat-services {
    background: var(--color-bg-primary);
}

.hat-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hat-service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.hat-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hat-service-card:hover {
    border-color: var(--color-border-accent);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hat-service-card:hover::before {
    opacity: 1;
}

.hat-service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.hat-service-card:hover .hat-service-card__icon {
    background: var(--color-accent-glow-strong);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
}

.hat-service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.hat-service-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.hat-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-base);
}

.hat-service-card:hover .hat-service-card__link {
    gap: 10px;
}


/* ============================================
   WHY CHOOSE US
   ============================================ */
.hat-why {
    background: var(--color-bg-secondary);
}

.hat-why__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.hat-why-card {
    text-align: center;
    padding: 44px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.hat-why-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hat-why-card__number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 180, 216, 0.08);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.hat-why-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
}

.hat-why-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-white);
}

.hat-why-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}


/* ============================================
   INDUSTRIES SERVED
   ============================================ */
.hat-industries {
    background: var(--color-bg-primary);
    position: relative;
}

.hat-industries__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.hat-industry-card {
    text-align: center;
    padding: 48px 24px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.hat-industry-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hat-industry-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.hat-industry-card:hover::after {
    opacity: 1;
}

.hat-industry-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 1.75rem;
    transition: all var(--transition-base);
}

.hat-industry-card:hover .hat-industry-card__icon {
    background: var(--color-accent-glow-strong);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
}

.hat-industry-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.hat-industry-card__desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* ============================================
   TECHNOLOGY CAPABILITIES
   ============================================ */
.hat-tech {
    background: var(--color-bg-secondary);
}

.hat-tech__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hat-tech__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hat-tech-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.hat-tech-item:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-glow);
}

.hat-tech-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 1.25rem;
}

.hat-tech-item__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 6px;
}

.hat-tech-item__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hat-tech__visual {
    position: relative;
}

.hat-tech__visual-graphic {
    padding: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.hat-tech__visual-graphic::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
}

.hat-tech__stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.hat-tech__stack-item {
    padding: 20px 16px;
    text-align: center;
    background: rgba(6, 10, 20, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.hat-tech__stack-item:hover {
    border-color: var(--color-border-accent);
    background: rgba(0, 180, 216, 0.05);
}

.hat-tech__stack-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
    color: var(--color-accent);
}

.hat-tech__stack-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ============================================
   FINAL CTA
   ============================================ */
.hat-cta {
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.hat-cta__inner {
    position: relative;
    text-align: center;
    padding: 80px 60px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hat-cta__glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 119, 182, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hat-cta__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.hat-cta__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hat-cta__title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hat-cta__desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hat-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hat-cta__contact-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.hat-cta__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hat-cta__contact-icon {
    color: var(--color-accent);
    font-size: 1rem;
}


/* ============================================
   FOOTER
   ============================================ */
.hat-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.hat-footer__main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 80px 0 60px;
}

.hat-footer__brand-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-top: 20px;
    line-height: 1.7;
    max-width: 320px;
}

.hat-footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hat-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hat-footer__list a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.hat-footer__list a:hover {
    color: var(--color-accent);
}

.hat-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.hat-footer__copy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hat-footer__legal {
    display: flex;
    gap: 24px;
}

.hat-footer__legal a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hat-footer__legal a:hover {
    color: var(--color-accent);
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.hat-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hat-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.hat-reveal--delay-1 { transition-delay: 0.1s; }
.hat-reveal--delay-2 { transition-delay: 0.2s; }
.hat-reveal--delay-3 { transition-delay: 0.3s; }
.hat-reveal--delay-4 { transition-delay: 0.4s; }
.hat-reveal--delay-5 { transition-delay: 0.5s; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hat-why__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hat-industries__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hat-why-card:nth-child(4),
    .hat-why-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 88px;
    }
    
    .hat-hero__inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hat-hero__text {
        max-width: 100%;
    }
    
    .hat-hero__subtitle {
        max-width: 100%;
    }
    
    .hat-hero__actions {
        justify-content: center;
    }
    
    .hat-hero__stats {
        justify-content: center;
    }
    
    .hat-hero__visual-abstract {
        max-width: 380px;
        margin: 0 auto;
    }
    
    .hat-intro__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hat-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hat-tech__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hat-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .hat-nav__list {
        display: none;
    }
    
    .hat-menu-toggle {
        display: flex;
    }
    
    .hat-nav--open .hat-nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(6, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .hat-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hat-hero__visual {
        display: none;
    }
    
    .hat-hero__stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hat-services__grid {
        grid-template-columns: 1fr;
    }
    
    .hat-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hat-industries__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hat-tech__stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hat-cta__inner {
        padding: 48px 24px;
    }
    
    .hat-cta__contact-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hat-footer__main {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hat-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hat-hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hat-hero__actions .hat-btn {
        width: 100%;
    }
    
    .hat-why__grid {
        grid-template-columns: 1fr;
    }
    
    .hat-industries__grid {
        grid-template-columns: 1fr;
    }
    
    .hat-intro__metrics {
        grid-template-columns: 1fr;
    }
    
    .hat-cta__actions {
        flex-direction: column;
    }
    
    .hat-cta__actions .hat-btn {
        width: 100%;
    }

    .hat-contact-section__inner {
        grid-template-columns: 1fr;
    }

    .hat-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .hat-contact-form__row {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ACCESSIBILITY — Skip Link
   ============================================ */
.hat-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 12px 24px;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: top 0.15s ease;
}

.hat-skip-link:focus {
    top: 8px;
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}


/* ============================================
   ACCESSIBILITY — Focus Styles
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.hat-btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.4);
}

.hat-nav__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 0;
    border-color: var(--color-accent);
}

/* Kill outlines for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================
   SCREEN READER ONLY
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg-tertiary);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: var(--color-accent);
    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;
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.hat-testimonials {
    background: var(--color-bg-primary);
}

.hat-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hat-testimonial {
    position: relative;
    padding: 40px 32px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    margin: 0;
}

.hat-testimonial:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hat-testimonial__quote-icon {
    color: rgba(0, 180, 216, 0.15);
    margin-bottom: 16px;
    display: block;
}

.hat-testimonial__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.hat-testimonial__footer {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.hat-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
}

.hat-testimonial__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-white);
}

.hat-testimonial__role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hat-testimonial__company {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ============================================
   CONTACT SECTION (with form)
   ============================================ */
.hat-contact-section {
    background: var(--color-bg-secondary);
}

.hat-contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hat-contact-section__info .hat-section-label {
    text-align: left;
}

.hat-contact-section__info .hat-section-label::before {
    content: '';
    display: inline-block;
}

.hat-contact-section__info h2 {
    margin-bottom: 20px;
}

.hat-contact-section__desc {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 40px;
}

.hat-contact-section__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hat-contact-section__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hat-contact-section__detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
}

.hat-contact-section__detail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hat-contact-section__detail strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
}

.hat-contact-section__detail span,
.hat-contact-section__detail a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.hat-contact-section__detail a:hover {
    color: var(--color-accent);
}


/* ============================================
   CONTACT FORM
   ============================================ */
.hat-contact-form {
    padding: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.hat-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.hat-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hat-contact-form__field:not(:last-child):not(.hat-contact-form__row .hat-contact-form__field) {
    margin-bottom: 20px;
}

.hat-contact-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hat-required {
    color: var(--color-accent);
}

.hat-contact-form input,
.hat-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.hat-contact-form input::placeholder,
.hat-contact-form textarea::placeholder {
    color: var(--color-text-muted);
}

.hat-contact-form input:hover,
.hat-contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.hat-contact-form input:focus,
.hat-contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
    outline: none;
}

.hat-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot */
.hat-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.hat-contact-form__footer {
    margin-top: 24px;
}

.hat-contact-form__submit {
    width: 100%;
}

.hat-contact-form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.hat-contact-form__status {
    margin-top: 16px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.hat-contact-form__status--success {
    padding: 14px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.hat-contact-form__status--error {
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}


/* ============================================
   FOOTER SOCIAL LINKS
   ============================================ */
.hat-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.hat-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.hat-footer__social-link:hover {
    border-color: var(--color-border-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.hat-footer__widgets {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}


/* ============================================
   BLOG / ARCHIVE / SEARCH TEMPLATES
   ============================================ */
.hat-blog,
.hat-archive,
.hat-search,
.hat-page,
.hat-single,
.hat-404 {
    padding-top: 120px;
    padding-bottom: var(--section-padding);
    min-height: 100vh;
    background: var(--color-bg-primary);
}

.hat-blog__container,
.hat-archive__container,
.hat-search__container,
.hat-single__container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

/* When no sidebar, span full width */
.hat-blog__container:not(:has(.hat-sidebar)),
.hat-archive__container:not(:has(.hat-sidebar)),
.hat-search__container:not(:has(.hat-sidebar)),
.hat-single__container:not(:has(.hat-sidebar)) {
    grid-template-columns: 1fr;
}

.hat-archive__header {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.hat-archive__title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hat-archive__description {
    margin-top: 12px;
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
}

.hat-search__query {
    color: var(--color-accent);
}


/* ============================================
   POST CARD (archive/blog)
   ============================================ */
.hat-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hat-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.hat-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hat-card__thumbnail {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hat-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hat-card:hover .hat-card__thumbnail img {
    transform: scale(1.03);
}

.hat-card__body {
    padding: 28px;
}

.hat-card__meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hat-card__type {
    padding: 2px 8px;
    background: var(--color-accent-glow);
    border-radius: 4px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hat-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hat-card__title a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-base);
}

.hat-card__title a:hover {
    color: var(--color-accent);
}

.hat-card__excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-base);
}

.hat-card:hover .hat-card__link {
    gap: 10px;
}


/* ============================================
   SINGLE POST / PAGE
   ============================================ */
.hat-page__container {
    max-width: 860px;
}

.hat-entry__header {
    margin-bottom: 40px;
}

.hat-entry__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.hat-entry__author-link {
    color: var(--color-accent);
}

.hat-entry__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hat-entry__thumbnail {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hat-entry__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.hat-entry__content h2,
.hat-entry__content h3,
.hat-entry__content h4 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.hat-entry__content p {
    margin-bottom: 1.5em;
}

.hat-entry__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hat-entry__content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.hat-entry__content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-primary);
}

.hat-entry__content ul,
.hat-entry__content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.hat-entry__content li {
    margin-bottom: 0.5em;
    color: var(--color-text-secondary);
}

.hat-entry__content pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin: 1.5em 0;
}

.hat-entry__content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: var(--color-bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-accent);
}

.hat-entry__content pre code {
    background: none;
    padding: 0;
}

.hat-entry__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.hat-entry__footer a {
    color: var(--color-accent);
}

.hat-entry__pagination {
    margin-top: 2em;
    font-weight: 600;
}


/* ============================================
   POST NAVIGATION (prev/next)
   ============================================ */
.hat-post-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.hat-post-nav .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hat-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.hat-post-nav a:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-glow);
}

.hat-post-nav__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.hat-post-nav__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}


/* ============================================
   PAGINATION
   ============================================ */
.hat-pagination {
    margin-top: 48px;
    grid-column: 1 / -1;
}

.hat-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.hat-pagination .page-numbers:hover,
.hat-pagination .page-numbers.current {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}


/* ============================================
   SIDEBAR
   ============================================ */
.hat-sidebar {
    position: sticky;
    top: 100px;
}

.hat-widget {
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.hat-widget__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.hat-widget ul {
    list-style: none;
    padding: 0;
}

.hat-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.hat-widget li:last-child {
    border-bottom: none;
}

.hat-widget a {
    color: var(--color-text-secondary);
}

.hat-widget a:hover {
    color: var(--color-accent);
}


/* ============================================
   404 PAGE
   ============================================ */
.hat-404__container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hat-404__inner {
    text-align: center;
    max-width: 540px;
}

.hat-404__code {
    display: block;
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.hat-404__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hat-404__desc {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.hat-404__actions {
    margin-bottom: 40px;
}


/* ============================================
   NO RESULTS
   ============================================ */
.hat-no-results {
    text-align: center;
    padding: 60px 20px;
}

.hat-no-results__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hat-no-results__content p {
    margin-bottom: 24px;
}


/* ============================================
   SEARCH FORM
   ============================================ */
.hat-search-form__wrap {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.hat-search-form__input {
    flex: 1;
    padding: 14px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-base);
}

.hat-search-form__input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.hat-search-form__submit {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================
   COMMENTS
   ============================================ */
.hat-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.hat-comments__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hat-comments__list {
    list-style: none;
    padding: 0;
}

.hat-comments__list .comment {
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.hat-comments__list .comment-author {
    font-weight: 600;
    color: var(--color-white);
}

.hat-comments__list .comment-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.hat-comments__closed {
    font-style: italic;
    color: var(--color-text-muted);
}

.hat-comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.hat-comment-form input[type="text"],
.hat-comment-form input[type="email"],
.hat-comment-form input[type="url"],
.hat-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    transition: border-color var(--transition-base);
}

.hat-comment-form input:focus,
.hat-comment-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.hat-comment-form .form-submit input {
    cursor: pointer;
    background: var(--gradient-accent);
    color: var(--color-white);
    font-weight: 600;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.hat-comment-form .form-submit input:hover {
    background: var(--gradient-accent-hover);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}


/* ============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================ */
@media (max-width: 1024px) {
    .hat-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .hat-contact-section__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hat-blog__container,
    .hat-archive__container,
    .hat-search__container,
    .hat-single__container {
        grid-template-columns: 1fr;
    }

    .hat-sidebar {
        position: static;
    }

    .hat-post-nav .nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hat-contact-form {
        padding: 24px;
    }

    .hat-contact-form__row {
        grid-template-columns: 1fr;
    }

    .hat-post-grid {
        grid-template-columns: 1fr;
    }

    .hat-blog,
    .hat-archive,
    .hat-search,
    .hat-page,
    .hat-single,
    .hat-404 {
        padding-top: 100px;
    }
}


/* ============================================
   LANGUAGE SWITCHER (EN ↔ AR)
   ============================================ */
.hat-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--transition-base);
    flex-shrink: 0;
    line-height: 1;
}

.hat-lang-switch:hover {
    border-color: var(--color-border-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.hat-lang-switch__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hat-lang-switch__label {
    white-space: nowrap;
}

.hat-footer__lang-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.hat-footer__lang-link:hover {
    color: var(--color-accent);
}

.hat-footer__legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 1024px) {
    .hat-lang-switch {
        margin-top: 12px;
        align-self: center;
    }
}


/* ============================================
   THEME TOGGLE (light/dark)
   ============================================ */
.hat-theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.hat-theme-toggle:hover {
    border-color: var(--color-border-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.hat-theme-toggle__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hat-theme-toggle:hover .hat-theme-toggle__icon {
    transform: rotate(30deg);
}

/* Sun icon hidden by default (dark mode), shown in light mode */
.hat-theme-toggle__sun {
    display: none;
}

.hat-theme-toggle__moon {
    display: block;
}

[data-theme="light"] .hat-theme-toggle__sun {
    display: block;
}

[data-theme="light"] .hat-theme-toggle__moon {
    display: none;
}

@media (max-width: 1024px) {
    .hat-theme-toggle {
        margin-top: 16px;
        align-self: center;
    }
}
