/* ===== دليل الساحل الشمالي — ستايل ===== */
:root {
  --sea: #0E5563;
  --sea-deep: #0A3D48;
  --sand: #FBF6EC;
  --sand-2: #F2E6CE;
  --gold: #E0A53A;
  --gold-deep: #C2872A;
  --ink: #11313B;
  --muted: #5E7178;
  --line: #E4D9C2;
  --white: #fff;
  --shadow: 0 8px 28px rgba(10, 61, 72, .10);
  --r: 16px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1,
h2,
h3,
.brand {
  font-family: "El Messiri", "Tajawal", sans-serif;
  line-height: 1.3
}

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

img {
  max-width: 100%
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px 64px
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  gap: 9px
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(224, 165, 58, .18)
}

.top-cta {
  background: var(--sea);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem
}

.top-cta:hover {
  background: var(--sea-deep)
}

/* buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .12s ease, background .2s
}

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

.btn-wa {
  background: var(--gold);
  color: var(--ink)
}

.btn-wa:hover {
  background: var(--gold-deep);
  color: var(--white)
}

.btn-call {
  background: var(--sea);
  color: var(--white)
}

.btn-call:hover {
  background: var(--sea-deep)
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .6)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12)
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px
}

/* ===== HOME ===== */
.hero {
  position: relative;
  margin: 18px 0 30px;
  padding: 62px 30px;
  border-radius: 26px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 75%;
  background: radial-gradient(ellipse at 50% 0, rgba(224, 165, 58, .30), transparent 60%)
}

.hero-eyebrow {
  margin: 0 0 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700
}

.hero-lead {
  max-width: 560px;
  margin: 16px 0 26px;
  font-size: 1.08rem;
  color: #DCEAEC
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2
}

.home-area {
  margin: 30px 0
}

.home-area-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px
}

.home-area-head h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--sea-deep)
}

.home-area-head h2 a:hover {
  color: var(--gold-deep)
}

.home-area-range {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500
}

.hchips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.hchip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 120px;
  transition: .15s;
  box-shadow: 0 1px 2px rgba(10, 61, 72, .04)
}

.hchip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.hchip b {
  font-weight: 700;
  color: var(--ink)
}

.hchip span {
  font-size: .8rem;
  color: var(--muted)
}

/* ===== AREA ===== */
.crumbs {
  font-size: .9rem;
  color: var(--muted);
  padding: 18px 0 8px
}

.crumbs a:hover {
  color: var(--gold-deep)
}

.area-head {
  margin: 8px 0 24px
}

.area-head h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  margin: 0 0 6px;
  color: var(--sea-deep)
}

.area-range {
  display: inline-block;
  background: var(--sand-2);
  color: var(--sea-deep);
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  margin: 0 0 10px
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px
}

.proj-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: .15s;
  box-shadow: 0 1px 2px rgba(10, 61, 72, .04)
}

.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow)
}

.card-km {
  align-self: flex-start;
  background: var(--sea);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px
}

.card-name {
  font-family: "El Messiri", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink)
}

.card-en {
  font-size: .82rem;
  color: var(--muted)
}

.card-dev {
  font-size: .78rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin-top: 2px
}

/* ===== PROJECT ===== */
.proj article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  margin-top: 8px;
  box-shadow: var(--shadow)
}

.proj-hero {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px
}

.km-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--white);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 12px
}

.proj h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0;
  color: var(--sea-deep)
}

.proj-sub {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 1rem
}

.proj h2 {
  font-size: 1.4rem;
  color: var(--sea-deep);
  margin: 30px 0 10px
}

.proj p {
  margin: 0 0 12px
}

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 4px
}

.facts th,
.facts td {
  text-align: right;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .97rem
}

.facts th {
  background: var(--sand);
  color: var(--sea-deep);
  font-weight: 700;
  width: 42%;
  white-space: nowrap
}

.feats {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px
}

.feats li {
  position: relative;
  padding: 8px 26px 8px 10px;
  background: var(--sand);
  border-radius: 10px;
  font-size: .95rem
}

.feats li::before {
  content: "●";
  color: var(--gold);
  position: absolute;
  right: 9px;
  top: 9px;
  font-size: .7rem
}

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
  background: var(--sand)
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--sea-deep);
  list-style: none
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq summary::before {
  content: "＋";
  color: var(--gold-deep);
  margin-left: 8px;
  font-weight: 700
}

.faq[open] summary::before {
  content: "－"
}

.faq p {
  padding: 0 16px 14px;
  margin: 0;
  color: var(--muted)
}

/* ruler signature */
.ruler {
  margin: 26px 0
}

.ruler-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap
}

.neigh {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: var(--sand);
  text-align: center;
  transition: .15s
}

.neigh:hover {
  border-color: var(--gold);
  border-style: solid
}

.neigh-lbl {
  font-size: .72rem;
  color: var(--muted)
}

.neigh-name {
  font-family: "El Messiri", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink)
}

.neigh-km {
  font-size: .78rem;
  color: var(--sea);
  font-weight: 700
}

.neigh-self {
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  border: none
}

.neigh-self .neigh-lbl,
.neigh-self .neigh-km {
  color: #CDE6E8
}

.neigh-self .neigh-name {
  color: var(--white)
}

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

.chips a {
  padding: 7px 14px;
  background: var(--sand-2);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  transition: .15s
}

.chips a:hover {
  background: var(--gold);
  color: var(--white)
}

.related {
  margin: 26px 0
}

.cta {
  margin-top: 30px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--white)
}

.cta h2 {
  color: var(--white);
  margin: 0 0 6px
}

.cta p {
  color: #CDE6E8;
  margin: 0 0 18px
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

/* footer */
.site-foot {
  background: var(--sea-deep);
  color: #Bcdadd;
  padding: 30px 18px;
  text-align: center;
  color: #A9C7CB
}

.foot-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-bottom: 12px;
  font-size: .92rem
}

.foot-areas a:hover {
  color: var(--gold)
}

.foot-brand {
  font-size: .85rem;
  opacity: .8;
  margin: 0
}

@media (max-width:520px) {
  body {
    font-size: 16px
  }

  .hero {
    padding: 46px 22px
  }

  .proj article {
    padding: 20px
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto
  }
}