/*
Theme Name: hasiaun-cars
Theme URI: https://example.com/hasiaun-cars
Author: Codex
Author URI: https://openai.com
Description: A premium WordPress theme for HASIAUN GENERAL TRADING LLC. Built for vehicles, heavy equipment, and spare parts with a business-platform look inspired by the HASIAUN logo.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hasiaun-cars
*/

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --ink: #08111f;
  --muted: #5c6c82;
  --line: #d9e3ef;
  --primary: #10243d;
  --primary-2: #16375c;
  --accent: #19a0ff;
  --accent-2: #0b78d0;
  --shadow: 0 24px 60px rgba(12, 25, 45, 0.12);
  --radius: 28px;
  --radius-lg: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(25, 160, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 36, 61, 0.08), transparent 32%),
    var(--bg);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body.lang-ar {
  font-family: "Noto Sans Arabic", "Tahoma", "Segoe UI", system-ui, sans-serif;
}

body[dir="rtl"] {
  direction: rtl;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.78);
  border-bottom: 1px solid rgba(217, 227, 239, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand .custom-logo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

body[dir="rtl"] .brand,
body[dir="rtl"] .hero-actions,
body[dir="rtl"] .section-head,
body[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

body[dir="rtl"] .listing-meta,
body[dir="rtl"] .footer-inner {
  text-align: right;
}

.brand-logo {
  width: 220px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.brand .custom-logo {
  width: 220px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--primary);
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.lang-switcher a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.lang-switcher a.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  color: #fff;
}

.main-menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-menu a,
.footer-menu a {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  box-shadow: 0 18px 40px rgba(25, 160, 255, 0.25);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 160, 255, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  font-weight: 800;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--primary);
  text-transform: uppercase;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  margin: 0;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 18px 36px rgba(16, 36, 61, 0.18);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--primary);
}

.hero-panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(231, 242, 252, 0.96));
  min-height: 360px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 227, 239, 0.92);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.25rem 1.25rem;
  height: 110px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 36, 61, 0.92), rgba(25, 160, 255, 0.92));
  opacity: 0.98;
}

.hero-panel-copy {
  position: absolute;
  inset: auto 2rem 2rem 2rem;
  z-index: 2;
  color: #fff;
}

.hero-panel-logo {
  position: absolute;
  top: 2.25rem;
  left: 50%;
  width: min(82%, 430px);
  height: auto;
  transform: translateX(-50%);
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.hero-panel-copy strong {
  display: block;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-panel-copy span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  color: var(--primary);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(16, 36, 61, 0.06);
  overflow: hidden;
}

.card-pad {
  padding: 1.35rem;
}

.category-card {
  position: relative;
  min-height: 200px;
  padding: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(25, 160, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #fff, #f7fbff);
}

.category-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 36, 61, 0.06);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.location-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.location-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 150px;
}

.location-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.location-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.listing-card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ecf3fa, #dfeaf6);
}

.listing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.listing-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--primary);
}

.listing-price {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 160, 255, 0.12);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.85rem;
}

.cta-band {
  border-radius: calc(var(--radius-lg) + 10px);
  background: linear-gradient(135deg, var(--primary), #08111f 55%, var(--accent-2));
  color: #fff;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  margin-top: 3rem;
  background: #07111e;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 0.9rem;
  color: #fff;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.4rem;
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--primary);
}

.company-page .page-hero {
  padding-bottom: 1rem;
}

.company-page .content-card {
  padding: clamp(1.35rem, 4vw, 3rem);
}

.company-page .content-card h2 {
  margin: 2.2rem 0 0.7rem;
  color: var(--primary);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.company-page .content-card h2:first-child {
  margin-top: 0;
}

.company-page .content-card h3 {
  margin: 1.4rem 0 0.45rem;
  color: var(--primary);
}

.company-page .content-card p {
  color: var(--muted);
  max-width: 70rem;
}

.company-page .content-card ul {
  margin: 0.5rem 0 1.1rem;
  padding-inline-start: 1.4rem;
  color: var(--muted);
}

.company-page .content-card li + li {
  margin-top: 0.35rem;
}

.company-intro {
  font-size: 1.12rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f7fbff);
}

.contact-card h3 {
  margin-top: 0 !important;
}

.contact-card p {
  margin-bottom: 0;
}

.content-wrap {
  padding: 2rem 0 4rem;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(16, 36, 61, 0.06);
}

.post-card .entry {
  padding: 1.25rem;
}

.post-card h2 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1.18rem;
}

.menu-open .site-nav {
  display: flex;
}

@media (max-width: 1024px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .archive-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .location-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  body[dir="rtl"] .header-inner,
  body[dir="rtl"] .brand,
  body[dir="rtl"] .hero-actions,
  body[dir="rtl"] .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    width: 100%;
  }

  .brand-logo,
  .brand .custom-logo {
    width: 170px;
    max-height: 68px;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .archive-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

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