:root {
  --bg: #fafafa;
  --card: #ffffff;
  --primary: #111111;
  --secondary: #6b7280;
  --accent: #c9a96e;
  --border: #ececec;
  --soft: #f4f2ee;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 12px 36px rgba(17, 17, 17, 0.06);
  --container: 1180px;
  --nav-height: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 64px 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

body[dir="rtl"] .section-title {
  letter-spacing: -0.025em;
}

.section-text {
  max-width: 620px;
  margin: 0;
  color: var(--secondary);
  font-size: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero {
  min-height: 58vh;
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 70px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(250, 250, 250, 0.1), rgba(250, 250, 250, 0.18)),
    url("../images/banners/banner-tailoring.png") center/cover;
}

.page-hero .container {
  width: min(100% - 40px, 560px);
  margin-inline-start: max(20px, calc((100% - var(--container)) / 2));
  margin-inline-end: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(18px);
}

.page-hero.centered {
  text-align: center;
  align-items: center;
}

.page-hero h1 {
  max-width: 520px;
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

body[dir="rtl"] .page-hero h1 {
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 500px;
  margin: 0;
  color: #4b5563;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

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

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

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

.muted {
  color: var(--secondary);
}

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

.surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 9999;
  transform: translateY(-150%);
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: rgba(201, 169, 110, 0.3);
}
