/*
Theme Name: Arhalex
Theme URI: https://arhalex.com
Author: Arhalex Team
Author URI: https://arhalex.com
Description: Custom WordPress theme for Arhalex, a legal tech firm providing innovative legal technology solutions for modern law practices.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arhalex
Tags: legal, tech, business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  --arhalex-navy: #0f2744;
  --arhalex-navy-dark: #0a1d33;
  --arhalex-navy-light: #1b3a5f;
  --arhalex-gold: #c9a227;
  --arhalex-gold-light: #e0c04a;
  --arhalex-teal: #0e8a8a;
  --arhalex-white: #ffffff;
  --arhalex-off-white: #f7f8fa;
  --arhalex-gray: #5a6472;
  --arhalex-gray-light: #e4e8ee;
  --arhalex-text: #1c2430;
  --arhalex-border: #d9dee6;
  --arhalex-success: #2e8b57;
  --arhalex-danger: #c0392b;

  --font-heading: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-max: 1200px;
  --header-height: 80px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 39, 68, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 39, 68, 0.1);
  --shadow-lg: 0 10px 40px rgba(15, 39, 68, 0.14);
  --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--arhalex-text);
  background-color: var(--arhalex-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--arhalex-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--arhalex-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--arhalex-navy);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1.2em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: calc(var(--header-height) + 30px) 0 90px;
}

.section--tight {
  padding: calc(var(--header-height) + 30px) 0 60px;
}

.section--gray {
  background-color: var(--arhalex-off-white);
}

.section--navy {
  background-color: var(--arhalex-navy);
  color: var(--arhalex-white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--arhalex-white);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  font-size: 1.9rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--arhalex-navy) 0%, var(--arhalex-navy-light) 100%);
  color: var(--arhalex-gold);
}

.section-header p {
  color: var(--arhalex-gray);
  font-size: 1.05rem;
}

.page-description {
  color: var(--arhalex-gray);
  font-size: 1.1rem;
  margin-top: 14px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arhalex-gold);
  margin-bottom: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background-color: var(--arhalex-gold);
  color: var(--arhalex-navy);
  border-color: var(--arhalex-gold);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--arhalex-gold-light);
  border-color: var(--arhalex-gold-light);
  color: var(--arhalex-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--arhalex-white);
  border-color: var(--arhalex-white);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--arhalex-white);
  color: var(--arhalex-navy);
}

.btn--navy {
  background-color: var(--arhalex-navy);
  color: var(--arhalex-white);
  border-color: var(--arhalex-navy);
}

.btn--navy:hover,
.btn--navy:focus {
  background-color: var(--arhalex-navy-light);
  color: var(--arhalex-white);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(15, 39, 68, 0.96);
  backdrop-filter: blur(8px);
  height: var(--header-height);
  transition: all var(--transition);
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding .custom-logo {
  max-height: 100px;
  width: auto;
  background-color: var(--arhalex-white);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.3);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.site-title a {
  color: var(--arhalex-white);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--arhalex-gold);
}

.site-description {
  display: none;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  transition: all var(--transition);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
  color: var(--arhalex-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.main-navigation .sub-menu {
  position: absolute;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 220px;
  background-color: var(--arhalex-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.main-navigation li {
  position: relative;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  color: var(--arhalex-navy);
  border-radius: 0;
  padding: 10px 20px;
}

.main-navigation .sub-menu a:hover {
  background-color: var(--arhalex-off-white);
  color: var(--arhalex-teal);
}

.header-cta {
  margin-left: 16px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--arhalex-white);
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--arhalex-navy-dark) 0%, var(--arhalex-navy) 55%, var(--arhalex-navy-light) 100%);
  color: var(--arhalex-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(14, 138, 138, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arhalex-gold);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background-color: var(--arhalex-gold);
}

.hero__title {
  font-size: 3.4rem;
  color: var(--arhalex-white);
  margin-bottom: 20px;
}

.hero__title .accent {
  color: var(--arhalex-gold);
}

.hero__text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--arhalex-gold);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.hero__visual {
  position: relative;
}

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

.hero__card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__card-row:last-child {
  border-bottom: none;
}

.hero__card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.18);
  font-size: 1.1rem;
}

.hero__card-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.hero__card-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Cards & Services
   ========================================================================== */
.card {
  background-color: var(--arhalex-white);
  border: 1px solid var(--arhalex-border);
  border-radius: 14px;
  padding: 34px 30px;
  transition: all var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--arhalex-navy) 0%, var(--arhalex-navy-light) 100%);
  color: var(--arhalex-gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card__icon--lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  font-size: 1.8rem;
}

/* Hero card on dark sections */
.hero__card--navy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__card-icon--gold {
  background: rgba(201, 162, 39, 0.22);
  color: var(--arhalex-gold);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card__text {
  color: var(--arhalex-gray);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--arhalex-gray);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(14, 138, 138, 0.12);
  color: var(--arhalex-teal);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Feature list on dark sections */
.feature-list--light li::before {
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--arhalex-gold);
}

.feature-list--light li {
  color: rgba(255, 255, 255, 0.85);
}

.feature-list--light li:hover {
  color: var(--arhalex-white);
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  position: relative;
  padding: 70px 0;
  background: linear-gradient(120deg, var(--arhalex-navy) 0%, var(--arhalex-navy-dark) 100%);
  color: var(--arhalex-white);
  text-align: center;
}

.cta-band h2 {
  color: var(--arhalex-white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Content / Posts
   ========================================================================== */
.content-area {
  padding: calc(var(--header-height) + 20px) 0 90px;
}

.content-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

/* Offset anchor links past the fixed header. */
#content :target {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.post-card {
  background: var(--arhalex-white);
  border: 1px solid var(--arhalex-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  transition: box-shadow var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-card__thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.post-card__body {
  padding: 28px 30px 32px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--arhalex-gray);
  margin-bottom: 12px;
}

.post-card__meta a {
  color: var(--arhalex-teal);
  font-weight: 600;
}

.post-card__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.post-card__title a {
  color: var(--arhalex-navy);
}

.post-card__title a:hover {
  color: var(--arhalex-teal);
}

.post-card__excerpt {
  color: var(--arhalex-gray);
  margin-bottom: 18px;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--arhalex-border);
}

.page-header__title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.archive-description {
  color: var(--arhalex-gray);
}

/* Single post */
.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--arhalex-gray);
}

.entry-meta a {
  color: var(--arhalex-teal);
  font-weight: 600;
}

.entry-thumbnail {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content > * {
  margin-bottom: 1.4em;
}

.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-content blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  border-left: 4px solid var(--arhalex-gold);
  background: var(--arhalex-off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--arhalex-navy);
}

.entry-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--arhalex-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cat-links,
.tags-links {
  font-size: 0.85rem;
  color: var(--arhalex-gray);
}

.cat-links a,
.tags-links a {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 4px 4px 0;
  background: var(--arhalex-off-white);
  border: 1px solid var(--arhalex-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--arhalex-navy);
}

.cat-links a:hover,
.tags-links a:hover {
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
  border-color: var(--arhalex-navy);
}

/* Pagination */
.navigation.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--arhalex-border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--arhalex-navy);
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--arhalex-navy);
  border-color: var(--arhalex-navy);
  color: var(--arhalex-white);
}

/* Post navigation */
.post-navigation {
  margin: 40px 0;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nav-previous,
.nav-next {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--arhalex-navy);
  padding: 12px 24px;
  border: 1px solid var(--arhalex-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
  border-color: var(--arhalex-navy);
}

/* Responsive images */
.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Page links */
.page-links {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.page-links a {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px 4px 4px 0;
  background: var(--arhalex-off-white);
  border: 1px solid var(--arhalex-border);
  border-radius: var(--radius);
  color: var(--arhalex-navy);
}

.page-links a:hover {
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
}

@media (max-width: 768px) {
	.content-wrapper {
		max-width: 100%;
	}

	.page-title {
		font-size: 1.8rem;
	}
}

.post-navigation .nav-links {
  justify-content: space-between;
}

/* ==========================================================================
   Sidebar / Widgets
   ========================================================================== */
.widget-area .widget {
  background: var(--arhalex-white);
  border: 1px solid var(--arhalex-border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 30px;
}

.widget-title,
.widget .wp-block-heading {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--arhalex-off-white);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--arhalex-off-white);
  font-size: 0.92rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--arhalex-navy);
}

.widget ul li a:hover {
  color: var(--arhalex-teal);
}

.widget_search .search-form {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form label {
  flex: 1 1 200px;
}

.search-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--arhalex-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--arhalex-teal);
}

.search-submit {
  padding: 12px 24px;
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.search-submit:hover {
  background: var(--arhalex-navy-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--arhalex-navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .site-title a {
  color: var(--arhalex-white);
}

.footer-about {
  font-size: 0.92rem;
  margin: 16px 0 20px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--arhalex-white);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--arhalex-gold);
  color: var(--arhalex-navy);
}

.footer-col .widget-title {
  color: var(--arhalex-white);
  font-size: 1.05rem;
  border-bottom: none;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  padding: 6px 0;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col ul li a:hover {
  color: var(--arhalex-gold);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-contact .icon {
  color: var(--arhalex-gold);
  flex-shrink: 0;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-contact__item a {
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-contact__item a:hover {
  color: var(--arhalex-gold);
}

.footer-contact__icon {
  font-size: 1.15rem;
  color: var(--arhalex-gold);
  flex-shrink: 0;
}

.site-info {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-info a {
  color: var(--arhalex-gold);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--arhalex-border);
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.comment-list .children {
  list-style: none;
  padding-left: 40px;
}

.comment-body {
  background: var(--arhalex-off-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar img {
  border-radius: 50%;
}

.comment-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--arhalex-navy);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--arhalex-gray);
}

.comment-content p {
  margin-bottom: 12px;
}

.reply {
  margin-top: 8px;
}

.comment-reply-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--arhalex-teal);
}

.comment-form {
  display: grid;
  gap: 18px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--arhalex-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--arhalex-teal);
}

.comment-form .submit {
  justify-self: start;
  padding: 12px 28px;
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   WordPress Core Classes
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--arhalex-gray);
  text-align: center;
  margin-top: 8px;
}

.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;
}

.bypostauthor {
  display: block;
}

.sticky .post-card {
  border-color: var(--arhalex-gold);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--arhalex-teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--arhalex-navy);
  color: var(--arhalex-white);
}

.skip-link:focus {
  left: 0;
  color: var(--arhalex-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    display: none;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
     --header-height: 68px;
  }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }

	.section {
		padding: calc(var(--header-height) + 30px) 0 60px;
	}

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

	.main-navigation {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--arhalex-navy);
		padding: 16px 24px 24px;
		box-shadow: var(--shadow-lg);
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
	}

	.main-navigation.toggled {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.main-navigation .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.06);
		margin: 4px 0 4px 16px;
		display: none;
	}

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

  .header-cta {
    display: none;
  }

  .entry-title {
    font-size: 1.8rem;
  }

  .page-header__title {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
