/* ============================================================
   شركة قمة القصور للمقاولات العامة
   تصميم عصري نظيف — خلفية فاتحة، مساحات واسعة، لمسات حمراء
   ألوان الشعار: أحمر #D62027 · أسود #15100F
   ============================================================ */

:root {
  /* Brand */
  --red: #d62027;
  --red-600: #c01c22;
  --red-700: #a11015;
  --red-soft: #fdecec;
  --red-tint: #fbe6e7;

  /* Neutrals */
  --ink: #15100f;
  --ink-2: #2c2522;
  --muted: #6c6360;
  --bg: #ffffff;
  --bg-soft: #faf7f6;
  --bg-dark: #16100f;
  --line: rgba(21, 16, 15, 0.10);
  --line-2: rgba(21, 16, 15, 0.16);
  --card: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(21, 16, 15, 0.05), 0 2px 8px rgba(21, 16, 15, 0.05);
  --shadow-md: 0 12px 34px rgba(21, 16, 15, 0.09);
  --shadow-lg: 0 26px 60px rgba(21, 16, 15, 0.14);
  --shadow-red: 0 14px 30px rgba(214, 32, 39, 0.28);

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 4.75rem;
  --space-section: clamp(3.75rem, 8vw, 6.5rem);

  --font: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--red-700);
  text-underline-offset: 0.2em;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
}

:focus-visible {
  outline: 3px solid rgba(214, 32, 39, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -120%;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ============================================================
   Eyebrow / Section heads
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red-700);
  text-transform: none;
  background: var(--red-soft);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

.eyebrow--center {
  margin-inline: auto;
}

.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 32, 39, 0.18);
}

.section {
  padding-block: var(--space-section);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section__head {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__title--start {
  text-align: start;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

main section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red-700);
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 3.2rem;
  padding-inline: 1.85rem;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn__ic {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(21, 16, 15, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  height: 3rem;
  width: auto;
  max-width: 13rem;
  object-fit: contain;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.site-nav__list a:hover {
  color: var(--ink);
  background: rgba(21, 16, 15, 0.04);
}

.site-nav__list a.is-active {
  color: var(--red-700);
}

.site-nav__list a.is-active::after {
  transform: scaleX(1);
}

.site-header__actions {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

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

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

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-header__actions {
    display: none;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem 1rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    transition: clip-path 0.28s var(--ease), opacity 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .site-nav.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
  }

  .site-nav__list a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .site-nav__list a::after {
    display: none;
  }

  .site-nav__list a.is-active {
    background: var(--red-soft);
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: var(--bg);
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 82% -8%, rgba(214, 32, 39, 0.10), transparent 60%),
    radial-gradient(34rem 24rem at 8% 4%, rgba(21, 16, 15, 0.05), transparent 60%);
}

.hero__decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(21, 16, 15, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 16, 15, 0.035) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero__title .hl {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}

.hero__title .hl::after {
  content: "";
  position: absolute;
  inset-inline: -0.05em;
  bottom: 0.06em;
  height: 0.16em;
  background: rgba(214, 32, 39, 0.22);
  border-radius: 1px;
  z-index: -1;
}

.hero__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.hero__chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
}

.chip__ic {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   Services
   ============================================================ */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: var(--start, right);
  transition: transform 0.25s var(--ease);
}

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

.service:hover::before {
  transform: scaleX(1);
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 1.1rem;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.service:hover .service__icon {
  background: var(--red);
  color: #fff;
  transform: scale(1.05);
}

.service__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__title {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  font-weight: 800;
}

.service__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ============================================================
   Why us
   ============================================================ */
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.why:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why__num {
  position: absolute;
  inset-inline-end: 1.4rem;
  top: 1.2rem;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(21, 16, 15, 0.07);
}

.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--red), var(--red-700));
  color: #fff;
  box-shadow: var(--shadow-red);
  margin-bottom: 1.2rem;
}

.why__icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why__title {
  margin: 0 0 0.55rem;
  font-size: 1.22rem;
  font-weight: 800;
}

.why__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
}

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .about {
    grid-template-columns: 1.05fr 0.9fr;
  }
}

.about__panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1f1615 0%, var(--bg-dark) 62%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.85rem);
  box-shadow: var(--shadow-lg);
  border-inline-start: 5px solid var(--red);
}

.about__panel::before {
  content: "";
  position: absolute;
  inset-inline-end: -4rem;
  top: -4rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 32, 39, 0.4), transparent 70%);
  pointer-events: none;
}

.about__panel-mark {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 4.5rem;
  line-height: 0.4;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 1rem;
}

.about__quote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.85rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

.about__facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.6rem;
}

.about__fact-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.3rem;
}

.about__fact-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.about__copy .eyebrow {
  margin-bottom: 1rem;
}

.about__copy .section__title {
  margin-bottom: 1.1rem;
}

.about__text {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about__text strong {
  color: var(--ink);
}

.about__list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 520px) {
  .about__list {
    grid-template-columns: 1fr 1fr;
  }
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.about__list svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__address {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.about__address strong {
  color: var(--ink);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 880px) {
  .contact {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact__card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact__item:first-child {
  padding-top: 0;
}

.contact__item:last-child {
  border-bottom: 0;
}

.contact__ic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
}

.contact__ic svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__body {
  min-width: 0;
  text-align: start;
}

.contact__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact__value:hover {
  color: var(--red-700);
}

.contact__map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.contact__iframe {
  width: 100%;
  flex: 1;
  min-height: 18rem;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(2.75rem, 6vw, 4rem);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.25rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.site-footer__name {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.site-footer__name span {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
}

.site-footer__tagline {
  margin: 0;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer__heading {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__nav a,
.site-footer__contact a,
.site-footer__contact span {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
  width: fit-content;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--red);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
